joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401c66
pop dword [ebp - 0x2c]
mov eax, 0x401c66
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xc460a29e
add dword [ebp - 0x3c], 0x89f1a2ad
mov dword [ebp - 0x38], 0xf124a4ca
add dword [ebp - 0x38], 0x410ea77b
mov dword [ebp - 0x34], 0xff90991d
add dword [ebp - 0x34], 0x4cbbab11
mov dword [ebp - 0x30], 0x34ad6d88
add dword [ebp - 0x30], 0xcb529278
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xbeed89f8
add eax, 0x4152a65c
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x8f204d5
add dword [ebp - 0x3c], 0x6b806481
mov dword [ebp - 0x38], 0xb50c1697
sub dword [ebp - 0x38], 0x739fb522
mov dword [ebp - 0x34], 0x1e14ac18
add dword [ebp - 0x34], 0x455ac054
mov dword [ebp - 0x30], 0x909898fc
add dword [ebp - 0x30], 0x6f676704
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x83db51f8
sub eax, 0x839b21cc
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x333d2
push 0
call eax
mov ecx, 0x3bac1523
sub ecx, 0x3babda1b
mov edx, eax
mov esi, 0x23264a84
add esi, 0xdd1a257c
add esi, dword [ebp - 0x2c]
mov ebx, 0x98da95e
xor dword [ebp - 0x10], eax
mov edi, dword [esi]
sub dword [ebp - 0x1c], ebx
sub edi, ebx
sub dword [ebp - 0x1c], esi
mov dword [edx], edi
add dword [ebp - 0x14], edi
add edx, 0x9b072bdf
add edx, 0x64f8d425
add esi, 0xe44b7901
sub esi, 0xe44b78fd
loop 0x401d7d
add eax, 0xdef3
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49f004]
jne 0x40100a
repz ret
jmp fcn.00401785

Function at 0x40758e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403344
and dword [ebp - 4], 0
cmp dword [0x4a1284], 0
mov ebx, eax
jne 0x40763f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076f0
push eax
call fcn.004032d2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a1284], eax
call esi
push eax
call fcn.004032d2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a1288], eax
call esi
push eax
call fcn.004032d2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a128c], eax
call esi
push eax
call fcn.004032d2
pop ecx
mov dword [0x4a1294], eax
test eax, eax
je 0x40763f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004032d2
pop ecx
mov dword [0x4a1290], eax
mov eax, dword [0x4a1290]
cmp eax, ebx
je 0x407697
cmp dword [0x4a1294], ebx
je 0x407697
push eax
call fcn.0040334d
push dword [0x4a1294]
mov esi, eax
call fcn.0040334d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407697
test edi, edi
je 0x407697
call esi
test eax, eax
je 0x40768e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40768e
test byte [ebp - 0xc], 1
jne 0x407697
or dword [ebp + 0x10], 0x200000
jmp 0x4076d0
mov eax, dword [0x4a1288]
cmp eax, ebx
je 0x4076d0
push eax
call fcn.0040334d
pop ecx
test eax, eax
je 0x4076d0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4076d0
mov eax, dword [0x4a128c]
cmp eax, ebx
je 0x4076d0
push eax
call fcn.0040334d
pop ecx
test eax, eax
je 0x4076d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a1284]
call fcn.0040334d
pop ecx
test eax, eax
je 0x4076f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49b994
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x49f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test ebx, ebx
jle 0x49b9f1
and dword [ebp - 0x408], 0
lea ecx, [ebp - 0x408]
call fcn.0049b98c
mov al, byte [ebp - 0x408]
xor byte [edi + esi], al
cmp ebx, 0xf
jne 0x49b9ec
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, ebx
jl 0x49b9ae
pop esi
cmp ebx, 0x2d
jne 0x49ba08
or dword [0x27893bc], 0xffffffff
mov dword [0x27893b8], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x401bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x550b62
mov eax, dword fs:[0]
push eax
mov eax, 4
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0xc], ebp
push edi
lea ecx, [ebx + 0x54]
mov dword [ebx], 0x585e84
call fcn.00403780
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [esp + 0x10], 1
call fcn.0040d1b0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], ebp
call fcn.004064b0
mov word [edi + 0x30], ax
cmp dword [edi + 0x28], ebp
jne 0x401c7e
mov eax, dword [edi + 8]
or eax, 4
or eax, 4
push ebp
push eax
mov ecx, edi
call fcn.004156c0
mov dword [edi + 4], ebp
mov dword [esp + 0x1c], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
push ebp
mov ecx, esi
call fcn.00403cb0
mov byte [esp + 0x1c], 3
mov ecx, dword [esp + 0x28]
push 0x2a
call fcn.00403d30
test eax, eax
jne 0x401cce
mov edx, dword [ebx]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + ebx + 8]
add ecx, ebx
or eax, 2
cmp dword [ecx + 0x28], ebp
jne 0x401cc7
or eax, 4
push ebp
push eax
call fcn.004156c0
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401db0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x55105a
push eax
mov eax, 0xc
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
xor ebx, ebx
mov dword [esp + 8], ebx
push edi
mov ecx, 0x5be2dc
mov dword [esp + 0x10], 0x5be288
mov dword [0x5be288], 0x585e84
call fcn.0040d9e0
mov dword [esp + 0x20], ebx
mov eax, dword [0x5be288]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x5be288], 0x5547cc
mov edx, dword [0x5be288]
mov edi, dword [edx + 4]
add edi, 0x5be288
mov ecx, edi
mov dword [esp + 0xc], 1
call fcn.0040d1b0
mov esi, 0x5be28c
push 0x20
mov ecx, edi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], ebx
call fcn.0040d860
mov byte [edi + 0x30], al
cmp dword [edi + 0x28], ebx
jne 0x401e56
mov eax, dword [edi + 8]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.004156c0
mov dword [edi + 4], ebx
mov dword [esp + 0x20], 2
mov eax, dword [0x5be288]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x5be288], 0x585e70
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.0040ca90
mov byte [esp + 0x20], 3
mov ecx, esi
mov dword [0x5be28c], 0x554848
mov byte [0x5be2d4], bl
mov byte [0x5be2cd], bl
call fcn.0041a230
mov edx, dword [0x5be8e0]
mov dword [0x5be2d8], ebx
mov dword [0x5be2d0], edx
mov dword [0x5be2c8], ebx
mov byte [esp + 0x20], 4
push 0x2a
mov ecx, str.winxp.txt
call fcn.00404070
test eax, eax
jne 0x401ef0
mov eax, dword [0x5be288]
mov ecx, dword [eax + 4]
add ecx, 0x5be288
mov eax, dword [ecx + 8]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x401ee9
or eax, 4
push ebx
push eax
call fcn.004156c0
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 0x5be288
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x407600
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5503f8
push eax
mov eax, 0x14
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.004f8696
mov dword [esp + 0x28], 0
mov edi, dword [0x5be890]
mov ecx, 0x5be8f0
mov dword [esp + 0xc], edi
call fcn.00418870
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x407678
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x40767c
cmp byte [eax + 0x14], 0
je 0x40767c
call fcn.004f87b5
cmp esi, dword [eax + 0xc]
jae 0x407682
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x40767e
xor ecx, ecx
jmp 0x407660
mov esi, ecx
test esi, esi
jne 0x4076d4
test edi, edi
je 0x40768a
mov esi, edi
jmp 0x4076d4
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004079b0
add esp, 8
cmp eax, 0xffffffff
jne 0x4076ba
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0050d9cc
push 0x5a6494
lea ecx, [esp + 0x18]
push ecx
call fcn.00513b4b
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x5be890], esi
call fcn.00419070
push esi
call fcn.004f887a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004f86be
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x407700
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5503f8
push eax
mov eax, 0x14
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.004f8696
mov dword [esp + 0x28], 0
mov edi, dword [0x5be894]
mov ecx, 0x5be8ec
mov dword [esp + 0xc], edi
call fcn.00418870
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x407778
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x40777c
cmp byte [eax + 0x14], 0
je 0x40777c
call fcn.004f87b5
cmp esi, dword [eax + 0xc]
jae 0x407782
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x40777e
xor ecx, ecx
jmp 0x407760
mov esi, ecx
test esi, esi
jne 0x4077d4
test edi, edi
je 0x40778a
mov esi, edi
jmp 0x4077d4
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00407af0
add esp, 8
cmp eax, 0xffffffff
jne 0x4077ba
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0050d9cc
push 0x5a6494
lea ecx, [esp + 0x18]
push ecx
call fcn.00513b4b
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x5be894], esi
call fcn.00419070
push esi
call fcn.004f887a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004f86be
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40b630
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5be908]
push ebx
mov ebx, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b66a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40b66a
mov eax, dword [ecx]
test eax, eax
je 0x40b66a
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x40b688
push eax
call fcn.0050d7de
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0050d866
add esp, 4
cmp ebx, 0xff
ja 0x40b686
movzx ecx, bl
mov byte [eax + ebx], cl
pop ebx
ret
xor ecx, ecx
mov byte [eax + ebx], cl
pop ebx
ret

Function at 0x40ce80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x550f16
push eax
mov eax, 4
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov dword [edi + 4], ebx
mov esi, dword [edx + 4]
add esi, edi
mov ecx, esi
call fcn.0040d1b0
mov eax, dword [esp + 0x24]
push 0x20
mov ecx, esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
call fcn.0040d860
mov byte [esi + 0x30], al
cmp dword [esi + 0x28], ebx
jne 0x40cef6
mov eax, dword [esi + 8]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, esi
call fcn.004156c0
mov dword [esi + 4], ebx
mov dword [esp + 0x18], 2
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 4]
lea eax, [edi + 8]
mov dword [esp + 0x24], eax
mov dword [eax + edx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], 4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x40d590
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54f278
push eax
mov eax, 0x1c
mov dword fs:[0], esp
call fcn.00525ec0
mov eax, dword [esp + 0x30]
push esi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.0040d210
mov dword [esp + 0x28], 0
lea ecx, [esp + 0xc]
push ecx
mov dword [esi], vtable.std::ctype_char_.0
call fcn.004f8ed7
movq xmm0, qword [eax]
movq qword [esi + 8], xmm0
movq xmm0, qword [eax + 8]
add esp, 4
movq qword [esi + 0x10], xmm0
mov dword [esp + 0x28], 0xffffffff
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret 8
Function at 0x40f7e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5503f8
push eax
mov eax, 0x14
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.004f8696
mov dword [esp + 0x28], 0
mov edi, dword [0x5be8ac]
mov ecx, 0x5be8f4
mov dword [esp + 0xc], edi
call fcn.00418870
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x40f858
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x40f85c
cmp byte [eax + 0x14], 0
je 0x40f85c
call fcn.004f87b5
cmp esi, dword [eax + 0xc]
jae 0x40f862
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x40f85e
xor ecx, ecx
jmp 0x40f840
mov esi, ecx
test esi, esi
jne 0x40f8b4
test edi, edi
je 0x40f86a
mov esi, edi
jmp 0x40f8b4
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0040f6a0
add esp, 8
cmp eax, 0xffffffff
jne 0x40f89a
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0050d9cc
push 0x5a6494
lea ecx, [esp + 0x18]
push ecx
call fcn.00513b4b
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x5be8ac], esi
call fcn.00419070
push esi
call fcn.004f887a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004f86be
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4107d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x550c4a
mov eax, dword fs:[0]
push eax
mov eax, 0x18
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x30], 0
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov eax, ebx
sub eax, ecx
sar eax, 3
cmp edi, eax
jbe 0x410836
cmp ecx, ebx
jbe 0x410819
call fcn.0050dd58
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
sub ecx, dword [esi + 0xc]
push ebx
push eax
lea eax, [esp + 0x40]
sar ecx, 3
push eax
sub edi, ecx
push edi
push esi
call fcn.004102d0
jmp 0x410885
jae 0x410885
cmp ecx, ebx
jbe 0x410841
call fcn.0050dd58
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x18], edx
cmp ebp, dword [esi + 0x10]
jbe 0x410854
call fcn.0050dd58
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
call fcn.00410780
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ebx
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004106c0
mov dword [esp + 0x30], 0xffffffff
lea edx, [esp + 0x38]
push edx
call fcn.00425fd0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8
Function at 0x411480
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x198
call fcn.00525ec0
push 0x5bc060
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4114b9
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x5bc064
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 8], 0
je 0x4114f6
push 0
push 0x5bc064
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x4114f6
mov dword [esp], eax
call fcn.0050cbc0
mov ecx, fcn.00412cb0
mov dword [esp + 4], eax
test ecx, ecx
je 0x4114f6
lea edx, [esp]
push edx
mov ecx, str.winsock
call fcn.00413030
add esp, 4
mov eax, esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4115d0
Capabilities:
Terminate thread

Disassembly:
mov eax, 8
call fcn.00525ec0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [esp + 8]
push edx
push 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5be89c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x411624
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add esp, 8
ret
mov edx, dword [esi + 4]
push edx
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 8
ret
Function at 0x411980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x551c61
mov eax, dword fs:[0]
push eax
mov eax, 0xc
mov dword fs:[0], esp
call fcn.00525ec0
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esi], vtable.boost::asio::io_service::service.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.boost::asio::detail::service_base_class_boost::asio::detail::win_iocp_io_service_.0
mov dword [esp + 0x24], 1
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], ebx
mov byte [esp + 0x24], 2
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call fcn.00411810
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov byte [esp + 0x24], 3
mov dword [esi + 0x30], ebx
mov byte [esp + 0x24], 4
lea eax, [esi + 0x38]
push eax
mov dword [esi + 0x34], ebx
call fcn.004118c0
mov edi, eax
call fcn.0050cbc0
mov dword [esp + 0x10], edi
neg edi
sbb edi, edi
mov dword [esp + 0x14], eax
test edi, fcn.00412cb0
je 0x411a40
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.mutex
call fcn.00413030
add esp, 4
mov byte [esp + 0x24], 5
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [esp + 0x24], 6
cmp ebp, 0xffffffff
jae 0x411a5c
mov eax, ebp
jmp 0x411a5f
or eax, 0xffffffff
push eax
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x411aa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.0050cbc0
mov dword [esp + 0x10], edi
neg edi
sbb edi, edi
mov dword [esp + 0x14], eax
test edi, fcn.00412cb0
je 0x411aa4
lea edx, [esp + 0x10]
push edx
mov ecx, str.iocp
call fcn.00413030
add esp, 4
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0xc

Function at 0x411ea0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 8
call fcn.00525ec0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.0050cbc0
neg esi
sbb esi, esi
mov dword [esp + 0xc], eax
test esi, fcn.00412cb0
je 0x411ef2
lea eax, [esp + 8]
push eax
mov ecx, 0x58603c
call fcn.00413030
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x551d68
push eax
mov eax, 0x14
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push ebp
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x41229c
mov ecx, esi
call fcn.00412b60
xor esi, esi
call fcn.0050cbc0
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], 1
mov edx, dword [0x5be908]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x5be908]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push ecx
call ebx
mov byte [esp + 0x28], 2
push edi
mov ecx, esi
call fcn.00411fd0
test eax, eax
je 0x412302
lea ebx, [ebx]
cmp ebp, 0xffffffff
je 0x4122f6
inc ebp
push edi
mov ecx, esi
call fcn.00411fd0
test eax, eax
jne 0x4122f0
mov byte [esp + 0x28], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [0x5be908]
push edx
push eax
call ebx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41232d
push eax
call fcn.0050d7de
add esp, 4
mov ecx, dword [esp + 0x20]
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret