joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402040
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x402070
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x402070
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x402146
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402099
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4020a5
movsx eax, bl
jmp 0x4020dd
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402107
sub eax, 1
je 0x402107
sub eax, 2
jne 0x402146
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402125
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402146
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x402146
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040309a
mov esp, ebp
pop ebp
ret 4
Function at 0x402390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40244c
cmp byte [esi + 0x3d], 0
je 0x40244c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40243a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402401
sub eax, 1
je 0x402405
sub eax, 2
jne 0x40243a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402423
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40243a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040309a
mov esp, ebp
pop ebp
ret
Function at 0x402ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x448080]
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 dword [ebp - 0x21c], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], esi
push eax
push 0
push 0
push 0x27
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x402b73
movups xmmword [esi], xmm0
lea ecx, [ebp - 0x218]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b50
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040a2f0
jmp 0x402caa
push 0x2e
push 0x441f78
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x238], 0
call fcn.0040a2f0
push ecx
lea edx, [ebp - 0x24c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004029f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x234]
cmp dword [ebp - 0x220], 7
mov ecx, 0x4494e8
push dword [ebp - 0x224]
cmova edx, dword [ebp - 0x234]
call fcn.0040bb30
push eax
call fcn.00409b30
mov ecx, dword [ebp - 0x220]
add esp, 0xc
cmp ecx, 7
jbe 0x402c2a
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cc6
push ecx
push edx
call fcn.0041936d
add esp, 8
mov ecx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp ecx, 7
jbe 0x402c83
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cc6
push ecx
push edx
call fcn.0041936d
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
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.00419325
mov esp, ebp
pop ebp
ret
call fcn.00421825
int3
Function at 0x402cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x448080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
movlpd qword [ebp - 0x50], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x22], xmm0
movlpd qword [ebp - 0x1a], xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402e61
push 0x20
xorps xmm0, xmm0
mov dword [ebp - 0x84], eax
push 0x441fd8
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], eax
movups xmmword [ebp - 0x94], xmm0
call fcn.0040a2f0
push ecx
lea edx, [ebp - 0x94]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.004029f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 7
mov ecx, 0x4494e8
push dword [ebp - 0x6c]
cmova edx, dword [ebp - 0x7c]
call fcn.0040bb30
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00406fd0
push eax
call fcn.00409b30
mov ecx, dword [ebp - 0x68]
add esp, 4
cmp ecx, 7
jbe 0x402e10
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e06
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e8d
push ecx
push edx
call fcn.0041936d
add esp, 8
mov ecx, dword [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
cmp ecx, 7
jbe 0x402e5d
mov edx, dword [ebp - 0x94]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e8d
push ecx
push edx
call fcn.0041936d
add esp, 8
xor al, al
jmp 0x402e73
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x60]
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419325
mov esp, ebp
pop ebp
ret
call fcn.00421825
int3
Function at 0x403120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x448080]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
push 0x40
lea eax, [esp + 0x58]
mov dword [esp + 0x20], ecx
push 0
push eax
mov esi, ecx
mov dword [esp + 0x5c], 0x44
call fcn.0041af90
mov edx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, edx
mov dword [esp + 0x20], edx
add esp, 0xc
cmp eax, 0xd
jb 0x403322
cmp dword [esi + 0x14], 7
jbe 0x40317e
mov esi, dword [esi]
mov dword [esp + 0x1c], esi
lea ecx, [edx + 0xd]
mov dword [esp + 0x40], 0
mov edi, 7
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
lea esi, [esp + 0x30]
cmp ecx, edi
jbe 0x403228
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4031f1
mov eax, SysReAllocString
mov edi, SysReAllocString
add eax, eax
cmp eax, 0x1000
jb 0x403211
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x403327
push ecx
call fcn.00419338
add esp, 4
test eax, eax
je 0x40332c
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x40321c
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x403327
add eax, eax
jne 0x4031c3
xor esi, esi
jmp 0x403224
push eax
call fcn.00419338
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], esi
movups xmm0, xmmword [str.explorer.exe]
mov dword [esp + 0x40], ecx
lea ecx, [esi + 0x1a]
mov dword [esp + 0x44], edi
movups xmmword [esi], xmm0
movq xmm0, qword [0x44203c]
movq qword [esi + 0x10], xmm0
mov ax, word [0x442044]
mov word [esi + 0x18], ax
lea eax, [edx + edx]
push eax
push dword [esp + 0x20]
push ecx
call fcn.0041aa10
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2 + 0x1a], cx
lea ecx, [esp + 0x20]
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
push ecx
cmova eax, dword [esp + 0x34]
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4032bb
push 0x10
push str.Error
push str.Failed_to_open_file.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x13], 0
jmp 0x4032d2
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x44]
cmp ecx, 7
jbe 0x40330a
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403300
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40332c
push ecx
push edx
call fcn.0041936d
add esp, 8
mov ecx, dword [esp + 0x9c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.00419325
mov esp, ebp
pop ebp
ret
call fcn.00401440
call fcn.004013a0
call fcn.00421825
int3
Function at 0x4063c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4063f2
jl 0x4063e5
test ecx, ecx
jne 0x4063f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4064cf
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x406422
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x406424
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x406478
jg 0x406435
test esi, esi
je 0x406478
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x406449
jl 0x406443
cmp ecx, esi
jae 0x406449
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.0041aa10
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40649c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4064b8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x406407
jl 0x4064b8
test ecx, ecx
jne 0x406407
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40650d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40650d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0041aa10
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x406577
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x406533
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x406562
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00421150
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x406577
cmp edi, eax
ja 0x406540
test edi, edi
je 0x406577
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00421150
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409880
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437bd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x448080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00419338
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041775a
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004092b0
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
Function at 0x40ce80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43886b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x448080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
test eax, eax
je 0x40cf25
movups xmmword [esi], xmm0
lea ecx, [ebp - 0x218]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cf00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040a2f0
mov eax, esi
jmp 0x40d03f
push 7
push 0x442538
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0
call fcn.0040a2f0
push ecx
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004029f0
mov ecx, dword [ebp - 0x224]
add esp, 4
cmp ecx, 7
jbe 0x40cfa7
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d05d
push ecx
push edx
call fcn.0041936d
add esp, 8
mov eax, esi
jmp 0x40d03f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419325
mov esp, ebp
pop ebp
ret 4
call fcn.00421825
int3
Function at 0x40d3e0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438966
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x448080]
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]
lea eax, [ebp - 0x100]
push eax
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x100], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.0041af90
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.00412950
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0xf4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.00412b50
push 3
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
push 0x442674
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0
mov esi, eax
movups xmmword [ebp - 0x130], xmm0
call fcn.0040a2f0
push ecx
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.004029f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x118]
cmp dword [ebp - 0x104], 7
mov ecx, esi
push dword [ebp - 0x108]
cmova edx, dword [ebp - 0x118]
call fcn.0040bb30
mov byte [ebp - 4], 1
add esp, 8
mov ecx, dword [ebp - 0x104]
cmp ecx, 7
jbe 0x40d529
mov edx, dword [ebp - 0x118]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d51f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5bb
push ecx
push edx
call fcn.0041936d
add esp, 8
xor eax, eax
mov dword [ebp - 0x108], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x104], 7
mov word [ebp - 0x118], ax
cmp ecx, 7
jbe 0x40d585
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d57b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5bb
push ecx
push edx
call fcn.0041936d
add esp, 8
push edi
lea ecx, [ebp - 0xa8]
call fcn.00413460
lea ecx, [ebp - 0xc0]
call fcn.0040d5d0
mov eax, edi
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.00419325
mov esp, ebp
pop ebp
ret 4
call fcn.00421825
int3
Function at 0x413560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439210
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x448080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00419338
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041775a
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004092b0
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
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 0x4137d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437bd0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x448080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00419338
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041775a
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004092b0
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
Function at 0x41a0f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41a131
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a131
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a131
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a131
cmp dword [ecx + 0x74], 0xe
jbe 0x41a131
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x426c7f
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x426c99
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x426cb0
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x426d08
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0042f6b2
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x426d08
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x426d08
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x426d08
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x426d02
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x426d04
xor bl, bl
mov al, bl
jmp 0x426d0a
xor al, al
pop esi
pop ebx
leave
ret