joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435b00
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.0042fee0
mov ebx, eax
test ebx, ebx
jne 0x435b33
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042de00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x435b3f
jmp dword [eax*4 + 0x435d38]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435b59
push eax
call fcn.00452c40
add esp, 4
jmp 0x435b5f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4aba70]
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.00452c40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x435bd7
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435bd7
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 [0x4aba70]
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 [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x4998c4
push ecx
call fcn.00475c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx edx, byte [edi]
push edx
call fcn.00488677
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x435c12.67
movzx eax, byte [eax + 0x435d68]
jmp dword [eax*4 + 0x435d4c]
mov esi, 0x40
jmp 0x435c41
mov esi, 0x4000
jmp 0x435c41
mov esi, 0x20
jmp 0x435c41
mov esi, 0x8000
jmp 0x435c41
mov esi, 0x80
jmp 0x435c41
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x435c54
push eax
call fcn.00452c40
add esp, 4
jmp 0x435c5a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x435bd7
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x435bd7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x435bab
mov edx, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x4998c4
push edx
call fcn.00475c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [edi], 0
je 0x435cd3
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.004135a0
fmul qword [0x4a1ce8]
call fcn.004947a0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x435ce0
mov byte [esp + 0x13], 1
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00452c40
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x435cfd
test esi, esi
jne 0x435bba
jmp 0x435d01
test esi, esi
je case.0x435c12.67
cmp byte [esp + 0x13], 0
jne 0x435d1f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x435bba
push 1
push 0x64
call fcn.00401350
add esp, 8
jmp 0x435ce0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x436570
Capabilities:
Get graphical window text
Write clipboard data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4ab1b8]
push eax
mov eax, dword [esp + 0x18]
call fcn.00441d10
mov ebp, eax
test ebp, ebp
je 0x436596
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebx, [eax + 1]
jmp 0x43659b
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00475c90
cmp eax, 1
je 0x4365b9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x4366c2
cmp byte [edi + 0x17], 0
jne 0x4365cc
mov esi, dword [edi + 0xc]
jmp 0x4365ce
mov esi, edi
test byte [esi + 0x15], 8
je 0x4365db
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4365f4
test byte [esi + 0x15], 4
je 0x4365ef
mov eax, esi
call fcn.0042e640
mov eax, dword [esi + 8]
jmp 0x436604
cmp al, 2
jne 0x4365ff
call fcn.00401000
jmp 0x436604
mov eax, 0x4acb83
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x43661a
mov esi, dword [edi + 0xc]
jmp 0x43661c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x436634
test byte [esi + 0x15], 8
je 0x43662f
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x436639
mov eax, 0x4adaf8
mov dword [eax], ebx
cmp byte [edi + 0x17], 0
jne 0x436646
mov esi, dword [edi + 0xc]
jmp 0x436648
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x436660
test byte [esi + 0x15], 8
je 0x43665b
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x436665
mov eax, 0x4adaf8
cmp dword [eax], 0
jne 0x436738
cmp byte [edi + 0x17], 0
jne 0x436679
mov esi, dword [edi + 0xc]
jmp 0x43667b
mov esi, edi
test byte [esi + 0x15], 8
je 0x436688
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4366a7
test byte [esi + 0x15], 4
je 0x43669c
mov eax, esi
call fcn.0042e640
mov eax, dword [esi + 8]
mov byte [eax], 0
jmp 0x436738
cmp al, 2
jne 0x4366b8
call fcn.00401000
mov byte [eax], 0
jmp 0x436738
mov eax, 0x4acb83
mov byte [eax], 0
jmp 0x436738
cmp byte [edi + 0x17], 0
jne 0x4366cd
mov esi, dword [edi + 0xc]
jmp 0x4366cf
mov esi, edi
test byte [esi + 0x15], 8
je 0x4366dc
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4366f5
test byte [esi + 0x15], 4
je 0x4366f0
mov eax, esi
call fcn.0042e640
mov eax, dword [esi + 8]
jmp 0x436705
cmp al, 2
jne 0x436700
call fcn.00401000
jmp 0x436705
mov eax, 0x4acb83
mov byte [eax], 0
cmp byte [edi + 0x17], 0
jne 0x436713
mov esi, dword [edi + 0xc]
jmp 0x436715
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43672d
test byte [esi + 0x15], 8
je 0x436728
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x436732
mov eax, 0x4adaf8
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x436741
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x436766
cmp dword [0x4ad2a8], 0
je 0x436766
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ad29c
jmp fcn.004043c0
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x4375a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004925b0
push ebp
mov ebp, dword [0x4ab1b8]
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 0x4376ca
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00475c90
test eax, eax
jne 0x4375f0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
cmp byte [ebp + 0x17], 0
jne 0x4375fb
mov esi, dword [ebp + 0xc]
jmp 0x4375fd
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43760a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437623
test byte [esi + 0x15], 4
je 0x43761e
mov eax, esi
call fcn.0042e640
mov eax, dword [esi + 8]
jmp 0x437633
cmp al, 2
jne 0x43762e
call fcn.00401000
jmp 0x437633
mov eax, 0x4acb83
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x437685
cmp byte [ebp + 0x17], al
jne 0x43764a
mov esi, dword [ebp + 0xc]
jmp 0x43764c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x437659
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437672
test byte [esi + 0x15], 4
je 0x43766d
mov eax, esi
call fcn.0042e640
mov eax, dword [esi + 8]
jmp 0x437682
cmp al, 2
jne 0x43767d
call fcn.00401000
jmp 0x437682
mov eax, 0x4acb83
mov byte [eax], 0
cmp byte [ebp + 0x17], 0
jne 0x437690
mov eax, dword [ebp + 0xc]
jmp 0x437692
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x4376b7
cmp dword [0x4ad2a8], 0
je 0x4376b7
push 1
mov ecx, 0x4ad29c
call fcn.004043c0
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 0x4376d7
mov eax, 0x499821
push 1
push 0
push edi
push eax
push ebp
call fcn.00475c90
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x4399b0
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 [0x4ad8f4]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00472ee0
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x439a05
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439a05
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ad8f4]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.00439ff0
add esp, 4
test eax, eax
je 0x439a53
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00472ee0
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x439a53
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439a53
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 0x439a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1114
call fcn.004925b0
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], 0x499821
call fcn.004399b0
add esp, 8
test al, al
jne 0x439a9e
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x439b07
mov edx, dword [esp + 0x14]
push 0x49eaf4
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00472ee0
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x439b07
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439b07
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 0x4ad2f8
mov edx, ebp
call fcn.0042ec50
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x439ff0
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 0x43a028
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43a0a3
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 0x43a020
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43a020
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43a087
cmp eax, ebx
je 0x43a0a3
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43a081
dec eax
jne 0x43a078
mov dword [esp + 0x10], eax
jmp 0x43a09f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43a09b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43a0a3
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43a0b1
cmp edi, ebx
jne 0x43a0b1
mov edi, 0x100
jmp 0x43a004
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43a0ce
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 0x43a0c4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43d7d0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ab1b8]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00412570
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43d86c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044df90
mov edi, eax
add esp, 4
test edi, edi
jne 0x43d830
push 1
push eax
push 0xffffffffffffffff
push 0x499821
push ebp
call fcn.00475c90
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.0044e230
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004755e0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43d890
push 2
push ebx
call fcn.0048731e
add esp, 8
test eax, eax
je 0x43d890
and bl, 0xdf
cmp bl, 0x50
je 0x43d8a3
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43d8a8
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044e180
add esp, 4
test al, al
mov eax, 0x49ed70
jne 0x43d8c3
mov eax, 0x49ed74
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00475c90
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x43d8e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4ab1b8]
push edi
call fcn.004135e0
test esi, esi
je 0x43da4e
cmp byte [esi], 0
je 0x43da4e
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00488d80
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 0x43d930
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43d959
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43da4e
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4ae538], 1
jne 0x43d987
or dword [0x4ae538], 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 [0x4ae534], eax
jmp 0x43d98c
mov eax, dword [0x4ae534]
test eax, eax
je 0x43d9da
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 0x43da4e
cmp byte [ebp + 0xc], 0
je 0x43d9c7
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43da1c
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43da1c
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 0x43da4e
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43da0b
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 [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x4998c4
push ecx
call fcn.00475c90
mov eax, dword [0x4ab1b8]
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 [0x4a78d4]
cmp byte [edx + 0xe8], 0
jne 0x43da7b
mov eax, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x49afc8
push eax
call fcn.00475c90
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x499821
push 0
push 0x49afc8
call fcn.0042db40
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43f800
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 0x43f82d
cmp byte [0x4ad8fc], al
je 0x43f8d4
call fcn.004096f0
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ad8fc], 0
push ebp
push esi
mov esi, 0x4aba78
jne 0x43f841
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43f89c
cmp byte [edi], 0
je 0x43f8b2
cmp byte [edi + 1], 0x3a
jne 0x43f8b2
cmp byte [edi + 2], 0
jne 0x43f8b2
push esi
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x43f8b2
push edi
lea eax, [esp + 0x10]
push 0x49efe0
push eax
call fcn.00486318
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43f8b2
push esi
push 0x104
call ebp
test eax, eax
jne 0x43f8b2
push 0x103
push edi
push esi
call fcn.00488d80
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ad8fc], 0
pop esi
pop ebp
je 0x43f8d4
mov edx, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x4998c4
push edx
call fcn.00475c90
pop ebx
add esp, 0x10c
ret
Function at 0x43fea0
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 0x440022
cmp byte [edi], 0
je 0x440022
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43fefb
mov ecx, dword [0x4a78d4]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042dc30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.0048816e
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43ffe9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ff15
sub eax, edx
cmp eax, 0x104
jb 0x43ff63
mov eax, dword [0x4a78d4]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe8], cl
jne 0x43ff5c
mov eax, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x49afc8
push eax
call fcn.00475c90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x44003b
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00488d80
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.0043fea0
cmp byte [ebx + 1], 0
je 0x43ffd7
mov esi, dword [0x4aba70]
cmp byte [esi + 0x17], 0
jne 0x43ff9c
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43ffa9
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43ffc2
test byte [esi + 0x15], 4
je 0x43ffbd
mov eax, esi
call fcn.0042e640
mov eax, dword [esi + 8]
jmp 0x43ffd2
cmp al, 2
jne 0x43ffcd
call fcn.00401000
jmp 0x43ffd2
mov eax, 0x4acb83
cmp byte [eax], 0x31
jne 0x43ffe9
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 [0x4a78d4]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042dc30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4a78d4]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
je 0x43ff39
push 0x499821
push 0
push 0x49afc8
call fcn.0042db40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440cf0
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 0x440d75
cmp byte [edi + 0x17], 0
jne 0x440d0a
mov esi, dword [edi + 0xc]
jmp 0x440d0c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x440d1a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440d33
test byte [esi + 0x15], 4
je 0x440d2e
mov eax, esi
call fcn.0042e640
mov eax, dword [esi + 8]
jmp 0x440d43
cmp al, 2
jne 0x440d3e
call fcn.00401000
jmp 0x440d43
mov eax, 0x4acb83
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x440d50
mov esi, dword [edi + 0xc]
jmp 0x440d52
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x440d6c
test byte [esi + 0x15], bl
je 0x440d64
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x440da8
mov esi, 0x4adaf8
mov ebx, dword [esi]
jmp 0x440da8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00475720
add esp, 0xc
test eax, eax
jne 0x440da0
mov edx, dword [0x4a78d4]
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 0x440de9
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x440dde
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 [0x4a78d4]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x440e04
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x440e14
push ebp
call fcn.00485df8
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042dc30
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x440e50
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, edi
test edi, edi
je 0x440e7b
mov dl, byte [edi]
test dl, dl
je 0x440eb7
mov ecx, 0x49f08c
mov al, 0x3f
cmp dl, al
je 0x440eb7
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x440e67
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x440e60
cmp byte [edi], 0
je 0x440eb7
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 [0x4a78d4]
push edx
push ebx
mov dword [ecx + 0x30], eax
call fcn.0042dc30
pop esi
add esp, 8
ret
push 0
push 0
push 0x440e40
push 0
push 1
push edi
mov ecx, ebx
call fcn.00441330
mov ecx, dword [0x4a78d4]
xor eax, eax
cmp dword [ecx + 0xe0], eax
pop esi
sete al
add esp, 8
ret
Function at 0x440ef0
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.0040d760
test al, al
je 0x440f18
push 0x10
push 0
push edi
call fcn.004877b6
add esp, 0xc
jmp 0x440f21
push edi
call fcn.00487366
add esp, 4
cmp eax, 1
je 0x440f86
call fcn.004528c0
test al, al
je 0x440f86
mov eax, dword [0x4a78d4]
cmp byte [eax + 0xe8], 0
jne 0x440f61
mov ecx, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x49afc8
push ecx
call fcn.00475c90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x499821
push 0
push 0x49afc8
call fcn.0042db40
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 0x440fd4
mov edx, dword [0x4a78d4]
cmp byte [edx + 0xe8], 0
jne 0x440f61
push 1
push 0
push eax
mov eax, dword [0x4aba70]
push 0x49afc8
push eax
call fcn.00475c90
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 0x440fe0
sub eax, edx
cmp eax, 0x104
jb 0x440ff5
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0048e6e0
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.00488790
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 0x441061
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x441061
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 0x441063
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.0042dc30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4