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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x450958]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax + 0x10]
push esi
push edi
mov edi, ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
cmp ecx, 0x10
jb 0x402daa
mov esi, dword [eax]
jmp 0x402dac
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x402dc8
movzx eax, byte [esi + ecx]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, ebx
jb 0x402db7
mov esi, dword [edi + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [edi + 0x18], ecx
ja 0x402ddd
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov eax, dword [edi + 8]
lea edx, [eax + ecx*8]
mov ecx, dword [edi]
mov eax, dword [edx]
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], eax
mov esi, eax
mov dword [ebp - 0xc], ecx
cmp eax, ecx
jne 0x402dfa
mov eax, ecx
jmp 0x402dff
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x402efc
cmp dword [ebp - 0x10], 0x10
lea ecx, [esi + 8]
jb 0x402e17
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x402e1a
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
jb 0x402e28
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x402e8b
sub edx, 4
jb 0x402e49
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x402e4e
add ecx, 4
add edi, 4
sub edx, 4
jae 0x402e38
cmp edx, 0xfffffffc
je 0x402e82
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x402e7b
cmp edx, 0xfffffffd
je 0x402e82
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x402e7b
cmp edx, 0xfffffffe
je 0x402e82
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x402e7b
cmp edx, 0xffffffff
je 0x402e82
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x402e82
sbb eax, eax
or eax, 1
jmp 0x402e84
xor eax, eax
test eax, eax
jne 0x402e9b
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jb 0x402e9b
xor eax, eax
cmp dword [ebp - 0x14], ebx
setne al
test eax, eax
je 0x402eab
mov esi, dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
jmp 0x402df2
cmp dword [esi + 0x1c], 0x10
mov edi, dword [esi + 0x18]
lea ecx, [esi + 8]
jb 0x402eb9
mov ecx, dword [ecx]
cmp dword [ebp - 0x10], 0x10
jb 0x402ec7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, edi
cmp ebx, edi
cmovb eax, ebx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x402ef1
cmp ebx, edi
jb 0x402ef1
cmp ebx, edi
setne al
test eax, eax
jne 0x402ef1
mov dword [ebp - 8], esi
jmp 0x402ef7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e7a9
mov esp, ebp
pop ebp
ret 8
Function at 0x4046e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e5ca
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x450958]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0040d277
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x404786
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0x44169c
call fcn.0040f44e
push 0x44c124
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.0040e7b8
push edi
push esi
call fcn.0040d7eb
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e7a9
mov esp, ebp
pop ebp
ret 4
Function at 0x406bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e887
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x450958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x406c14
mov dword [edi], 0x441998
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
lea esi, [edi + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.004084c0
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00406d00
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x452da0]
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x450958]
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
cmp dword [ebx + 0x40], 0
je 0x407a95
cmp byte [ebx + 0x45], 0
je 0x407a95
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4079c4
xor al, al
jmp 0x407a97
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407a2e
dec eax
je 0x407a32
sub eax, 2
je 0x407a7e
xor bl, bl
jmp 0x407a80
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x407a64
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0040feb0
add esp, 0x10
cmp esi, eax
jne 0x407a2a
cmp byte [ebx + 0x45], 0
je 0x407a7e
test esi, esi
jne 0x4079f4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407f80
jmp 0x4079f4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x407a91
push dword [ebp - 0x28]
call fcn.0040e01f
add esp, 4
mov al, bl
jmp 0x407a97
mov al, 1
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.0040e7a9
mov esp, ebp
pop ebp
ret
Function at 0x408870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ea98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x450958]
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 ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4088ac
xor eax, eax
jmp 0x408a3c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4088da
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x4088da
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x408a3c
cmp dword [ebx + 0x50], 0
jne 0x4088e8
or eax, 0xffffffff
jmp 0x408a3c
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x408909
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x40892e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0040faec
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x408a3c
mov byte [ebp - 0x14], cl
mov ecx, 0xf
mov byte [ebp - 0x2c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x2c]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x408a26
cmp eax, 1
jg 0x408a06
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x4089d7
push dword [ebx + 0x50]
lea eax, [ebp - 0x2c]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0040feb0
add esp, 0x10
cmp esi, eax
jne 0x408a26
lea eax, [ebp - 0x14]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x408a01
test esi, esi
jne 0x408961
cmp dword [ebp - 0x1c], 0x20
jae 0x408a26
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00407f80
jmp 0x408961
mov ebx, dword [ebp + 8]
jmp 0x408a29
cmp eax, 3
jne 0x408a26
push dword [ebx + 0x50]
push dword [ebp - 0x14]
call fcn.00406a70
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x408a29
or ebx, 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x408a3a
push dword [ebp - 0x2c]
call fcn.0040e01f
add esp, 4
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.0040e7a9
mov esp, ebp
pop ebp
ret 4
Function at 0x40b160
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x450958]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
push 2
push 0
mov edi, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
js 0x40b265
lea eax, [ebp - 8]
push eax
push 0x441ee8
push 1
push 0
push 0x441f08
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40b265
mov eax, dword [ebp - 8]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x40b25c
mov eax, dword [ebp - 8]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, eax
test esi, esi
js 0x40b25c
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
js 0x40b25c
push dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
js 0x40b25c
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov esi, eax
test esi, esi
js 0x40b25c
mov eax, dword [ebp - 8]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
js 0x40b25c
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
push edx
push 0x441ef8
push eax
call dword [ecx]
mov esi, eax
test esi, esi
js 0x40b25c
mov eax, dword [ebp - 0xc]
push 1
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e7a9
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40b290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 0xc]
push ecx
movzx ecx, word [ebp + 8]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret
Function at 0x40b4a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x450958]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040f5c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x40b51f
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call fcn.00410832
add esp, 0xc
test edi, edi
je 0x40b51d
push edi
push 0x104
push ebx
call fcn.004107c6
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e7a9
mov esp, ebp
pop ebp
ret

Function at 0x40b5a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4058
call fcn.004110e0
mov eax, dword [0x450958]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3ffc
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.0040f5c0
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x4004]
push 0x1fff
push eax
call fcn.00410832
push 0x44
lea eax, [ebp - 0x4058]
push 0
push eax
call fcn.0040f5c0
add esp, 0x24
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x4058]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4004]
xorps xmm0, xmm0
push eax
push edi
mov dword [ebp - 0x4058], 0x44
movq qword [ebp - 0x4014], xmm0
movq qword [ebp - 0x400c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp + 0x24], 8
mov esi, eax
jb 0x40b663
push dword [ebp + 0x10]
call fcn.0040e01f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e7a9
mov esp, ebp
pop ebp
ret
Function at 0x40c0f0
Capabilities:
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ef7b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x450958]
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, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0x104
push ebx
push eax
mov dword [ebp - 0xbc], ebx
call fcn.0040c280
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 8]
push 0x100
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 1
lea ecx, [ebp - 0xb4]
mov esi, eax
mov dword [ebp - 0xb8], 0x441998
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00407e10
push 1
push 0x40
push 0x20
push dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
call fcn.0040be20
push 0
push ebx
push esi
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0
call fcn.0040cd70
lea ecx, [ebp - 0xb8]
call fcn.004082a0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xbc], eax
lea ecx, [ebp - 0xb4]
call fcn.00406ec0
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xbc], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.0040d957
add esp, 4
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.0040e7a9
mov esp, ebp
pop ebp
ret
Function at 0x40c550
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x450958]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040f5c0
push 0x452e48
push dword [0x4506a4]
call fcn.0040b4a0
add esp, 0x14
test eax, eax
jne 0x40c5c5
push eax
push 0x452e48
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40c5b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c5c5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e7a9
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40c609
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0041119b
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
push eax
push ecx
push 0x104
push 0x452e48
call fcn.0041095c
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040e7a9
mov esp, ebp
pop ebp
ret
Function at 0x427fbc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x450958]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00415b3f
mov dword [ebp - 0x14], eax
cmp dword [0x456228], edi
jne 0x4280ad
push 0x800
push edi
push 0x447194
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42803a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42818d
push 0x447194
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42818d
push 0x4471ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42818d
push eax
call ebx
push 0x4471b8
push esi
mov dword [0x456228], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4471c8
push esi
mov dword [0x45622c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4471dc
push esi
mov dword [0x456230], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x456238], eax
test eax, eax
je 0x4280aa
push 0x4471f8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x456234], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4280d2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4280c5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4280e7
push 4
pop eax
jmp 0x42818f
cmp dword [ebp - 0x14], edi
je 0x4280e7
push dword [0x456228]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4280cc
mov eax, dword [0x456234]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x428145
cmp dword [0x456238], esi
je 0x428145
push eax
call ebx
push dword [0x456238]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x428145
test eax, eax
je 0x428145
call ecx
test eax, eax
je 0x42813a
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 0x42813a
test byte [ebp - 8], 1
jne 0x428145
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x428175
mov eax, dword [0x45622c]
cmp eax, esi
je 0x428172
push eax
call ebx
test eax, eax
je 0x428172
call eax
mov edi, eax
test edi, edi
je 0x428172
mov eax, dword [0x456230]
cmp eax, esi
je 0x428172
push eax
call ebx
test eax, eax
je 0x428172
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x456228]
call ebx
test eax, eax
je 0x42818d
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42818f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e7a9
leave
ret
Function at 0x42c845
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418ac5
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42c87d
xor eax, eax
jmp 0x42c8a9
cmp esi, dword [ebp - 4]
je 0x42c8a6
cmp dword [ebp + 0xc], 0
je 0x42c8a6
push dword [edi + 0x9c]
call fcn.0042c453
push dword [edi + 0x9c]
mov esi, eax
call fcn.00416a68
pop ecx
pop ecx
cmp esi, eax
je 0x42c879
xor eax, eax
inc eax
pop edi
pop esi
leave
ret