joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4577e0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45798b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45796c
mov dl, 1
mov eax, dword [0x418c20]
call fcn.00403798
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404534
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45795b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044512c
test al, al
je 0x45794e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45799c
lea eax, [ebp - 0x254]
call fcn.004096f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45794e
xor eax, eax
push ebp
push 0x457947
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4579d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457930
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040479c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x457930
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040479c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45794e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457851
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d064
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457992
lea eax, [ebp - 0x260]
call fcn.00404534
ret

Function at 0x458308
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x494c08]
cmp byte [eax + 0xa5], 0
jne 0x458379
cmp dword [0x494c20], 0
jne 0x45833a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4582c4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x494c20], eax
cmp dword [0x494c1c], 0
jne 0x458355
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x494c1c], eax
cmp dword [0x494c24], 0
jne 0x458379
push esp
push 0
push 0
push 0x458268
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x494c24], eax
pop edx
ret
Function at 0x458470
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x458487
add esp, 0xfffffff0
call fcn.00403b2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422aec
mov eax, dword [0x49318c]
cmp word [eax + 2], 0
jne 0x4584af
mov eax, dword [0x49318c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459b34
mov eax, dword [0x493230]
cmp word [eax + 2], 0
jne 0x4584c9
mov eax, dword [0x493230]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459d2c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418730]
call fcn.00403798
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418730]
call fcn.00403798
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425034]
call fcn.0042cd5c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x458650
mov eax, dword [0x4930a8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d12c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a2ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4930a8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cfd4
test eax, eax
je 0x4585be
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040903c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cffc
test eax, eax
je 0x4585d2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040479c
mov eax, dword [0x492f70]
cmp byte [eax], 0
jne 0x458606
mov eax, ebx
call fcn.00458778
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045a488
mov eax, ebx
call fcn.0045ae38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458646
call fcn.00403b84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4589ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x494c08]
cmp dword [eax + 0x30], 0
je 0x458a96
cmp dword [ebx + 0x94], 0
jne 0x458a90
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45897c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458a90
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x458a56
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458a90
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041adec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458a65
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459574
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4595a9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404624
jmp 0x4595b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404588
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a664
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a6a5
mov eax, esi
call fcn.00440868
test al, al
je 0x45a6a5
mov eax, dword [ebx + 0x84]
call fcn.00440564
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a6a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440564
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45df6c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45df9a
mov eax, ebx
call fcn.0045ea24
cmp dword [ebx + 0x3c], 0
je 0x45df93
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45e00b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x45dffd
cmp dword [ebx + 8], 0
je 0x45dfbc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x45dfce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45dffd
cmp dword [ebx + 8], 0
je 0x45dfaf
cmp eax, 3
je 0x45dfe1
dec eax
jne 0x45dfaf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45dfaf
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45dfaf
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45e029
cmp dword [ebx + 0x10], 0xcc
je 0x45e029
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045e034
pop ebx
ret
Function at 0x46f2fc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004030b8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4933a0]
cmp byte [edx + 0xc], 0
je 0x46f360
mov edx, dword [0x493398]
cmp dword [edx], 2
jne 0x46f360
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x46f364
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46f41c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046f2fc
test al, al
je 0x46f3fe
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404624
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x46f3fe
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004049e4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.004049e4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404724
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x46f3b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f423
lea eax, [ebp - 0x2c]
call fcn.00404534
lea eax, [ebp - 0xc]
call fcn.00404534
ret

Function at 0x46f51c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004049e4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46f574
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4933ac]
mov dl, 1
mov eax, dword [0x46efa4]
call fcn.0040c300
call fcn.00403f94
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046f0ac
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470544
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049d4
xor eax, eax
push ebp
push 0x470605
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x47061c
call fcn.00404b28
test eax, eax
jne 0x47058c
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x470628
call fcn.00404838
test bl, bl
je 0x4705cb
lea edx, [ebp - 8]
mov eax, 0x470638
call fcn.004701bc
cmp dword [ebp - 8], 0
je 0x4705cb
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
mov eax, dword [ebp - 8]
call fcn.004049e4
push eax
push 0x470640
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4705ea
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
push 0x470640
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47060c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404558
ret

Function at 0x470648
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049d4
xor eax, eax
push ebp
push 0x470704
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x470691
push 0x47071c
push ebx
push 0x47072c
push dword [ebp - 4]
push 0x470738
lea eax, [ebp - 4]
mov edx, 5
call fcn.004048ac
jmp 0x4706a1
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x47071c
call fcn.00404838
push dword [ebp - 4]
push 0x470744
push esi
push 0x470758
push dword [ebp + 0x10]
push 0x470768
push dword [ebp + 0xc]
push 0x470778
push dword [ebp + 8]
lea eax, [ebp - 4]
mov edx, 9
call fcn.004048ac
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
push 0x470780
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47070b
lea eax, [ebp - 4]
call fcn.00404534
ret
Function at 0x470788
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
xor eax, eax
push ebp
push 0x4708de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x94]
mov edx, 0x94
call fcn.00407518
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
xor ebx, ebx
cmp dword [ebp - 0x84], 2
jne 0x470826
mov eax, dword [ebp - 0x90]
sub eax, 3
je 0x470801
dec eax
je 0x470808
dec eax
je 0x47080f
jmp 0x4708c0
mov bl, 5
jmp 0x4708c0
mov bl, 6
jmp 0x4708c0
cmp dword [ebp - 0x8c], 0
jne 0x47081f
mov bl, 7
jmp 0x4708c0
mov bl, 9
jmp 0x4708c0
cmp dword [ebp - 0x90], 4
jne 0x470874
cmp dword [ebp - 0x8c], 0
jne 0x470874
mov bl, 1
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.0040479c
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.00408974
mov eax, dword [ebp - 0x98]
mov edx, 0x4708f4
call fcn.00404930
jne 0x4708c0
mov bl, 2
jmp 0x4708c0
cmp dword [ebp - 0x90], 4
jne 0x4708c0
cmp dword [ebp - 0x8c], 0xa
jne 0x4708c0
mov bl, 3
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.0040479c
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.00408974
mov eax, dword [ebp - 0xa0]
mov edx, 0x470900
call fcn.00404930
jne 0x4708c0
mov bl, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4708e5
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.00404558
ret
Function at 0x470bf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x470c5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.004091f8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040cdd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470c65
lea eax, [ebp - 0x10c]
call fcn.00404534
ret

Function at 0x470c6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x470cd6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.004091f8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040cdd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470cdd
lea eax, [ebp - 0x10c]
call fcn.00404534
ret

Function at 0x470ce4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x470d4e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.004091f8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040cdd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470d55
lea eax, [ebp - 0x10c]
call fcn.00404534
ret

Function at 0x472b00
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x472ba4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x472b8e
push 0x40
lea eax, [ebp - 0x45]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x45]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x472b8e
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x472b67
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404724
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x472b55
call sub.wsock32.dll_WSACleanup
cmp dword [ebp - 4], 0
je 0x472b88
mov eax, dword [ebp - 4]
mov edx, 0x472bbc
call fcn.00404930
jne 0x472b8c
xor ebx, ebx
jmp 0x472b8e
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472bab
lea eax, [ebp - 4]
call fcn.00404534
ret
Function at 0x47c60c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c6e4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x494cf4], 0
jne 0x47c6c8
lea eax, [ebp - 4]
mov edx, 0x47c6fc
call fcn.004045cc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004049e4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47c6c8
mov eax, ebx
call fcn.0040279c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47c6c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47c6ab
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47c70c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47c6ab
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x494cf4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c6c8
mov eax, dword [ebp - 0xc]
call fcn.004027bc
ret
mov ebx, dword [0x494cf4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c6eb
lea eax, [ebp - 4]
call fcn.00404534
ret
Function at 0x4878b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417da4]
call fcn.00404f10
xor eax, eax
push ebp
push 0x4879f4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x492dd8], 0
jne 0x487903
mov ecx, dword [0x492f80]
mov dl, 1
mov eax, dword [0x407ad0]
call fcn.0040c2c4
call fcn.00403f94
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004030b8
mov eax, ebx
call fcn.00404d80
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x487a04
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406290
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404d90
test eax, eax
jle 0x48799b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x487994
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047b4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040479c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408904
test eax, eax
jne 0x487994
mov ebx, 0x15
jmp 0x4879a0
mov ebx, 0x10
jmp 0x4879a0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x492dd8]
call fcn.00487808
mov eax, dword [ebp - 8]
call fcn.00487808
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004062a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4879fb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404558
lea eax, [ebp - 0x10]
mov edx, dword [0x417da4]
call fcn.00404fe0
ret
Function at 0x40aa80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
push esi
push edi
push 0x45b250
push eax
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40aabb
mov ecx, dword [0x46f56c]
push 0x10
push 0x4598f8
push ecx
mov ecx, edi
call fcn.00424013
pop edi
xor al, al
pop esi
pop ecx
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40aae5
mov edx, dword [0x46f56c]
push 0x10
push 0x4598f8
push edx
mov ecx, edi
call fcn.00424013
pop edi
xor al, al
pop esi
pop ecx
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x40ab14
mov eax, dword [0x46f56c]
push 0x10
push 0x4598f8
push eax
mov ecx, edi
call fcn.00424013
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret 8
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor edi, edi
test esi, esi
jbe 0x40ab7e
mov ebp, dword [esp + 0x18]
mov eax, 0x400
sub eax, ebx
mov dword [esp + 0x1c], eax
jmp 0x40ab3b
mov eax, dword [esp + 0x1c]
add eax, ebx
cmp eax, esi
push ebp
push 1
ja 0x40ab6c
push 0x400
push ebx
call fcn.00439a5a
add edi, 0x400
add esp, 0x10
add ebx, 0x400
cmp edi, esi
jb 0x40ab37
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x18]
sub esi, edi
add edi, ecx
push esi
push edi
call fcn.00439a5a
add esp, 0x10
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret 8

Function at 0x40af40
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
je 0x40af73
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x40aec0
push 0
push 0
call fcn.0043b076
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
mov byte [esi + 0x1c], 0
mov byte [esi + 0x1d], 0
setne al
pop esi
ret
cmp byte [esi + 0x1d], 0
je 0x40af90
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40af8c
xor al, al
pop esi
ret
mov byte [esi + 0x1d], 0
mov al, 1
pop esi
ret