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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 0x10
je 0x4375f7
mov eax, dword [ebp - 0x14]
call fcn.00451830
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4375f7
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x250], 0
je 0x4375f7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
jne 0x437786
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x100
jb 0x437640
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x108
ja 0x437640
mov eax, dword [ebp - 0x14]
call fcn.00451830
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43777b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xf0]
test al, al
jne 0x437786
jmp 0x43777b
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x200
jb 0x437756
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x20a
ja 0x437756
mov eax, dword [ebp - 0x14]
test byte [eax + 0x50], 0x80
jne 0x437683
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x203
je 0x43767d
sub eax, 3
je 0x43767d
sub eax, 3
jne 0x437683
mov eax, dword [ebp - 0x18]
sub dword [eax], 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x200
je 0x43769a
dec eax
je 0x4376b1
dec eax
je 0x4376d8
dec eax
je 0x4376b1
jmp 0x4376e5
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x460028]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.0045d394
jmp 0x43777b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x5d], 1
jne 0x4376cb
mov eax, dword [ebp - 0x14]
mov si, 0xffed
call fcn.004032d4
jmp 0x437786
mov eax, dword [ebp - 0x14]
or word [eax + 0x54], 1
jmp 0x43777b
mov eax, dword [ebp - 0x14]
and word [eax + 0x54], 0xfffe
jmp 0x43777b
mov eax, dword [0x461b10]
cmp byte [eax + 0x20], 0
je 0x43777b
mov eax, dword [0x461b10]
cmp dword [eax + 0x1c], 0
je 0x43777b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x461b10]
cmp eax, dword [edx + 0x1c]
jne 0x43777b
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11c]
call fcn.0045174c
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffc9
call fcn.004032d4
jmp 0x437786
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb00b
jne 0x43777b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.00435650
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bb04
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f8], 0
je 0x43bb25
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x43bb5a
mov eax, dword [ebp - 4]
test byte [eax + 0x55], 1
jne 0x43bb4a
mov eax, dword [ebp - 4]
call fcn.0043a0e0
test eax, eax
jne 0x43bb4a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43bc84
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043b4d8
jmp 0x43bc84
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x43bc7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.0043e390
push eax
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.00437458
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043bb04
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.0043e390
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bc84
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x443f80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x46018c]
cmp byte [eax + 0xc], 0
je 0x4440f2
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4440eb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x461b64], 0
jne 0x443fd9
push 0x4440f8
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x444100
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b64], eax
cmp dword [0x45fb70], 0
jne 0x4440d4
push 0x444110
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45fb70], eax
cmp dword [0x45fb70], 0
je 0x4440d4
push 0x44411c
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b68], eax
push 0x44412c
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b6c], eax
push 0x444140
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b70], eax
push 0x444158
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b74], eax
push 0x444170
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b78], eax
push 0x444184
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b7c], eax
push 0x44419c
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b80], eax
push 0x4441b4
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b84], eax
push 0x4441d0
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b88], eax
push 0x4441dc
mov eax, dword [0x45fb70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x461b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4440f2
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00403e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x448ae9
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404080
sti
invalid
mov esp, ebp
pop ebp
ret
Function at 0x4516a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x451700]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x4516c2
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x4516cc
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x4516d6
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x4516e0
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x4516ea
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4516fa
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x451704
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x451748]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451725
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451735
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x45173f
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4596a8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x4596ba
add esp, 0xfffffff0
call fcn.004033e4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041b6fc
mov eax, dword [0x45fe64]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x459c18
mov eax, dword [0x45fe70]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x459c38
mov eax, dword [ebp - 4]
call fcn.00459c58
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4124bc]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4124bc]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x4124bc]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x4124bc]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x4124bc]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, 0x455068
push eax
push 0
push 0
mov eax, dword [0x45ffb0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d8dc]
call fcn.0041eed4
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d8dc]
call fcn.0041eed4
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d8dc]
call fcn.0041eed4
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
call fcn.0045a1a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x459ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x459ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x459ff0
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x459842
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x459da8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459f73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459f51
mov dl, 1
mov eax, dword [0x4128d8]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x459f3a
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.00444320
test al, al
je 0x459f2e
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x459f84
lea eax, [ebp - 0x25c]
call fcn.00408dc0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x459f2e
xor eax, eax
push ebp
push 0x459f27
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x459fbc
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459f10
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x459f10
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f2e
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x459e1d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.00416ff4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f7a
lea eax, [ebp - 0x268]
call fcn.00403e10
ret
Function at 0x45aaac
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x461bb0]
cmp byte [eax + 0xa5], 0
jne 0x45ab23
cmp dword [0x461bc8], 0
jne 0x45aae1
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45aa68
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461bc8], eax
cmp dword [0x461bc4], 0
jne 0x45aafc
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x461bc4], eax
cmp dword [0x461bcc], 0
jne 0x45ab23
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x45aa08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x461bcc], eax
pop ecx
pop ebp
ret

Function at 0x45abec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.0045ab84
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x45ac0d
xor eax, eax
call fcn.0045abbc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x45ac27
mov al, 1
call fcn.0045abbc
mov esp, ebp
pop ebp
ret

Function at 0x45b2ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x461bb0]
cmp dword [eax + 0x30], 0
je 0x45b3b6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x45b3ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x45b26c
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x45b3ad
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b367
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x45b3ad
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.00414cc4
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x45b37c
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x45c0d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x45c115
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.00403f00
jmp 0x45c126
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.00403e64
mov esp, ebp
pop ebp
ret
Function at 0x45d510
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x45d563
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043e860
test al, al
je 0x45d563
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043e390
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d563
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043e390
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret
Function at 0x404770
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407164
test esi, esi
jne 0x4047a6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004072cc
jmp 0x4047c4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046b4
mov edi, eax
test esi, esi
je 0x4047c4
cmp dword [ebx], 0
je 0x4047c4
dec esi
jmp 0x4047ad
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405f10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004062fc
mov byte [esp], al
cmp byte [esp], 0
jne 0x406099
test edi, edi
je 0x406099
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405fd0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405fab
cmp edi, 0xffffffff
je 0x405f6f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405f6f
mov byte [esp], 0
jmp 0x406099
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405fab
test ebx, ebx
jne 0x405fa4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025b4
test eax, eax
jne 0x405fa4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406099
pause
dec ebp
test ebp, ebp
jg 0x405f54
cmp edi, 0xffffffff
je 0x405fd0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405fce
mov byte [esp], 0
jmp 0x406099
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405f1e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025b4
cmp ebx, eax
jne 0x405fd0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040610c
mov edx, eax
mov ebx, dword [0x5a58cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406037
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406035
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406037
xor edi, edi
cmp byte [esp], 0
je 0x406060
mov ebx, dword [esi]
test bl, 1
jne 0x406079
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025b4
cmp ebx, eax
jne 0x40603d
mov byte [esp + 1], 1
jmp 0x406079
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025b4
cmp ebx, eax
jne 0x406060
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405fea
cmp byte [esp], 0
je 0x406099
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406e14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a5054], 0
je 0x406e75
cmp word [0x5a5330], 0xd7b2
jne 0x406e3d
cmp dword [0x5a5338], 0
jbe 0x406e3d
mov eax, 0x5a532c
call dword [0x5a5348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406ea0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x59e028], 0
jne 0x406e91
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x59e02c], 0
je 0x40704b
mov edx, edi
mov eax, esi
call dword [0x59e02c]
mov ebx, eax
jmp 0x40705c
mov eax, 8
call fcn.004043e8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a5055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406fe8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407091
mov edx, 8
mov eax, ebx
call fcn.00404404
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc