joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43af70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x43afbc
mov eax, esi
call fcn.00450910
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43afbc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43afbc
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x43b100
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43affc
cmp eax, 0x108
ja 0x43affc
mov eax, esi
call fcn.00450910
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43b0f7
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x43b100
jmp 0x43b0f7
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43b0de
cmp eax, 0x20a
ja 0x43b0de
test byte [esi + 0x50], 0x80
jne 0x43b02e
sub eax, 0x203
je 0x43b02b
sub eax, 3
je 0x43b02b
sub eax, 3
jne 0x43b02e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43b042
dec eax
je 0x43b057
dec eax
je 0x43b077
dec eax
je 0x43b057
jmp 0x43b07e
mov ecx, ebx
mov eax, dword [0x4611a0]
mov eax, dword [eax]
mov edx, esi
call fcn.00459fd4
jmp 0x43b0f7
cmp byte [esi + 0x5d], 1
jne 0x43b06d
mov eax, esi
mov si, 0xffed
call fcn.00403740
jmp 0x43b100
or word [esi + 0x54], 1
jmp 0x43b0f7
and word [esi + 0x54], 0xfffe
jmp 0x43b0f7
mov eax, dword [0x462b90]
cmp byte [eax + 0x20], 0
je 0x43b0f7
mov eax, dword [0x462b90]
cmp dword [eax + 0x1c], 0
je 0x43b0f7
mov eax, dword [ebx]
mov edx, dword [0x462b90]
cmp eax, dword [edx + 0x1c]
jne 0x43b0f7
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00450854
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403740
jmp 0x43b100
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x43b0f7
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00439890
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e5a0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43e5bc
cmp dword [esi + 4], 0
je 0x43e5e9
test byte [ebx + 0x55], 1
jne 0x43e5db
mov eax, ebx
call fcn.0043d1f8
test eax, eax
jne 0x43e5db
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43e6f9
mov edx, esi
mov eax, ebx
call fcn.0043e0c0
jmp 0x43e6f9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43e6f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00440370
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043aea4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043e5a0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00440370
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e6f9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444b98
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4612fc]
cmp byte [eax + 0xc], 0
je 0x444d05
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444cfe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462be4], 0
jne 0x444bec
push 0x444d0c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x444d14
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462be4], eax
cmp dword [0x460b0c], 0
jne 0x444ce7
push 0x444d24
call sub.kernel32.dll_LoadLibraryA
mov dword [0x460b0c], eax
cmp dword [0x460b0c], 0
je 0x444ce7
push 0x444d30
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462be8], eax
push 0x444d40
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462bec], eax
push 0x444d54
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462bf0], eax
push 0x444d6c
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462bf4], eax
push 0x444d84
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462bf8], eax
push 0x444d98
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462bfc], eax
push 0x444db0
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c00], eax
push 0x444dc8
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c04], eax
push 0x444de4
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c08], eax
push 0x444df0
mov eax, dword [0x460b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x462c0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444d05
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x448934
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004042b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x448983
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404518
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4507c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450814]
test si, 4
je 0x4507d8
or bl, 1
test si, 8
je 0x4507e2
or bl, 4
test si, 1
je 0x4507ec
or bl, 8
test si, 2
je 0x4507f6
or bl, 0x10
test si, 0x10
je 0x450800
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45080f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450818
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450850]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450831
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450840
or bl, 4
test esi, 0x20000000
je 0x45084b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x456e54
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x456e66
add esp, 0xfffffff0
call fcn.004038a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cac0
mov eax, dword [0x460fe8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4571f8
mov eax, dword [0x460ff4]
mov dword [eax + 4], ebx
mov dword [eax], 0x457204
mov eax, ebx
call fcn.00457210
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412b20]
call fcn.00403514
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412b20]
call fcn.00403514
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412b20]
call fcn.00403514
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412b20]
call fcn.00403514
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412b20]
call fcn.00403514
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4536d8
push eax
push 0
push 0
mov eax, dword [0x461130]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e4e0]
call fcn.0041fbb4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e4e0]
call fcn.0041fbb4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e4e0]
call fcn.0041fbb4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457630
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45750c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45750c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45750c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456fa3
call fcn.00403900
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4572f0
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 0x45749b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45747c
mov dl, 1
mov eax, dword [0x413010]
call fcn.00403514
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45746b
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.00444ef8
test al, al
je 0x45745e
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, 0x4574ac
lea eax, [ebp - 0x254]
call fcn.004091a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45745e
xor eax, eax
push ebp
push 0x457457
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 0x4574e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457440
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404518
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 0x457440
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45745e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457361
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417158
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 0x4574a2
lea eax, [ebp - 0x260]
call fcn.004042b0
ret

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

Disassembly:
push ecx
mov eax, dword [0x462c28]
cmp byte [eax + 0xa5], 0
jne 0x457e41
cmp dword [0x462c40], 0
jne 0x457e02
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457d8c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x462c40], eax
cmp dword [0x462c3c], 0
jne 0x457e1d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x462c3c], eax
cmp dword [0x462c44], 0
jne 0x457e41
push esp
push 0
push 0
push 0x457d30
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x462c44], eax
pop edx
ret
Function at 0x457f38
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x457f4f
add esp, 0xfffffff0
call fcn.004038a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cac0
mov eax, dword [0x46111c]
cmp word [eax + 2], 0
jne 0x457f77
mov eax, dword [0x46111c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004595fc
mov eax, dword [0x4611b4]
cmp word [eax + 2], 0
jne 0x457f91
mov eax, dword [0x4611b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004597f4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412b20]
call fcn.00403514
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412b20]
call fcn.00403514
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 [0x41ef60]
call fcn.00426394
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x458118
mov eax, dword [0x461048]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426764
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459d64
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x461048]
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.0040bd2c
test eax, eax
je 0x458086
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b00
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bd54
test eax, eax
je 0x45809a
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.00404518
mov eax, dword [0x460f48]
cmp byte [eax], 0
jne 0x4580ce
mov eax, ebx
call fcn.00458240
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.00459f40
mov eax, ebx
call fcn.0045a880
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45810e
call fcn.00403900
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4584b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462c28]
cmp dword [eax + 0x30], 0
je 0x45855e
cmp dword [ebx + 0x94], 0
jne 0x458558
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458444
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458558
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 0x45851e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458558
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.004151c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45852d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45903c
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 0x459071
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.004043a0
jmp 0x45907e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404304
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a11c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a15d
mov eax, esi
call fcn.00440674
test al, al
je 0x45a15d
mov eax, dword [ebx + 0x84]
call fcn.00440370
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a15d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440370
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40121c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40122e
mov eax, dword [0x43b09f]
shl eax, 2
mov dword [0x43b0a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0042de48
pop edx
call fcn.0042da48
call fcn.0042e3d4
push 0
call fcn.0042f6f8
pop ecx
push 0x43b048
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x43b0a7], eax
push 0
jmp fcn.00437404

Function at 0x401600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
mov eax, 0x43b37c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.0042eaf8
mov edx, dword [0x43b1b8]
mov ecx, dword [0x43b1c0]
mov dword [ebp - 0x30], edx
mov edx, dword [0x43b1bc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x43b1c4]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x3c], ecx
push 0x208
push eax
push 0
mov dword [0x442b18], 1
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [ebp - 0x248]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401783
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 0x28]
push 0
push eax
lea edx, [ebp - 0x38]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016c3
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
push 8
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.0042e910
add esp, 0xc
test eax, eax
je 0x4016ea
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea ecx, [ebp - 0x28]
push ecx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40171d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
push 4
push 0x1000
mov ecx, dword [esi]
push ecx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x43b1b4], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 0x28]
push 0
push edx
mov eax, dword [0x43b1b4]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401772
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401798
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcdc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, 0x43b3a0
call fcn.0042eaf8
push 0x2350
push 0x69
push esi
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x4017e3
mov eax, dword [ebp + 0x14]
push eax
call fcn.00401600
pop ecx
test eax, eax
jne 0x401837
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
test edi, edi
jne 0x401801
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
je 0x401806
jne 0x401806
jmp 0x40185e
push edi
call sub.KERNEL32.DLL_LockResource
mov dword [0x43b1b4], eax
cmp dword [0x43b1b4], 0
jne 0x40182b
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
inc ebx
add byte [eax + 0x53], dl
call fcn.0042e470
add esp, 0xc
mov edx, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x28], edx
mov esi, dword [ebp - 0x28]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov ecx, 0x43a144
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp - 0x2c]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov eax, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x30]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov edx, sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x34], edx
mov esi, dword [ebp - 0x34]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov ecx, sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp - 0x38]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
lea edi, [ebp - 0x220]
mov esi, 0x43b1ca
mov ecx, 8
lea eax, [ebp - 0x220]
rep movsd dword es:[edi], dword [esi]
push 0x124
push eax
lea edx, [ebx + 0xa4]
push 0x64
push edx
call fcn.00402080
add esp, 0x10
mov ecx, dword [ebx + 0x1bc]
push ecx
lea eax, [ebx + 0xa4]
push eax
add ebx, 0xb8
push ebx
push 0
call sub.USER32.DLL_MessageBoxA
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret