joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003ed0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov edx, dword [ebp + 8]
mov eax, closesocket
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
cmova ebx, eax
mov dword [esp + 0x18], esi
push edi
mov dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x38]
cmp eax, edi
jae 0x10003f42
mov ecx, dword [esi + 0x28]
sub edi, eax
cmp ebx, edi
ja 0x10003f27
push ebx
add eax, ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add dword [esi + 0x34], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
add ecx, eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x34], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [esi + 0x14]
mov ecx, dword [esi + 4]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.10002930
add esp, 0x10
test eax, eax
jg 0x10003f69
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi + 4]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
cmp ebx, 0x1000
jae 0x10004000
mov eax, dword [esi + 0x28]
mov ebx, edi
mov esi, eax
nop dword [eax]
push 0
push 0x1000
push esi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x10003fb2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x10003f90
test edi, edi
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0xc]
jle 0x10003f37
mov eax, dword [esi + 0x28]
cmp edi, ebx
jg 0x10003fdf
push edi
push eax
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push eax
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
push dword [esp + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x1000401f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x10004000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10004030
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x10022040]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x1c]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ebx, [eax + 1]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x100040a9
call edi
cmp dword [eax], 4
je 0x10004085
test esi, esi
jle 0x10004107
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
call fcn.100029b0
test al, al
je 0x10004107
mov ebx, dword [ebp + 0xc]
mov eax, closesocket
cmp ebx, eax
cmova ebx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
nop
push 0
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x100040ee
call edi
cmp dword [eax], 4
mov eax, dword [esp + 0xc]
je 0x100040d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x124]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret 8

Function at 0x100041a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x10022040]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100041f3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.10002dd0
add esp, 8
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.100194e0
mov esp, ebp
pop ebp
ret 8
Function at 0x10004680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ab08
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10022040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0xffffffff
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x34]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1001951f
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
movups xmmword [edi + 0x3c], xmm0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0xf
mov byte [edi + 0x3c], 0
movups xmmword [edi + 0x54], xmm0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xf
mov byte [edi + 0x54], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xbc], 0
mov word [edi + 0xc0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ae70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1000aea1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1000ae90
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1000b530
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp edx, eax
je 0x1000b6a2
cmp dword [edx + 0x1c], 0xf
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 0x18], eax
lea ebx, [edx + 8]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 0xc], eax
mov esi, edx
jbe 0x1000b569
mov ebx, dword [edx + 8]
mov eax, dword [edx + 0x18]
xor edx, edx
push edi
mov edi, 0x811c9dc5
test eax, eax
je 0x1000b594
mov ecx, eax
nop word [eax + eax]
movzx eax, byte [ebx + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1000b580
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
push ecx
lea ecx, [edi + 8]
call fcn.100110f0
push 0x38
push edi
call fcn.100194ee
mov eax, dword [ebp - 8]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x14]
je 0x1000b5fe
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x1000b5b0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x1000b697
mov ecx, dword [ebp - 0x10]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
jne 0x1000b610
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x1000b613
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x1000b697
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea edi, [esi + 8]
jbe 0x1000b62c
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x18]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x1000b651
nop word [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x1000b640
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
and edx, dword [ecx + 0x18]
lea eax, [eax + edx*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
push ecx
lea ecx, [edi + 8]
call fcn.100110f0
push 0x38
push edi
call fcn.100194ee
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [ecx + 8]
cmp ebx, dword [ebp - 0x14]
je 0x1000b6a8
cmp esi, eax
jne 0x1000b666
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x1000b620
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10010ce0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10022040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
cmp byte [ecx + 0xd], 0
jne 0x10010dfb
lea edi, [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x88
mov dword [ebp - 0x1c], 0
call fcn.1001951f
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
lea esi, [ebx + 0x10]
push edi
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.1000b380
add esi, 0x18
mov byte [ebp - 4], 1
add edi, 0x18
mov dword [ebp - 0x2c], esi
push edi
mov ecx, esi
call fcn.1000b380
lea eax, [edi + 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.1000b380
lea eax, [edi + 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x30]
call fcn.1000b380
lea eax, [edi + 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x48]
call fcn.1000b380
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
mov word [ebx + 0xc], 0
mov dword [ebx + 4], eax
mov al, byte [edi + 0xc]
mov byte [ebx + 0xc], al
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
push ebx
mov dword [ebp - 4], 5
mov ecx, esi
push dword [edi]
call fcn.10010ce0
push ebx
mov dword [ebx], eax
mov ecx, esi
push dword [edi + 8]
call fcn.10010ce0
mov dword [ebx + 8], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
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.00407580
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.004033a6
add esp, 0x10
call fcn.00404e28
jmp 0x401145
call fcn.00404e28
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.004033a6
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 0x40124b
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x104
test eax, eax
jne 0x40130b
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push dword [0x416174]
mov dword [ebp - 0xc], 1
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ProgramFilesDir
push dword [ebp - 4]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161e0], eax
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [0x416174]
mov dword [ebp - 8], edi
push eax
push 0
push str.CommonFilesDir
push dword [ebp - 4]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161e4], eax
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [0x416174]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
mov dword [0x4161e8], eax
push str.SYSTEM32
push dword [0x416174]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161f0], eax
pop ecx
push edi
push dword [0x416174]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161ec], eax
pop ecx
push dword [0x416174]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x416174]
cmp byte [ecx + eax - 1], 0x5c
lea eax, [ecx + eax - 1]
jne 0x4013aa
and byte [eax], 0
push dword [0x416174]
call fcn.004014a9
test eax, eax
pop ecx
je 0x4013d7
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161f4], eax
pop ecx
jmp 0x40141d
push dword [0x4161e8]
push dword [0x416174]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.TEMP
push dword [0x416174]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
push dword [0x416174]
mov dword [0x4161f4], eax
call fcn.00401521
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401457
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and byte [ebp - 8], 0
push edi
xor eax, eax
lea edi, [ebp - 7]
cmp dword [0x4161c8], eax
stosd dword es:[edi], eax
pop edi
je 0x4014a5
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0x4150b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push dword [0x4161c8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x416304
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
leave
ret
xor eax, eax
leave
ret
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.0040762a
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.004075fb
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.0040762a
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.0040762a
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.004075fb
pop ecx
mov dword [0x4161c8], esi
xor eax, eax
pop esi
ret
Function at 0x40351a
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 0x40359e
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 0x4035bf
cmp dword [ebp + 0x10], 0
jne 0x4035bf
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x4035fa
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 0x4035f1
push dword [0x416174]
push ebx
call esi
push 2
push ebx
call edi
mov ebx, eax
jmp 0x4035bf
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x403601
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.00405baa
lea eax, [ebp - 0x104]
push eax
call fcn.00405be9
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x403666
cmp eax, 2
jne 0x403692
cmp byte [ebp - 0x103], 0x3a
jne 0x403692
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
call fcn.004036bb
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 0x4036af
xor eax, eax
test esi, esi
setne al
dec eax
dec eax
jmp 0x4036b7
xor eax, eax
test esi, esi
sete al
inc eax
pop edi
pop esi
leave
ret