joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462110
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Delete registry value
Query or enumerate registry value
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x514cee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push edi
push str.WindowPos
push str.SoftwareMicrosoftInternet_ExplorerIEDevTools
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], bx
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push 0x560ec0
push str.CLSID1a6fe369_f28c_4ad9_a3e6_2bcb50807cf1InProcServer32
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov al, 0xa3
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], al
mov byte [esp + 0x18], al
lea eax, [esp + 8]
lea edx, [esp + 0x1c]
push eax
push ecx
push 1
push ebx
push edx
mov dword [esp + 0x30], 0x1a6fe369
mov word [esp + 0x34], 0xf28c
mov word [esp + 0x36], 0x4ad9
mov byte [esp + 0x39], 0xe6
mov byte [esp + 0x3a], 0x2b
mov byte [esp + 0x3b], 0xcb
mov byte [esp + 0x3c], 0x50
mov byte [esp + 0x3d], 0x80
mov byte [esp + 0x3e], 0x7c
mov byte [esp + 0x3f], 0xf1
mov dword [esp + 0x20], 0x59055df
mov word [esp + 0x24], 0x6bb0
mov word [esp + 0x26], 0x402a
mov byte [esp + 0x28], 0xba
mov byte [esp + 0x29], 0x48
mov byte [esp + 0x2a], 0x58
mov byte [esp + 0x2b], 0xbf
mov byte [esp + 0x2d], 0x43
mov byte [esp + 0x2e], 0x71
mov byte [esp + 0x2f], 0x9c
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esp + 8], ebx
jne 0x462242
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
add esp, 0x240
ret
push esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
mov dword [esp + 0x248], ebx
je 0x46228b
mov ecx, dword [esp + 0x250]
lea eax, [esi + 8]
cmp ecx, ebx
mov dword [eax], ebx
je 0x462279
mov edx, dword [ecx]
push eax
push 0x554d50
push ecx
call dword [edx]
mov dword [esi + 4], 0x51a8f0
mov dword [esi + 0xc], ebx
mov dword [esi], 0x51a8c8
jmp 0x46228d
xor esi, esi
mov eax, dword [esp + 0xc]
push esi
push eax
mov dword [esp + 0x250], 0xffffffff
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0xc]
push 1
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [esp + 0x240]
mov eax, dword [esp + 0xc]
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret
Function at 0x463940
Capabilities:
Create thread

Disassembly:
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4639a4
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 4]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
push fcn.004639b0
push 0
push 0
mov dword [eax], 1
mov dword [eax + 0x14], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4639a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x463af0
Capabilities:
Allocate thread local storage

Disassembly:
mov al, byte [0x54ea14]
test al, al
je 0x463b2e
mov byte [0x54ea14], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push str.SafeCentralSafeCentral.dll
mov dword [0x560f30], eax
call fcn.00468d00
add esp, 4
call fcn.004405d0
call fcn.00441a90
call fcn.0040fef0
mov ecx, eax
jmp fcn.0040ff20
ret
Function at 0x464750
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
push 0x11
call edi
shr eax, 8
test al, al
je 0x4647d6
mov eax, dword [0x5f7b04]
test eax, eax
je 0x46477f
mov eax, dword [esi + 0x677c]
test eax, eax
je 0x4647d6
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x4647d6
push 0x12
call edi
movsx eax, ax
shr eax, 0x10
je 0x4647a1
mov edx, dword [esi]
push 0x64
mov ecx, esi
call dword [edx + 0xa0]
pop edi
mov eax, 1
pop esi
ret 4
mov eax, dword [esi + 0x6760]
cmp eax, 0xffffffff
jne 0x4647b1
mov eax, 0x64
cmp word [esp + 0xc], 0
jle 0x4647be
add eax, 5
jmp 0x4647c1
add eax, 0xfffffffb
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xa0]
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x4673c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x46745e
mov eax, dword [esi + 0x6c]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xa258], 0
test eax, eax
jne 0x467418
mov eax, dword [esi + 4]
push 0
push eax
call edi
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 4]
and eax, 0xbfffffff
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_SetParent]
push 1
push 0
push 6
mov ecx, esi
call fcn.00413800
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x58], 1
test eax, eax
je 0x467454
mov eax, dword [0x6159d8]
test eax, eax
je 0x467445
push 0
mov ecx, esi
call fcn.0046b880
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x467454
mov ecx, dword [esi + 4]
push 0
push ecx
call edi
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x78]
pop edi
pop esi
ret
Function at 0x468840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov esi, ecx
mov eax, dword [edi + 4]
cmp eax, 0x100
jne 0x4688b6
mov eax, dword [edi + 8]
add eax, 0xfffffff7
cmp eax, 0x72
ja case.0x4688d4.21
xor ecx, ecx
mov cl, byte [eax + 0x46895c]
jmp dword [ecx*4 + 0x46894c]
mov eax, dword [esi + 0x6c]
test eax, eax
je case.0x4688d4.21
mov eax, dword [0x5de220]
test eax, eax
je case.0x4688d4.21
push 1
push 1
mov ecx, esi
call fcn.00413c60
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4
mov ax, word [edi + 8]
push 1
push eax
push 0xc
mov ecx, esi
call fcn.00413800
mov ebx, eax
pop edi
pop esi
pop ebx
ret 4
cmp eax, 0x104
jne case.0x4688d4.21
mov eax, dword [edi + 8]
add eax, 0xffffffee
cmp eax, 0x67
ja case.0x4688d4.21
xor ecx, ecx
mov cl, byte [eax + 0x4689e0]
jmp dword [ecx*4 + 0x4689d0]
mov dx, word [edi + 8]
push 1
push edx
push 0xc
mov ecx, esi
call fcn.00413800
mov ebx, eax
pop edi
pop esi
pop ebx
ret 4
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je case.0x4688d4.21
mov ax, word [edi + 8]
push 1
push eax
push 0xc
mov ecx, esi
call fcn.00413800
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4
mov eax, dword [esi + 0x6c]
test eax, eax
je case.0x4688d4.21
mov cx, word [edi + 8]
push 1
push ecx
push 0xc
mov ecx, esi
call fcn.00413800
push 1
push 1
mov ecx, esi
xor ebx, ebx
call fcn.00413c60
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4

Function at 0x469610
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2094
call fcn.00512b50
push esi
mov esi, ecx
mov dword [esp + 4], 0
call fcn.00468a60
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [esp + 4]
test eax, eax
je 0x4696f4
mov ecx, dword [esp + 0x209c]
push edi
xor edi, edi
test ecx, ecx
je 0x469665
mov ecx, esi
call fcn.00468a60
push eax
call fcn.004754f0
add esp, 4
test eax, eax
je 0x4696a6
jmp 0x4696a1
push eax
push str.mailto:_subjectFrom_Browserbody_s
lea eax, [esp + 0x14]
push 0x1048
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 0xc]
push 5
push 0x560ec0
push 0x560ec0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x4696a6
mov edi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
pop edi
jne 0x4696f4
cmp word [0x561564], 0
jne 0x4696d8
mov eax, dword [0x5e3f38]
push 0x104
push 0x561564
push 0x32
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
push 0x561564
push 0x78
call fcn.00499730
mov ecx, dword [esi + 4]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
add esp, 0x2094
ret 4
Function at 0x4697e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 8]
push edi
push eax
push str.SoftwareMicrosoftInternet_ExplorerDefault_HTML_Editor_shelleditcommand
mov edi, ecx
push SysReAllocStringLen
mov dword [esp + 0x14], 0x104
call esi
test eax, eax
je 0x469826
lea ecx, [esp + 0xc]
push ecx
push str.InternetShortcut_shelleditcommand
push SysReAllocStringLen
call esi
test eax, eax
jne 0x4698bf
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x560ec0
push ecx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
lea esi, [esp + 0x10]
test eax, eax
jbe 0x4698bf
cmp word [esp + 0x10], 0x22
jne 0x46986f
lea esi, [esp + 0x12]
push 0x22
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x469884
mov word [eax], 0
push str._dde
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x46989c
mov word [eax], 0
push 5
lea eax, [edi + 0x4704]
push 0
push eax
push esi
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4698c8
push 2
mov ecx, edi
call fcn.004698e0
pop edi
pop esi
add esp, 0x210
ret
Function at 0x46b990
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x46b9f0
mov ecx, dword [edi + 0xb328]
test ecx, ecx
jne 0x46b9a9
xor eax, eax
jmp 0x46b9b4
mov eax, dword [edi + 0xb32c]
sub eax, ecx
sar eax, 2
lea esi, [eax - 1]
test esi, esi
jl 0x46b9f0
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi + 0xb328]
test ebx, ebx
mov eax, dword [eax + esi*4]
je 0x46b9e2
push 2
push 1
push 0x3456
push eax
call ebp
jmp 0x46b9eb
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
dec esi
jns 0x46b9c7
pop ebp
pop ebx
pop edi
pop esi
ret 4

Function at 0x46c010
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push 0x560f4c
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocStringLen
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x46c07b
push 0x560f4c
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 1
call fcn.00476650
push 1
push 2
push 9
call fcn.00476620
push 1
push 2
push 0xf
call fcn.00476620
push 0
push 2
push 5
call fcn.00476620
push 1
push 2
push 0xa
call fcn.00476620
push 0
call fcn.00476650
mov dword [0x5f57b8], 1
call fcn.0044f3a0
add esp, 0x248
ret
Function at 0x46c960
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x5d28cc]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x46c979
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x46ca68
cmp word [esi], 0
je 0x46ca68
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ca68
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
call fcn.0046dc00
mov edi, eax
test edi, edi
jne 0x46c9cc
pop edi
pop esi
pop ecx
ret 4
mov edx, dword [esp + 8]
inc edx
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x46c9f9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46c9f1
push eax
call fcn.00512b1a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
mov edi, esi
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0047f4f0
add esp, 8
test eax, eax
jle 0x46ca43
push 1
push 8
push str.SWITCH_
push eax
push esi
push esi
call fcn.0041c210
push esi
push 0x5d28cc
call fcn.00493aa0
add esp, 0x20
push esi
call fcn.00512b1a
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x46ca5d
push eax
call fcn.00512b1a
add esp, 4
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x46d1c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x46d1ea
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x46d1ea
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x46cc10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
pop esi
ret
Function at 0x46d8b0
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x515176
push eax
mov eax, 0x1094
mov dword fs:[0], esp
call fcn.00512b50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10b0]
xor ebp, ebp
push edi
cmp esi, ebp
mov ebx, ecx
je 0x46daa6
cmp word [esi], bp
je 0x46daa6
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x5c]
push ecx
push 0x10000000
push esi
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x824
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x46daa6
cmp word [esp + 0x5c], bp
je 0x46daa2
mov edx, dword [0x52d194]
lea eax, [esp + 0x5c]
test eax, eax
mov dword [esp + 0x10], edx
je 0x46d9a1
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebp
je 0x46d9a1
push esi
lea ecx, [esp + 0x14]
call fcn.0041b330
test eax, eax
je 0x46d9a1
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov dword [esp + 0x10b8], ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.00448fd0
lea esi, [ebx + 8]
mov ecx, esi
call fcn.00492150
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
je 0x46da77
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x46da77
mov eax, dword [0x52d194]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x10ac], 1
push eax
push ecx
mov ecx, esi
call fcn.00492300
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x46da25
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov edx, dword [0x52d120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46da4c
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x46da4c
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00512b1a
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x52d120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46da77
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x46da77
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00512b1a
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x52d120]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x46daa2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x46daa2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00512b1a
add esp, 4
mov eax, ebp
jmp 0x46daa8
xor eax, eax
mov ecx, dword [esp + 0x10a4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10a0
ret 4
Function at 0x46dc00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x46dce1
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x46dce1
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46dce1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov dword [esi], eax
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x46dc72
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esi]
xor eax, eax
inc ecx
push 0
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi]
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46dcc3
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x46dcc3
push ebx
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebp]
test eax, eax
je 0x46dcda
push eax
call fcn.00512b1a
add esp, 4
mov dword [ebp], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x46dcf0
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x5d28d4]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x46dd09
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x46ddf8
cmp word [esi], 0
je 0x46ddf8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ddf8
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
call fcn.0046dc00
mov edi, eax
test edi, edi
jne 0x46dd5c
pop edi
pop esi
pop ecx
ret 4
mov edx, dword [esp + 8]
inc edx
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x46dd89
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46dd81
push eax
call fcn.00512b1a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
mov edi, esi
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0047f4f0
add esp, 8
test eax, eax
jle 0x46ddd3
push 1
push 8
push str.SWITCH_
push eax
push esi
push esi
call fcn.0041c210
push esi
push 0x5d28d4
call fcn.00493aa0
add esp, 0x20
push esi
call fcn.00512b1a
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x46dded
push eax
call fcn.00512b1a
add esp, 4
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x46e280
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x46e2aa
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x46e2aa
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x46de90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
pop esi
ret

Function at 0x46e2b0
Capabilities:
Parse url

Disassembly:
sub esp, 0x864
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
mov dword [esp + 0x10], esi
je 0x46e2ef
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46e2ef
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x46e2ef
push eax
call edi
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x46e2fc
push eax
call edi
mov dword [ebp + 0x1c], esi
cmp dword [ebp + 4], esi
je 0x46e42c
mov ebx, dword [esp + 0x878]
cmp ebx, esi
je 0x46e42c
cmp byte [ebx], 0
je 0x46e42c
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x87c]
cmp eax, esi
mov dword [esp + 0x28], 0x824
je 0x46e39e
mov edx, ebx
lea ecx, [esp + 0x50]
mov esi, 0x824
lea eax, [esp + 0x50]
sub edx, ecx
lea ecx, [esi + 0x7ffff7da]
test ecx, ecx
je 0x46e392
mov cl, byte [edx + eax]
test cl, cl
je 0x46e392
mov byte [eax], cl
inc eax
dec esi
jne 0x46e373
dec eax
xor esi, esi
mov byte [eax], 0
jmp 0x46e3bb
test esi, esi
jne 0x46e397
dec eax
mov byte [eax], 0
xor esi, esi
jmp 0x46e3bb
lea edx, [esp + 0x14]
push edx
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x46e42c
mov al, byte [esp + 0x50]
test al, al
je 0x46e42c
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x46e3ce
xor edi, edi
jmp 0x46e3d6
mov edi, dword [ebp + 0x10]
sub edi, eax
sar edi, 2
test edi, edi
jle 0x46e41b
mov ebx, dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x46e3fd
add eax, 8
test eax, eax
je 0x46e3fd
lea ecx, [esp + 0x50]
push eax
push ecx
call ebx
test eax, eax
jne 0x46e413
inc esi
cmp esi, edi
jl 0x46e3e0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x864
ret 8
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x864
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x864
ret 8