joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x4bba40]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
push edi
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.0043c0e0
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x43902b
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
nop
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
cmp dword [esp + 0xac], edi
ja 0x438f63
jb 0x438f5f
cmp ebx, 0x40000
jae 0x438f63
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call edx
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x439017
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb8]
push 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.0043bd50
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x439017
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x438ff4
test eax, eax
jne 0x438fdd
cmp edi, dword [esp + 0x4c]
je 0x438ff4
mov edx, dword [ebp + 4]
push eax
push ebp
call edx
mov esi, eax
add esp, 8
test esi, esi
jne 0x439017
xor edi, edi
jmp 0x438f40
cmp ecx, dword [esp + 0xb4]
jne 0x439012
cmp dword [esp + 0x14], 0
jne 0x439012
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x439017
cmp eax, 4
je 0x439017
mov esi, 1
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462d06
add esp, 0x90
ret
Function at 0x439050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x4bba40]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x439097
mov eax, edi
jmp 0x4391ed
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043a130
add esp, 4
cmp eax, ebx
jne 0x4391ed
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x43912c
jb 0x439121
cmp dword [esp + 0xc8], eax
jae 0x43912c
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4391d9
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.0043a2e0
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x4391d9
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x4391be
cmp eax, ebx
jne 0x4391a8
cmp edi, dword [esp + 0x4c]
je 0x4391be
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x439100
jmp 0x4391d9
cmp ecx, dword [esp + 0xd4]
jne 0x4391d4
cmp dword [esp + 0x14], ebx
jne 0x4391d4
cmp dword [esp + 0x20], 1
je 0x4391d9
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462d06
add esp, 0xb0
ret
Function at 0x439e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x494c53
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bba40]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00481207
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x439e61
mov eax, dword [esi + 0x1c]
push eax
call fcn.004440dd
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x43a5d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x43a5ed
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x43a61d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x43a61d
inc edi
cmp edi, ebx
jb 0x43a610
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x43a725
cmp eax, 3
jbe 0x43a650
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x43a68b
cmp al, 0xff
je 0x43a68b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x43a603
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x43a636
movzx ecx, byte [esi + 0x4a6cd8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x4a6cd0], 0
mov al, byte [eax + 4]
je 0x43a679
test al, al
je 0x43a679
cmp al, 0xff
jne 0x43a636
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x43a603
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x43a6f7
movzx edx, byte [esi + 0x4a6cd8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x43a6dc
cmp bl, 0xff
jne 0x43a6f3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x43a6b0
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x43a603
pop edi
pop ebx
cmp eax, 3
jbe 0x43a73c
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x444c1b
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x444c46
call fcn.00449de3
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x444c69
push eax
push dword [esi + 4]
call fcn.00444ba1
push esi
push eax
mov ecx, 0x4bde04
call fcn.00444821
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4456cc
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x492846
call fcn.004679c1
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0044568c
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401b90
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x445733
push eax
push dword [esi + 8]
call fcn.00444ba1
push dword [esi + 0xc]
mov ecx, 0x4bde04
push eax
call fcn.00444821
mov eax, esi
call fcn.00467a99
ret 0x1c

Function at 0x4483d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44841e
call fcn.00449de3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44841e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x448461
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44844a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44844a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44845e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44a749
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x493914
call fcn.004679c1
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44a76e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44a7b4
lea ecx, [ebp - 0x10]
call fcn.00401b90
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00444455
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401180
mov eax, esi
call fcn.00467a99
ret 8

Function at 0x450837
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x45087e
call fcn.00449de3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45087e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45089a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004503af
mov esi, eax
test edi, edi
je 0x450898
test ebx, ebx
je 0x450898
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4616f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x461716
cmp dword [edi + 0x54], 0
jne 0x461716
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00449de3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004616b3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x462d06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bba40]
jne 0x462d10
repz ret
jmp fcn.0046c10e
Function at 0x477fef
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.0046ba72
and dword [ebp - 4], 0
cmp dword [0x4c08c4], 0
mov ebx, eax
jne 0x4780a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x478151
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x478151
push eax
call fcn.0046ba00
mov dword [esp], 0x49ecf0
push edi
mov dword [0x4c08c4], eax
call esi
push eax
call fcn.0046ba00
mov dword [esp], 0x49ecdc
push edi
mov dword [0x4c08c8], eax
call esi
push eax
call fcn.0046ba00
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c08cc], eax
call esi
push eax
call fcn.0046ba00
pop ecx
mov dword [0x4c08d4], eax
test eax, eax
je 0x4780a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046ba00
pop ecx
mov dword [0x4c08d0], eax
mov eax, dword [0x4c08d0]
cmp eax, ebx
je 0x4780f8
cmp dword [0x4c08d4], ebx
je 0x4780f8
push eax
call fcn.0046ba7b
push dword [0x4c08d4]
mov esi, eax
call fcn.0046ba7b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4780f8
test edi, edi
je 0x4780f8
call esi
test eax, eax
je 0x4780ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4780ef
test byte [ebp - 0xc], 1
jne 0x4780f8
or dword [ebp + 0x10], 0x200000
jmp 0x478131
mov eax, dword [0x4c08c8]
cmp eax, ebx
je 0x478131
push eax
call fcn.0046ba7b
pop ecx
test eax, eax
je 0x478131
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x478131
mov eax, dword [0x4c08cc]
cmp eax, ebx
je 0x478131
push eax
call fcn.0046ba7b
pop ecx
test eax, eax
je 0x478131
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c08c4]
call fcn.0046ba7b
pop ecx
test eax, eax
je 0x478151
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x478153
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401700
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x402110
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x401746
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40175b
mov dword [esi], edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x44]
push 0x42f063
push section..data
push eax
call fcn.004017e0
mov dword [ebp - 0x30], vtable.std::exception.0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], vtable.std::system_error.0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x30]
push 0x433384
push eax
call fcn.0040f600
add esp, 8
nop
push ebp
sub esp, 0xc
add ebp, 0xc
mov dword [ebp - 0x44], vtable.std::exception.0
lea eax, [ebp - 0x40]
push eax
call fcn.0040fc2f
add esp, 0x10
pop ebp
ret

Function at 0x402140
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
mov esi, ecx
movzx ebx, byte [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d030
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, 1
lock xadd dword [0x436674], eax
test eax, eax
je 0x40218d
test bl, bl
jne 0x4021a6
jmp 0x4021b2
lea eax, [ebp - 0x1c0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x436678], eax
test bl, bl
je 0x4021b2
mfence
mov eax, dword [0x436678]
test eax, eax
jne 0x4021ca
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea ecx, [ebp - 0x30]
push str.winsock
push section..data
push eax
call fcn.004017e0
mov dword [ebp - method.std::system_error.virtual_0], vtable.std::exception.0
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x2c]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 0x1b4], eax
mov dword [ebp - method.std::system_error.virtual_0], vtable.std::system_error.0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x1c0]
push 0x433384
push eax
call fcn.0040f600
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov dword [ebp - 0x30], vtable.std::exception.0
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fc2f
add esp, 0x10
pop ebp
ret
Function at 0x405300
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d050
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x405369
push 4
push dword [ebp + 8]
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x405356
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x40536e
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, 0x2719
lea ecx, [ebp - 0x44]
push str.set_option
push section..data
push eax
call fcn.004017e0
mov dword [ebp - 0x30], vtable.std::exception.0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], vtable.std::system_error.0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x30]
push 0x433384
push eax
call fcn.0040f600
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0x14
add ebp, 0xc
mov dword [ebp - 0x44], vtable.std::exception.0
lea eax, [ebp - 0x40]
push eax
call fcn.0040fc2f
add esp, 0x18
pop ebp
ret
Function at 0x4072c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d0c0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], esi
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x407315
mov eax, dword [eax + 4]
jmp 0x407317
xor eax, eax
mov edi, dword [ebp + 0xc]
sub esp, 0x10
movzx ecx, byte [ebp - 0x48]
mov byte [esp], cl
mov dword [esp + 4], eax
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0x74
call fcn.00407820
add esp, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
sub esp, 0x18
mov eax, esp
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x407377
mov edx, dword [ebx + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lock inc dword [ecx + 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x14], ecx
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x20]
call fcn.00407460
mov esp, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x28], 0
mov eax, edx
mov esi, dword [ebp + 8]
je 0x4073d2
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00407610
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add ecx, 0x14
mov edi, dword [ebp - 0x20]
add edi, 0x24
lea edx, [ebp - 0x48]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push edx
push esi
call fcn.004076e0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00407d70
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x407610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, esp
push 4
push 0x30
push eax
call fcn.00408870
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [eax], vtable.asio::detail::cancellation_handler_class_asio::detail::win_iocp_socket_service_base::iocp_op_cancellation_.0
lea esi, [eax + 4]
mov edx, dword [ebp]
mov ebx, dword [ebx]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0x408b80
mov dword [eax + 0x20], 0
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
mov dword [eax + 0x14], 0
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
mov dword [esp], 0
mov ecx, dword [edi]
mov dword [ecx], eax
mov edi, dword [esp]
test edi, edi
je 0x4076b8
mov ebx, dword [esp + 4]
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4076af
cmp ebx, 0x3fc
ja 0x4076af
mov eax, dword [eax + 4]
test eax, eax
je 0x4076af
cmp dword [eax + 0x18], 0
je 0x4076c4
cmp dword [eax + 0x1c], 0
je 0x4076cb
push edi
call fcn.00416c13
add esp, 4
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, 6
jmp 0x4076d0
mov ecx, 7
movzx edx, byte [edi + ebx]
mov byte [edi], dl
mov dword [eax + ecx*4], edi
jmp 0x4076b8