joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4177b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4aa908]
add eax, 4
imul eax, eax, 0xe8
push ebx
push ebp
push esi
push edi
push eax
call fcn.004882a7
add esp, 4
mov dword [0x4ace40], eax
test eax, eax
jne 0x4177d9
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4aa988]
push 0x403c40
mov edi, eax
push 0x4ef6d80
mov ecx, 0x3a
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4ae274]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4aa988], eax
call edi
cmp dword [0x4af230], 0
jne 0x41781b
mov ebx, 1
jmp 0x4178cb
mov edx, dword [0x4aa988]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov byte [edx + 0xcc], 0
call esi
cmp byte [0x4ae3d1], 0
mov ecx, dword [0x4aa988]
mov dword [ecx + 0xbc], eax
mov dword [ecx + 0xc0], 0x64
jne 0x41786b
mov eax, dword [0x4ae274]
push 0x403aa0
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4ae3d1], cl
mov byte [0x4af84d], 1
call esi
mov ecx, dword [0x4af230]
push 0
mov esi, 1
add dword [0x4ae3e8], esi
push 0
push esi
mov dword [0x4af86c], eax
mov dword [0x4af868], eax
call fcn.004267a0
sub dword [0x4ae3e8], esi
cmp byte [0x4ae3d1], 0
mov ebx, eax
je 0x4178c4
mov edx, dword [0x4ae274]
push 0xb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4178c4
mov byte [0x4ae3d1], 0
mov byte [0x4af84d], 0
mov ebp, dword [0x4aa988]
cmp dword [ebp + 0xe4], 0
je 0x417925
mov eax, dword [ebp + 0xe4]
cmp dword [eax + 8], 6
jne 0x4178f0
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0xe4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x417906
push eax
call fcn.00487ee8
add esp, 4
mov ecx, dword [ebp + 0xe4]
push ecx
call fcn.00487c48
mov dword [ebp + 0xe4], 0
mov ebp, dword [0x4aa988]
add esp, 4
mov eax, ebp
call fcn.00401000
mov edx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
mov byte [ebp + 0xcc], 1
push 0x49b8d8
mov ecx, 0x3a
mov esi, ebp
mov edi, 0x4acf30
rep movsd dword es:[edi], dword [esi]
push edx
mov byte [ebp + 0xcc], 1
mov dword [ebp + 0xc0], 0
mov word [ebp + 0xcd], 1
mov dword [ebp + 0x2c], CreateStatusWindowA
call fcn.00477bd0
mov eax, dword [0x4abac4]
cmp word [eax], 0
jne 0x4179bd
cmp dword [0x4aeaec], 0
jne 0x4179bd
cmp dword [0x4ae3a4], 0
jne 0x4179bd
cmp dword [0x4ae3a8], 0
jne 0x4179bd
cmp byte [0x4ae3b1], 0
jne 0x4179bd
neg ebx
sbb ebx, ebx
and ebx, 5
push 0
inc ebx
push ebx
push 0x4af230
call fcn.00417a00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x417a00
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esp, 0xa4
push ebx
xor ebx, ebx
push esi
push edi
mov dword [eax + 0x5d4], ecx
cmp byte [0x4afa53], bl
jne 0x417b9c
cmp byte [eax + 0x61c], bl
je 0x417b9c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4aea7c]
push ebx
push 1
mov dword [0x4b04ac], eax
call fcn.00401270
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0048ab90
mov eax, dword [0x4aa988]
inc dword [0x4ae3e8]
add eax, 0xe8
mov edi, eax
mov byte [esp + 0xbb], bl
mov ecx, 0x3a
mov esi, 0x4acf30
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4aa988], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4af230
call fcn.004176b0
mov dword [0x4af858], ebx
mov dword [0x4af85c], ebx
cmp dword [0x4ae41c], ebx
je 0x417ac2
mov eax, dword [0x4ababc]
cmp eax, ebx
je 0x417ab6
mov eax, dword [eax]
cmp eax, ebx
jne 0x417abb
mov eax, 0x49b8bd
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x5c8]
mov edi, dword [0x4aa8fc]
mov dword [0x4aa8fc], ebx
mov byte [0x4afa53], 1
mov byte [esp + 0xf], 1
mov byte [0x4abe78], bl
cmp ecx, ebx
je 0x417b02
call fcn.004012e0
test eax, eax
je 0x417b02
cmp byte [0x4abe78], bl
jne 0x417b02
mov byte [esp + 0xf], bl
mov byte [0x4abe78], 1
cmp byte [esp + 0xf], bl
je 0x417b5b
mov dword [esp + 0x18], ebx
call fcn.00444170
mov dword [esp + 0x10], eax
mov eax, dword [0x4b04ac]
cdq
mov dword [esp + 0x24], edx
xor edx, edx
cmp dword [esi + 0x5c8], ebx
mov dword [esp + 0x20], eax
sete dl
lea eax, [esp + 0x10]
lea ebx, [esi + 0x594]
mov dword [esp + 0x28], 1
push edx
push 2
push eax
call fcn.0046fe70
xor ebx, ebx
cmp eax, 3
jne 0x417b5b
mov byte [esp + 0xf], bl
mov byte [0x4afa53], bl
cmp byte [esp + 0xf], bl
jne 0x417b8e
cmp dword [ebp + 0xc], 0xffffffff
jle 0x417b8e
lea ecx, [esp + 0x30]
push ecx
call fcn.00403910
add esp, 4
mov dword [0x4aa8fc], edi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call fcn.00417be0
cmp byte [0x4abe78], bl
jne 0x417bd1
cmp ecx, 6
jne 0x417bd1
mov ecx, dword [0x4ae208]
cmp byte [ecx], bl
je 0x417bbc
mov edx, dword [ebp + 0x10]
mov dword [0x4b04ac], edx
pop edi
pop esi
mov byte [0x4abe78], 1
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push edx
push ecx
push eax
call fcn.00417be0
int3
Function at 0x4180f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push str._AUTOHOTKEY_SCRIPT_
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x41819a
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41819a
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x41819a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41819a
push 0x44
call fcn.004895c5
add esp, 4
test eax, eax
je 0x418164
mov esi, eax
call fcn.00416900
mov ecx, eax
jmp 0x418166
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.004724b0
mov ecx, dword [edi + 0x600]
inc dword [0x4af194]
mov dword [0x4ad1b4], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, edi
call fcn.0042fe80
pop esi
add esp, 0x10
ret 8
Function at 0x4303f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.004943d0
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x4304eb
test ebx, ebx
jne 0x430420
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x374]
test ebx, ebx
je 0x43042a
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x430437
mov ecx, dword [eax + 0x170]
movzx eax, word [eax + 0x174]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4ad1b4]
push edx
movzx eax, ax
push eax
push ecx
push str._s___d__:___Warning:__s_n
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.00474a60
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp byte [esi], 0
lea edi, [esp + eax + 0x10]
je 0x430483
push esi
lea esi, [esp + 0x2014]
push str._____Specifically:__s_n
sub esi, edi
call fcn.00474a60
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x4304a9
mov eax, dword [ebp + 8]
push 0x49e258
push 0
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0042fa50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmp edi, 2
jne 0x4304eb
test ebx, ebx
jne 0x4304ca
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x4304e1
mov edx, dword [ebp + 0x10]
push esi
push 1
push edx
mov ecx, ebx
call fcn.0042fbe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
push esi
push eax
call fcn.0042fe80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x437630
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 ebx, ecx
call fcn.00431cd0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x437665
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042fbe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x43766f
jmp dword [eax*4 + 0x43785c]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437685
call fcn.004543d0
jmp 0x43768b
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4aea7c]
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.004543d0
mov ebx, eax
test ebx, ebx
je 0x4376ff
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x4376ff
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 [0x4aea7c]
push 0x18
push 0
push esi
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.0048a47b
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x437739.67
movzx edx, byte [eax + 0x43788c]
jmp dword [edx*4 + 0x437870]
mov esi, 0x40
jmp 0x437768
mov esi, 0x4000
jmp 0x437768
mov esi, 0x20
jmp 0x437768
mov esi, 0x8000
jmp 0x437768
mov esi, 0x80
jmp 0x437768
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x437777
call fcn.004543d0
jmp 0x43777d
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4376ff
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x4376ff
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
jmp 0x4376d3
mov ecx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x4377f6
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.00414d60
fmul qword [0x4a3f40]
call fcn.004965c0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x437800
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.004543d0
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x43781b
test esi, esi
jne 0x4376e2
jmp 0x437823
test esi, esi
je 0x4376ff
cmp byte [esp + 0xf], 0
jne 0x437841
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4376e2
push 1
push 0x64
call fcn.00401420
add esp, 8
jmp 0x437800
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x438090
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4ae1b8]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.00443100
mov edi, eax
test edi, edi
je 0x4380b6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x4380bb
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00477bd0
cmp eax, 1
je 0x4380d9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x43815e
push ebp
push 0
push 1
call fcn.00401270
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x4380fe
mov edi, dword [esi + 0xc]
jmp 0x438100
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x438118
test byte [edi + 0x15], 8
je 0x438113
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x43811d
mov eax, 0x4afa4c
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x43812a
mov edi, dword [esi + 0xc]
jmp 0x43812c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x438144
test byte [edi + 0x15], 8
je 0x43813f
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x438149
mov eax, 0x4afa4c
cmp dword [eax], 0
jne 0x43819a
push 0
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
jmp 0x43819a
push 0
push 1
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438175
mov edi, dword [esi + 0xc]
jmp 0x438177
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43818f
test byte [edi + 0x15], 8
je 0x43818a
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x438194
mov eax, 0x4afa4c
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4381a3
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4381c5
cmp dword [0x4af220], 0
je 0x4381c5
push 1
mov ecx, 0x4af214
call fcn.004048f0
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 0x438f50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004943d0
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4ae1b8]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x439004
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00477bd0
test eax, eax
jne 0x438fa2
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401270
push eax
push ebx
call ebp
test eax, eax
jne 0x438fc3
push eax
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x438fcc
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x438ff1
cmp dword [0x4af220], 0
je 0x438ff1
push 1
mov ecx, 0x4af214
call fcn.004048f0
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 0x439011
mov eax, 0x49b8bd
push 1
push 0
push edi
push eax
push esi
call fcn.00477bd0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43b2f0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, dword [0x4af840]
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push edi
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
jne 0x43b341
lea ecx, [esp + 0xc]
push ecx
call fcn.0043b820
add esp, 4
test eax, eax
je 0x43b335
lea edx, [esp + 0xc]
push edx
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x43b341
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x49b8bd
push 0x4af230
mov edx, esi
call fcn.00430b40
test eax, eax
mov eax, dword [0x4ababc]
setne bl
test eax, eax
je 0x43b374
mov eax, dword [eax]
test eax, eax
jne 0x43b379
mov eax, 0x49b8bd
push eax
call ebp
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x108
ret

Function at 0x43b820
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 0x43b858
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b8d3
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 0x43b850
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43b850
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43b8b7
cmp eax, ebx
je 0x43b8d3
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43b8b1
dec eax
jne 0x43b8a8
mov dword [esp + 0x10], eax
jmp 0x43b8cf
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43b8cb
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43b8d3
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43b8e1
cmp edi, ebx
jne 0x43b8e1
mov edi, 0x100
jmp 0x43b834
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43b8fe
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 0x43b8f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43ee50
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ae1b8]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00413d30
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43eeec
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044fb90
mov edi, eax
add esp, 4
test edi, edi
jne 0x43eeb0
push 1
push eax
push 0xffffffffffffffff
push 0x49b8bd
push ebp
call fcn.00477bd0
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.0044fe30
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00477520
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43ef10
push 2
push ebx
call fcn.0048940e
add esp, 8
test eax, eax
je 0x43ef10
and bl, 0xdf
cmp bl, 0x50
je 0x43ef23
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43ef28
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044fd80
add esp, 4
test al, al
mov eax, 0x4a1024
jne 0x43ef43
mov eax, 0x4a1028
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00477bd0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x43ef60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
mov esi, ecx
mov ecx, dword [0x4ae1b8]
push edi
call fcn.00414da0
test esi, esi
je 0x43f043
cmp byte [esi], 0
je 0x43f043
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0048ab90
lea eax, [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x123], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43efb0
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x43efd5
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x43f043
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
je 0x43f043
cmp byte [ebp + 0xc], 0
je 0x43f003
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43f00b
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477bd0
mov eax, dword [0x4ae1b8]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401130
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
jne 0x43f071
mov edx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.00477bd0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b8bd
push 0
push 0x49cf30
call fcn.0042f7e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x440de0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
push esi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x440e0f
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x440e0f
cmp byte [esi + 2], 0
jne 0x440e0f
mov byte [esp + 4], al
mov byte [esp + 5], cl
mov word [esp + 6], 0x5c
lea esi, [esp + 4]
push esi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
jne 0x440e2f
cmp byte [0x4af84c], al
je 0x440e74
call fcn.00409d90
pop esi
add esp, 0x108
ret
cmp byte [0x4af84c], 0
je 0x440e74
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
je 0x440e52
lea esi, [esp + 8]
jmp 0x440e56
test esi, esi
je 0x440e5d
mov eax, esi
call fcn.00450510
mov ecx, dword [0x4aea7c]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477bd0
pop esi
add esp, 0x108
ret
Function at 0x441460
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44148a
push 0xb7
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
shr eax, 4
pop edi
and eax, 1
pop esi
ret
push 0x5c
push edi
call fcn.0048a253
mov esi, eax
add esp, 8
cmp esi, edi
jbe 0x4414b7
cmp byte [esi - 1], 0x3a
je 0x4414b7
push edi
mov byte [esi], 0
call fcn.00441460
add esp, 4
mov byte [esi], 0x5c
test al, al
jne 0x4414b7
pop edi
pop esi
ret
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x4414d6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x4414d6
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4420f0
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 0x442140
push edi
push 1
mov ecx, ebp
call fcn.00401270
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x44211a
mov esi, dword [ebp + 0xc]
jmp 0x44211c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x442137
test byte [esi + 0x15], 8
je 0x44212f
mov eax, esi
call fcn.004011b0
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x44216e
mov esi, 0x4afa4c
mov ebx, dword [esi]
jmp 0x44216e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00477660
add esp, 0xc
test eax, eax
jne 0x44216a
mov edx, dword [0x4aa988]
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 0x4421b6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x4421ab
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 [0x4aa988]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x4421d1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebp, ebp
jne 0x4421e2
mov edx, dword [esp + 0x24]
push edx
call fcn.00487ee8
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042f880
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x4422e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x108
push ebp
push esi
mov esi, eax
xor eax, eax
cmp byte [esp + 0x114], al
push 0
setne al
push 0
inc eax
push eax
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x442320
pop esi
xor al, al
pop ebp
add esp, 0x108
ret 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442325
sub eax, edx
cmp eax, 0x104
jb 0x44233a
mov eax, 0x103
push ebx
inc eax
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00490500
lea eax, [esp + 0x1c]
push eax
call fcn.0048a594
add esp, 0x10
push 0xa
lea ecx, [esp + 0x14]
push ecx
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x4423a6
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4423a6
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x4423a5
push 0
lea edx, [esp + 0x14]
push edx
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
pop edi
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ebp
add esp, 0x108
ret 4