joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4691bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5358b7
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x724], 0
jne 0x469228
cmp dword [0x59d50c], 0
je 0x4693b3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___function_interface_is_null.
push 1
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x10
jmp 0x4693b3
mov eax, dword [edi + 0x71c]
mov esi, dword [eax]
cmp eax, esi
je 0x46939a
mov eax, dword [esp + 0x7c]
cmp dword [esi + 0x21c], eax
jne 0x46938c
cmp dword [0x59d50c], 0
je 0x4692f6
lea edx, [esi + 0x3c]
lea ecx, [esp + 0x4c]
call fcn.004869e0
mov ebp, eax
and dword [esp + 0x74], 0
lea edx, [esi + 0x84]
lea ecx, [esp + 0x34]
call fcn.004869e0
mov ebx, eax
lea edx, [esi + 0x24]
mov byte [esp + 0x74], 1
lea ecx, [esp + 0x1c]
call fcn.004869e0
mov byte [esp + 0x74], 2
cmp dword [ebp + 0x14], 0x10
jb 0x469298
mov ebp, dword [ebp]
cmp dword [ebx + 0x14], 0x10
jb 0x4692a0
mov ebx, dword [ebx]
cmp dword [eax + 0x14], 0x10
jb 0x4692a8
mov eax, dword [eax]
push ebp
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___WaeMgr_StartDownTask:__d___s___s___s
push 3
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x20
lea ecx, [esp + 0x1c]
push 0
push 1
call fcn.0044ea87
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.0044ea87
or dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x4c]
push 0
push 1
call fcn.0044ea87
lea eax, [esi + 0x3c]
cmp dword [eax + 0x14], 8
mov dword [esp + 0x18], eax
jb 0x469309
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea ebp, [esi + 0x84]
cmp dword [ebp + 0x14], 8
jb 0x469318
mov ebp, dword [ebp]
lea edx, [esi + 0x24]
cmp dword [edx + 0x14], 8
jb 0x469323
mov edx, dword [edx]
lea ebx, [esi + 0xc]
cmp dword [ebx + 0x14], 8
jb 0x469334
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
jmp 0x469338
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 0x724]
push 0
push dword [esp + 0x1c]
mov eax, dword [ecx]
push ebp
push dword [esi + 8]
push 0x56ba4c
push edx
push dword [esp + 0x2c]
call dword [eax + 0xc]
mov ebp, 0x59d520
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov ecx, 0x59d540
mov dword [esp + 0x78], 3
call fcn.00465bcf
push ebp
inc dword [eax]
or dword [esp + 0x78], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x7c]
mov esi, dword [esi]
cmp dword [edi + 0x71c], esi
jne 0x46923c
mov esi, 0x56ba50
push esi
call fcn.00450dae
pop ecx
push eax
push esi
lea ecx, [edi + 0x5b0]
call fcn.00450d41
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00508163
add esp, 0x64
ret 4
Function at 0x46940a
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x14
push edi
mov edi, ecx
cmp dword [edi + 0x724], 0
je 0x469531
mov eax, dword [edi + 0x71c]
push esi
mov esi, dword [eax]
cmp eax, esi
je 0x469530
push ebx
push ebp
mov ebp, dword [esp + 0x28]
cmp dword [esi + 8], ebp
jne 0x469520
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
lea ebx, [edi + 0x760]
push eax
mov ecx, ebx
call fcn.00472dd8
test eax, eax
je 0x46947c
lea eax, [esi + 0x19c]
cmp dword [eax + 0x14], 8
jb 0x469465
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46947c
and dword [esi + 0x210], 0
jmp 0x469520
lea ecx, [esi + 8]
call fcn.004682c3
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0047300a
mov ecx, dword [ebx]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x4694ae
cmp ebp, dword [eax + 0x10]
jl 0x4694ae
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
jmp 0x4694b6
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
mov eax, dword [eax]
cmp eax, ecx
je 0x4694c9
push eax
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0044da31
push 8
lea eax, [esi + 0x3c]
pop ecx
mov dword [esp + 0x10], eax
cmp dword [eax + 0x14], ecx
jb 0x4694de
mov eax, dword [eax]
mov dword [esp + 0x10], eax
lea ebp, [esi + 0x84]
cmp dword [ebp + 0x14], ecx
jb 0x4694ec
mov ebp, dword [ebp]
lea ebx, [esi + 0x24]
cmp dword [ebx + 0x14], ecx
jb 0x4694f6
mov ebx, dword [ebx]
lea edx, [esi + 0xc]
cmp dword [edx + 0x14], ecx
jb 0x469500
mov edx, dword [edx]
mov ecx, dword [edi + 0x724]
push 0
push dword [esp + 0x14]
mov eax, dword [ecx]
push ebp
push dword [esi + 8]
push 0x56ba54
push ebx
push edx
call dword [eax + 0xc]
mov ebp, dword [esp + 0x28]
mov esi, dword [esi]
cmp dword [edi + 0x71c], esi
jne 0x469434
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x14
ret 4
Function at 0x470841
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x536621
call fcn.0050d349
lea ecx, [ebp - 0x40]
call fcn.00487e8d
xor ebx, ebx
lea ecx, [ebp - 0x58]
push str._startmodel:floatmode
mov dword [ebp - 4], ebx
call fcn.00450dd2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x40]
push 1
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x59d50c], ebx
je 0x470901
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.004869e0
mov esi, eax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004869e0
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x4708c0
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x4708c8
mov eax, dword [eax]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___startup_wcc_ret__d_:_n_product__s___n_arg__s_
push 3
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x1c
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0044ea87
push ebx
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0044ea87
push str.prodstarttime
lea ecx, [ebp - 0x28]
call fcn.0044ea5a
push ebx
mov byte [ebp - 4], 4
call fcn.0050967e
pop ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004638aa
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0044ea87
push str.prodstartcode
lea ecx, [ebp - 0x28]
call fcn.0044ea5a
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.00463849
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0044ea87
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00451108
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00451108
call fcn.0050d2f8
ret
Function at 0x4713c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x536845
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x54]
lea eax, [edi + 0x538]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x4c], ebx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebx
call fcn.0044f86d
xor ebp, ebp
mov dword [esp + 0x4c], ebx
inc ebp
mov dword [esp + 0x14], ebp
cmp dword [esi + 0x10], ebx
jne 0x47143b
lea eax, [edi + 0x274]
mov ecx, esi
push eax
call fcn.004510b3
cmp dword [esi + 0x10], ebx
je 0x4714db
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.0044f86d
sub esp, 0x18
mov dword [esp + 0x7c], ebp
mov ecx, esp
push str._localappdata_
call fcn.00450dd2
mov byte [esp + 0x7c], bl
call fcn.00488715
add esp, 0x30
test al, al
je 0x471480
lea ecx, [esp + 0x24]
call fcn.0048b445
push eax
mov ecx, esi
call fcn.004615ca
jmp 0x4714cb
push 3
push ebx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00453e03
mov dword [esp + 0x4c], 2
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 8
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4714c7
mov ebx, 0x56dac0
push ebx
call fcn.00450dae
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00450d41
xor ebx, ebx
mov byte [esp + 0x4c], bl
push ebx
push ebp
lea ecx, [esp + 0x2c]
call fcn.00451108
cmp dword [esi + 0x10], ebx
jne 0x4714fa
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.0047151d
push eax
mov ecx, esi
call fcn.004615ca
push ebx
push ebp
lea ecx, [esp + 0x2c]
call fcn.00451108
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00508163
add esp, 0x3c
ret 4
Function at 0x47170f
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x5368e6
call fcn.0050d349
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00471bec
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], ebx
je 0x47178d
cmp dword [esi + 0x14], 8
jb 0x47173b
mov ecx, dword [esi]
jmp 0x47173d
mov ecx, esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push ebx
push ecx
push eax
push 0x56dad4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x59d50c], ebx
je 0x4717f6
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004869e0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x47177d
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___priority_browser_open_url__s___ret__d_.
jmp 0x4717d8
cmp dword [esi + 0x14], 8
jb 0x471797
mov eax, dword [esi]
jmp 0x471799
mov eax, esi
push 4
push ebx
push ebx
push eax
push 0x56db10
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp dword [0x59d50c], ebx
je 0x4717f6
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004869e0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x4717ca
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___browser_open_url__s___ret__d_.
push 3
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0044ea87
cmp byte [ebp + 0xc], 0
je 0x471853
push str.installpageopentime
lea ecx, [ebp - 0x28]
call fcn.0044ea5a
push ebx
mov byte [ebp - 4], 3
call fcn.0050967e
pop ecx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004638aa
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0044ea87
push str.installpageopencode
lea ecx, [ebp - 0x28]
call fcn.0044ea5a
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.00463849
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0044ea87
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00451108
cmp edi, 0x20
setg al
call fcn.0050d2f8
ret 8
Function at 0x471d0f
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x536a07
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov edi, dword [esp + 0x468]
xor ebx, ebx
mov esi, dword [esp + 0x46c]
xor eax, eax
mov dword [esp + 0x24], ebx
xor ebp, ebp
push 0x40e
mov word [esp + 0x48], ax
inc ebp
lea eax, [esp + 0x4a]
mov dword [esp + 0x2c], edi
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
call fcn.0050cd80
xor eax, eax
mov dword [esp + 0x28], 0x208
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
mov dword [esp + 0x46c], ebx
lea ecx, [esp + 0x38]
push esi
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov dword [esp + 0x34], ebp
call fcn.00465ff1
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], ebp
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push ecx
cmovae eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x471e31
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x56dbac
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x471e31
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
jne 0x471ea1
cmp dword [esp + 0x14], 0
je 0x471e43
push dword [esp + 0x14]
call ebx
and dword [esp + 0x14], 0
cmp dword [esp + 0x40], 8
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
xor ecx, ecx
push ecx
push 0x20219
push ecx
push ecx
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x471eb9
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x56dc04
push dword [esp + 0x28]
call ebp
test eax, eax
jne 0x471eb9
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
je 0x471eb9
lea eax, [esp + 0x44]
push eax
call fcn.00450dae
pop ecx
push eax
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.00450d41
cmp dword [esp + 0x14], 0
je 0x471ecb
push dword [esp + 0x14]
call ebx
and dword [esp + 0x14], 0
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.00451108
mov eax, edi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00508163
add esp, 0x450
ret 8
Function at 0x471f04
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x536a62
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov esi, dword [esp + 0x484]
xor ebx, ebx
mov dword [esp + 0x24], ebx
xor eax, eax
push 0x40e
mov word [esp + 0x60], ax
xor ebp, ebp
lea eax, [esp + 0x62]
mov dword [esp + 0x2c], esi
push ebx
inc ebp
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
call fcn.0050cd80
xor eax, eax
mov dword [esp + 0x28], 0x208
mov dword [esi + 0x14], 7
add esp, 0xc
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov dword [esp + 0x47c], ebx
lea ecx, [esp + 0x2c]
push 0x56dd00
mov dword [esp + 0x28], ebp
call fcn.00450dd2
lea ecx, [esp + 0x20]
mov dword [esp + 0x47c], ebp
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
push ecx
cmovae eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47208d
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push 0x56dc8c
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47208d
lea eax, [esp + 0x5c]
push eax
call fcn.00450dae
pop ecx
push eax
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00450d41
mov edi, 0x56dcfc
push edi
call fcn.00450dae
pop ecx
push eax
push ebp
push edi
mov ecx, esi
call fcn.004616d7
cmp eax, 0xffffffff
je 0x472061
dec eax
mov ecx, esi
push eax
push ebp
lea eax, [esp + 0x4c]
push eax
call fcn.00453e03
push eax
mov ecx, esi
call fcn.004615ca
push ebx
push ebp
lea ecx, [esp + 0x4c]
call fcn.00451108
cmp dword [esi + 0x14], 8
jb 0x47206b
mov eax, dword [esi]
jmp 0x47206d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47208d
mov edi, 0x56dd54
push edi
call fcn.00450dae
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00450d41
cmp dword [esp + 0x14], 0
je 0x4720a2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
push ebx
push ebp
lea ecx, [esp + 0x34]
call fcn.00451108
mov eax, esi
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00508163
add esp, 0x46c
ret 4
Function at 0x472307
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x468
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x460], eax
mov eax, dword [esp + 0x46c]
push ebx
push ebp
push esi
push 0
mov dword [esp + 0x18], eax
xor bl, bl
mov eax, dword [esp + 0x480]
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x472436
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x47240d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x20], eax
je 0x472401
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.0050cd80
add esp, 0xc
push dword [esp + 0x20]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4723c7
push 0x104
lea eax, [esp + 0x264]
push eax
push 0
push ebp
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x24c]
call fcn.00450dd2
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x250]
call fcn.00472aa7
push 0
push 1
cmp eax, 0xffffffff
jne 0x472417
lea ecx, [esp + 0x250]
call fcn.00451108
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x472363
jmp 0x47242f
mov ecx, dword [esp + 0x18]
mov bl, 1
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
lea ecx, [esp + 0x250]
call fcn.00451108
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x46c]
mov al, bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00508163
add esp, 0x468
ret 8
Function at 0x4787b4
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x537909
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, ecx
cmp dword [ebp + 0x78c], 0
je 0x47893e
push ecx
lea ecx, [esp + 0x20]
call fcn.0048253c
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edi, [esp + 0x2c]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
push 3
pop eax
mov word [esp + 0x1c], ax
lea esi, [esp + 0x1c]
mov dword [esp + 0x24], eax
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov ecx, dword [ebp + 0x78c]
call fcn.004bee91
push 1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x54]
push ecx
push str.WSAppInvoke
push eax
call fcn.004bf121
add esp, 0x14
test eax, eax
jns 0x47893e
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x98], ebx
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
test eax, eax
js 0x478928
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47892c
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x478928
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x59d50c], ebx
je 0x47891e
push dword [esp + 0x18]
lea ecx, [esp + 0x60]
call fcn.00450dd2
lea edx, [esp + 0x5c]
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x74]
call fcn.00486b8f
mov byte [esp + 0x98], 2
cmp dword [eax + 0x14], 0x10
jb 0x4788e9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___bstrDescription___s
push 3
push dword [0x59d50c]
call fcn.00485f11
add esp, 0x14
lea ecx, [esp + 0x74]
push ebx
push 1
call fcn.0044ea87
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00451108
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
or dword [esp + 0x98], 0xffffffff
test eax, eax
je 0x47893e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00508163
add esp, 0x88
ret
Function at 0x478e1d
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5379f4
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x596700]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x596700]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x888]
lea eax, [esp + 0x5c]
push eax
call fcn.004719a9
mov edx, eax
xor ebx, ebx
mov dword [esp + 0x80], ebx
cmp dword [edx + 0x14], 8
jb 0x478e74
mov edx, dword [edx]
mov ecx, dword [esi + 0x7f4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x5c]
xor ebp, ebp
push ebx
inc ebp
push ebp
call fcn.00451108
mov ecx, dword [esi + 0x7dc]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x774]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x7e0]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
lea edi, [esi + 0xcb8]
mov ecx, edi
call fcn.0049c9e5
test eax, eax
je 0x478edd
push ebp
push ebx
mov ecx, edi
call fcn.004a5979
mov ecx, dword [esi + 0x7e4]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x7f0]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x104]
push 0x7be
push dword [esi + 0x7c8]
lea ecx, [esi + 0x30]
call fcn.004a0273
push 0x5684ff
lea ecx, [esp + 0x30]
call fcn.0044ea5a
push 0x568503
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], ebp
call fcn.0044ea5a
push str.downloader_error_pop
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 2
call fcn.0044ea5a
lea eax, [esp + 0x2c]
mov byte [esp + 0x80], 3
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0045fc50
mov ecx, eax
call fcn.0046007e
push ebx
push ebp
lea ecx, [esp + 0x4c]
call fcn.0044ea87
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.0044ea87
push ebx
push ebp
lea ecx, [esp + 0x34]
call fcn.0044ea87
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00508163
add esp, 0x70
ret