joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4625b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46259a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8cae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00469880
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6f88d4
call fcn.0049a6af
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x468ff3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049a6af
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x468fec
push 0
mov ecx, eax
call fcn.004600d0
mov dword [esi + 0xc], eax
jmp 0x468ff5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x468ff5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x479fe6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x47a107
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x47a0eb
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x47a03d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x47a01b
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x47ab4f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47aba6
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x47aba6
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x47aba6
xor eax, eax
inc eax
jmp 0x47aba8
xor eax, eax
leave
ret 0x10
Function at 0x47abd1
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x47ac3f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x6fc774
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47ac36
cmp dword [ebp - 0xc], 4
jne 0x47ac36
cmp dword [ebp - 0x10], edi
je 0x47ac36
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x726ad8], edi
xor eax, eax
jmp 0x47ac7e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x726ad8], edi
jge 0x47ac79
lea eax, [ebp - 0x34]
push eax
mov dword [0x726ad8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x47ac79
cmp word [ebp - 0x14], 5
jb 0x47ac79
call fcn.0047abac
test eax, eax
je 0x47ac79
emms
mov dword [0x726ad8], 1
mov eax, dword [0x726ad8]
pop edi
leave
ret

Function at 0x49cd12
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49cd4a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049adc9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ada1
jmp 0x49cd56
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49e40c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49e44e
call fcn.004a3eb7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49e44e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49e445
xor eax, eax
jmp 0x49e456
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049e45c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a43e7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a4415
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4433
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a434d
jmp 0x4a4433
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4433
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a434d
test edi, edi
mov eax, edi
jne 0x4a441d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40293c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403aa4
test esi, esi
jne 0x402972
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403b94
jmp 0x402990
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004027f0
mov edi, eax
test esi, esi
je 0x402990
cmp dword [ebx], 0
je 0x402990
dec esi
jmp 0x402979
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x413020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f08
xor eax, eax
push ebp
push 0x402f01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x413020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x413020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403928
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x414044], 0
je 0x403989
cmp word [0x414218], 0xd7b2
jne 0x403951
cmp dword [0x414220], 0
jbe 0x403951
mov eax, 0x414214
call dword [0x414230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x413068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4039b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41302c], 0
jne 0x4039a5
push 0
push 0x413060
push 0x413068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404bdb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404bdb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404da4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404c64
xor eax, eax
push ebp
push 0x404c5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004049a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404c42
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404dc4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404c42
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c64
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404d7e
cmp byte [ebp - 0xd], 0
jne 0x404cab
cmp byte [ebp - 0x12], 0
je 0x404d7e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404cc4
dec ebx
cmp byte [ebx], 0x2e
je 0x404cd3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404cc3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d7e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d10
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d7e
cmp byte [ebp - 0xd], 0
je 0x404d7e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404d7e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405414
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40547a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403d14
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402a84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405464
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405481
lea eax, [ebp - 0x10]
call fcn.00403aa4
ret

Function at 0x409578
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4095b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b94
jmp 0x4095ba
mov eax, ebx
mov edx, esi
call fcn.00403af8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4095c4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4095e5
mov al, byte [esp]
jmp 0x4095e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409c6c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409ae4
mov eax, dword [0x413500]
cmp byte [eax], 0
je 0x409ce8
mov eax, dword [0x413420]
call fcn.00402a00
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406f2c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409d30
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409d1e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4133fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x414660]
call fcn.00404964
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40a9cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40aa30
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403d14
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406aec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa37
lea eax, [ebp - 0xc]
call fcn.00403aa4
ret
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.004075d0
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.004033ec
add esp, 0x10
call fcn.00404e6e
jmp 0x401145
call fcn.00404e6e
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.004033ec
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.0040767a
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.0040764b
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.0040767a
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.0040767a
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.0040764b
pop ecx
mov dword [0x4161c8], esi
xor eax, eax
pop esi
ret