joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435330
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.0042f710
mov ebx, eax
test ebx, ebx
jne 0x435363
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042d690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43536f
jmp dword [eax*4 + 0x435568]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435389
push eax
call fcn.00452310
add esp, 4
jmp 0x43538f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4aba2c]
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.00452310
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x435407
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435407
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 [0x4aba2c]
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 [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push ecx
call fcn.00475240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx edx, byte [edi]
push edx
call fcn.00487bc5
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x435442.67
movzx eax, byte [eax + 0x435598]
jmp dword [eax*4 + 0x43557c]
mov esi, 0x40
jmp 0x435471
mov esi, 0x4000
jmp 0x435471
mov esi, 0x20
jmp 0x435471
mov esi, 0x8000
jmp 0x435471
mov esi, 0x80
jmp 0x435471
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435484
push eax
call fcn.00452310
add esp, 4
jmp 0x43548a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x435407
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435407
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x4353db
mov edx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push edx
call fcn.00475240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x435503
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00412e50
fmul qword [0x4a1c20]
call fcn.00493d40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x435510
mov byte [esp + 0x13], 1
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452310
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x43552d
test esi, esi
jne 0x4353ea
jmp 0x435531
test esi, esi
je case.0x435442.67
cmp byte [esp + 0x13], 0
jne 0x43554f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4353ea
push 1
push 0x64
call fcn.00401350
add esp, 8
jmp 0x435510
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x435da0
Capabilities:
Get graphical window text
Write clipboard data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4ab178]
push eax
mov eax, dword [esp + 0x18]
call fcn.00441520
mov ebp, eax
test ebp, ebp
je 0x435dc6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebx, [eax + 1]
jmp 0x435dcb
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00475240
cmp eax, 1
je 0x435de9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x435ef2
cmp byte [edi + 0x17], 0
jne 0x435dfc
mov esi, dword [edi + 0xc]
jmp 0x435dfe
mov esi, edi
test byte [esi + 0x15], 8
je 0x435e0b
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435e24
test byte [esi + 0x15], 4
je 0x435e1f
mov eax, esi
call fcn.0042dec0
mov eax, dword [esi + 8]
jmp 0x435e34
cmp al, 2
jne 0x435e2f
call fcn.00401000
jmp 0x435e34
mov eax, 0x4acb37
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x435e4a
mov esi, dword [edi + 0xc]
jmp 0x435e4c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435e64
test byte [esi + 0x15], 8
je 0x435e5f
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435e69
mov eax, 0x4adaa8
mov dword [eax], ebx
cmp byte [edi + 0x17], 0
jne 0x435e76
mov esi, dword [edi + 0xc]
jmp 0x435e78
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435e90
test byte [esi + 0x15], 8
je 0x435e8b
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435e95
mov eax, 0x4adaa8
cmp dword [eax], 0
jne 0x435f68
cmp byte [edi + 0x17], 0
jne 0x435ea9
mov esi, dword [edi + 0xc]
jmp 0x435eab
mov esi, edi
test byte [esi + 0x15], 8
je 0x435eb8
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435ed7
test byte [esi + 0x15], 4
je 0x435ecc
mov eax, esi
call fcn.0042dec0
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x435f68
cmp al, 2
jne 0x435ee8
call fcn.00401000
mov byte [eax], 0
jmp 0x435f68
mov eax, 0x4acb37
mov byte [eax], 0
jmp 0x435f68
cmp byte [edi + 0x17], 0
jne 0x435efd
mov esi, dword [edi + 0xc]
jmp 0x435eff
mov esi, edi
test byte [esi + 0x15], 8
je 0x435f0c
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x435f25
test byte [esi + 0x15], 4
je 0x435f20
mov eax, esi
call fcn.0042dec0
mov eax, dword [esi + 8]
jmp 0x435f35
cmp al, 2
jne 0x435f30
call fcn.00401000
jmp 0x435f35
mov eax, 0x4acb37
mov byte [eax], 0
cmp byte [edi + 0x17], 0
jne 0x435f43
mov esi, dword [edi + 0xc]
jmp 0x435f45
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x435f5d
test byte [esi + 0x15], 8
je 0x435f58
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x435f62
mov eax, 0x4adaa8
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x435f71
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x435f96
cmp dword [0x4ad8fc], 0
je 0x435f96
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ad8f0
jmp fcn.004043d0
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x436dd0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00491b50
push ebp
mov ebp, dword [0x4ab178]
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 0x436efa
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00475240
test eax, eax
jne 0x436e20
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
cmp byte [ebp + 0x17], 0
jne 0x436e2b
mov esi, dword [ebp + 0xc]
jmp 0x436e2d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x436e3a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x436e53
test byte [esi + 0x15], 4
je 0x436e4e
mov eax, esi
call fcn.0042dec0
mov eax, dword [esi + 8]
jmp 0x436e63
cmp al, 2
jne 0x436e5e
call fcn.00401000
jmp 0x436e63
mov eax, 0x4acb37
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x436eb5
cmp byte [ebp + 0x17], al
jne 0x436e7a
mov esi, dword [ebp + 0xc]
jmp 0x436e7c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x436e89
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x436ea2
test byte [esi + 0x15], 4
je 0x436e9d
mov eax, esi
call fcn.0042dec0
mov eax, dword [esi + 8]
jmp 0x436eb2
cmp al, 2
jne 0x436ead
call fcn.00401000
jmp 0x436eb2
mov eax, 0x4acb37
mov byte [eax], 0
cmp byte [ebp + 0x17], 0
jne 0x436ec0
mov eax, dword [ebp + 0xc]
jmp 0x436ec2
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x436ee7
cmp dword [0x4ad8fc], 0
je 0x436ee7
push 1
mov ecx, 0x4ad8f0
call fcn.004043d0
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 0x436f07
mov eax, 0x499869
push 1
push 0
push edi
push eax
push ebp
call fcn.00475240
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x4391f0
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 [0x4ad88c]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00472490
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x439245
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439245
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ad88c]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.00439830
add esp, 4
test eax, eax
je 0x439293
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00472490
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x439293
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439293
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 0x4392a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1114
call fcn.00491b50
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], 0x499869
call fcn.004391f0
add esp, 8
test al, al
jne 0x4392de
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x439347
mov edx, dword [esp + 0x14]
push 0x49ea5c
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00472490
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x439347
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439347
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 0x4ad290
mov edx, ebp
call fcn.0042e4d0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x439830
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 0x439868
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x4398e3
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 0x439860
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x439860
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x4398c7
cmp eax, ebx
je 0x4398e3
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x4398c1
dec eax
jne 0x4398b8
mov dword [esp + 0x10], eax
jmp 0x4398df
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x4398db
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x4398e3
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x4398f1
cmp edi, ebx
jne 0x4398f1
mov edi, 0x100
jmp 0x439844
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43990e
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 0x439904
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43cfe0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ab178]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00411e20
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43d07c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044d6d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43d040
push 1
push eax
push 0xffffffffffffffff
push 0x499869
push ebp
call fcn.00475240
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.0044d970
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00474b90
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43d0a0
push 2
push ebx
call fcn.004868be
add esp, 8
test eax, eax
je 0x43d0a0
and bl, 0xdf
cmp bl, 0x50
je 0x43d0b3
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43d0b8
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044d8c0
add esp, 4
test al, al
mov eax, 0x49ecd8
jne 0x43d0d3
mov eax, 0x49ecdc
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00475240
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x43d0f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4ab178]
push edi
call fcn.00412e90
test esi, esi
je 0x43d25e
cmp byte [esi], 0
je 0x43d25e
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00488320
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 0x43d140
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43d169
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43d25e
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4ae4e8], 1
jne 0x43d197
or dword [0x4ae4e8], 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 [0x4ae4e4], eax
jmp 0x43d19c
mov eax, dword [0x4ae4e4]
test eax, eax
je 0x43d1ea
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 0x43d25e
cmp byte [ebp + 0xc], 0
je 0x43d1d7
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43d22c
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43d22c
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 0x43d25e
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43d21b
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 [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push ecx
call fcn.00475240
mov eax, dword [0x4ab178]
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 [0x4a7918]
cmp byte [edx + 0xe8], 0
jne 0x43d28b
mov eax, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push eax
call fcn.00475240
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x499869
push 0
push 0x49afb8
call fcn.0042d3d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43f010
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 0x43f03d
cmp byte [0x4ad894], al
je 0x43f0e4
call fcn.00409610
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ad894], 0
push ebp
push esi
mov esi, 0x4aba30
jne 0x43f051
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43f0ac
cmp byte [edi], 0
je 0x43f0c2
cmp byte [edi + 1], 0x3a
jne 0x43f0c2
cmp byte [edi + 2], 0
jne 0x43f0c2
push esi
push edi
call fcn.00485381
add esp, 8
test eax, eax
je 0x43f0c2
push edi
lea eax, [esp + 0x10]
push 0x49ef48
push eax
call fcn.004858b8
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43f0c2
push esi
push 0x104
call ebp
test eax, eax
jne 0x43f0c2
push 0x103
push edi
push esi
call fcn.00488320
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ad894], 0
pop esi
pop ebp
je 0x43f0e4
mov edx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4998b4
push edx
call fcn.00475240
pop ebx
add esp, 0x10c
ret
Function at 0x43f6b0
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 0x43f832
cmp byte [edi], 0
je 0x43f832
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43f70b
mov ecx, dword [0x4a7918]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042d4c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.004876bc
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43f7f9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f725
sub eax, edx
cmp eax, 0x104
jb 0x43f773
mov eax, dword [0x4a7918]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe8], cl
jne 0x43f76c
mov eax, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push eax
call fcn.00475240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x43f84b
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00488320
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.0043f6b0
cmp byte [ebx + 1], 0
je 0x43f7e7
mov esi, dword [0x4aba2c]
cmp byte [esi + 0x17], 0
jne 0x43f7ac
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43f7b9
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43f7d2
test byte [esi + 0x15], 4
je 0x43f7cd
mov eax, esi
call fcn.0042dec0
mov eax, dword [esi + 8]
jmp 0x43f7e2
cmp al, 2
jne 0x43f7dd
call fcn.00401000
jmp 0x43f7e2
mov eax, 0x4acb37
cmp byte [eax], 0x31
jne 0x43f7f9
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 [0x4a7918]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042d4c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4a7918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
je 0x43f749
push 0x499869
push 0
push 0x49afb8
call fcn.0042d3d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440500
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 0x440585
cmp byte [edi + 0x17], 0
jne 0x44051a
mov esi, dword [edi + 0xc]
jmp 0x44051c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x44052a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440543
test byte [esi + 0x15], 4
je 0x44053e
mov eax, esi
call fcn.0042dec0
mov eax, dword [esi + 8]
jmp 0x440553
cmp al, 2
jne 0x44054e
call fcn.00401000
jmp 0x440553
mov eax, 0x4acb37
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x440560
mov esi, dword [edi + 0xc]
jmp 0x440562
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x44057c
test byte [esi + 0x15], bl
je 0x440574
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x4405b8
mov esi, 0x4adaa8
mov ebx, dword [esi]
jmp 0x4405b8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00474cd0
add esp, 0xc
test eax, eax
jne 0x4405b0
mov edx, dword [0x4a7918]
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 0x4405f9
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x4405ee
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 [0x4a7918]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x440614
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x440624
push ebp
call fcn.00485398
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d4c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x440660
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, edi
test edi, edi
je 0x44068b
mov dl, byte [edi]
test dl, dl
je 0x4406c7
mov ecx, 0x49eff4
mov al, 0x3f
cmp dl, al
je 0x4406c7
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x440677
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x440670
cmp byte [edi], 0
je 0x4406c7
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 [0x4a7918]
push edx
push ebx
mov dword [ecx + 0x30], eax
call fcn.0042d4c0
pop esi
add esp, 8
ret
push 0
push 0
push 0x440650
push 0
push 1
push edi
mov ecx, ebx
call fcn.00440b40
mov ecx, dword [0x4a7918]
xor eax, eax
cmp dword [ecx + 0xe0], eax
pop esi
sete al
add esp, 8
ret
Function at 0x440700
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.0040cec0
test al, al
je 0x440728
push 0x10
push 0
push edi
call fcn.00486d04
add esp, 0xc
jmp 0x440731
push edi
call fcn.00486906
add esp, 4
cmp eax, 1
je 0x440796
call fcn.00451f90
test al, al
je 0x440796
mov eax, dword [0x4a7918]
cmp byte [eax + 0xe8], 0
jne 0x440771
mov ecx, dword [0x4aba2c]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb8
push ecx
call fcn.00475240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x499869
push 0
push 0x49afb8
call fcn.0042d3d0
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 0x4407e4
mov edx, dword [0x4a7918]
cmp byte [edx + 0xe8], 0
jne 0x440771
push 1
push 0
push eax
mov eax, dword [0x4aba2c]
push 0x49afb8
push eax
call fcn.00475240
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 0x4407f0
sub eax, edx
cmp eax, 0x104
jb 0x440805
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0048dc80
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.00487cde
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 0x440871
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x440871
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x440871
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 0x440873
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.0042d4c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4