joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435aa0
Capabilities:
Get graphical window text
Write clipboard data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4aa168]
push eax
mov eax, dword [esp + 0x18]
call fcn.00441880
mov ebp, eax
test ebp, ebp
je 0x435ac6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebx, [eax + 1]
jmp 0x435acb
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00474550
cmp eax, 1
je 0x435ae9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x435bf2
cmp byte [edi + 0x17], 0
jne 0x435afc
mov esi, dword [edi + 0xc]
jmp 0x435afe
mov esi, edi
test byte [esi + 0x15], 8
je 0x435b0b
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435b24
test byte [esi + 0x15], 4
je 0x435b1f
mov eax, esi
call fcn.0042dbd0
mov eax, dword [esi + 8]
jmp 0x435b34
cmp al, 2
jne 0x435b2f
call fcn.00401000
jmp 0x435b34
mov eax, 0x4abb26
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x435b4a
mov esi, dword [edi + 0xc]
jmp 0x435b4c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435b64
test byte [esi + 0x15], 8
je 0x435b5f
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435b69
mov eax, 0x4aca90
mov dword [eax], ebx
cmp byte [edi + 0x17], 0
jne 0x435b76
mov esi, dword [edi + 0xc]
jmp 0x435b78
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435b90
test byte [esi + 0x15], 8
je 0x435b8b
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435b95
mov eax, 0x4aca90
cmp dword [eax], 0
jne 0x435c68
cmp byte [edi + 0x17], 0
jne 0x435ba9
mov esi, dword [edi + 0xc]
jmp 0x435bab
mov esi, edi
test byte [esi + 0x15], 8
je 0x435bb8
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435bd7
test byte [esi + 0x15], 4
je 0x435bcc
mov eax, esi
call fcn.0042dbd0
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x435c68
cmp al, 2
jne 0x435be8
call fcn.00401000
mov byte [eax], 0
jmp 0x435c68
mov eax, 0x4abb26
mov byte [eax], 0
jmp 0x435c68
cmp byte [edi + 0x17], 0
jne 0x435bfd
mov esi, dword [edi + 0xc]
jmp 0x435bff
mov esi, edi
test byte [esi + 0x15], 8
je 0x435c0c
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435c25
test byte [esi + 0x15], 4
je 0x435c20
mov eax, esi
call fcn.0042dbd0
mov eax, dword [esi + 8]
jmp 0x435c35
cmp al, 2
jne 0x435c30
call fcn.00401000
jmp 0x435c35
mov eax, 0x4abb26
mov byte [eax], 0
cmp byte [edi + 0x17], 0
jne 0x435c43
mov esi, dword [edi + 0xc]
jmp 0x435c45
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435c5d
test byte [esi + 0x15], 8
je 0x435c58
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435c62
mov eax, 0x4aca90
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x435c71
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x435c96
cmp dword [0x4ac8ec], 0
je 0x435c96
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ac8e0
jmp fcn.00404340
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x436ac0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00490e40
push ebp
mov ebp, dword [0x4aa168]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
cmp edi, 0x7fff
jb 0x436bea
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00474550
test eax, eax
jne 0x436b10
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
cmp byte [ebp + 0x17], 0
jne 0x436b1b
mov esi, dword [ebp + 0xc]
jmp 0x436b1d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x436b2a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x436b43
test byte [esi + 0x15], 4
je 0x436b3e
mov eax, esi
call fcn.0042dbd0
mov eax, dword [esi + 8]
jmp 0x436b53
cmp al, 2
jne 0x436b4e
call fcn.00401000
jmp 0x436b53
mov eax, 0x4abb26
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x436ba5
cmp byte [ebp + 0x17], al
jne 0x436b6a
mov esi, dword [ebp + 0xc]
jmp 0x436b6c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x436b79
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x436b92
test byte [esi + 0x15], 4
je 0x436b8d
mov eax, esi
call fcn.0042dbd0
mov eax, dword [esi + 8]
jmp 0x436ba2
cmp al, 2
jne 0x436b9d
call fcn.00401000
jmp 0x436ba2
mov eax, 0x4abb26
mov byte [eax], 0
cmp byte [ebp + 0x17], 0
jne 0x436bb0
mov eax, dword [ebp + 0xc]
jmp 0x436bb2
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x436bd7
cmp dword [0x4ac8ec], 0
je 0x436bd7
push 1
mov ecx, 0x4ac8e0
call fcn.00404340
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x436bf7
mov eax, 0x498839
push 1
push 0
push edi
push eax
push ebp
call fcn.00474550
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x4393b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x4393e8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439463
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.InstallDir
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x4393e0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4393e0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x439447
cmp eax, ebx
je 0x439463
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x439441
dec eax
jne 0x439438
mov dword [esp + 0x10], eax
jmp 0x43945f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43945b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439463
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x439471
cmp edi, ebx
jne 0x439471
mov edi, 0x100
jmp 0x4393c4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43948e
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x439484
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43cb50
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [0x4aa168]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x43cc3e
cmp byte [edi + 1], 0
jne 0x43cbba
mov byte [esp + 0x14], cl
cmp cl, 0xa
jne 0x43cb8a
mov al, 0xd
jmp 0x43cc2f
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43cbae
cmp cl, 0xff
jne 0x43cbae
xor al, al
jmp 0x43cc2f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43cc2f
movzx esi, cl
test esi, 0xffffff80
jne 0x43cbd7
push 2
push esi
call fcn.00485bae
add esp, 8
test eax, eax
je 0x43cbd7
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x43cbfb
mov al, byte [edi + 1]
call fcn.00409310
cmp al, 0x4b
jne 0x43cbfb
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.00485ff4
add esp, 0xc
jmp 0x43cc2f
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a7660]
push edi
push eax
call fcn.00484671
add esp, 8
test eax, eax
je 0x43cc71
inc esi
cmp esi, 0x6d
jl 0x43cc00
mov eax, edi
call fcn.00411c50
movzx ecx, ax
test cx, cx
je 0x43cc3e
call fcn.004123b0
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 0
jne 0x43ccbb
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0044da50
mov edi, eax
add esp, 4
test edi, edi
jne 0x43cc7e
push 1
push eax
push 0xffffffffffffffff
push 0x498839
push ebp
call fcn.00474550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov cl, byte [esi*8 + 0x4a7664]
mov byte [esp + 0x13], cl
jmp 0x43cc33
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edx
call fcn.0044dcf0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00473ea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov ecx, dword [esp + 0x12c]
movzx ebx, byte [ecx]
test ebx, 0xffffff80
jne 0x43ccdf
push 2
push ebx
call fcn.00485bae
add esp, 8
test eax, eax
je 0x43ccdf
and bl, 0xdf
cmp bl, 0x50
je 0x43ccf2
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43ccf7
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044dc40
add esp, 4
test al, al
mov eax, 0x49db70
jne 0x43cd12
mov eax, 0x49db74
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00474550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
Function at 0x43cd30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4aa168]
push edi
call fcn.00412b70
test esi, esi
je 0x43ce9e
cmp byte [esi], 0
je 0x43ce9e
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00487610
lea eax, [esp + 0x3c]
add esp, 0xc
mov byte [esp + 0x134], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43cd80
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43cda9
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43ce9e
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4ad4d0], 1
jne 0x43cdd7
or dword [0x4ad4d0], 1
push str.GetDiskFreeSpaceExA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad4cc], eax
jmp 0x43cddc
mov eax, dword [0x4ad4cc]
test eax, eax
je 0x43ce2a
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
je 0x43ce9e
cmp byte [ebp + 0xc], 0
je 0x43ce17
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43ce6c
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43ce6c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43ce9e
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43ce5b
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov ecx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push ecx
call fcn.00474550
mov eax, dword [0x4aa168]
push 0x18
push edi
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x4a6920]
cmp byte [edx + 0xe4], 0
jne 0x43cecb
mov eax, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push eax
call fcn.00474550
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x498839
push 0
push 0x499ee8
call fcn.0042d0e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43ec50
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call ebx
test eax, eax
jne 0x43ec7d
cmp byte [0x4ac884], al
je 0x43ed24
call fcn.004094e0
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ac884], 0
push ebp
push esi
mov esi, 0x4aaa20
jne 0x43ec91
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43ecec
cmp byte [edi], 0
je 0x43ed02
cmp byte [edi + 1], 0x3a
jne 0x43ed02
cmp byte [edi + 2], 0
jne 0x43ed02
push esi
push edi
call fcn.00484671
add esp, 8
test eax, eax
je 0x43ed02
push edi
lea eax, [esp + 0x10]
push 0x49dde0
push eax
call fcn.00484ba8
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43ed02
push esi
push 0x104
call ebp
test eax, eax
jne 0x43ed02
push 0x103
push edi
push esi
call fcn.00487610
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ac884], 0
pop esi
pop ebp
je 0x43ed24
mov edx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push edx
call fcn.00474550
pop ebx
add esp, 0x10c
ret
Function at 0x43f320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
mov ebp, ecx
test edi, edi
je 0x43f4a2
cmp byte [edi], 0
je 0x43f4a2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43f37b
mov ecx, dword [0x4a6920]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042d1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.0048686a
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43f469
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f395
sub eax, edx
cmp eax, 0x104
jb 0x43f3e3
mov eax, dword [0x4a6920]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe4], cl
jne 0x43f3dc
mov eax, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push eax
call fcn.00474550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x43f4bb
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00487610
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.0043f320
cmp byte [ebx + 1], 0
je 0x43f457
mov esi, dword [0x4aaa1c]
cmp byte [esi + 0x17], 0
jne 0x43f41c
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43f429
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43f442
test byte [esi + 0x15], 4
je 0x43f43d
mov eax, esi
call fcn.0042dbd0
mov eax, dword [esi + 8]
jmp 0x43f452
cmp al, 2
jne 0x43f44d
call fcn.00401000
jmp 0x43f452
mov eax, 0x4abb26
cmp byte [eax], 0x31
jne 0x43f469
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete al
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4a6920]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042d1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4a6920]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
je 0x43f3b9
push 0x498839
push 0
push 0x499ee8
call fcn.0042d0e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440170
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4401f5
cmp byte [edi + 0x17], 0
jne 0x44018a
mov esi, dword [edi + 0xc]
jmp 0x44018c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x44019a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4401b3
test byte [esi + 0x15], 4
je 0x4401ae
mov eax, esi
call fcn.0042dbd0
mov eax, dword [esi + 8]
jmp 0x4401c3
cmp al, 2
jne 0x4401be
call fcn.00401000
jmp 0x4401c3
mov eax, 0x4abb26
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x4401d0
mov esi, dword [edi + 0xc]
jmp 0x4401d2
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4401ec
test byte [esi + 0x15], bl
je 0x4401e4
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x440228
mov esi, 0x4aca90
mov ebx, dword [esi]
jmp 0x440228
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00473fe0
add esp, 0xc
test eax, eax
jne 0x440220
mov edx, dword [0x4a6920]
mov dword [edx + 0x30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x440269
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x44025e
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6920]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x440284
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x440294
push ebp
call fcn.00484688
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x440550
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040cdf0
test al, al
je 0x440578
push 0x10
push 0
push edi
call fcn.00485ff4
add esp, 0xc
jmp 0x440581
push edi
call fcn.00485bf6
add esp, 4
cmp eax, 1
je 0x4405e6
call fcn.00452370
test al, al
je 0x4405e6
mov eax, dword [0x4a6920]
cmp byte [eax + 0xe4], 0
jne 0x4405c1
mov ecx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push ecx
call fcn.00474550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x498839
push 0
push 0x499ee8
call fcn.0042d0e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x440634
mov edx, dword [0x4a6920]
cmp byte [edx + 0xe4], 0
jne 0x4405c1
push 1
push 0
push eax
mov eax, dword [0x4aaa1c]
push 0x499ee8
push eax
call fcn.00474550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440640
sub eax, edx
cmp eax, 0x104
jb 0x440655
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0048cf70
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.00486fce
add esp, 4
push 0xa
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4406c1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4406c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4406c1
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x4406c3
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x4406f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4aa168]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00412b70
test esi, esi
je 0x4407a5
cmp byte [esi], 0
je 0x4407a5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44075c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6920]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x4407d9
mov eax, dword [0x4aaa1c]
push 1
push 0
push esi
push 0x499ee8
push eax
call fcn.00474550
pop esi
add esp, 0x80
ret
mov edx, dword [0x4aaa1c]
mov ecx, dword [0x4a6920]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push edx
mov dword [ecx + 0x30], 0
call fcn.00474550
mov edx, esi
lea eax, [esp + 4]
call fcn.00472780
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4aa168]
push eax
call fcn.00474550
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a6920]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x4407d9
mov ecx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push ecx
call fcn.00474550
pop esi
add esp, 0x80
ret
push 0x498839
push 0
push 0x499ee8
mov ecx, edi
call fcn.0042d0e0
pop esi
add esp, 0x80
ret
Function at 0x441620
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4aa168]
sub esp, 0x148
push ebx
push esi
call fcn.00412b70
test edi, edi
je 0x44178e
cmp byte [edi], 0
je 0x44178e
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x441680
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4416eb
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4416cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6920]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x4417c2
mov edx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push edx
call fcn.00474550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x4416f3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x44171b
push 2
push esi
call fcn.00485bae
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x44171b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x441732
sub edx, 2
jne 0x441748
push edx
push 0x100000
jmp 0x441739
push 0
push 0x400
push eax
push ecx
call fcn.004930e0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4aaa1c]
mov eax, dword [0x4a6920]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push ecx
mov dword [eax + 0x30], 0
call fcn.00474550
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4aa168]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a6920]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x4417c2
mov ecx, dword [0x4aaa1c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push ecx
call fcn.00474550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x498839
push 0
push 0x499ee8
call fcn.0042d0e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44dc40
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44dc47
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44dc6f
dec eax
je 0x44dc61
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44dc7c
cmp bl, 3
jne 0x44dc83
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44dca9
cmp dword [0x4aa354], 0
je 0x44dc99
movzx ecx, bl
mov al, byte [ecx + 0x4aa240]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4aa350], 0
je 0x44dcd8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411610
test al, al
je 0x44dccb
push 1
call fcn.00411440
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4aa240]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret