joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c00
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ecd9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x450988]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [ebp + 8]
mov ecx, 0x3ff
and ax, cx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
movzx eax, ax
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp eax, 0xa
jne 0x402c83
push 2
push 0x4415d0
mov ecx, esi
call fcn.00402480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x13
jne 0x402ca8
push 2
push 0x4415d4
mov ecx, esi
call fcn.00402480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jne 0x402ccd
push 2
push 0x4415d8
mov ecx, esi
call fcn.00402480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xb
jne 0x402cd9
push 0x4415dc
jmp 0x402d4f
cmp eax, 0xc
jne 0x402ce5
push 0x4415e0
jmp 0x402d4f
cmp eax, 7
jne 0x402cf1
push 0x4415e4
jmp 0x402d4f
cmp eax, 0x14
jne 0x402cfd
push 0x4415e8
jmp 0x402d4f
cmp eax, 0x16
jne 0x402d09
push 0x4415ec
jmp 0x402d4f
cmp eax, 0x19
jne 0x402d15
push 0x4415f0
jmp 0x402d4f
cmp eax, 0x1f
jne 0x402d21
push 0x4415f4
jmp 0x402d4f
cmp eax, 0x15
jne 0x402d2d
push 0x4415f8
jmp 0x402d4f
cmp eax, 0x12
jne 0x402d39
push 0x4415fc
jmp 0x402d4f
mov ecx, 0x7c04
cmp ax, cx
jne 0x402d4a
push 0x441600
jmp 0x402d4f
push 0x441608
mov ecx, esi
call fcn.004017c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402e00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x450988]
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 0x402e2a
mov esi, dword [eax]
jmp 0x402e2c
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x402e48
movzx eax, byte [esi + ecx]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, ebx
jb 0x402e37
mov esi, dword [edi + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [edi + 0x18], ecx
ja 0x402e5d
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 0x402e7a
mov eax, ecx
jmp 0x402e7f
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x402f7c
cmp dword [ebp - 0x10], 0x10
lea ecx, [esi + 8]
jb 0x402e97
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x402e9a
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
jb 0x402ea8
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x402f0b
sub edx, 4
jb 0x402ec9
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x402ece
add ecx, 4
add edi, 4
sub edx, 4
jae 0x402eb8
cmp edx, 0xfffffffc
je 0x402f02
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x402efb
cmp edx, 0xfffffffd
je 0x402f02
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x402efb
cmp edx, 0xfffffffe
je 0x402f02
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x402efb
cmp edx, 0xffffffff
je 0x402f02
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x402f02
sbb eax, eax
or eax, 1
jmp 0x402f04
xor eax, eax
test eax, eax
jne 0x402f1b
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jb 0x402f1b
xor eax, eax
cmp dword [ebp - 0x14], ebx
setne al
test eax, eax
je 0x402f2b
mov esi, dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
jmp 0x402e72
cmp dword [esi + 0x1c], 0x10
mov edi, dword [esi + 0x18]
lea ecx, [esi + 8]
jb 0x402f39
mov ecx, dword [ecx]
cmp dword [ebp - 0x10], 0x10
jb 0x402f47
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.00402890
add esp, 0xc
test eax, eax
jne 0x402f71
cmp ebx, edi
jb 0x402f71
cmp ebx, edi
setne al
test eax, eax
jne 0x402f71
mov dword [ebp - 8], esi
jmp 0x402f77
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.0040f059
mov esp, ebp
pop ebp
ret 8
Function at 0x404750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee6a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x450988]
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.0040dbc9
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 0x4047f6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0x44168c
call fcn.0040fcfe
push 0x44c250
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.0040f068
push edi
push esi
call fcn.0040e13d
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.0040f059
mov esp, ebp
pop ebp
ret 4
Function at 0x406eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f1b7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x450988]
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 0x406f04
mov dword [edi], 0x441938
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.00408a00
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.00406ff0
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 [0x452dd0]
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 0x407d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x450988]
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 0x407e75
cmp byte [ebx + 0x45], 0
je 0x407e75
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x407da4
xor al, al
jmp 0x407e77
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 0x407e0e
dec eax
je 0x407e12
sub eax, 2
je 0x407e5e
xor bl, bl
jmp 0x407e60
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 0x407e44
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.00410760
add esp, 0x10
cmp esi, eax
jne 0x407e0a
cmp byte [ebx + 0x45], 0
je 0x407e5e
test esi, esi
jne 0x407dd4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00408360
jmp 0x407dd4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x407e71
push dword [ebp - 0x28]
call fcn.0040e8c9
add esp, 4
mov al, bl
jmp 0x407e77
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.0040f059
mov esp, ebp
pop ebp
ret
Function at 0x409050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x450988]
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 0x40908c
xor eax, eax
jmp 0x40921c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4090ba
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x4090ba
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 0x40921c
cmp dword [ebx + 0x50], 0
jne 0x4090c8
or eax, 0xffffffff
jmp 0x40921c
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x4090e9
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 0x40910e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0041039c
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x40921c
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 0x409206
cmp eax, 1
jg 0x4091e6
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 0x4091b7
push dword [ebx + 0x50]
lea eax, [ebp - 0x2c]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.00410760
add esp, 0x10
cmp esi, eax
jne 0x409206
lea eax, [ebp - 0x14]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x4091e1
test esi, esi
jne 0x409141
cmp dword [ebp - 0x1c], 0x20
jae 0x409206
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408360
jmp 0x409141
mov ebx, dword [ebp + 8]
jmp 0x409209
cmp eax, 3
jne 0x409206
push dword [ebx + 0x50]
push dword [ebp - 0x14]
call fcn.00406b70
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x409209
or ebx, 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x40921a
push dword [ebp - 0x2c]
call fcn.0040e8c9
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.0040f059
mov esp, ebp
pop ebp
ret 4
Function at 0x40bac0
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 0x40bb10
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f69b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x450988]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0040fe70
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040c160
xor eax, eax
add esp, 0x14
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
cmp word [ebp - 0x218], ax
jne 0x40bb9c
xor ecx, ecx
jmp 0x40bbb4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bba5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040acc0
push 1
push 0x441bf8
lea ecx, [ebp - 0x230]
call fcn.0040acc0
push 0xf
push 0x441c18
lea ecx, [ebp - 0x230]
call fcn.0040acc0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40bc5d
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
lea eax, [eax*2 + 2]
push eax
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
push 1
push esi
push edi
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x238]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 8
jb 0x40bc74
push dword [ebp - 0x230]
call fcn.0040e8c9
add esp, 4
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.0040f059
mov esp, ebp
pop ebp
ret
Function at 0x40c0d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x450988]
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.0040fe70
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 0x40c14f
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call fcn.00411190
add esp, 0xc
test edi, edi
je 0x40c14d
push edi
push 0x104
push ebx
call fcn.00411076
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f059
mov esp, ebp
pop ebp
ret

Function at 0x40c160
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x450988]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040fe70
push esi
push dword [0x450678]
call fcn.0040c0d0
add esp, 0x14
test eax, eax
jne 0x40c1d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40c1be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c1d2
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f059
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 0x40c210
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004110e2
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
push eax
push ecx
push dword [ebp + 0xc]
push esi
call fcn.004112ba
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040f059
mov esp, ebp
pop ebp
ret

Function at 0x40c230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4058
call fcn.00411ad0
mov eax, dword [0x450988]
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.0040fe70
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.00411190
push 0x44
lea eax, [ebp - 0x4058]
push 0
push eax
call fcn.0040fe70
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 0x40c2f3
push dword [ebp + 0x10]
call fcn.0040e8c9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f059
mov esp, ebp
pop ebp
ret
Function at 0x40c310
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f773
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push esi
mov eax, dword [0x450988]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00402350
call fcn.0040be60
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40c3b1
lea ecx, [ebp - 0xd0]
call fcn.00407080
push 0x441c94
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00408840
push eax
call fcn.00403fe0
add esp, 8
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0
call fcn.004073d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
jmp 0x40c3b3
xor esi, esi
cmp dword [ebp + 0x1c], 0x10
jb 0x40c3c4
push dword [ebp + 8]
call fcn.0040e8c9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c9a0
Capabilities:
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f85b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x450988]
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.0040cb30
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], 0x441938
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.004081f0
push 1
push 0x40
push 0x20
push dword [ebp - 0xbc]
lea ecx, [ebp - 0xb8]
call fcn.0040c6d0
push 0
push ebx
push esi
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0
call fcn.0040a520
lea ecx, [ebp - 0xb8]
call fcn.00408770
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.004071b0
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.0040e2a9
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.0040f059
mov esp, ebp
pop ebp
ret