joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4341b0
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
call fcn.00441950
mov edi, eax
test edi, edi
je 0x4341de
mov esi, dword [esp + 0x1c]
push edi
call fcn.00476ad0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x434229
mov ecx, dword [0x4a6920]
cmp byte [ecx + 0xe8], 0
jne 0x43420c
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f08
push edx
call fcn.004750c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x498819
push 0
push 0x499f08
call fcn.0042d220
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
test ebp, ebp
je 0x434261
cmp ebp, dword [0x4ac238]
je 0x434261
mov esi, edi
call fcn.00476f90
test al, al
jne 0x434261
mov eax, dword [0x4ac238]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x43429f
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988a4
push edx
call fcn.004750c0
mov eax, dword [0x4a6920]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x43429f
push 1
push eax
call fcn.00401350
add esp, 8
test bl, bl
je 0x4342b3
mov ecx, dword [0x4ac238]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
Function at 0x4350e0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0042f470
mov ebx, eax
test ebx, ebx
jne 0x435113
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042d4e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43511f
jmp dword [eax*4 + 0x435318]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435139
push eax
call fcn.00452810
add esp, 4
jmp 0x43513f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4aaa2c]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452810
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4351b7
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4351b7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4aaa2c]
push 0x18
push 0
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988a4
push ecx
call fcn.004750c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx edx, byte [edi]
push edx
call fcn.00487a25
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4351f2.67
movzx eax, byte [eax + 0x435348]
jmp dword [eax*4 + 0x43532c]
mov esi, 0x40
jmp 0x435221
mov esi, 0x4000
jmp 0x435221
mov esi, 0x20
jmp 0x435221
mov esi, 0x8000
jmp 0x435221
mov esi, 0x80
jmp 0x435221
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435234
push eax
call fcn.00452810
add esp, 4
jmp 0x43523a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4351b7
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4351b7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x43518b
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988a4
push edx
call fcn.004750c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x4352b3
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00412b70
fmul qword [0x4a0a98]
call fcn.00493ba0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x4352c0
mov byte [esp + 0x13], 1
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452810
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x4352dd
test esi, esi
jne 0x43519a
jmp 0x4352e1
test esi, esi
je case.0x4351f2.67
cmp byte [esp + 0x13], 0
jne 0x4352ff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43519a
push 1
push 0x64
call fcn.00401350
add esp, 8
jmp 0x4352c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x435b70
Capabilities:
Get graphical window text
Write clipboard data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4aa178]
push eax
mov eax, dword [esp + 0x18]
call fcn.00441950
mov ebp, eax
test ebp, ebp
je 0x435b96
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebx, [eax + 1]
jmp 0x435b9b
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.004750c0
cmp eax, 1
je 0x435bb9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x435cc2
cmp byte [edi + 0x17], 0
jne 0x435bcc
mov esi, dword [edi + 0xc]
jmp 0x435bce
mov esi, edi
test byte [esi + 0x15], 8
je 0x435bdb
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435bf4
test byte [esi + 0x15], 4
je 0x435bef
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
jmp 0x435c04
cmp al, 2
jne 0x435bff
call fcn.00401000
jmp 0x435c04
mov eax, 0x4abb36
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x435c1a
mov esi, dword [edi + 0xc]
jmp 0x435c1c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435c34
test byte [esi + 0x15], 8
je 0x435c2f
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435c39
mov eax, 0x4acaa0
mov dword [eax], ebx
cmp byte [edi + 0x17], 0
jne 0x435c46
mov esi, dword [edi + 0xc]
jmp 0x435c48
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435c60
test byte [esi + 0x15], 8
je 0x435c5b
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435c65
mov eax, 0x4acaa0
cmp dword [eax], 0
jne 0x435d38
cmp byte [edi + 0x17], 0
jne 0x435c79
mov esi, dword [edi + 0xc]
jmp 0x435c7b
mov esi, edi
test byte [esi + 0x15], 8
je 0x435c88
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435ca7
test byte [esi + 0x15], 4
je 0x435c9c
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x435d38
cmp al, 2
jne 0x435cb8
call fcn.00401000
mov byte [eax], 0
jmp 0x435d38
mov eax, 0x4abb36
mov byte [eax], 0
jmp 0x435d38
cmp byte [edi + 0x17], 0
jne 0x435ccd
mov esi, dword [edi + 0xc]
jmp 0x435ccf
mov esi, edi
test byte [esi + 0x15], 8
je 0x435cdc
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435cf5
test byte [esi + 0x15], 4
je 0x435cf0
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
jmp 0x435d05
cmp al, 2
jne 0x435d00
call fcn.00401000
jmp 0x435d05
mov eax, 0x4abb36
mov byte [eax], 0
cmp byte [edi + 0x17], 0
jne 0x435d13
mov esi, dword [edi + 0xc]
jmp 0x435d15
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435d2d
test byte [esi + 0x15], 8
je 0x435d28
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435d32
mov eax, 0x4acaa0
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x435d41
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x435d66
cmp dword [0x4ac8fc], 0
je 0x435d66
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ac8f0
jmp fcn.004043b0
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x436b90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004919b0
push ebp
mov ebp, dword [0x4aa178]
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 0x436cba
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.004750c0
test eax, eax
jne 0x436be0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
cmp byte [ebp + 0x17], 0
jne 0x436beb
mov esi, dword [ebp + 0xc]
jmp 0x436bed
mov esi, ebp
test byte [esi + 0x15], 8
je 0x436bfa
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x436c13
test byte [esi + 0x15], 4
je 0x436c0e
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
jmp 0x436c23
cmp al, 2
jne 0x436c1e
call fcn.00401000
jmp 0x436c23
mov eax, 0x4abb36
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x436c75
cmp byte [ebp + 0x17], al
jne 0x436c3a
mov esi, dword [ebp + 0xc]
jmp 0x436c3c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x436c49
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x436c62
test byte [esi + 0x15], 4
je 0x436c5d
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
jmp 0x436c72
cmp al, 2
jne 0x436c6d
call fcn.00401000
jmp 0x436c72
mov eax, 0x4abb36
mov byte [eax], 0
cmp byte [ebp + 0x17], 0
jne 0x436c80
mov eax, dword [ebp + 0xc]
jmp 0x436c82
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x436ca7
cmp dword [0x4ac8fc], 0
je 0x436ca7
push 1
mov ecx, 0x4ac8f0
call fcn.004043b0
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 0x436cc7
mov eax, 0x498819
push 1
push 0
push edi
push eax
push ebp
call fcn.004750c0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x439480
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 0x4394b8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439533
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 0x4394b0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4394b0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x439517
cmp eax, ebx
je 0x439533
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x439511
dec eax
jne 0x439508
mov dword [esp + 0x10], eax
jmp 0x43952f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43952b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439533
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x439541
cmp edi, ebx
jne 0x439541
mov edi, 0x100
jmp 0x439494
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43955e
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 0x439554
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43cc20
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [0x4aa178]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x43cd0e
cmp byte [edi + 1], 0
jne 0x43cc8a
mov byte [esp + 0x14], cl
cmp cl, 0xa
jne 0x43cc5a
mov al, 0xd
jmp 0x43ccff
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 0x43cc7e
cmp cl, 0xff
jne 0x43cc7e
xor al, al
jmp 0x43ccff
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43ccff
movzx esi, cl
test esi, 0xffffff80
jne 0x43cca7
push 2
push esi
call fcn.0048671e
add esp, 8
test eax, eax
je 0x43cca7
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x43cccb
mov al, byte [edi + 1]
call fcn.00409380
cmp al, 0x4b
jne 0x43cccb
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.00486b64
add esp, 0xc
jmp 0x43ccff
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a7660]
push edi
push eax
call fcn.004851e1
add esp, 8
test eax, eax
je 0x43cd41
inc esi
cmp esi, 0x6d
jl 0x43ccd0
mov eax, edi
call fcn.00411c90
movzx ecx, ax
test cx, cx
je 0x43cd0e
call fcn.004123f0
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 0
jne 0x43cd8b
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0044db20
mov edi, eax
add esp, 4
test edi, edi
jne 0x43cd4e
push 1
push eax
push 0xffffffffffffffff
push 0x498819
push ebp
call fcn.004750c0
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 0x43cd03
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.0044ddc0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00474a10
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 0x43cdaf
push 2
push ebx
call fcn.0048671e
add esp, 8
test eax, eax
je 0x43cdaf
and bl, 0xdf
cmp bl, 0x50
je 0x43cdc2
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43cdc7
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044dd10
add esp, 4
test al, al
mov eax, 0x49dbf8
jne 0x43cde2
mov eax, 0x49dbfc
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004750c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
Function at 0x43ce00
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4aa178]
push edi
call fcn.00412bb0
test esi, esi
je 0x43cf6e
cmp byte [esi], 0
je 0x43cf6e
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00488180
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 0x43ce50
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43ce79
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43cf6e
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4ad4e0], 1
jne 0x43cea7
or dword [0x4ad4e0], 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 [0x4ad4dc], eax
jmp 0x43ceac
mov eax, dword [0x4ad4dc]
test eax, eax
je 0x43cefa
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 0x43cf6e
cmp byte [ebp + 0xc], 0
je 0x43cee7
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43cf3c
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43cf3c
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 0x43cf6e
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43cf2b
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 [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988a4
push ecx
call fcn.004750c0
mov eax, dword [0x4aa178]
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 + 0xe8], 0
jne 0x43cf9b
mov eax, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f08
push eax
call fcn.004750c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x498819
push 0
push 0x499f08
call fcn.0042d220
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43ed20
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 0x43ed4d
cmp byte [0x4ac894], al
je 0x43edf4
call fcn.00409530
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ac894], 0
push ebp
push esi
mov esi, 0x4aaa30
jne 0x43ed61
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43edbc
cmp byte [edi], 0
je 0x43edd2
cmp byte [edi + 1], 0x3a
jne 0x43edd2
cmp byte [edi + 2], 0
jne 0x43edd2
push esi
push edi
call fcn.004851e1
add esp, 8
test eax, eax
je 0x43edd2
push edi
lea eax, [esp + 0x10]
push 0x49de68
push eax
call fcn.00485718
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43edd2
push esi
push 0x104
call ebp
test eax, eax
jne 0x43edd2
push 0x103
push edi
push esi
call fcn.00488180
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ac894], 0
pop esi
pop ebp
je 0x43edf4
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988a4
push edx
call fcn.004750c0
pop ebx
add esp, 0x10c
ret
Function at 0x43f3f0
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 0x43f572
cmp byte [edi], 0
je 0x43f572
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43f44b
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.0042d310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.004873da
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43f539
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f465
sub eax, edx
cmp eax, 0x104
jb 0x43f4b3
mov eax, dword [0x4a6920]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe8], cl
jne 0x43f4ac
mov eax, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f08
push eax
call fcn.004750c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x43f58b
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00488180
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.0043f3f0
cmp byte [ebx + 1], 0
je 0x43f527
mov esi, dword [0x4aaa2c]
cmp byte [esi + 0x17], 0
jne 0x43f4ec
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43f4f9
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43f512
test byte [esi + 0x15], 4
je 0x43f50d
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
jmp 0x43f522
cmp al, 2
jne 0x43f51d
call fcn.00401000
jmp 0x43f522
mov eax, 0x4abb36
cmp byte [eax], 0x31
jne 0x43f539
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.0042d310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4a6920]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
je 0x43f489
push 0x498819
push 0
push 0x499f08
call fcn.0042d220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440240
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 0x4402c5
cmp byte [edi + 0x17], 0
jne 0x44025a
mov esi, dword [edi + 0xc]
jmp 0x44025c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x44026a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440283
test byte [esi + 0x15], 4
je 0x44027e
mov eax, esi
call fcn.0042dd10
mov eax, dword [esi + 8]
jmp 0x440293
cmp al, 2
jne 0x44028e
call fcn.00401000
jmp 0x440293
mov eax, 0x4abb36
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x4402a0
mov esi, dword [edi + 0xc]
jmp 0x4402a2
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4402bc
test byte [esi + 0x15], bl
je 0x4402b4
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x4402f8
mov esi, 0x4acaa0
mov ebx, dword [esi]
jmp 0x4402f8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00474b50
add esp, 0xc
test eax, eax
jne 0x4402f0
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 0x440339
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x44032e
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 0x440354
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x440364
push ebp
call fcn.004851f8
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d310
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x440620
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.0040ce30
test al, al
je 0x440648
push 0x10
push 0
push edi
call fcn.00486b64
add esp, 0xc
jmp 0x440651
push edi
call fcn.00486766
add esp, 4
cmp eax, 1
je 0x4406b6
call fcn.00452490
test al, al
je 0x4406b6
mov eax, dword [0x4a6920]
cmp byte [eax + 0xe8], 0
jne 0x440691
mov ecx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f08
push ecx
call fcn.004750c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x498819
push 0
push 0x499f08
call fcn.0042d220
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 0x440704
mov edx, dword [0x4a6920]
cmp byte [edx + 0xe8], 0
jne 0x440691
push 1
push 0
push eax
mov eax, dword [0x4aaa2c]
push 0x499f08
push eax
call fcn.004750c0
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 0x440710
sub eax, edx
cmp eax, 0x104
jb 0x440725
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0048dae0
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.00487b3e
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 0x440791
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x440791
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x440791
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 0x440793
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.0042d310
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4