joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436050
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ab1e8]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00441360
mov edi, eax
test edi, edi
je 0x436076
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x43607b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.004756d0
cmp eax, 1
je 0x436099
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43611e
push ebp
push 0
push 1
call fcn.00401210
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x4360be
mov edi, dword [esi + 0xc]
jmp 0x4360c0
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4360d8
test byte [edi + 0x15], 8
je 0x4360d3
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x4360dd
mov eax, 0x4acba0
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x4360ea
mov edi, dword [esi + 0xc]
jmp 0x4360ec
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x436104
test byte [edi + 0x15], 8
je 0x4360ff
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x436109
mov eax, 0x4acba0
cmp dword [eax], 0
jne 0x43615a
push 0
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
jmp 0x43615a
push 0
push 1
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x436135
mov edi, dword [esi + 0xc]
jmp 0x436137
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43614f
test byte [edi + 0x15], 8
je 0x43614a
mov eax, edi
call fcn.00401150
lea eax, [edi + 0xc]
jmp 0x436154
mov eax, 0x4acba0
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x436163
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x436185
cmp dword [0x4ac340], 0
je 0x436185
push 1
mov ecx, 0x4ac334
call fcn.00404370
pop edi
pop esi
pop ebp
pop ecx
ret 4
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4

Function at 0x436f10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00491ff0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ab1e8]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x436fc4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.004756d0
test eax, eax
jne 0x436f62
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401210
push eax
push ebx
call ebp
test eax, eax
jne 0x436f83
push eax
push 1
mov ecx, esi
call fcn.00401210
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x436f8c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x436fb1
cmp dword [0x4ac340], 0
je 0x436fb1
push 1
mov ecx, 0x4ac334
call fcn.00404370
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x436fd1
mov eax, 0x499861
push 1
push 0
push edi
push eax
push esi
call fcn.004756d0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x439290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4ac99c]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00472920
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x4392e5
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4392e5
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ac99c]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.00439950
add esp, 4
test eax, eax
je 0x439333
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00472920
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x439333
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439333
mov edx, dword [esp + 0x14]
mov word [esi + edi], 0x22
pop edi
pop esi
mov dword [edx], ebp
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

Function at 0x439340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1114
call fcn.00491ff0
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x924]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x499861
call fcn.00439290
add esp, 8
test al, al
jne 0x43937e
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x4393e7
mov edx, dword [esp + 0x14]
push 0x49ea74
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00472920
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x4393e7
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4393e7
lea edx, [esp + 0x920]
mov byte [esp + esi + 0x120], 0x22
mov byte [esp + esi + 0x121], 0
mov ebp, edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x4ac390
mov edx, ebp
call fcn.0042ea80
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x439950
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 0x439988
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439a03
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 0x439980
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x439980
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x4399e7
cmp eax, ebx
je 0x439a03
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x4399e1
dec eax
jne 0x4399d8
mov dword [esp + 0x10], eax
jmp 0x4399ff
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x4399fb
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439a03
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x439a11
cmp edi, ebx
jne 0x439a11
mov edi, 0x100
jmp 0x439964
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x439a2e
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 0x439a24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43ce90
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ab1e8]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00412460
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43cf2c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044d8a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43cef0
push 1
push eax
push 0xffffffffffffffff
push 0x499861
push ebp
call fcn.004756d0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0044db40
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00475020
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43cf50
push 2
push ebx
call fcn.00486d5e
add esp, 8
test eax, eax
je 0x43cf50
and bl, 0xdf
cmp bl, 0x50
je 0x43cf63
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43cf68
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044da90
add esp, 4
test al, al
mov eax, 0x49ecf0
jne 0x43cf83
mov eax, 0x49ecf4
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004756d0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x43cfa0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4ab1e8]
push edi
call fcn.004134d0
test esi, esi
je 0x43d10e
cmp byte [esi], 0
je 0x43d10e
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004887c0
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 0x43cff0
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43d019
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43d10e
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4ad5e8], 1
jne 0x43d047
or dword [0x4ad5e8], 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 [0x4ad5e4], eax
jmp 0x43d04c
mov eax, dword [0x4ad5e4]
test eax, eax
je 0x43d09a
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 0x43d10e
cmp byte [ebp + 0xc], 0
je 0x43d087
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43d0dc
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43d0dc
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 0x43d10e
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43d0cb
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 [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push ecx
call fcn.004756d0
mov eax, dword [0x4ab1e8]
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 [0x4a7978]
test byte [edx + 0xe0], 1
jne 0x43d13b
mov eax, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49ae68
push eax
call fcn.004756d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x499861
push 0
push 0x49ae68
call fcn.0042d8b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43eeb0
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 0x43eedd
cmp byte [0x4ac9a4], al
je 0x43ef84
call fcn.00409430
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ac9a4], 0
push ebp
push esi
mov esi, 0x4abaa8
jne 0x43eef1
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43ef4c
cmp byte [edi], 0
je 0x43ef62
cmp byte [edi + 1], 0x3a
jne 0x43ef62
cmp byte [edi + 2], 0
jne 0x43ef62
push esi
push edi
call fcn.00485821
add esp, 8
test eax, eax
je 0x43ef62
push edi
lea eax, [esp + 0x10]
push 0x49ef60
push eax
call fcn.00485d58
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43ef62
push esi
push 0x104
call ebp
test eax, eax
jne 0x43ef62
push 0x103
push edi
push esi
call fcn.004887c0
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ac9a4], 0
pop esi
pop ebp
je 0x43ef84
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push edx
call fcn.004756d0
pop ebx
add esp, 0x10c
ret
Function at 0x43f550
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebp
push edi
mov edi, dword [esp + 0x114]
mov ebp, ecx
test edi, edi
je 0x43f6b1
cmp byte [edi], 0
je 0x43f6b1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43f5a7
mov ecx, dword [0x4a7978]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042d950
pop edi
pop ebp
add esp, 0x108
ret 4
push ebx
push 0x5c
push edi
call fcn.00487bae
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43f679
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f5c2
sub eax, edx
cmp eax, 0x104
jb 0x43f628
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x6f
jne 0x43f609
mov eax, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49ae68
push eax
call fcn.004756d0
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
push 0x499861
push 0
push 0x49ae68
mov ecx, ebp
call fcn.0042d8b0
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
push esi
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.004887c0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x18], 0
call fcn.0043f550
cmp byte [ebx + 1], 0
pop esi
je 0x43f668
mov ecx, dword [0x4abaa0]
push 0
push 1
call fcn.00401210
cmp byte [eax], 0x31
jne 0x43f679
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x108
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete al
mov byte [esp + 0xc], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
mov ecx, dword [0x4a7978]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042d950
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x43f6e7
mov eax, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49ae68
push eax
call fcn.004756d0
pop edi
pop ebp
add esp, 0x108
ret 4
push 0x499861
push 0
push 0x49ae68
call fcn.0042d8b0
pop edi
pop ebp
add esp, 0x108
ret 4
Function at 0x440340
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x440390
push edi
push 1
mov ecx, ebp
call fcn.00401210
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x44036a
mov esi, dword [ebp + 0xc]
jmp 0x44036c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x440387
test byte [esi + 0x15], 8
je 0x44037f
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x4403be
mov esi, 0x4acba0
mov ebx, dword [esi]
jmp 0x4403be
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00475160
add esp, 0xc
test eax, eax
jne 0x4403ba
mov edx, dword [0x4a7978]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x440406
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x4403fb
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
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 [0x4a7978]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x440421
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x440432
mov edx, dword [esp + 0x24]
push edx
call fcn.00485838
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042d950
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x440460
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, edi
test edi, edi
je 0x44048b
mov dl, byte [edi]
test dl, dl
je 0x4404c7
mov ecx, 0x49f00c
mov al, 0x3f
cmp dl, al
je 0x4404c7
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x440477
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x440470
cmp byte [edi], 0
je 0x4404c7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
mov byte [esp + 8], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
mov ecx, dword [0x4a7978]
push edx
push ebx
mov dword [ecx + 0x30], eax
call fcn.0042d950
pop esi
add esp, 8
ret
push 0
push 0
push 0x440450
push 0
push 1
push edi
mov ecx, ebx
call fcn.00440940
mov ecx, dword [0x4a7978]
xor eax, eax
cmp dword [ecx + 0xe4], eax
pop esi
sete al
add esp, 8
ret
Function at 0x440500
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.0040d590
test al, al
je 0x440526
push 0x10
push 0
push edi
call fcn.004871f6
add esp, 0xc
jmp 0x44052f
push edi
call fcn.00486da6
add esp, 4
mov ebx, 1
cmp eax, ebx
je 0x440596
call fcn.00452120
test al, al
je 0x440596
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], bl
jne 0x440571
mov ecx, dword [0x4abaa0]
push ebx
push 0
push 0xffffffffffffffff
push 0x49ae68
push ecx
call fcn.004756d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x120]
push 0x499861
push 0
push 0x49ae68
call fcn.0042d8b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
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 0x4405e2
mov edx, dword [0x4a7978]
test byte [edx + 0xe0], bl
jne 0x440571
push ebx
push 0
push eax
mov eax, dword [0x4abaa0]
push 0x49ae68
push eax
call fcn.004756d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [esp + 0x124]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4405f0
sub eax, edx
cmp eax, 0x104
jb 0x440605
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0048e120
lea edx, [esp + 0x20]
add esp, 0xc
push edx
call fcn.004881d0
add esp, 4
push 0xa
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x440671
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x440671
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x440671
push 0
lea ecx, [esp + 0x14]
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 0x440673
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x4406a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4ab1e8]
sub esp, 0x80
push esi
mov esi, eax
call fcn.004134d0
test esi, esi
je 0x440755
cmp byte [esi], 0
je 0x440755
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44070c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x440789
mov eax, dword [0x4abaa0]
push 1
push 0
push esi
push 0x49ae68
push eax
call fcn.004756d0
pop esi
add esp, 0x80
ret
mov edx, dword [0x4abaa0]
mov ecx, dword [0x4a7978]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push edx
mov dword [ecx + 0x30], 0
call fcn.004756d0
mov edx, esi
lea eax, [esp + 4]
call fcn.00473870
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4ab1e8]
push eax
call fcn.004756d0
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x440789
mov ecx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49ae68
push ecx
call fcn.004756d0
pop esi
add esp, 0x80
ret
push 0x499861
push 0
push 0x49ae68
mov ecx, edi
call fcn.0042d8b0
pop esi
add esp, 0x80
ret
Function at 0x4410c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ab1e8]
sub esp, 0x148
push ebx
push esi
call fcn.004134d0
test edi, edi
je 0x44122e
cmp byte [edi], 0
je 0x44122e
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 0x441120
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 0x44118b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44116c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x441262
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49ae68
push edx
call fcn.004756d0
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 0x441193
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x4411bb
push 2
push esi
call fcn.00486d5e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4411bb
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x4411d2
sub edx, 2
jne 0x4411e8
push edx
push 0x100000
jmp 0x4411d9
push 0
push 0x400
push eax
push ecx
call fcn.00494290
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4abaa0]
mov eax, dword [0x4a7978]
push 1
push 0
push 0xffffffffffffffff
push 0x49987c
push ecx
mov dword [eax + 0x30], 0
call fcn.004756d0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ab1e8]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x441262
mov ecx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49ae68
push ecx
call fcn.004756d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x499861
push 0
push 0x49ae68
call fcn.0042d8b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44da90
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44da97
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44dabf
dec eax
je 0x44dab1
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 0x44dacc
cmp bl, 3
jne 0x44dad3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44daf9
cmp dword [0x4ab3d4], 0
je 0x44dae9
movzx ecx, bl
mov al, byte [ecx + 0x4ab2c0]
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 [0x4ab3d0], 0
je 0x44db28
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411d60
test al, al
je 0x44db1b
push 1
call fcn.00411b90
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4ab2c0]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret