joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4442e0
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 + 0x240], 0
je 0x4442fc
cmp dword [esi + 4], 0
je 0x444329
test byte [ebx + 0x55], 1
jne 0x44431b
mov eax, ebx
call fcn.004426c8
test eax, eax
jne 0x44431b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x444439
mov edx, esi
mov eax, ebx
call fcn.00443ce8
jmp 0x444439
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 0x444432
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00446338
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.0043faf0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004442e0
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.00446338
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444439
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 0x44b6bc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x58b87c]
cmp byte [eax + 0xc], 0
je 0x44b829
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b822
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x58f548], 0
jne 0x44b710
push 0x44b830
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44b838
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f548], eax
cmp dword [0x464644], 0
jne 0x44b80b
push 0x44b848
call sub.kernel32.dll_LoadLibraryA
mov dword [0x464644], eax
cmp dword [0x464644], 0
je 0x44b80b
push 0x44b854
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f54c], eax
push 0x44b864
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f550], eax
push 0x44b878
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f554], eax
push 0x44b890
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f558], eax
push 0x44b8a8
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f55c], eax
push 0x44b8bc
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f560], eax
push 0x44b8d4
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f564], eax
push 0x44b8ec
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f568], eax
push 0x44b908
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f56c], eax
push 0x44b914
mov eax, dword [0x464644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58f570], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b829
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x450e98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x450eec]
test si, 4
je 0x450ead
or bl, 1
test si, 8
je 0x450eb7
or bl, 4
test si, 1
je 0x450ec1
or bl, 8
test si, 2
je 0x450ecb
or bl, 0x10
test si, 0x10
je 0x450ed5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450ee4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450ef0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x450f2c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450f0a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450f19
or bl, 4
test esi, 0x20000000
je 0x450f24
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4585e0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4585f2
add esp, 0xfffffff0
call fcn.00403bb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d550
mov eax, dword [0x58b510]
mov dword [eax + 4], ebx
mov dword [eax], 0x458984
mov eax, dword [0x58b51c]
mov dword [eax + 4], ebx
mov dword [eax], 0x458990
mov eax, ebx
call fcn.0045899c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
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, 0x454434
push eax
push 0
push 0
mov eax, dword [0x58b67c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42109c]
call fcn.004225bc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42109c]
call fcn.004225bc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42109c]
call fcn.004225bc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00458dcc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458c9c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458c9c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458c9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45872f
call fcn.00403c10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458a80
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 0x458c2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458c0c
mov dl, 1
mov eax, dword [0x415770]
call fcn.0040387c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046c0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458bfb
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.0044ba18
test al, al
je 0x458bee
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, 0x458c3c
lea eax, [ebp - 0x254]
call fcn.004095d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458bee
xor eax, eax
push ebp
push 0x458be7
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 0x458c74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458bd0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404930
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 0x458bd0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458bee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458af1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00419450
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 0x458c32
lea eax, [ebp - 0x260]
call fcn.004046c0
ret

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

Disassembly:
push ecx
mov eax, dword [0x58f580]
cmp byte [eax + 0xad], 0
jne 0x459615
cmp dword [0x58f598], 0
jne 0x4595d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459560
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x58f598], eax
cmp dword [0x58f594], 0
jne 0x4595f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x58f594], eax
cmp dword [0x58f59c], 0
jne 0x459615
push esp
push 0
push 0
push 0x459504
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x58f59c], eax
pop edx
ret
Function at 0x4597e8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4597ff
add esp, 0xfffffff0
call fcn.00403bb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d550
mov eax, dword [0x58b668]
cmp word [eax + 2], 0
jne 0x459827
mov eax, dword [0x58b668]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b298
mov eax, dword [0x58b710]
cmp word [eax + 2], 0
jne 0x459841
mov eax, dword [0x58b710]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b4a4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41534c]
call fcn.0040387c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x421878]
call fcn.004276fc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4599f8
mov eax, dword [0x58b57c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427ad0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45bb64
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x58b57c]
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.0040cd60
test eax, eax
je 0x459948
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd94
test eax, eax
je 0x45995c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404930
mov byte [ebx + 0xd4], 0
push ebx
push 0x45adf8
call fcn.0041e6cc
mov dword [ebx + 0xc8], eax
mov eax, dword [0x58b468]
cmp byte [eax], 0
jne 0x4599ad
mov eax, ebx
call fcn.00459b3c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045bd40
mov eax, ebx
call fcn.0045c8a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4599ed
call fcn.00403c10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459dbc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x58f580]
cmp dword [eax + 0x30], 0
je 0x459e66
cmp dword [ebx + 0x94], 0
jne 0x459e60
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459d4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459e60
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 0x459e26
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459e60
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.004176f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459e35
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ab80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45abb5
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.004047b0
jmp 0x45abc2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404714
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45bf24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bf92
mov eax, esi
call fcn.004466d8
test al, al
je 0x45bf92
mov eax, dword [ebx + 0x84]
call fcn.00446338
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bf92
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45bf86
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446338
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e758
jmp 0x45bf92
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045bd60
pop esi
pop ebx
ret
Function at 0x8ff360
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3af000]
push edi
or ebp, 0xffffffff
jmp 0x8ff382
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8ff389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ff378
mov eax, 1
add ebx, ebx
jne 0x8ff39b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8ff3ac
jne 0x8ff3cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ff3cb
dec eax
add ebx, ebx
jne 0x8ff3b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8ff390
add ebx, ebx
jne 0x8ff3c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8ff41d
xor ecx, ecx
sub eax, 3
jb 0x8ff3e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8ff452
sar eax, 1
mov ebp, eax
jmp 0x8ff3ee
add ebx, ebx
jne 0x8ff3ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ff3bc
inc ecx
add ebx, ebx
jne 0x8ff3fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ff3bc
add ebx, ebx
jne 0x8ff409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8ff3fe
jne 0x8ff41a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8ff3fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8ff43c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8ff42e
jmp 0x8ff37e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8ff43c
add edi, ecx
jmp 0x8ff37e
pop esi
mov edi, esi
mov ecx, 0x60b0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8ff45a
cmp byte [edi], 0x1b
jne 0x8ff45a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8ff45f
lea edi, [esi + 0x4fc000]
mov eax, dword [edi]
or eax, eax
je 0x8ff4ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x510a58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x510b4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8ff48c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x510b54]
or eax, eax
je 0x8ff4c8
mov dword [ebx], eax
add ebx, 4
jmp 0x8ff4a9
call dword [esi + 0x510b50]
mov ebp, dword [esi + 0x510b58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8ff502
sub esp, 0xffffff80
jmp 0x4c10a4
Function at 0x40a13d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a0c0]
jne 0x40a147
repz ret
jmp fcn.0040b2c6

Function at 0x4189dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040bc06
and dword [ebp - 4], 0
cmp dword [0x42b80c], 0
mov ebx, eax
jne 0x418a8e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418b3f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418b3f
push eax
call fcn.0040bb94
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b80c], eax
call esi
push eax
call fcn.0040bb94
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b810], eax
call esi
push eax
call fcn.0040bb94
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b814], eax
call esi
push eax
call fcn.0040bb94
pop ecx
mov dword [0x42b81c], eax
test eax, eax
je 0x418a8e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040bb94
pop ecx
mov dword [0x42b818], eax
mov eax, dword [0x42b818]
cmp eax, ebx
je 0x418ae6
cmp dword [0x42b81c], ebx
je 0x418ae6
push eax
call fcn.0040bc0f
push dword [0x42b81c]
mov esi, eax
call fcn.0040bc0f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418ae6
test edi, edi
je 0x418ae6
call esi
test eax, eax
je 0x418add
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418add
test byte [ebp - 0xc], 1
jne 0x418ae6
or dword [ebp + 0x10], 0x200000
jmp 0x418b1f
mov eax, dword [0x42b810]
cmp eax, ebx
je 0x418b1f
push eax
call fcn.0040bc0f
pop ecx
test eax, eax
je 0x418b1f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418b1f
mov eax, dword [0x42b814]
cmp eax, ebx
je 0x418b1f
push eax
call fcn.0040bc0f
pop ecx
test eax, eax
je 0x418b1f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b80c]
call fcn.0040bc0f
pop ecx
test eax, eax
je 0x418b3f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418b41
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e71
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], edx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405ea8
call fcn.00405fe6
mov esi, eax
jmp 0x405ed4
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push eax
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405ec5
cmp dword [ebp - 4], ebx
je 0x405ecc
call fcn.00405fe6
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
test ecx, ecx
jne 0x405ef2
mov eax, 0x80070057
jmp 0x405f5c
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov esi, edx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x405f07
mov dword [ebp - 8], edx
jmp 0x405f0c
mov eax, dword [edi]
mov dword [ebp - 8], eax
push edx
push 0x8000080
push 3
push edx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x405f34
call fcn.00405fe6
mov esi, eax
jmp 0x405f58
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x405f61
call fcn.00405fe6
and dword [edi], 0
mov esi, eax
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
cmp eax, dword [ebp - 8]
jbe 0x405f74
mov esi, ebx
neg esi
sbb esi, esi
and esi, 0x8007007a
jmp 0x405f4e
test eax, eax
je 0x405f4e
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f95
mov eax, dword [edi]
cmp eax, dword [ebp - 0xc]
je 0x405f51
call fcn.00405fe6
mov esi, eax
jmp 0x405f51
Function at 0x4073d8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x418064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jne 0x407423
cmp dword [ebp - 0x90], 0
jne 0x407423
xor eax, eax
inc eax
jmp 0x407425
xor eax, eax
push 0xffffffffffffffff
push edi
neg eax
push 0xffffffffffffffff
sbb eax, eax
push esi
and eax, 0x38a
push 1
add eax, 0x7f
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov ecx, dword [ebp - 4]
sub eax, 2
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00416650
leave
ret 8
Function at 0x40ec03
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x40496c
push dword [0x418070]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00406002
mov esi, eax
add esp, 0x14
test esi, esi
js 0x40ecab
push dword [ebp + 0xc]
push dword [0x418070]
call fcn.00406002
mov esi, eax
pop ecx
pop ecx
test esi, esi
js 0x40ecab
push 0x4015d4
push dword [0x418070]
call fcn.00406002
mov esi, eax
pop ecx
pop ecx
test esi, esi
js 0x40ecab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40ec94
mov esi, 0x80004005
jmp 0x40ecab
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x40ecab
call fcn.00405fe6
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x40ecb9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x40ecc7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x40ecdc
push esi
push 0x404978
push dword [ebp + 8]
call fcn.004109f3
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8