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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10170350
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x1023d090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0xc]
xor esi, esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x100bb6c2
mov edx, esi
mov ecx, esi
shr ecx, 2
shl edx, 6
add ecx, 0x9e3779b9
add edx, dword [eax]
add eax, 4
add ecx, edx
xor esi, ecx
cmp eax, edi
jne 0x100bb6a5
mov edi, dword [ebx + 0xc]
mov eax, esi
mov ecx, 0xcc9e2d51
mul ecx
xor edx, eax
lea eax, [ebp - 0x24]
mov esi, edx
shr esi, 4
xor esi, edx
and esi, 0xf
push edx
shl esi, 6
add esi, dword [ebp - 0x1c]
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.100bc350
cmp byte [ebp - 0x20], 0
lea eax, [esi + 4]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
je 0x100bb73e
mov esi, edx
shl esi, 5
add esi, dword [eax]
push ecx
mov dword [ebp - 4], 1
lea eax, [esi + 0xc]
push edi
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 3
call fcn.100cede0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], ecx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
lea ecx, [esi + edx]
shl edx, 5
add edx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
add eax, 0x400
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], edx
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x38], ecx
add edx, esi
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
movups xmm0, xmmword [ebp - 0x40]
mov dword [ebp - 0x2c], ecx
mov cl, byte [ebp - 0x20]
movups xmmword [eax], xmm0
mov dword [ebp - 0x30], edx
movq xmm0, qword [ebp - 0x30]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x100cd480
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10171405
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1023d090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
cmp edi, dword [ebx + 0xc]
je 0x100cd678
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x100cd4d1
mov edx, dword [edi]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x100cd4f2
nop dword [eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x100cd4e0
push esi
push edi
lea eax, [ebp - 0x20]
mov ecx, 0x1024f230
push eax
call fcn.100cede0
cmp dword [ebp - 0x1c], 0
jne 0x100cd66c
cmp dword [0x1024f238], 0x7ffffff
je 0x100cd68e
mov dword [ebp - 0x2c], 0x1024f234
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
push 0x20
lfence
call fcn.100cede0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
add eax, 8
mov ecx, eax
mov dword [ebp - 0x14], eax
push edi
call fcn.100cede0
mov dword [ebp - 4], 1
mov eax, dword [0x1024f238]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10222200]
mov eax, dword [0x1024f24c]
mov dword [ebp - 0x24], eax
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10222200]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x1024f230]
comiss xmm1, xmm0
seta al
test al, al
je 0x100cd60c
divss xmm2, xmm0
movaps xmm0, xmm2
call fcn.100cede0
call fcn.10165340
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x24]
cmp eax, ecx
jae 0x100cd5e2
cmp eax, 0x200
jae 0x100cd5e0
shl eax, 3
cmp eax, ecx
jae 0x100cd5e2
mov eax, ecx
push eax
mov ecx, 0x1024f230
call fcn.100cede0
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x34]
mov ecx, 0x1024f230
push eax
call fcn.100cede0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x100cd60f
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 4]
mov eax, dword [ebp - 0x18]
inc dword [0x1024f238]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov dword [edx + 4], eax
and esi, dword [0x1024f248]
mov ecx, dword [0x1024f23c]
mov eax, dword [ecx + esi*8]
cmp eax, dword [0x1024f234]
mov eax, dword [ebp - 0x18]
jne 0x100cd64e
mov dword [ecx + esi*8], eax
jmp 0x100cd661
cmp dword [ecx + esi*8], edx
jne 0x100cd658
mov dword [ecx + esi*8], eax
jmp 0x100cd665
mov edx, dword [ebp - 0x14]
cmp dword [ecx + esi*8 + 4], edx
jne 0x100cd665
mov dword [ecx + esi*8 + 4], eax
mov dword [ebp - 4], 0xffffffff
add edi, 0x18
cmp edi, dword [ebx + 0xc]
jne 0x100cd4c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.unordered_map_set_too_long
call fcn.100cede0
int3
Function at 0x100cede0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100cedef
pop dword [ebp - 0x28]
mov eax, 0xf5e6a2c3
add eax, 0x1a264b2c
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x799afc3d
sub dword [ebp - 0x38], 0x2b48b6f2
mov dword [ebp - 0x34], 0x87180858
add dword [ebp - 0x34], 0xab1b43ed
mov dword [ebp - 0x30], 0x23f1a621
sub dword [ebp - 0x30], 0xd7a561f3
mov dword [ebp - 0x2c], 0x1c824582
sub dword [ebp - 0x2c], 0x1c824582
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa2c1c052
sub dword [ebp - 0x38], 0x2e4f56fc
mov dword [ebp - 0x34], 0xcf6e789c
add dword [ebp - 0x34], 0x71fde8d9
mov dword [ebp - 0x30], 0xa15e92d0
add dword [ebp - 0x30], 0xc210d99c
mov dword [ebp - 0x2c], 0x2b4172e3
add dword [ebp - 0x2c], 0xd4be8d1d
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xfac4a7a2
sub eax, 0xeaac5772
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x8c5bd
push 0
call eax
mov ecx, 0x8710fa3c
add ecx, 0x78ef473c
mov edx, eax
mov ebx, 0x71bef45d
sub ebx, 0x61988a5d
add ebx, dword [ebp - 0x28]
mov edi, 0xc9d900f5
sub edi, 0xa4fd249c
xor dword [ebp - 0x14], 0x6fe9cd8f
mov esi, dword [ebx]
sub dword [ebp - 0x24], edi
sub esi, edi
xor dword [ebp - 0xc], ecx
mov dword [edx], esi
add edx, 0x6583c152
add edx, 0x9a7c3eb2
add ebx, 0x2f8c918b
add ebx, 0xd0736e79
loop 0x100cef0c
add eax, 0x115a2194
add eax, 0xeea6d71f
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x100d0780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp ecx, eax
je 0x100d0849
push ebx
push esi
push edi
lea ebx, [edx + 4]
lea edi, [edx + 0x1c]
lea esi, [ecx + 0x48]
mov eax, dword [edx]
mov dword [esi - 0x48], eax
lea eax, [esi - 0x44]
cmp eax, ebx
je 0x100d07c7
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x100d07bb
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [esi - 0x44]
push eax
call fcn.100cede0
lea eax, [esi - 0x2c]
cmp eax, edi
je 0x100d07e4
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100d07d8
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [esi - 0x2c]
push eax
call fcn.100cede0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x3c]
mov dword [esi - 0x10], eax
mov dword [esi - 0xc], ecx
mov eax, dword [edx + 0x40]
mov ecx, dword [edx + 0x44]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
lea ecx, [esi + 0x10]
mov al, byte [edx + 0x48]
mov byte [esi], al
mov eax, dword [edx + 0x4c]
mov dword [esi + 4], eax
mov eax, dword [edx + 0x50]
mov dword [esi + 8], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0xc], eax
lea eax, [edx + 0x58]
push eax
call fcn.100cede0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
mov ecx, dword [edx + 0x6c]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov eax, dword [edx + 0x70]
mov dword [esi + 0x28], eax
add esi, 0x78
lea eax, [esi - 0x48]
cmp eax, dword [ebp - 8]
jne 0x100d07a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1015fd80
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1015fd91
pop esi
ret
push ebx
push edi
push esi
call fcn.100cede0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100cede0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1015fdb9
push ebx
push esi
push edi
call fcn.1013ae70
add esp, 0xc
push 0
call fcn.100cede0
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x10001550
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017aca8
mov eax, dword fs:[0]
push eax
mov eax, 0x2444
call fcn.100a7a90
mov eax, dword [0x101e3070]
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, ecx
mov dword [ebp - 0x2450], edi
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [eax + 0x434]
call fcn.10001460
push 0
push 1
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
cmovae eax, dword [ebp - 0x2c]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x244c], esi
cmp esi, 0xffffffff
je 0x1000171f
push 0
lea eax, [ebp - 0x14]
push eax
push 0x241c
lea eax, [ebp - 0x2448]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001718
nop dword [eax]
nop dword [eax + eax]
cmp dword [ebp - 0x14], 0x241c
jne 0x10001718
movaps xmm2, xmmword [0x101d9670]
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x2448]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x2448], xmm0
movups xmm0, xmmword [ebp + eax - 0x2438]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x2438], xmm1
add eax, 0x20
cmp eax, 0x2400
jl 0x10001620
cmp eax, 0x241c
jge 0x10001670
nop dword [eax]
xor byte [ebp + eax - 0x2448], 0x67
inc eax
cmp eax, 0x241c
jl 0x10001660
mov eax, dword [edi + 0x5bc]
lea esi, [edi + 0x5ac]
inc eax
cmp dword [esi + 8], eax
ja 0x1000168a
push ecx
mov ecx, esi
call fcn.10005a30
mov eax, dword [esi + 8]
dec eax
and dword [esi + 0xc], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
add ecx, dword [esi + 0xc]
dec eax
and ecx, eax
mov eax, dword [esi + 4]
lea edi, [ecx*4]
cmp dword [edi + eax], 0
jne 0x100016c9
push 0x243f
call fcn.100a66d0
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [esi + 4]
mov dword [edi + eax], ecx
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
test eax, eax
je 0x100016e8
push 0x241c
lea ecx, [ebp - 0x2448]
push ecx
push eax
call fcn.101544a0
add esp, 0xc
inc dword [esi + 0x10]
lea eax, [ebp - 0x14]
mov esi, dword [ebp - 0x244c]
push 0
push eax
push 0x241c
lea eax, [ebp - 0x2448]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x2450]
test eax, eax
jne 0x10001600
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10001734
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10005bc0
mov al, 1
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.100a66bf
mov esp, ebp
pop ebp
ret
Function at 0x100018e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ad10
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x101e3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x5f0]
test ecx, ecx
je 0x10001916
call fcn.10006b30
call fcn.10001ab0
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10001938
push 1
push eax
call edi
push dword [esi + 4]
call ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x10001949
push 1
push eax
call edi
push dword [esi + 8]
call ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000195a
push 1
push eax
call edi
push dword [esi + 0xc]
call ebx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000196b
push 1
push eax
call edi
push dword [esi + 0x10]
call ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x5c0]
push eax
call fcn.100901e2
add esp, 4
lea ecx, [esi + 0x5ac]
call fcn.10005310
push dword [esi + 0x5ac]
call fcn.10006ac0
add esp, 4
mov dword [esi + 0x5ac], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2014
call fcn.100a7a90
mov eax, dword [0x101e3070]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push 0x2004
push 0
push eax
mov esi, ecx
call fcn.10154a20
add esp, 0xc
mov dword [esp + 0x10], 0x7d1
lea eax, [esp + 0x10]
lea ebx, [edi + 0x2c]
push 0x2004
push eax
push ebx
call fcn.101544a0
add esp, 0xc
mov dword [edi + 8], 0x2004
mov ecx, edi
call fcn.10016eb0
test eax, eax
jns 0x10002d04
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2010]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.10016d90
test eax, eax
js 0x10002cea
push dword [edi + 8]
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.101544a0
add esp, 0xc
cmp dword [esp + 0x10], 0x7d2
jne 0x10002d55
mov ecx, esi
call fcn.10001ba0
cmp dword [esi + 0x600], 0
jge 0x10002d5a
call fcn.10001ab0
push 0
push 0
push esi
push 0x100019c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10002d5a
call fcn.10001ab0
mov ecx, dword [esp + 0x201c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret 4
Function at 0x10004fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
call fcn.10001550
push 0
mov dword [edi + 0x60c], 1
call fcn.1015ba74
mov esi, eax
call sub.KERNEL32.dll_GetCurrentProcessId
imul eax, esi
push eax
call fcn.101573d8
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 8
cmp dword [edi + 0x60c], 1
jne 0x10005018
push 0
push 0
push edi
push 0x10004d70
push 0
push 0
call esi
push 0
push 0
push edi
push 0x10002f00
push 0
push 0
mov dword [edi + 4], eax
call esi
mov dword [edi + 0xc], eax
cmp dword [edi + 0x60c], 2
jne 0x10005034
push 0
push 0
push edi
push 0x10004d70
push 0
push 0
call esi
mov dword [edi + 4], eax
cmp dword [edi + 0x60c], 3
jne 0x10005050
push 0
push 0
push edi
push 0x10002f00
push 0
push 0
call esi
mov dword [edi + 0xc], eax
push 0
push 0
push edi
push fcn.10004fa0
push 0
push 0
call esi
mov dword [edi + 8], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100087d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017b05a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101e3070]
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 dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.100902a8
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 0x10008890
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.10153b23
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x101e13fc
push eax
call fcn.1015404d
push edi
push esi
call fcn.10090606
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.100a66bf
mov esp, ebp
pop ebp
ret 4
Function at 0x1000cec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017b638
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101e3070]
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 + 0x38], 0
je 0x1000d05c
cmp byte [ebx + 0x3d], 0
je 0x1000d05c
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000cf19
xor al, al
jmp 0x1000d05e
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000ca10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000cf86
sub eax, 1
je 0x1000cf8a
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1000d044
xor bl, bl
jmp 0x1000d046
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1000cfbf
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10161de3
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1000cf7f
cmp byte [ebx + 0x3d], 0
je 0x1000d044
test esi, esi
jne 0x1000cf41
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
sub eax, edx
cmp eax, 8
jbe 0x1000d03a
lea esi, [edx + 8]
cmp esi, 0xfffffffe
ja 0x1000d03a
cmp ecx, esi
jae 0x1000d021
push edx
push esi
lea ecx, [ebp - 0x28]
call fcn.10006340
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x1000cf41
push 0
push 8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
call fcn.1000d2b0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
jmp 0x1000cf3e
test esi, esi
jne 0x1000cffb
cmp ecx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
jmp 0x1000cf3e
push str.string_too_long
call fcn.1008fd3e
mov bl, 1
cmp ecx, 0x10
jb 0x1000d058
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10005c20
mov al, bl
jmp 0x1000d05e
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.100a66bf
mov esp, ebp
pop ebp
ret
Function at 0x1000d3d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017b186
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101e3070]
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
call fcn.100a66d0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10090503
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 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
Function at 0x1000f010
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ad10
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x101e3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000f054
push 0
push eax
call edi
push dword [esi + 8]
call ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000f065
push 0
push eax
call edi
push dword [esi + 0xc]
call ebx
mov eax, dword [0x101ef644]
test eax, eax
je 0x1000f07b
push 0
push eax
call edi
push dword [0x101ef644]
call ebx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000f08c
push 0
push eax
call edi
push dword [esi + 0x10]
call ebx
push 0x100051a0
push 0x80
push 0x18
lea eax, [esi + 0x2c]
push eax
call fcn.100a6e87
mov eax, dword [esi + 0x28]
cmp eax, 0x10
jb 0x1000f0b6
inc eax
lea ecx, [esi + 0x14]
push eax
push dword [esi + 0x14]
call fcn.10005c20
mov dword [esi + 0x28], 0xf
cmp dword [esi + 0x28], 0x10
mov dword [esi + 0x24], 0
jb 0x1000f0e2
mov eax, dword [esi + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101e3070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp ebx, 0xffffffff
jne 0x1000f12c
or eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], 0
nop word [eax + eax]
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [edx + esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [ebp - 8]
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jl 0x1000f140
jg 0x1000f169
cmp esi, edi
jb 0x1000f140
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a66bf
mov esp, ebp
pop ebp
ret