joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403600
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4420f0]
mov edx, dword [0x4420f4]
add eax, 1
adc edx, 0
mov ecx, eax
xor ecx, 1
mov dword [0x4420f0], eax
or ecx, edx
mov dword [0x4420f4], edx
je 0x4036a5
mov eax, dword [0x4420f8]
mov edx, dword [0x4420fc]
add eax, 1
adc edx, 0
mov ecx, eax
xor ecx, 1
mov dword [0x4420f8], eax
or ecx, edx
mov dword [0x4420fc], edx
je 0x403652
leave
ret
mov eax, 8
mov dword [0x4421a4], eax
mov eax, pe_nt_image_headers32
mov dword [0x4421a8], eax
mov eax, 8
mov dword [0x4421ac], eax
mov eax, 0xff0
mov dword [0x4421b0], eax
mov eax, 0x1000
mov dword [0x4421b4], eax
mov eax, 0xa
mov dword [0x4421b8], eax
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [0x4421bc]
leave
ret
mov eax, 8
mov ecx, 0x1000
mov edx, 0xa
mov dword [0x442160], eax
mov eax, pe_nt_image_headers32
mov dword [0x442164], eax
mov eax, 8
mov dword [0x442168], eax
mov eax, 0xff0
mov dword [0x44216c], eax
mov dword [0x442170], ecx
mov dword [0x442174], edx
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [0x442178]
jmp 0x40362b

Function at 0x404c50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x404c86
mov dword [0x44a520], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x442020], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x442020], eax
leave
ret
Function at 0x404d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x440984
mov dword [ebp - 0x1c], 0x404e30
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x442020], 0
mov dword [ebp - 0x44], 0x44a530
je 0x404e10
jl 0x404e50
mov dword [ebp - 0x3c], 1
mov eax, dword [0x44a520]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x404ef3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x44abd0]
mov eax, 0xffffffff
test edx, edx
je 0x404e6a
mov eax, dword [0x442024]
test eax, eax
je 0x404eaa
xor eax, eax
test eax, eax
jne 0x404ea0
mov edi, dword [0x442020]
test edi, edi
js 0x404ea0
mov dword [ebp - 0x44], 0x44a530
mov ebx, dword [0x442020]
test ebx, ebx
je 0x404e10
jmp 0x404dbe
xor esi, esi
mov dword [0x442020], esi
jmp 0x404e78
mov dword [esp], 0x442028
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x404f31
mov eax, dword [0x442024]
test eax, eax
jne 0x404e68
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x442024]
test eax, eax
je 0x404ecd
jmp 0x404e68
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404f25
mov dword [esp + 4], eax
mov eax, dword [0x44a520]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x404f5a
test edx, edx
je 0x404f45
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x442024], eax
jmp 0x404e68
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x404e06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x404f21
Function at 0x40bc80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040bc60
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40bccc
call sym.__errno
cmp dword [eax], 4
je 0x40bca0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40dc70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x44ac20]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40dcb0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40e060
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x44ac20]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40e13c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40e151
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40e110
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40e0a8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40e0b8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40e103
test edx, edx
jne 0x40e0f6
test ecx, ecx
je 0x40e0a0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40e160
cmp eax, 8
je 0x40e0a0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40e092
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40e084
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
jmp 0x40e084
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40e0fb
mov eax, dword [0x44ac20]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40e1b3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40e1de
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40e1bf
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
jmp 0x40e191
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40e1a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e1a2
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
jmp 0x40e198
Function at 0x40e2e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x44ac20]
test eax, eax
je 0x40e340
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40e360
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40e380
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40e3d0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40e302
jmp 0x40e360
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40e309
jmp 0x40e380
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40e331
lea esi, [esi]
mov eax, dword [0x44ac20]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40e41d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40e429
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40e3fe
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40e3ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e3ed
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
jmp 0x40e3dc
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
jmp 0x40e3e3
Function at 0x40e440
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x44ac20]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40e4d4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40e4f0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40e510
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40e4c8
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40e58f
mov eax, dword [0x44ac20]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40e566
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40e580
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40e540
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40e485
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40e460
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40e46b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40e46e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40e4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e4b7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40e4a9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
jmp 0x40e4a9
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40e5a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40e632
mov eax, dword [0x44ac20]
test eax, eax
je 0x40e626
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40e6a1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40e647
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40e6bf
mov eax, dword [0x44ac20]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40e692
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40e6b0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40e673
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
jmp 0x40e5c2
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40e5d7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40e615
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e615
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44ac20]
jmp 0x40e600
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
jmp 0x40e5cd
call sym._fc_key_init_once
mov eax, dword [0x44ac20]
jmp 0x40e60b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40e8a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40e8d0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x411620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x411c10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret

Function at 0x411ca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret
Function at 0x412590
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret

Function at 0x412620
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebx], 8
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [ebx + 8], 8
mov dword [ebx + 0xc], 0xff0
mov dword [ebx + 0x10], 0x1000
mov dword [ebx + 0x14], 0xa
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [ebx + 0x18]
pop eax
pop ebx
pop ebp
ret
Function at 0x412a60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x34], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x4407a4
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x412bc8
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412adf
mov eax, dword [0x4421e8]
test eax, eax
je 0x412b00
cmp dword [ebp + 0xc], 0x80
ja 0x412aca
cmp dword [0x4421e8], 1
jne 0x412b32
mov dword [ebp - 0x58], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
jne 0x412bb0
mov edi, 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], 0x4421e8
mov dword [ebp - 0x58], 0xffffffff
call method.__gnu_cxx.__atomic_add_int_volatile__int_
jmp 0x412ab8
mov dword [ebp - 0x58], 0xffffffff
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], ecx
mov dword [esp], eax
call method.__gnu_cxx::__pool_alloc_base._M_get_free_list_unsigned_int_
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
call method.__gnu_cxx::__pool_alloc_base._M_get_mutex__
mov dword [ebp - 0x28], eax
mov esi, dword [0x44abd0]
test esi, esi
jne 0x412bbe
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
test edx, edx
je 0x412bff
mov eax, dword [edx]
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x412c26
mov edx, dword [0x44abd0]
mov eax, dword [ebp - 0x28]
test edx, edx
je 0x412adf
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym.___gthr_win32_mutex_unlock
jmp 0x412adf
mov eax, 1
mov dword [esp + 4], eax
jmp 0x412b1d
mov dword [esp], eax
call sym.___gthr_win32_mutex_lock
jmp 0x412b66
mov dword [ebp - 0x58], 3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x60]
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 4], eax
mov dword [esp], ecx
call method.__gnu_cxx::__pool_alloc_base._M_refill_unsigned_int_
mov dword [ebp - 0x64], eax
jmp 0x412b7d
mov dword [ebp - 0x58], 3
call method.std.__throw_bad_alloc__
jmp 0x412b88
Function at 0x412e30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x34], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x4407cc
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x412fd9
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412f40
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x412f34
mov esi, dword [0x4421ec]
test esi, esi
je 0x412f90
mov eax, dword [ebp + 0xc]
add eax, eax
cmp eax, 0x80
mov dword [ebp - 0x68], eax
ja 0x412f60
cmp dword [0x4421ec], 1
je 0x412f60
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x58], 0xffffffff
call method.__gnu_cxx::__pool_alloc_base._M_get_free_list_unsigned_int_
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call method.__gnu_cxx::__pool_alloc_base._M_get_mutex__
mov dword [ebp - 0x28], eax
mov edx, dword [0x44abd0]
test edx, edx
jne 0x412fcc
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx]
test edx, edx
je 0x413010
mov eax, dword [edx]
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x413037
mov esi, dword [0x44abd0]
mov eax, dword [ebp - 0x28]
test esi, esi
je 0x412f40
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym.___gthr_win32_mutex_unlock
jmp 0x412f40
mov dword [ebp - 0x58], 0xffffffff
call method.std.__throw_bad_alloc__
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x68]
mov dword [esp], ecx
mov dword [ebp - 0x58], 0xffffffff
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
je 0x412fc1
mov ebx, 1
mov dword [esp + 4], ebx
mov dword [esp], 0x4421ec
mov dword [ebp - 0x58], 0xffffffff
call method.__gnu_cxx.__atomic_add_int_volatile__int_
jmp 0x412e9c
mov ecx, 0xffffffff
mov dword [esp + 4], ecx
jmp 0x412fa9
mov dword [esp], eax
call sym.___gthr_win32_mutex_lock
jmp 0x412ef4
mov eax, dword [ebp - 0x68]
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 3
call method.__gnu_cxx::__pool_alloc_base._M_refill_unsigned_int_
mov dword [ebp - 0x64], eax
jmp 0x412f0b
mov dword [ebp - 0x58], 3
call method.std.__throw_bad_alloc__
jmp 0x412f16
Function at 0x413a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x413ac0
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret