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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448d60
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x45d020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d020
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.0042ed20
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042de30
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, esi
call fcn.0042dac0
mov ebx, dword [ebp - 0x10]
mov edi, eax
test edi, edi
js 0x42e34a
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.0042df70
mov edi, eax
test edi, edi
js 0x42e34a
push 0
push 0x80000080
push 2
lea ecx, [ebp - 0x34]
call fcn.0042ed90
push eax
push 5
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x44], eax
cmp eax, 0xffffffff
je 0x42e34a
cmp dword [esi + 0x30], 0
jne 0x42e307
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0042ed40
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x42e370
test eax, eax
jle 0x42e36e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0042ed40
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e39f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
Function at 0x42e910
Capabilities:
Check os version
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x45d274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x118], 0x114
call fcn.00431420
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42e9e6
cmp dword [ebp - 0x114], 5
push edi
jne 0x42e973
cmp dword [ebp - 0x110], 1
mov edi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
je 0x42e978
mov edi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 0x18
push edi
push 0
push esi
call ebx
test eax, eax
jne 0x42e9d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x42e9ae
push 8
push 0x18
push edi
push 0
push esi
call ebx
test eax, eax
jne 0x42e9d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0
test eax, eax
jle 0x42e9c2
and eax, 0xffff
or eax, 0x80070000
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eecf
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eecf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e9c4
mov ecx, dword [ebp - 4]
and eax, 0xffff
xor ecx, ebp
or eax, 0x80070000
pop esi
call fcn.0042eecf
mov esp, ebp
pop ebp
ret
Function at 0x42ea70
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448e00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42ebf0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42ebf0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x42ebf0
cmp dword [esi], 0
je 0x42ebd7
mov ecx, dword [eax]
test ecx, ecx
je 0x42ebd7
mov eax, dword [ebx]
test eax, eax
je 0x42ebd7
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x42eb31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
test eax, eax
jle 0x42ebf5
and eax, 0xffff
or eax, 0x80070000
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
mov eax, dword [ebp + 8]
cmp eax, dword [ebx]
jbe 0x42eb79
push eax
mov dword [ebp - 4], 0
call fcn.0042c525
mov edx, dword [esi]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
add esp, 4
push ecx
push edx
push eax
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.0042f00b
mov ecx, dword [esi]
push ecx
call fcn.0042efaf
mov edx, dword [ebp + 8]
mov dword [esi], edi
mov edi, dword [ebp - 0x14]
add esp, 0x14
mov dword [ebx], edx
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
push eax
mov eax, dword [edi + 8]
push ecx
push edx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x42ebc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42eb0b
xor eax, eax
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
mov eax, 0x80070057
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
mov eax, 0x80004003
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 0x42ec10
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
test eax, eax
je 0x42ed0f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42ed0f
push edi
lea edi, [esi + 8]
push edi
push 1
mov dword [eax], 0
mov eax, dword [esi]
push 0x660e
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x42eca0
mov ecx, dword [esi + 4]
mov edx, dword [edi]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptExportKey]
push 0
push 0x40
push 1
push ecx
push edx
call ebx
test eax, eax
je 0x42eca0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 4]
call fcn.00402da0
test al, al
jne 0x42ec87
mov esi, 0x8007000e
jmp 0x42ecb6
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [edi]
push eax
push 0x40
push 1
push ecx
push edx
call ebx
test eax, eax
jne 0x42ecf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42ecb4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x42ecc9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [edi], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0
push edx
mov dword [ecx], 0
call fcn.0042efaf
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push 0
mov dword [ecx], eax
call fcn.0042efaf
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42eecf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d274]
jne 0x42eed9
repz ret
jmp fcn.00434581
Function at 0x4420a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45d274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004370d8
and dword [ebp - 0x14], 0
cmp dword [0x460300], 0
mov dword [ebp - 0x18], eax
jne 0x442155
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4421fd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x450914
push ebx
call edi
test eax, eax
je 0x4421fd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x460300], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x460304], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x460308], eax
call edi
push eax
call esi
mov dword [0x460310], eax
test eax, eax
je 0x442155
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46030c], eax
mov eax, dword [0x46030c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4421ae
cmp dword [0x460310], ecx
je 0x4421ae
push eax
call esi
push dword [0x460310]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4421ae
test ebx, ebx
je 0x4421ae
call edi
test eax, eax
je 0x4421a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4421a5
test byte [ebp - 8], 1
jne 0x4421ae
or dword [ebp + 0x10], 0x200000
jmp 0x4421e1
mov eax, dword [0x460304]
cmp eax, dword [ebp - 0x18]
je 0x4421e1
push eax
call esi
test eax, eax
je 0x4421e1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4421e1
mov eax, dword [0x460308]
cmp eax, dword [ebp - 0x18]
je 0x4421e1
push eax
call esi
test eax, eax
je 0x4421e1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x460300]
call esi
test eax, eax
je 0x4421fd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4421ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eecf
leave
ret
Function at 0x402b3f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x170
mov dword [ebp - 0xc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x402cf7
lea ebx, [ebp - 0x14c]
mov eax, 0
mov edx, 0x10
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
test eax, eax
je 0x402c08
mov eax, dword [ebp - 0x14]
cmp eax, 0x40
jne 0x402c08
movzx eax, word [ebp - 0x14c]
cmp ax, 0x5a4d
jne 0x402c08
mov eax, 1
jmp 0x402c0d
mov eax, 0
test al, al
je 0x402ce9
mov eax, dword [ebp - 0x110]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
call sym._GetLastError_0
test eax, eax
sete al
test al, al
je 0x402ce9
lea ebx, [ebp - 0x10c]
mov eax, 0
mov edx, 0x3e
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xf8
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
test eax, eax
je 0x402cb6
mov eax, dword [ebp - 0x14]
cmp eax, 0xf8
jne 0x402cb6
mov eax, dword [ebp - 0x10c]
cmp eax, 0x4550
jne 0x402cb6
mov eax, 1
jmp 0x402cbb
mov eax, 0
test al, al
je 0x402ce9
movzx eax, word [ebp - 0x108]
cmp ax, 0x14c
jne 0x402cd5
mov dword [ebp - 0xc], 1
jmp 0x402ce9
movzx eax, word [ebp - 0x108]
cmp ax, 0x8664
jne 0x402ce9
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x402d06
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x403714
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call method.PathInfo.PathInfo_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
sub esp, 4
lea eax, [ebp - 0x2c]
mov dword [esp + 4], 0x42c268
lea edx, [ebp - 0x28]
mov dword [esp], edx
mov ecx, eax
call method.PathInfo.resolve_wchar_t_const__const
sub esp, 8
lea eax, [ebp - 0x2c]
mov ecx, eax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov dword [esp], eax
call sym._GetFileAttributesW_4
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4037a3
lea eax, [ebp - 0x28]
mov ecx, eax
call method.PathInfo.dirname___const
lea edx, [ebp - 0x10]
mov dword [esp], eax
mov ecx, edx
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
lea edx, [ebp - 0x10]
mov dword [esp], edx
mov ecx, eax
call method.std.function_void__std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____::operator___std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____const
sub esp, 4
lea eax, [ebp - 0x10]
mov ecx, eax
call sym.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea eax, [ebp - 0x2c]
mov ecx, eax
call sym.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea eax, [ebp - 0x28]
mov ecx, eax
call method.PathInfo.PathInfo__
jmp 0x4037ed
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x404bd4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
cmp dword [ebp + 0xc], 0
je 0x404bec
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
test ax, ax
jne 0x404c08
mov dword [esp], 0x57
call sym._SetLastError_4
sub esp, 4
mov ecx, dword [ebp + 8]
call fcn.0041df10
jmp 0x404d02
lea eax, [ebp - 0xa]
mov ecx, eax
call fcn.0041bfd0
lea eax, [ebp - 0x18]
lea edx, [ebp - 0xa]
mov dword [esp + 4], edx
mov dword [esp], 0x1000
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.vector_unsigned_int__std::allocator_wchar_t__const_
sub esp, 8
lea eax, [ebp - 0xa]
mov ecx, eax
call sym.std::allocator_wchar_t_::allocator__
lea eax, [ebp - 0x18]
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.size___const
mov ebx, eax
lea eax, [ebp - 0x18]
mov dword [esp], 0
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.operator___unsigned_int_
sub esp, 4
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._GetPrivateProfileStringW_24
sub esp, 0x18
lea eax, [ebp - 9]
mov ecx, eax
call fcn.0041bfd0
lea eax, [ebp - 0x18]
mov dword [esp], 0
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.operator___unsigned_int_
sub esp, 4
lea edx, [ebp - 9]
mov dword [esp + 4], edx
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
sub esp, 8
lea eax, [ebp - 9]
mov ecx, eax
call sym.std::allocator_wchar_t_::allocator__
lea eax, [ebp - 0x18]
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.vector__
jmp 0x404d02
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4054ec
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.toTString_std::string_const_
lea eax, [ebp - 0xc]
mov ecx, eax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov dword [esp], eax
call sym._OutputDebugStringW_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, eax
call method.std::list_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____std::allocator_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_______.size___const
cmp eax, 9
setbe al
test al, al
je 0x405548
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
lea edx, [ebp - 0xc]
mov dword [esp], edx
mov ecx, eax
call sym.std::list_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____std::allocator_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_______::push_back_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
sub esp, 4
lea eax, [ebp - 0xc]
mov ecx, eax
call sym.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x40556c
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x411280
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4112d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x41139b
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x411321
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x411309
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym._VirtualProtect_16
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x411319
cmp ecx, 0x40
je 0x411319
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call dbg.__report_error
lea esi, [esi]
lea edi, [edi]

Function at 0x414350
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [0x443088], 0xffffffff
call sym._CreateSemaphoreA_16
sub esp, 0x10
mov dword [0x44308c], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x4143b1
mov dword [esp + 4], sym._emutls_destroy
mov dword [esp], eax
mov dword [0x443084], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x4143b8
leave
ret
call sym._GetLastError_0
jmp 0x4143ab
nop
lea esi, [esi]
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4143d0
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 ebx, dword [0x443044]
mov eax, dword [ebp + 8]
test ebx, ebx
jne 0x4143f5
mov eax, dword [eax + 8]
test eax, eax
je 0x41444b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [eax + 8]
test edi, edi
je 0x41445b
mov esi, dword [0x443084]
call sym._GetLastError_0
mov dword [esp], esi
mov ebx, eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call sym._SetLastError_4
sub esp, 4
test esi, esi
je 0x4144db
mov edx, dword [esi]
cmp edi, edx
ja 0x414528
lea esi, [esi + edi*4 - 4]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4143ed
mov eax, dword [ebp + 8]
call sym._emutls_alloc
mov dword [esi + 4], eax
jmp 0x4143ed
mov eax, dword [ebp + 8]
call sym._emutls_alloc
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x4143ed
cmp dword [0x443044], 0
je 0x414486
cmp dword [0x427014], 0
je 0x4145ae
mov dword [esp], 0x443088
call sym._InterlockedIncrement_4
test eax, eax
push ecx
jne 0x41457d
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
test edi, edi
je 0x4145fa
cmp dword [0x443044], 0
je 0x4143fc
mov dword [esp], 0x443088
call sym._InterlockedDecrement_4
test eax, eax
push ecx
js 0x4143fc
mov eax, dword [0x44308c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x4143fc
lea eax, [edi + 0x21]
lea edx, [edi + 0x20]
mov dword [esp + 4], 4
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call sym._calloc
mov edx, dword [ebp - 0x1c]
test eax, eax
mov esi, eax
je 0x414613
mov dword [eax], edx
mov eax, dword [0x443084]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._TlsSetValue_8
test eax, eax
push edx
push edx
jne 0x414433
call sym._GetLastError_0
jmp 0x414433
lea eax, [edx + edx]
cmp edi, eax
lea ecx, [edi + 0x20]
cmovbe ecx, eax
lea eax, [ecx*4 + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
call sym._realloc
test eax, eax
mov esi, eax
je 0x414613
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax], ecx
sub ecx, edx
shl ecx, 2
lea eax, [eax + edx*4 + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
jmp 0x414503
mov eax, dword [0x44308c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
test eax, eax
push esi
push esi
je 0x414486
mov dword [esp], 0x443088
call sym._InterlockedDecrement_4
push ebx
jmp 0x414486
mov dword [esp], 0x427018
call sym._InterlockedIncrement_4
test eax, eax
push edx
jne 0x4145ce
jmp 0x4145e9
mov dword [esp], 0
call sym._Sleep_4
push edi
cmp dword [0x427014], 0
je 0x4145c1
cmp dword [0x443044], 0
je 0x414486
jmp 0x414471
call sym._emutls_init
mov dword [0x427014], 1
jmp 0x4145d7
mov eax, dword [0x443080]
lea edi, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [0x443080], edi
mov dword [eax + 8], edi
jmp 0x414494
call sym._abort
nop
lea esi, [esi]