joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
movzx eax, byte [esi]
cmp al, 0x40
mov byte [ebp - 0xd], al
setne al
xor edx, edx
cmp byte [ebp - 0xd], 0x24
setne dl
test eax, edx
jne 0x40d93f
mov esi, esi
lea edi, [edi]
movzx edx, byte [esi + 1]
xor edi, edi
test dl, dl
je 0x40d8c0
lea esi, [esi]
cmp dl, 0x2f
setne al
cmp dl, 0x5c
setne dl
movzx edx, dl
test eax, edx
je 0x40d8c0
inc edi
movzx edx, byte [esi + edi + 1]
test dl, dl
jne 0x40d8a0
lea esi, [esi]
lea eax, [edi + 0x1f]
and eax, 0xfffffff0
call fcn.00410260
mov dword [esp + 8], edi
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov dword [esp], ebx
lea eax, [esi + 1]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
mov byte [edi + ebx], 0
cmp byte [ebp - 0xd], 0x40
je 0x40d950
mov dword [esp], ebx
call sub.msvcrt.dll_getenv
mov edx, eax
test edx, edx
je 0x40d99d
mov dword [esp], edx
xor eax, eax
mov ebx, esi
mov dword [esp + 8], eax
lea eax, [esi + edi + 1]
mov dword [esp + 4], eax
call fcn.0040dda0
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_free
movzx eax, byte [esi]
cmp al, 0x40
mov byte [ebp - 0xd], al
setne al
xor edx, edx
cmp byte [ebp - 0xd], 0x24
setne dl
test eax, edx
je 0x40d890
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
xor ecx, ecx
mov edx, str._ROOT
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.0040dda0
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d9a7
test ebx, ebx
je 0x40d984
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x40d901
mov edx, dword [str._mingw]
test edx, edx
jne 0x40d901
mov edx, str._mingw
jmp 0x40d901
mov eax, dword [str._mingw]
mov dword [ebp - 0x14], eax
jmp 0x40d978
Function at 0x40e950
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4185c0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test eax, eax
mov dword [esp + 0x18], edi
je 0x40e978
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
mov dword [esp], str.TMPDIR
call sub.msvcrt.dll_getenv
test eax, eax
mov ebx, eax
je 0x40e9a1
mov dword [esp], ebx
mov eax, 6
mov dword [esp + 4], eax
call sub.msvcrt.dll__access
test eax, eax
mov edx, ebx
je 0x40e9a3
xor edx, edx
mov dword [esp], 0x4178de
mov edi, edx
call sub.msvcrt.dll_getenv
test edi, edi
mov ebx, eax
mov edx, edi
je 0x40ea41
mov dword [esp], str.TEMP
mov edi, edx
call sub.msvcrt.dll_getenv
test edi, edi
mov ebx, eax
mov edx, edi
je 0x40ea6e
test edx, edx
je 0x40eabd
test edx, edx
je 0x40eb0f
test edx, edx
je 0x40eae6
test edx, edx
je 0x40ea94
test edx, edx
mov edi, edx
je 0x40ea67
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [eax + 2]
mov dword [esp], eax
call fcn.0040e870
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
mov byte [ebx + esi], 0x2f
mov eax, esi
mov byte [esi + ebx + 1], 0
mov ebx, dword [esp + 0x10]
mov dword [0x4185c0], esi
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add esp, 0x1c
ret
test eax, eax
je 0x40ea60
mov dword [esp], eax
mov edi, 6
mov dword [esp + 4], edi
call sub.msvcrt.dll__access
test eax, eax
mov edx, ebx
je 0x40e9bd
xor edx, edx
jmp 0x40e9bd
mov edi, 0x4178e7
jmp 0x40e9fd
test eax, eax
je 0x40ea8d
mov dword [esp], eax
mov esi, 6
mov dword [esp + 4], esi
call sub.msvcrt.dll__access
test eax, eax
mov edx, ebx
je 0x40e9d7
xor edx, edx
jmp 0x40e9d7
mov dword [esp], str._tmp
mov eax, 6
mov dword [esp + 4], eax
call sub.msvcrt.dll__access
test eax, eax
mov edx, str._tmp
je 0x40e9f7
xor edx, edx
jmp 0x40e9f7
mov dword [esp], 0x4178e9
mov ebx, 6
mov dword [esp + 4], ebx
call sub.msvcrt.dll__access
test eax, eax
mov edx, 0x4178e9
je 0x40e9df
xor edx, edx
jmp 0x40e9df
mov dword [esp], str._usr_tmp
mov edx, 6
mov dword [esp + 4], edx
call sub.msvcrt.dll__access
test eax, eax
mov edx, str._usr_tmp
je 0x40e9ef
xor edx, edx
jmp 0x40e9ef
mov dword [esp], str._var_tmp
mov ecx, 6
mov dword [esp + 4], ecx
call sub.msvcrt.dll__access
test eax, eax
mov edx, str._var_tmp
je 0x40e9e7
xor edx, edx
jmp 0x40e9e7
Function at 0x402a0c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404008
test esi, esi
jne 0x402a42
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040f8
jmp 0x402a60
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402920
mov edi, eax
test esi, esi
je 0x402a60
cmp dword [ebx], 0
je 0x402a60
dec esi
jmp 0x402a49
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x482020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40315c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40313c
xor eax, eax
push ebp
push 0x403135
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403178
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40313c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x482020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x482020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x484048], 0
je 0x403e69
cmp word [0x48421c], 0xd7b2
jne 0x403e31
cmp dword [0x484224], 0
jbe 0x403e31
mov eax, 0x484218
call dword [0x484234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48206c
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 0x403e90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482030], 0
jne 0x403e85
push 0
push 0x482064
push 0x48206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403fbc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x484049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403f84
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405c72
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404278
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c88
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c5c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c79
lea eax, [ebp - 0x10]
call fcn.00404008
ret

Function at 0x408804
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x408835
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40883c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40886d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40b9fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40ba44
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004040f8
jmp 0x40ba4f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040405c
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba86
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40ba8c
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40c214
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c05c
mov eax, dword [0x4839d0]
cmp byte [eax], 0
je 0x40c2a7
mov eax, dword [0x4836e0]
call fcn.00402af4
call fcn.0040284c
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00408b58
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40c2ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2dd
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x48366c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x484664]
call fcn.00405120
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40ccb4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40cd92
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004040a0
lea eax, [ebp - 0xc]
call fcn.00404518
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004044c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40cd7c
mov eax, dword [ebp - 0x10]
call fcn.004026e4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40cd75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004044c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd5f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40cda0
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd5f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd7c
mov eax, dword [ebp - 0x18]
call fcn.00402704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd99
lea eax, [ebp - 0xc]
call fcn.00404008
ret
Function at 0x40d478
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d4e2
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404278
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084f8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4e9
lea eax, [ebp - 0x14]
call fcn.00404008
ret

Function at 0x418d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x418da6
push ebp
call fcn.00418d00
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x418dcc
push ebp
call fcn.00418d00
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00418934
mov esp, ebp
pop ebp
ret 4

Function at 0x41cd40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.0041cb48
cmp dword [ebp - 8], 1
jne 0x41cd74
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret
Function at 0x41e610
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x484888], 0
jne 0x41e6bd
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x484884]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x48246c
mov ecx, 2
call fcn.004028e0
mov edx, 0x41e5cc
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041e5ec
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0041e5ec
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x484888]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x484888], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41e677
mov eax, dword [ebp - 8]
mov dword [0x484884], eax
mov eax, dword [0x484888]
mov dword [ebp - 4], eax
mov eax, dword [0x484888]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x484888], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x41f940
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f946
ret

Function at 0x4225a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4225f9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4225e0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4225d0
jmp 0x4225f9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4225e1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438c98
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
push eax
push 0x438bcc
call sub.user32.dll_EnumWindows
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438e99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00438794
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
jbe 0x438e3c
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00438304
cmp dword [ebp - 0xc], 0
je 0x438e83
push 0
push 9
mov eax, dword [ebp - 0xc]
call fcn.004044c8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438ea0
lea eax, [ebp - 0xc]
call fcn.00404008
ret
Function at 0x43c2b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x484b60], 0
je 0x43c40b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x483938]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43c40b
mov eax, dword [0x484b64]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x484b60]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x43c3da
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x484b60]
call fcn.00415644
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43c3ce
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43c3ce
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43c3ce
mov eax, dword [ebp - 0x14]
call fcn.00447940
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43c3ce
push ebp
call fcn.0043c264
pop ecx
test al, al
jne 0x43c3ce
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43c38a
mov eax, dword [ebp - 0x14]
call fcn.00445d40
dec eax
jle 0x43c3ce
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403448
cmp byte [ebp - 1], 0
je 0x43c3ce
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43c3ce
mov edx, dword [ebp - 0x14]
mov eax, dword [0x484b64]
call fcn.0043b72c
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x43c31c
mov eax, dword [0x484b64]
cmp dword [eax + 8], 0
jle 0x43c3f2
mov eax, dword [0x484b64]
call fcn.0043b7d8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43c40b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043c0a0
pop ecx
test al, al
jne 0x43c40b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x440b00
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 0x440b53
mov eax, dword [ebp - 0x14]
call fcn.0045afb8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x440b53
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x250], 0
je 0x440b53
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 0x440ce2
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x100
jb 0x440b9c
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x108
ja 0x440b9c
mov eax, dword [ebp - 0x14]
call fcn.0045afb8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x440cd7
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 0x440ce2
jmp 0x440cd7
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x200
jb 0x440cb2
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x20a
ja 0x440cb2
mov eax, dword [ebp - 0x14]
test byte [eax + 0x50], 0x80
jne 0x440bdf
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x203
je 0x440bd9
sub eax, 3
je 0x440bd9
sub eax, 3
jne 0x440bdf
mov eax, dword [ebp - 0x18]
sub dword [eax], 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x200
je 0x440bf6
dec eax
je 0x440c0d
dec eax
je 0x440c34
dec eax
je 0x440c0d
jmp 0x440c41
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x483938]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.00466b10
jmp 0x440cd7
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x5d], 1
jne 0x440c27
mov eax, dword [ebp - 0x14]
mov si, 0xffed
call fcn.00403448
jmp 0x440ce2
mov eax, dword [ebp - 0x14]
or word [eax + 0x54], 1
jmp 0x440cd7
mov eax, dword [ebp - 0x14]
and word [eax + 0x54], 0xfffe
jmp 0x440cd7
mov eax, dword [0x484b1c]
cmp byte [eax + 0x20], 0
je 0x440cd7
mov eax, dword [0x484b1c]
cmp dword [eax + 0x1c], 0
je 0x440cd7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x484b1c]
cmp eax, dword [edx + 0x1c]
jne 0x440cd7
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.0045aed4
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.00403448
jmp 0x440ce2
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb00b
jne 0x440cd7
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.0043ebac
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