joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40261e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4026e8
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4026ce
cmp dword [ebp - 0x10], 1
je 0x4026da
cmp dword [ebp - 0x10], 2
je 0x4026da
cmp dword [ebp + 0x18], 0
je 0x4026da
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
leave
ret
Function at 0x403254
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2bc
mov dword [ebp - 0x284], sym.___gxx_personality_sj0
mov dword [ebp - 0x280], 0x413c1a
lea eax, [ebp - 0x27c]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x4034bf
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x29c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x2a0], 0
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov dword [ebp - 0x298], 3
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
test eax, eax
jne 0x40335e
mov dword [esp + 8], 0x19c
mov dword [esp + 4], str.d:_systembuild_latest_build_output_build_source_controller_source_cpp_jlaunch_JLaunch.cpp
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.du_private_AssertHelper::du_private_AssertHelper_char_const__int_
mov dword [ebp - 0x2a0], 1
lea eax, [ebp - 0x138]
mov dword [esp + 4], str.failed_to_get_the_windows_temp_directory_path
mov dword [esp], eax
call method.du_private_AssertHelper.handleAssertionFailure2_char_const_
jmp 0x40335e
cmp dword [ebp - 0x2a0], 0
je 0x40337f
lea eax, [ebp - 0x138]
mov dword [esp], eax
mov dword [ebp - 0x298], 0xffffffff
call sym.du_private_AssertHelper::du_private_AssertHelper__
mov dword [ebp - 0x2ac], 0
lea eax, [ebp - 0x248]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4155da
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov dword [ebp - 0x298], 2
call sub.KERNEL32.dll_GetTempFileNameA
sub esp, 0x10
test eax, eax
jne 0x403457
mov dword [esp + 8], 0x19f
mov dword [esp + 4], str.d:_systembuild_latest_build_output_build_source_controller_source_cpp_jlaunch_JLaunch.cpp
lea eax, [ebp - 0x258]
mov dword [esp], eax
call sym.du_private_AssertHelper::du_private_AssertHelper_char_const__int_
mov dword [ebp - 0x2ac], 1
lea eax, [ebp - 0x258]
mov dword [esp + 4], str.failed_to_create_temp_file
mov dword [esp], eax
call method.du_private_AssertHelper.handleAssertionFailure2_char_const_
jmp 0x403457
cmp dword [ebp - 0x2ac], 0
je 0x403478
lea eax, [ebp - 0x258]
mov dword [esp], eax
mov dword [ebp - 0x298], 0xffffffff
call sym.du_private_AssertHelper::du_private_AssertHelper__
lea eax, [ebp - 0x268]
mov dword [esp], eax
call fcn.004101b4
lea eax, [ebp - 0x268]
mov dword [esp + 8], eax
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x298], 1
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sym.std::allocator_char_::allocator__
jmp 0x403532
lea eax, [ebp - 0x29c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x407ca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x414070]
mov edx, dword [0x414074]
add eax, 1
adc edx, 0
mov ecx, eax
xor ecx, 1
mov dword [0x414070], eax
or ecx, edx
mov dword [0x414074], edx
je 0x407d45
mov eax, dword [0x414078]
mov edx, dword [0x41407c]
add eax, 1
adc edx, 0
mov ecx, eax
xor ecx, 1
mov dword [0x414078], eax
or ecx, edx
mov dword [0x41407c], edx
je 0x407cf2
leave
ret
mov eax, 8
mov dword [0x4140c4], eax
mov eax, pe_nt_image_headers32
mov dword [0x4140c8], eax
mov eax, 8
mov dword [0x4140cc], eax
mov eax, 0xff0
mov dword [0x4140d0], eax
mov eax, 0x1000
mov dword [0x4140d4], eax
mov eax, 0xa
mov dword [0x4140d8], eax
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [0x4140dc]
leave
ret
mov eax, 8
mov ecx, 0x1000
mov edx, 0xa
mov dword [0x414080], eax
mov eax, pe_nt_image_headers32
mov dword [0x414084], eax
mov eax, 8
mov dword [0x414088], eax
mov eax, 0xff0
mov dword [0x41408c], eax
mov dword [0x414090], ecx
mov dword [0x414094], edx
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
setne byte [0x414098]
jmp 0x407ccb

Function at 0x409390
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 0x4093c6
mov dword [0x41b270], 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 [0x414010], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x414010], eax
leave
ret
Function at 0x4094b0
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], 0x413e6c
mov dword [ebp - 0x1c], 0x409570
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x414010], 0
mov dword [ebp - 0x44], 0x41b280
je 0x409550
jl 0x409590
mov dword [ebp - 0x3c], 1
mov eax, dword [0x41b270]
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 0x409633
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 [0x414020]
mov eax, 0xffffffff
test edx, edx
je 0x4095aa
mov eax, dword [0x414014]
test eax, eax
je 0x4095ea
xor eax, eax
test eax, eax
jne 0x4095e0
mov edi, dword [0x414010]
test edi, edi
js 0x4095e0
mov dword [ebp - 0x44], 0x41b280
mov ebx, dword [0x414010]
test ebx, ebx
je 0x409550
jmp 0x4094fe
xor esi, esi
mov dword [0x414010], esi
jmp 0x4095b8
mov dword [esp], 0x414018
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x409671
mov eax, dword [0x414014]
test eax, eax
jne 0x4095a8
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 [0x414014]
test eax, eax
je 0x40960d
jmp 0x4095a8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409665
mov dword [esp + 4], eax
mov eax, dword [0x41b270]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40969a
test edx, edx
je 0x409685
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x414014], eax
jmp 0x4095a8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409546
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x409661
Function at 0x40c040
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x41b380]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40c080
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 0x40c430
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 [0x41b380]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40c50c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40c521
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40c4e0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40c478
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40c488
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40c4d3
test edx, edx
jne 0x40c4c6
test ecx, ecx
je 0x40c470
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 0x40c530
cmp eax, 8
je 0x40c470
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 0x40c462
call sym.___w32_sharedptr_initialize
mov eax, dword [0x41b380]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40c454
call sym._fc_key_init_once
mov eax, dword [0x41b380]
jmp 0x40c454
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 0x40c4cb
mov eax, dword [0x41b380]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40c583
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40c5ae
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40c58f
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 [0x41b380]
jmp 0x40c561
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 0x40c572
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c572
call sym._fc_key_init_once
mov eax, dword [0x41b380]
jmp 0x40c568
Function at 0x40c6b0
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 [0x41b380]
test eax, eax
je 0x40c710
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40c730
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40c750
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 0x40c7a0
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 [0x41b380]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40c6d2
jmp 0x40c730
call sym._fc_key_init_once
mov eax, dword [0x41b380]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40c6d9
jmp 0x40c750
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 0x40c701
lea esi, [esi]
mov eax, dword [0x41b380]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40c7ed
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40c7f9
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40c7ce
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 0x40c7bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c7bd
call sym.___w32_sharedptr_initialize
mov eax, dword [0x41b380]
jmp 0x40c7ac
call sym._fc_key_init_once
mov eax, dword [0x41b380]
jmp 0x40c7b3
Function at 0x40c810
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 [0x41b380]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40c8a4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40c8c0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40c8e0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40c898
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40c95f
mov eax, dword [0x41b380]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40c936
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40c950
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40c910
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 0x40c855
call sym.___w32_sharedptr_initialize
mov eax, dword [0x41b380]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40c830
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x41b380]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40c83b
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 0x40c83e
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 0x40c887
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c887
call sym.___w32_sharedptr_initialize
mov eax, dword [0x41b380]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40c879
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x41b380]
jmp 0x40c879
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40c970
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 0x40ca02
mov eax, dword [0x41b380]
test eax, eax
je 0x40c9f6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40ca71
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40ca17
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 0x40ca8f
mov eax, dword [0x41b380]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40ca62
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40ca80
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40ca43
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 [0x41b380]
jmp 0x40c992
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 0x40c9a7
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 0x40c9e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c9e5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x41b380]
jmp 0x40c9d0
call sym._fc_key_init_once
mov eax, dword [0x41b380]
jmp 0x40c99d
call sym._fc_key_init_once
mov eax, dword [0x41b380]
jmp 0x40c9db
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40cc70
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 0x40cca0
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 0x40d320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x40dd88
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 0x40de18
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 0x40e708
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 0x40e798
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 0x40ebd8
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], 0x413dc8
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x40ed40
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ec57
mov eax, dword [0x414108]
test eax, eax
je 0x40ec78
cmp dword [ebp + 0xc], 0x80
ja 0x40ec42
cmp dword [0x414108], 1
jne 0x40ecaa
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 0x40ed28
mov edi, 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], 0x414108
mov dword [ebp - 0x58], 0xffffffff
call method.__gnu_cxx.__atomic_add_int_volatile__int_
jmp 0x40ec30
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 [0x414020]
test esi, esi
jne 0x40ed36
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
test edx, edx
je 0x40ed77
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 0x40ed9e
mov edx, dword [0x414020]
mov eax, dword [ebp - 0x28]
test edx, edx
je 0x40ec57
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym.___gthr_win32_mutex_unlock
jmp 0x40ec57
mov eax, 1
mov dword [esp + 4], eax
jmp 0x40ec95
mov dword [esp], eax
call sym.___gthr_win32_mutex_lock
jmp 0x40ecde
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 0x40ecf5
mov dword [ebp - 0x58], 3
call method.std.__throw_bad_alloc__
jmp 0x40ed00