joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e430
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x448100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x448f78], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x41e476
cmp edi, dword [0x449398]
jne 0x41e471
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004284af
mov esp, ebp
pop ebp
ret
call fcn.0041e8e0
call fcn.0041e660
test eax, eax
jne 0x41e48f
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004284af
mov esp, ebp
pop ebp
ret
mov eax, dword [0x448b5c]
push esi
test eax, eax
je 0x41e63c
cmp dword [0x448f70], 0
je 0x41e63c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEngine
push eax
call esi
mov dword [0x44939c], eax
test eax, eax
je 0x41e63c
push str.DestroyEngine
push dword [0x448b5c]
call esi
mov dword [0x4493a0], eax
test eax, eax
je 0x41e63c
push str.TranslatePair
push dword [0x448b5c]
call esi
mov dword [0x4493a4], eax
test eax, eax
je 0x41e63c
push str.FreeAtlasData
push dword [0x448b5c]
call esi
mov dword [0x4493b0], eax
test eax, eax
je 0x41e63c
push str.AtlInitEngineData
push dword [0x448b5c]
call esi
mov dword [0x4493a8], eax
test eax, eax
je 0x41e63c
push str.SetTransState
push dword [0x448b5c]
call esi
mov dword [0x4493ac], eax
test eax, eax
je 0x41e63c
push str.AwuWordDel
push dword [0x448f70]
call esi
mov dword [0x448b58], eax
test eax, eax
je 0x41e63c
lea ecx, [ebx + 0x20c]
lea edx, [ebp - 0x414]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41e570
lea eax, [ebp - 0x414]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x41e59c
xor ecx, ecx
mov word [eax], cx
jmp 0x41e5c2
mov eax, dword [0x43f750]
movups xmm0, xmmword [str.Rule_Sets_]
mov dword [ebp - 0x404], eax
mov ax, word [0x43f754]
movups xmmword [ebp - 0x414], xmm0
mov word [ebp - 0x400], ax
push 0
push 0
push 0x410
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 4]
push eax
push 0
push 0x3a4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x41e63c
push 0x44a358
push 0
push 0x4493b8
push 2
push 0
call dword [0x4493a8]
add esp, 0x14
test eax, eax
jne 0x41e63c
lea eax, [ebp - 0x414]
push eax
push 0
push edi
push 1
call dword [0x44939c]
add esp, 0x10
cmp eax, 1
jne 0x41e63c
pop esi
mov dword [0x449398], edi
pop edi
mov dword [0x448f78], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004284af
mov esp, ebp
pop ebp
ret
call fcn.0041e8e0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004284af
mov esp, ebp
pop ebp
ret
Function at 0x4273f7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x42741e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x427421
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004273d3
pop esi
leave
ret 8

Function at 0x42786d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42788c
mov byte [ebp - 8], 1
mov edx, ebx
jmp 0x4278c3
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov esi, 0xb7
cmp edx, esi
jne 0x4278bf
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.00427a13
mov edx, eax
test edx, edx
jne 0x4278bf
mov eax, dword [ebp - 0x18]
shr eax, 4
test al, 1
cmove edx, esi
mov byte [ebp - 8], bl
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 4

Function at 0x42825f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x428294
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x428291
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x42829d
add edx, 0x28
cmp edx, esi
jne 0x42827f
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x42829a

Function at 0x429082
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4290c1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4290c1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4290c1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4290c1
cmp dword [ecx + 0x74], 0xe
jbe 0x4290c1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4297f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x448100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x429817
mov ecx, 5
int 0x29
push 2
call fcn.00429126
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x429922
test esi, esi
jne 0x429922
push 2
call fcn.00429126
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004284af
mov esp, ebp
pop ebp
ret
Function at 0x434ed0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x434efa
mov eax, 2
pop ebp
ret
push esi
call fcn.00429640
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x434f1a
jmp dword [eax*4 + 0x434f50]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00429780
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x434f60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x448100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43505b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x43505b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x434fba
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x434f98
jmp 0x43505b
cmp edx, 0x200
jae 0x4350c1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x43505b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x43505a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x43505a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x4350a3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x435040
pop edi
mov eax, dword [0x44b938]
test eax, eax
jne 0x435081
push 0x441df0
call fcn.00435dd0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43507c
or eax, 0xffffffff
mov dword [0x44b938], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x4350af
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004284af
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x43505a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004284af
mov esp, ebp
pop ebp
ret
call fcn.00429298
int3

Function at 0x4353c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004353f0
mov esi, dword [ebp + 8]
test al, al
je 0x4353de
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00435400
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x435530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43558c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43558c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43558c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43558c
cmp dword [ecx + 0x74], 0xe
jbe 0x43558c
cmp dword [ecx + 0xe8], 0
je 0x43558c
push dword [ebp + 8]
call fcn.00435400
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44b944
call fcn.004351d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4355c1
push dword [ebp + 8]
call fcn.004353c0
mov esp, ebp
pop ebp
ret

Function at 0x435600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43565c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43565c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43565c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43565c
cmp dword [ecx + 0x74], 0xe
jbe 0x43565c
cmp dword [ecx + 0xe8], 0
je 0x43565c
push dword [ebp + 8]
call fcn.00435400
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44b944
call fcn.004351d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x435691
push dword [ebp + 8]
call fcn.004353c0
mov esp, ebp
pop ebp
ret
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4157fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4157fd
lcall 0x5de5, 0x8b10c483
jmp loc.00f698f0
Function at 0x401000
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
or dword [ebp - 4], 0xffffffff
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ecx], 0xfffffff6
je 0x4010bc
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4010b3
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x4010a9
cmp dword [edi], 0x4643534d
jne 0x40109d
push esi
mov esi, dword [edi + 0x10]
add esi, edi
cmp word [edi + 0x1c], bx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40109c
mov eax, dword [esi]
add esi, 0x11
add dword [ebp - 4], eax
push esi
call fcn.004075b0
inc dword [ebp + 8]
lea esi, [esi + eax + 1]
mov ax, word [ebp + 8]
pop ecx
cmp ax, word [edi + 0x1c]
jb 0x40107c
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4010c2
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0xc]
call fcn.00401151
add esp, 0xc
mov dword [0x416138], eax
test eax, eax
jne 0x4010ed
call fcn.004023dd
test eax, eax
mov dword [0x416138], eax
je 0x401113
jle 0x40110c
cmp dword [0x4160ec], 0
jne 0x40110c
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004033d6
add esp, 0x10
call fcn.00404e58
jmp 0x401145
call fcn.00404e58
test eax, eax
mov dword [0x416138], eax
je 0x401137
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004033d6
add esp, 0x10
jmp 0x401145
mov eax, dword [0x416170]
test eax, eax
je 0x401145
mov dword [0x416138], eax
push dword [0x416138]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4014a9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014bb
xor eax, eax
ret
shr eax, 4
and eax, 1
ret

Function at 0x401521
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4015a2
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
and byte [ebp - 0x104], 0
push 0x40
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp edx, 0xb7
pop edi
je 0x4015a2
cmp edx, 5
jne 0x40156f
push 7
pop eax
jmp 0x4015a4
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004015a7
pop ecx
test eax, eax
pop ecx
je 0x4015a2
lea eax, [ebp - 0x104]
push eax
call fcn.00401521
test eax, eax
pop ecx
jne 0x4015a2
push eax
push dword [ebp + 8]
call esi
neg eax
sbb eax, eax
inc eax
jmp 0x4015a4
xor eax, eax
pop esi
leave
ret

Function at 0x4017f9
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push 3
pop ebx
xor edi, edi
push 0x100
push edi
push dword [esp + 0x18]
call fcn.004018df
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4018b4
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call fcn.00401b98
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x40183b
push 0xd
pop ebx
jmp 0x4018ac
push edi
push ebp
push esi
call fcn.00401981
push 4
push 0x416100
push esi
call fcn.00401996
mov eax, dword [0x416100]
add esp, 0x18
cmp eax, edi
je 0x401865
push eax
call fcn.0040765a
pop ecx
mov edi, eax
push dword [0x416100]
push edi
push esi
call fcn.00401996
push dword [0x416100]
push edi
call fcn.00401c60
push dword [0x416100]
push edi
call fcn.00401c98
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x4018a1
mov eax, dword [0x416100]
lea eax, [eax + ebp + 4]
mov dword [0x416104], eax
test edi, edi
je 0x4018ac
push edi
call fcn.0040762b
pop ecx
push esi
call fcn.004019da
pop ecx
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4020d9
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x4150cc
push dword [0x4161f4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea eax, [ebp - 0x104]
push 0x8101
push eax
call fcn.004018df
mov esi, eax
or eax, 0xffffffff
add esp, 0xc
cmp esi, eax
je 0x40219d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004019b8
push esi
call fcn.004019da
add esp, 0x10
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 0x104]
push eax
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
lea eax, [ebp - 0x18c]
push 0x1001
push eax
push dword [ebp + 8]
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
mov ebx, eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4021a2
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0
push str.welcome
push dword [0x4161f4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.004020d9
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x402249
push 0x100
lea eax, [ebp - 0x104]
push 0x8000
push eax
call fcn.004018df
mov edi, eax
lea eax, [esi + 1]
add esp, 0xc
test eax, eax
je 0x402222
push eax
call fcn.0040765a
pop ecx
push esi
push eax
push edi
mov dword [0x4161d8], eax
call fcn.00401996
push edi
call fcn.004019da
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x40224c
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x402250
Capabilities:
Get common file path

Disassembly:
push esi
push 0x104
call fcn.0040765a
pop ecx
xor esi, esi
push eax
push esi
push 0x4150ec
mov dword [0x4161c8], eax
push dword [0x4161f4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x4161c8]
call fcn.004020d9
add esp, 0xc
test eax, eax
jge 0x4022b4
push esi
push esi
push str.LoadLanguage_Failed
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4161c8]
cmp eax, esi
je 0x4022ae
push eax
call fcn.0040762b
pop ecx
mov dword [0x4161c8], esi
xor eax, eax
pop esi
ret
Function at 0x40354a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and byte [ebp - 0x14], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and byte [ebp - 0x118], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
push 5
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetWindow]
call edi
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x14]
push str.Dialog_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00401457
add esp, 0x1c
test eax, eax
jne 0x4035ce
lea eax, [ebp - 0x118]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x118], 0
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
je 0x4035ef
cmp dword [ebp + 0x10], 0
jne 0x4035ef
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x40362a
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x208
push dword [0x416174]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401457
add esp, 0x10
test eax, eax
je 0x403621
push dword [0x416174]
push ebx
call esi
push 2
push ebx
call edi
mov ebx, eax
jmp 0x4035ef
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00405bda
lea eax, [ebp - 0x104]
push eax
call fcn.00405c19
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x403696
cmp eax, 2
jne 0x4036c2
cmp byte [ebp - 0x103], 0x3a
jne 0x4036c2
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
call fcn.004036eb
lea eax, [ebp - 0x104]
mov dword [esp], 0x415180
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4036df
xor eax, eax
test esi, esi
setne al
dec eax
dec eax
jmp 0x4036e7
xor eax, eax
test esi, esi
sete al
inc eax
pop edi
pop esi
leave
ret