joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e2c9
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x1000e2ec
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1000e2ef
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x1000e302
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x1000e309
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x100d734c]
mov ecx, dword [0x100d7348]
test eax, eax
jne 0x1000e323
test ecx, ecx
je 0x1000e338
mov eax, ecx
mov dword [0x100d734c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x1000e338
cmp edx, dword [ebp - 4]
jb 0x1000e338
cmp edx, dword [ebp - 8]
jbe 0x1000e409
mov eax, ecx
test ecx, ecx
jmp 0x1000e35c
test eax, eax
je 0x1000e357
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1000e357
cmp ecx, dword [ebp - 4]
jb 0x1000e357
cmp ecx, dword [ebp - 8]
jbe 0x1000e409
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x100d734c], eax
jne 0x1000e33e
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x1000e49b
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x1000e389
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000e49b
cmp dword [ebp - 0x30], ebx
jne 0x1000e3a8
cmp dword [ebp - 0x34], ebx
jae 0x1000e3bb
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x1000e377
jmp 0x1000e49b
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x100d734c], eax
test eax, eax
je 0x1000e49b
mov ecx, dword [0x100d7348]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x100d7348], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x1000e3fb
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x1000e4a0
cmp esi, dword [ebp - 8]
ja 0x1000e4a0
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x1000e4a2
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1000e44a
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000e4a0
cmp dword [ebp - 0x14], ebx
jne 0x1000e495
cmp dword [ebp - 0x18], ebx
jb 0x1000e495
movzx ecx, si
test ecx, ecx
je 0x1000e479
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x100d734c], eax
test eax, eax
jne 0x1000e3d7
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x1000e438
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e52b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x100d7354], edi
je 0x1000e53e
mov eax, 0x10dd
jmp 0x1000e599
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x100d7354
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x1000e537
push esi
mov esi, dword [0x100d7348]
mov dword [0x100d7350], edi
mov dword [0x100d7364], edi
mov dword [0x100d7360], edi
mov dword [0x100d7358], edi
mov dword [0x100d735c], edi
jmp 0x1000e592
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x1000e57c
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x1000e59c
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100d7354], eax
je 0x1000e5b2
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x100d7364]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1000e5fd
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1000e5ee
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x1000e5ee
call fcn.1000e4a7
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x1000e5c1
mov dword [0x100d7364], ebx
call fcn.1000e2a2
mov esi, dword [0x100d7360]
cmp esi, ebx
je 0x1000e62a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x1000e612
pop edi
pop esi
mov dword [0x100d7360], ebx
mov dword [0x100d7354], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1000e881
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x100d7358]
test eax, eax
jne 0x1000e8f1
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1000e89d
xor eax, eax
jmp 0x1000e8f0
push esi
push 8
call fcn.1000f124
mov esi, eax
pop ecx
test esi, esi
jne 0x1000e8b1
push 8
pop edi
jmp 0x1000e8cc
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000e8dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x100d735c], 0
mov dword [0x100d7358], edi
mov eax, edi
jmp 0x1000e8ef
mov eax, dword [0x100d7360]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x100d7360], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x1000eb45
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100d7354], eax
je 0x1000eb61
mov eax, 0x10dd
jmp 0x1000ec44
mov eax, dword [0x100d7358]
test eax, eax
jne 0x1000ec44
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000eb7e
push 6
pop eax
jmp 0x1000ec43
cmp dword [edi], 0
jne 0x1000eb96
push 6
pop eax
mov dword [0x100d7358], eax
mov dword [0x100d735c], edi
jmp 0x1000ec43
push ebx
push esi
push 0x18
call fcn.1000f124
mov esi, eax
pop ecx
test esi, esi
jne 0x1000ebab
push 8
pop edi
jmp 0x1000ec26
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.1000e1ff
mov ebx, dword [edi + 0x18]
pop ecx
pop ecx
movzx ecx, byte [edi + 0x17]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x1000ec1b
cmp ecx, 0x17
ja 0x1000ec1b
cmp dword [edi + 0x1c], eax
jne 0x1000ec1b
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000ebf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000ec26
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x100d7364]
mov dword [esi], eax
mov dword [0x100d7364], esi
xor eax, eax
jmp 0x1000ec41
push 9
pop edi
cmp dword [0x100d7350], edx
jne 0x1000ec2c
mov dword [0x100d7358], edi
test esi, esi
je 0x1000ec37
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 8]
mov dword [0x100d735c], eax
mov eax, edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x1000effe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10013020]
jne 0x1000f008
repz ret
jmp fcn.1000f59a
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x11092bb8
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x21eb2dc7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x465054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x402335
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x402373
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x402373
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop edi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x40245e
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x40239d
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4023d9
push dword [edi + 0x4c]
push ebx
call fcn.00429569
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, bx
jne 0x402463
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret 4
mov word [ebp - 0x28], bx
mov esi, dword [eax]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x448280]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x402431
sub eax, 1
je 0x402431
sub eax, 2
jne 0x40245e
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.00403140
add esp, 8
test al, al
movzx eax, bx
jne 0x402463
jmp 0x40245e
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40244e
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00429806
add esp, 0x10
cmp esi, eax
jne 0x40245e
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
jne 0x40235d
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042353a
mov esp, ebp
pop ebp
ret 4
Function at 0x402730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x465054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x402810
cmp byte [ebx + 0x3e], 0
je 0x402810
mov eax, dword [ebx]
push esi
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x448280]
mov ecx, ebx
call esi
mov ecx, 0xffff
cmp cx, ax
je 0x4027fe
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x448280]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x4027c6
sub eax, 1
je 0x4027ca
sub eax, 2
jne 0x4027fe
mov byte [ebx + 0x3e], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3e], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4027e7
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.00429806
add esp, 0x10
cmp esi, eax
jne 0x4027fe
cmp byte [ebx + 0x3e], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0042353a
mov esp, ebp
pop ebp
ret
Function at 0x4038f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4426ce
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x465054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
call fcn.00403820
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x448280]
mov ecx, edi
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 2
push eax
call fcn.004076e0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x448280]
mov ecx, edi
call esi
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov eax, 2
mov dword [ebp - 0x10], eax
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4039f7
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x448280]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4039f7
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x448280]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov word [ebx + 0x40], ax
jne 0x403a14
mov eax, dword [ebx + 0xc]
mov ecx, ebx
push 0
or eax, 4
push eax
call fcn.00408a70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
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 0x403b30
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44274d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x465054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
lea eax, [edi + 0x68]
mov dword [edi], 0x454948
lea esi, [edi + 0x10]
mov dword [esi], 0x454950
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
sub esp, 8
lea ebx, [edi + 0x18]
mov dword [ebp - 0x14], 1
push ebx
call fcn.004038f0
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov dword [ebp - 4], 7
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov dword [ebp - 4], 8
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00403aa0
mov byte [ebp - 4], 9
mov esi, dword [ebp + 8]
mov dword [ebx], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x10], esi
cmp dword [esi + 0x14], 8
jb 0x403c47
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov esi, dword [esi + 0x10]
xor eax, eax
cmp esi, 0x7fffffff
ja 0x403ccc
test esi, esi
je 0x403ca9
push esi
lea ecx, [ebx + 0x40]
call fcn.00409fc0
add esi, esi
mov edi, eax
push esi
push dword [ebp - 0x10]
push edi
call fcn.00425080
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0xc]
sar esi, 1
mov dword [eax], edi
mov eax, dword [ebx + 0x1c]
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, edi
sar ecx, 1
mov dword [eax], edi
mov eax, dword [ebx + 0x20]
mov dword [eax], edi
mov eax, dword [ebx + 0x30]
mov edi, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, 1
jmp 0x403cac
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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
call fcn.00420bfd
int3
Function at 0x4072d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442e9f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x465054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.004211e7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x407381
push eax
push esi
call fcn.004210a4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00420c77
int3

Function at 0x408c40
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, str.setting_envirionment_var__
mov ecx, 0x466b00
call fcn.00406890
mov edx, esi
mov ecx, eax
call fcn.00406740
mov edx, 0x4549f4
mov ecx, eax
call fcn.00406890
mov edx, edi
mov ecx, eax
call fcn.00406740
mov edx, 0x4549f0
mov ecx, eax
call fcn.00406890
push eax
call fcn.00408c00
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x408c98
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x408ca0
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
test eax, eax
jne 0x408cc9
mov edx, str._t_tERROR:_set_environment
mov ecx, 0x466b00
call fcn.00406890
push eax
call fcn.00408c00
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4163d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4452bd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x465054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x2c], 0
jb 0x416409
mov ecx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], esi
je 0x416511
mov edx, dword [eax + esi*4]
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416453
sub eax, edi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00409b80
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4164aa
movups xmm0, xmmword [ebp - 0x28]
xor edx, edx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
mov eax, 7
mov dword [ebp - 0x14], eax
add dword [ecx + 4], 0x18
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], dx
jmp 0x4164b7
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.004052f0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4164f1
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4164e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416536
push edx
push ecx
call fcn.00423548
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
inc esi
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
jmp 0x41641c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
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.0042353a
mov esp, ebp
pop ebp
ret
call fcn.0042802f
int3

Function at 0x418230
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4452bd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x465054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418265
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x41828a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret
push 0x45c07c
lea ecx, [ebp - 0x28]
call fcn.00409ce0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push esi
lea ecx, [ebp - 0x34]
call fcn.0040a970
add esp, 4
lea eax, [ebp - 0x34]
push 0x463084
push eax
call fcn.00424ffc
int3