joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ade0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40ae12
jl 0x40ae05
test ecx, ecx
jne 0x40ae12
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40aed2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004042b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40ae7e
jg 0x40ae3d
test esi, esi
je 0x40ae7e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40ae55
mov eax, dword [esp + 0x10]
jl 0x40ae4f
cmp eax, esi
jae 0x40ae55
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004376f0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40ae9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40aebb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40ae24
jl 0x40aebb
test ecx, ecx
jne 0x40ae24
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40af16
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40af16
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004376f0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40af87
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40af3c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40af72
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0043c634
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40af87
cmp edi, eax
ja 0x40af50
test edi, edi
je 0x40af87
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0043c634
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bc10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da1d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x463040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.004031c0
push 8
call fcn.0043436f
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.004354e0
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.00404670
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + 0xb], al
test ecx, ecx
je 0x40bd3a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x40bd3a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x40bd56
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.004031c0
mov eax, ebx
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 0x40be10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x463040]
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
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0043436f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004354e0
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00404300
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 0x40cca0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x463040]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cd21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x46864c]
cmp ecx, dword [edx + 4]
jle 0x40cd11
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], esi
jne 0x40cd11
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x463bd4
test edi, edi
jne 0x40cd34
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0043435c
mov esp, ebp
pop ebp
ret
mov edx, 0x45a298
lea ecx, [esp + 0xc]
call fcn.0040cbd0
int3

Function at 0x40d430
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x40d4b0
mov ecx, dword [eax]
test ecx, ecx
je 0x40d4b0
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push edx
call dword [eax + 4]
push dword [0x46b9c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d46f
mov edx, dword [eax + 4]
jmp 0x40d471
xor edx, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
cmp ebx, 0x3fc
ja 0x40d49f
test edx, edx
je 0x40d49f
mov eax, 6
nop dword [eax + eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x40d4c1
inc eax
cmp eax, 8
jl 0x40d490
push esi
call fcn.0043ca92
add esp, 4
mov eax, dword [edi]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043435c
mov esp, ebp
pop ebp
ret
mov al, byte [esi + ebx]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x40d4a8
Function at 0x40d4d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dcad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x40d538
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
call dword [eax + 4]
mov ecx, eax
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [eax], 0
cmp edi, dword [esi + 4]
ja 0x40d546
test byte [esi], 3
je 0x40d661
cmp dword [esi], 0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x40d5a0
push dword [0x46b9c8]
call eax
test eax, eax
je 0x40d561
mov edx, dword [eax + 4]
jmp 0x40d563
xor edx, edx
mov ebx, dword [esi + 4]
mov edi, dword [esi]
cmp ebx, 0x3fc
ja 0x40d58f
test edx, edx
je 0x40d58f
mov eax, 6
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x40d5fa
inc eax
cmp eax, 8
jl 0x40d580
push edi
call fcn.0043ca92
add esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp - 0x24]
push dword [0x46b9c8]
call eax
lea ebx, [edi + 3]
shr ebx, 2
test eax, eax
je 0x40d625
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40d625
mov ecx, 6
mov edx, dword [eax + ecx*4]
lea edi, [eax + ecx*4]
test edx, edx
je 0x40d5da
movzx eax, byte [edx]
cmp eax, ebx
jb 0x40d5d7
test dl, 3
je 0x40d603
mov eax, dword [ebp - 0x18]
inc ecx
cmp ecx, 8
jl 0x40d5c1
mov edi, dword [ebp - 0x18]
mov eax, 6
mov edx, dword [edi + eax*4]
lea ecx, [edi + eax*4]
test edx, edx
jne 0x40d613
inc eax
cmp eax, 8
jl 0x40d5e8
jmp 0x40d622
mov al, byte [edi + ebx]
mov byte [edi], al
mov dword [ecx], edi
jmp 0x40d598
mov dword [edi], 0
mov edi, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [edx + edi], al
jmp 0x40d65c
push edx
mov dword [ecx], 0
call fcn.0043ca92
add esp, 4
mov edi, dword [ebp - 0x24]
lea edx, [ebx*4 + 1]
mov eax, 8
mov ecx, edx
and ecx, 7
sub eax, ecx
add edx, eax
push 8
push edx
call fcn.0043caac
mov edx, eax
add esp, 8
test edx, edx
je 0x40d681
xor eax, eax
movzx ecx, bl
cmp ebx, 0xff
cmova ecx, eax
mov byte [edx + edi], cl
mov dword [esi], edx
mov dword [esi + 4], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x20]
call fcn.0040c440
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041a3c0
int3
Function at 0x40d6a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
je 0x40d6ec
push edi
push dword [0x46b9c8]
mov edi, dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d6c0
mov edx, dword [eax + 4]
jmp 0x40d6c2
xor edx, edx
cmp edi, 0x3fc
ja 0x40d6e2
test edx, edx
je 0x40d6e2
mov eax, 6
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x40d6ee
inc eax
cmp eax, 8
jl 0x40d6d3
push esi
call fcn.0043ca92
add esp, 4
pop edi
pop esi
ret
mov al, byte [edi + esi]
mov byte [esi], al
pop edi
mov dword [ecx], esi
pop esi
ret
Function at 0x40d730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x463040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 0
push 1
push 0
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x40d7d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x46864c]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x40d7bf
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x40d7bf
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x463bd4
test eax, eax
jne 0x40d937
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x40d861
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x46864c]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x40d849
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x40d849
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x463bd4
test eax, eax
jne 0x40d945
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x40d970
push 0
push 0
call fcn.0043cc6d
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40d913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test esi, esi
je 0x40d8ac
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x40d8ba
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46864c]
cmp eax, dword [ecx + 4]
jle 0x40d8ff
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x40d8ff
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x463bd4
test eax, eax
jne 0x40d953
test esi, esi
je 0x40d923
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.0040cbd0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.0040cbd0
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.0040cbd0
int3
Function at 0x40da20
Capabilities:
Access peb ldr_data
Get kernel32 base address

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 0x44dd6e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.0040cfd0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40db79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46864c]
cmp eax, dword [ecx + 4]
jle 0x40db64
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x40db64
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x463bd4
test edi, edi
jne 0x40dc17
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x40dbf5
lock inc dword [edi]
push 0xc
call fcn.0043436f
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0043436f
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
push eax
mov ecx, edi
movups xmmword [eax], xmm0
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.0040d730
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40dbf2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.0043439f
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.0040cbd0
int3
Function at 0x40dc30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dda0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x463040]
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 esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
je 0x40dcf0
call fcn.0040e2d0
mov ebx, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 8]
call edi
xor eax, eax
mov ecx, 0x4685f8
lock xadd dword [ecx], eax
mov ecx, dword [ebx + 4]
push 0
push ecx
test eax, eax
je 0x40dcbc
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40dcd2
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x40dce9
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.0043439f
add esp, 8
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x54]
call fcn.00418ec0
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40dd0c
push eax
call edi
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x40dd23
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.0043439f
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40dd2d
push eax
call edi
test byte [ebp + 8], 1
mov dword [esi], vtable.asio::execution_context::service.0
je 0x40dd44
push 0x64
push esi
call fcn.0043439f
add esp, 8
mov eax, esi
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.0043435c
mov esp, ebp
pop ebp
ret 4
Function at 0x40e0c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44de25
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x40e116
call fcn.0040e2d0
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0x463bbc
jmp 0x40e205
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0043644a
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
add esp, 4
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x46b9c8]
neg ecx
movq qword [ebp - 0x20], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x46b9c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push 0xffffffffffffffff
mov ecx, esi
xor edi, edi
call fcn.0040e4c0
test eax, eax
je 0x40e1cd
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov ecx, esi
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push 0xffffffffffffffff
call fcn.0040e4c0
test eax, eax
jne 0x40e1b0
push dword [ebp - 0x18]
push dword [0x46b9c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop
mov eax, dword [ebp + esi*4 - 0x54]
test eax, eax
je 0x40e1f1
push eax
call fcn.0043ca92
add esp, 4
inc esi
cmp esi, 0xa
jl 0x40e1e0
lea eax, [ebp - 0x28]
push eax
call fcn.00436535
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 4
Function at 0x40ef00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], edx
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x40f082
cmp byte [ebp + 8], 0
je 0x40ef67
mov al, byte [edx]
test al, 8
je 0x40ef67
or al, 8
mov dword [ebp - 0xc], 0x463bbc
push 4
mov byte [edx], al
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push 0x80
push 0xffff
push ebx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x10]
setne dl
call fcn.0040ee00
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.0040ee00
test esi, esi
je 0x40f06f
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ecx, dword [0x46864c]
mov dword [ebp - 8], edx
cmp ecx, dword [edx + 4]
jle 0x40efd9
push 0x46864c
call fcn.00434878
mov ecx, dword [0x46864c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x40efd6
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
mov ecx, dword [0x46864c]
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x463bd8]
jne 0x40efef
cmp dword [edi], 0x2733
je 0x40f03d
cmp ecx, dword [edx + 4]
jle 0x40f027
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x40f027
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x463bd8]
jne 0x40f06f
cmp dword [edi], 0x4d5
jne 0x40f06f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x14]
push ebx
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.0040ee00
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043435c
mov esp, ebp
pop ebp
ret

Function at 0x40f0a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
cmp ecx, 0xffffffff
jne 0x40f106
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46864c]
cmp eax, dword [ecx + 4]
jle 0x40f0ef
push 0x46864c
call fcn.00434878
add esp, 4
cmp dword [0x46864c], 0xffffffff
jne 0x40f0ef
push 0x4505c0
call fcn.00434812
add esp, 4
push 0x46864c
call fcn.00434827
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x2719
mov dword [eax + 4], 0x463bd4
or eax, 0xffffffff
pop esi
pop ecx
pop ebp
ret
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.0040ee00
mov eax, esi
pop esi
pop ecx
pop ebp
ret