joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2e6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x4e2e92
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x4e2ecc
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e2ee6
push 0xc9
push str.dlgprop.cpp
call fcn.004f5580
test eax, eax
je 0x4e2ee6
int3
xor eax, eax
test eax, eax
jne 0x4e2ecc
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x4e2fc1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x4e2f91
push 0x60d93c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4e2f3e
push 0xe1
push str.dlgprop.cpp
call fcn.004f5580
test eax, eax
je 0x4e2f3e
int3
xor ecx, ecx
test ecx, ecx
jne 0x4e2f24
cmp dword [ebp - 0x18], 0
je 0x4e2f8f
push 0x60d958
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4e2f85
mov eax, 1
test eax, eax
je 0x4e2f7f
push 0xe6
push str.dlgprop.cpp
call fcn.004f5580
test eax, eax
je 0x4e2f7f
int3
xor ecx, ecx
test ecx, ecx
jne 0x4e2f62
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4e2fc1
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x4e2fc1
mov ecx, 1
test ecx, ecx
je 0x4e2fbb
push 0xed
push str.dlgprop.cpp
call fcn.004f5580
test eax, eax
je 0x4e2fbb
int3
xor edx, edx
test edx, edx
jne 0x4e2f9e
call fcn.0050c6a3
cmp dword [eax + 0x2038], 0
je 0x4e2fde
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004e2e23
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004e2ce5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x4e300e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x4e3023
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x50b96c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x50b992
push 0x146
push str.afxtls.cpp
call fcn.004f5580
test eax, eax
je 0x50b992
int3
xor eax, eax
test eax, eax
jne 0x50b978
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x50b9b1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x50ba34
cmp dword [ebp + 0xc], 0
je 0x50b9d4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x50ba19
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x50ba00
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x50ba07
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x50ba2f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x50ba2f
mov dword [ebp - 4], 0
jmp 0x50b9a8
cmp dword [ebp - 4], 0
je 0x50baa8
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.0050c030
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x50ba93
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x50ba9a
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x50bab1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x50baf4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50baf2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0050b96c
jmp 0x50bb29
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.0050c050
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50bb29
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0050b96c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x50bb02
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x518e0e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x518eba
cmp dword [ebp + 8], 0
je 0x518eba
lea edx, [ebp - 0xc]
push edx
push 0x6159f4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004197d0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53bf1f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.004a83b0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x53bf83
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x53bfb0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x53bfb0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.004f9414
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x53c08a
call fcn.004f9403
cmp eax, dword [ebp + 8]
je 0x53bfdd
jmp 0x53c08a
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x53c015
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x53c06a
cmp dword [ebp - 0x1c], 0x202
je 0x53c039
cmp dword [ebp - 0x1c], 0x205
je 0x53c039
cmp dword [ebp - 0x1c], 0x201
je 0x53c039
cmp dword [ebp - 0x1c], 0x204
jne 0x53c03b
jmp 0x53c08a
cmp dword [ebp - 0x1c], 0x100
jne 0x53c04c
cmp dword [ebp - 0x18], 0x1b
jne 0x53c04c
jmp 0x53c08a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.004ff1e6
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x622a94]
jbe 0x53c085
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x53bfc1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x55303b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55898f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
mov ecx, 0x6206e0
call fcn.0050a7c0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
jne 0x5530ec
cmp dword [ebp + 8], 0
jne 0x55307e
lea ecx, [ebp - 0x1a0]
mov dword [ebp + 8], ecx
mov word [ebp - 0x1a8], 0x101
mov edx, dword [ebp + 8]
push edx
mov ax, word [ebp - 0x1a8]
push eax
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
je 0x5530ae
xor eax, eax
jmp 0x55324f
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 1
jne 0x5530d6
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
sar ecx, 8
and ecx, 0xff
and ecx, 0xff
cmp ecx, 1
je 0x5530e2
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x55324f
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x552ff8
call fcn.0050c704
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
cmp dword [eax + 0x30], 0
jne 0x553168
push 0x54
push str.sockcore.cpp
push 0x1c
call fcn.0049bb6f
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1b4], 0
je 0x55313c
push 0xa
mov ecx, dword [ebp - 0x1b4]
call fcn.00493650
mov dword [ebp - 0x1c8], eax
jmp 0x553146
mov dword [ebp - 0x1c8], 0
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1b0]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0x1ac]
cmp dword [ecx + 0x34], 0
jne 0x5531d9
push 0x56
push str.sockcore.cpp
push 0x1c
call fcn.0049bb6f
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1bc], 0
je 0x5531ad
push 0xa
mov ecx, dword [ebp - 0x1bc]
call fcn.00493650
mov dword [ebp - 0x1cc], eax
jmp 0x5531b7
mov dword [ebp - 0x1cc], 0
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1b8], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1b8]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0x1ac]
cmp dword [edx + 0x38], 0
jne 0x55324a
push 0x58
push str.sockcore.cpp
push 0x1c
call fcn.0049bb6f
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1c4], 0
je 0x55321e
push 0xa
mov ecx, dword [ebp - 0x1c4]
call fcn.0048dee0
mov dword [ebp - 0x1d0], eax
jmp 0x553228
mov dword [ebp - 0x1d0], 0
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1c0]
mov dword [ecx + 0x38], edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x553537
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0041f420
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x553581
mov dword [ebp - 0x30], 0
jmp 0x5535b6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 3
and al, 0xfc
call fcn.004218d0
mov dword [ebp - 0x34], esp
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00402920
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x14], 2
cmp dword [ebp - 0x1c], 0
jne 0x5535d4
push 0
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x10], eax
jmp 0x5535fa
mov edx, dword [ebp - 0x1c]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x5535f4
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
xor eax, eax
jmp 0x553616
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov cx, word [ebp + 8]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.0055510e
lea esp, [ebp - 0x34]
mov esp, ebp
pop ebp
ret 8

Function at 0x55422a
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x401390
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.0040d180
call sym.___main
mov dword [ebp - 4], 1
mov dword [ebp - 8], 2
cmp dword [ebp - 8], 4
jg 0x401437
mov dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 7
jg 0x401430
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x4013e5
jmp 0x401430
mov dword [ebp - 0x10], 2
cmp dword [ebp - 0x10], 8
jg 0x401429
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x401429
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
je 0x401429
mov eax, dword [ebp - 4]
mov dword [0x443014], eax
mov eax, dword [ebp - 8]
mov dword [0x443018], eax
mov eax, dword [ebp - 0xc]
mov dword [0x44301c], eax
mov eax, dword [ebp - 0x10]
mov dword [0x443020], eax
lea eax, [ebp - 0x10]
inc dword [eax]
jmp 0x4013ec
lea eax, [ebp - 0xc]
inc dword [eax]
jmp 0x4013d5
lea eax, [ebp - 8]
inc dword [eax]
jmp 0x4013c8
mov dword [esp + 4], str.1_478
mov dword [esp], 0x443590
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], 0x440002
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], 0x440004
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], 0x440002
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], 0x440006
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], 0x440002
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], 0x440008
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov dword [esp], eax
call method.std::ostream.operator___std::ostream____std::ostream__
mov dword [esp + 4], 0x44000a
mov dword [esp], 0x443590
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], str.pause
call sym._system
mov eax, 0
leave
ret
Function at 0x4093b0
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 0x4093e6
mov dword [0x447730], 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 [0x43f040], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret

Function at 0x4094d0
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], 0x43e744
mov dword [ebp - 0x1c], 0x409590
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x447740
je 0x409570
jl 0x4095b0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447730]
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 0x409653
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 [0x447d20]
mov eax, 0xffffffff
test edx, edx
je 0x4095ca
mov eax, dword [0x43f044]
test eax, eax
je 0x40960a
xor eax, eax
test eax, eax
jne 0x409600
mov edi, dword [0x43f040]
test edi, edi
js 0x409600
mov dword [ebp - 0x44], 0x447740
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x409570
jmp 0x40951e
xor esi, esi
mov dword [0x43f040], esi
jmp 0x4095d8
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x409691
mov eax, dword [0x43f044]
test eax, eax
jne 0x4095c8
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 [0x43f044]
test eax, eax
je 0x40962d
jmp 0x4095c8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409685
mov dword [esp + 4], eax
mov eax, dword [0x447730]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x4096ba
test edx, edx
je 0x4096a5
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x4095c8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409566
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x409681
Function at 0x40b190
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.0040b170
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b1dc
call sym.__errno
cmp dword [eax], 4
je 0x40b1b0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d1b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x447d70]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d1f0
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