joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb20
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b029
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b1070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
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.boost::asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea ebx, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [ebx], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.0040c790
mov dword [esi + 0x28], eax
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.0040ad70
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], 0
or eax, 0xffffffff
mov byte [ebp - 4], 6
test ecx, ecx
cmovns eax, ecx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40bc7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x4ba648]
cmp ecx, dword [edx + 4]
jle 0x40bc4c
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x40bc4c
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
mov eax, dword [0x4ba638]
mov ecx, 0x4ba638
push edi
mov dword [ebp - 0x1c], edi
mov eax, dword [eax + 0x18]
call eax
test edi, edi
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], 0x4ba638
setne al
test al, al
je 0x40bc7f
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.0040ab10
cmp byte [ebp + 0x10], 0
je 0x40bceb
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xc
call fcn.00451ccf
mov edi, eax
add esp, 4
mov dword [ebp + 0x10], edi
mov byte [ebp - 4], 7
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00451ccf
add esp, 4
mov dword [ebp + 8], eax
mov ecx, edi
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
push 0
push eax
mov dword [eax + 0xc], esi
call fcn.0040b1b0
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x40bce8
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push ebx
call fcn.00451cc1
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
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b090
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b1070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x40c152
mov ecx, esi
call fcn.0040c230
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
mov ecx, dword [eax]
mov eax, dword [0x4ba648]
cmp eax, dword [ecx + 4]
jle 0x40c129
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x40c129
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x34]
movq qword [eax], xmm0
mov dword [eax + 8], 0x4ba638
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 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x4ba668]
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x4ba668]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
xor edi, edi
push ebx
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040c370
test eax, eax
je 0x40c1cf
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
push ecx
mov ecx, esi
mov edi, eax
call fcn.0040c370
test eax, eax
jne 0x40c1b7
push dword [ebp - 0x14]
push dword [0x4ba668]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
push dword [ebp + esi*4 - 0x28]
call fcn.00451a43
inc esi
add esp, 4
cmp esi, 3
jl 0x40c1e0
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 4

Function at 0x40c880
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4b1070]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x4ba25c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40c8c2
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x4ba260
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00451a48
mov esp, ebp
pop ebp
ret
Function at 0x40d780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, ecx
push edi
push 0x10
mov dword [0x4ba474], ebx
call esi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 0x11
sub edi, 0x96
call esi
sub esp, 0x18
cdq
mov ecx, esp
sub eax, edx
mov esi, eax
sar esi, 1
push 0xe
mov dword [ecx + 0x14], 0xf
sub esi, 0x55
mov dword [ecx + 0x10], 0
push 0x49f29c
mov byte [ecx], 0
call fcn.004070d0
call fcn.004477f0
add esp, 0x18
push 0
push ebx
push 0
push 0
push 0xaa
push 0x12c
push esi
push edi
push 0xc00000
push 0x4ba4e0
push 0x4ba478
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x40d8f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x400
mov esi, eax
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0046a2f0
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0
push 0
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
push 0x49f028
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
sub esp, 0xc
mov ecx, esp
push 0x1d
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x49f2ac
mov byte [ecx], 0
call fcn.004070d0
call fcn.004477f0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x408], 0
jne 0x40d8bc
xor ecx, ecx
jmp 0x40d8ce
lea ecx, [ebp - 0x408]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d8c5
sub ecx, esi
push ecx
lea eax, [ebp - 0x408]
mov ecx, edx
push eax
call fcn.004070d0
call fcn.004477f0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451a48
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push 0xc
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x49f2cc
mov byte [ecx], 0
call fcn.004070d0
call fcn.004477f0
push 0x1fc
push 0
push 0x4ba278
call fcn.0046a2f0
movups xmm0, xmmword [0x49f260]
add esp, 0x24
mov dword [0x4ba278], 0x1fc
mov dword [0x4ba27c], esi
mov dword [0x4ba284], 7
movups xmmword [0x4ba290], xmm0
push 0x6b
push dword [0x4ba474]
mov dword [0x4ba280], 0x6b
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x4ba278
push 0
mov dword [0x4ba28c], eax
mov dword [0x4ba288], 0x130
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
sub esp, 0x18
mov ecx, esp
push 0xa
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x49f2dc
mov byte [ecx], 0
call fcn.004070d0
call fcn.004477f0
add esp, 0x18
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451a48
mov esp, ebp
pop ebp
ret
Function at 0x40e480
Capabilities:
Create process on windows
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x4ba268]
test eax, eax
je 0x40e4ce
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x4ba268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4ba278
push 2
mov dword [0x4ba268], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0046a2f0
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 5
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [0x4ba26c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40e530
Capabilities:
Terminate process
Terminate thread

Disassembly:
call fcn.0040e730
mov eax, dword [0x4ba268]
test eax, eax
je 0x40e56a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x4ba268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4ba278
push 2
mov dword [0x4ba268], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push dword [0x4ba26c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e580
Capabilities:
Continue service
Create service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0046a2f0
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.HttpService.exe
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp byte [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0xf
mov dword [ebp - 0x410], 0
mov byte [ebp - 0x420], 0
jne 0x40e607
xor ecx, ecx
jmp 0x40e619
lea ecx, [ebp - 0x408]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e610
sub ecx, edx
push ecx
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x420]
call fcn.004070d0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40e6ff
push 0xf01ff
push str.HttpService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x40e6a5
cmp dword [ebp - 0x40c], 0x10
lea eax, [ebp - 0x420]
push 0
cmovae eax, dword [ebp - 0x420]
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.HttpService
push str.HttpService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x40e6fc
jmp 0x40e6ee
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40e6f9
mov eax, dword [ebp - 0x438]
cmp eax, 1
je 0x40e6ee
cmp eax, 7
jne 0x40e6d9
lea eax, [ebp - 0x43c]
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x40e6f9
cmp eax, 4
je 0x40e6f9
lea eax, [ebp - 0x43c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x40c]
cmp eax, 0x10
jb 0x40e71d
inc eax
lea ecx, [ebp - 0x420]
push eax
push dword [ebp - 0x420]
call fcn.00402390
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451a48
mov esp, ebp
pop ebp
ret
Function at 0x40e730
Capabilities:
Pause service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0046a2f0
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
je 0x40e825
push esi
push 0xf01ff
push str.HttpService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40e81d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x420]
push eax
push esi
call edi
test eax, eax
je 0x40e815
cmp dword [ebp - 0x41c], 4
jne 0x40e815
lea eax, [ebp - 0x420]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40e815
lea eax, [ebp - 0x420]
push eax
push esi
call edi
test eax, eax
je 0x40e815
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
push dword [ebp - 0x408]
call ebx
cmp dword [ebp - 0x41c], 7
je 0x40e80f
lea eax, [ebp - 0x420]
push eax
push esi
call edi
test eax, eax
jne 0x40e7f0
mov ebx, dword [ebp - 0x424]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00451a48
mov esp, ebp
pop ebp
ret

Function at 0x4103a0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, edx
lea ebx, [esi + 3]
shr ebx, 2
test ecx, ecx
je 0x410362
mov eax, dword [ecx]
test eax, eax
je 0x410362
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x410359
mov byte [eax + esi], dl
pop esi
pop ebx
ret
push eax
call fcn.00451a43
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.00451ccf
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x410387
movzx eax, bl
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
xor eax, eax
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
push ebp
mov ebp, esp
push dword [0x4ba668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4103bf
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
pop ebp
jmp 0x410330
xor ecx, ecx
mov edx, dword [ebp + 8]
pop ebp
jmp 0x410330

Function at 0x4103d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x4ba668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4103e8
mov edx, dword [eax + 4]
jmp 0x4103ea
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x410409
test edx, edx
je 0x410409
cmp dword [edx], 0
jne 0x410409
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.00451a43
add esp, 4
pop ebp
ret
Function at 0x4105d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
cmp dword [esi], 0x40
jne 0x4105f4
push 0x2745
mov ecx, esi
call fcn.0040ee10
mov edx, dword [ebp - 4]
cmp dword [esi], 0
jne 0x4106d1
cmp dword [ebp + 0xc], 0
push edi
je 0x41066e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41066e
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp + 0x18], 0
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push edx
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi]
jbe 0x41065a
push 0x2726
mov ecx, esi
call fcn.0040ee10
jmp 0x41066e
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0046a890
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp edi, 0xffffffff
jne 0x41068e
push 0x2719
mov ecx, esi
call fcn.0040ee10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, esi
mov ecx, eax
call fcn.0040ef10
test eax, eax
jne 0x4106d0
lea ecx, [ebp - 0x20]
call fcn.00409860
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4106e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, dword [ebp + 0xc]
mov ecx, eax
mov edx, edi
call fcn.0040ef10
mov esi, eax
cmp esi, 0xffffffff
jne 0x410722
pop edi
pop esi
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x17
jne 0x41073f
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
mov ecx, dword [eax]
mov eax, dword [0x4ba648]
cmp eax, dword [ecx + 4]
jle 0x410787
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x410787
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
movq xmm0, qword [ebp - 0x10]
mov eax, esi
movq qword [edi], xmm0
mov dword [edi + 8], 0x4ba638
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413240
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x413262
mov esi, dword [ebp + 0x14]
mov ecx, esi
push 0x2719
call fcn.0040ee10
jmp 0x4132a3
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push dword [ebp + 0x10]
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x14]
mov ecx, eax
mov edx, esi
call fcn.0040ef10
test eax, eax
jne 0x4132a3
lea ecx, [ebp - 0xc]
call fcn.00409860
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
movq xmm0, qword [esi]
mov ecx, dword [esi + 8]
pop esi
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4138b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4b1070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push dword [0x4ba668]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413919
mov eax, dword [eax + 4]
test eax, eax
je 0x413919
mov edx, dword [eax]
test edx, edx
je 0x413919
mov dword [eax], 0
mov al, byte [edx]
cmp al, 5
jb 0x413910
mov byte [edx + 0x14], al
jmp 0x413929
push edx
call fcn.00451a43
add esp, 4
push 0x15
call fcn.00451ccf
mov edx, eax
add esp, 4
mov byte [edx + 0x14], 5
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
test edx, edx
je 0x41395b
mov ecx, dword [ebp + 8]
mov dword [edx], 0
mov dword [edx + 4], 0x414380
mov dword [edx + 8], 0
mov eax, dword [ecx]
mov dword [edx + 0xc], eax
mov dword [ecx], 0
jmp 0x41395d
xor edx, edx
mov ecx, esi
mov dword [ebp - 0x10], edx
call fcn.00411960
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
test al, al
je 0x413998
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.00413c20
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00414010
lea ecx, [ebp - 0x28]
call fcn.00413b90
lea ecx, [ebp - 0x18]
call fcn.00413e70
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 0x4139c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bbe3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4b1070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov ebx, ecx
push dword [0x4ba66c]
mov esi, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x413a0c
cmp dword [eax], esi
je 0x413a40
mov eax, dword [eax + 8]
test eax, eax
jne 0x413a01
push dword [0x4ba668]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
call edi
test eax, eax
je 0x413aa3
mov eax, dword [eax + 4]
test eax, eax
je 0x413aa3
mov edx, dword [eax]
test edx, edx
je 0x413aa3
mov dword [eax], 0
mov al, byte [edx]
cmp al, 5
jb 0x413a9a
mov byte [edx + 0x14], al
jmp 0x413ab3
cmp dword [eax + 4], 0
je 0x413a0c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov dword [ecx], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.00414770
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x413b2d
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.00451a43
add esp, 4
push 0x15
call fcn.00451ccf
mov edx, eax
add esp, 4
mov byte [edx + 0x14], 5
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 3
test edx, edx
je 0x413ae5
mov ecx, dword [ebp + 8]
mov dword [edx], 0
mov dword [edx + 4], 0x414380
mov dword [edx + 8], 0
mov eax, dword [ecx]
mov dword [edx + 0xc], eax
mov dword [ecx], 0
jmp 0x413ae7
xor edx, edx
mov ecx, ebx
mov dword [ebp - 0x18], edx
call fcn.00411960
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
test al, al
je 0x413b25
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
push edi
push ebx
call fcn.00413c20
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00414100
lea ecx, [ebp - 0x30]
call fcn.00413b90
lea ecx, [ebp - 0x20]
call fcn.00413e70
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 0x413e70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bc66
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b1070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x413ebc
mov dword [ebp - 4], 0
mov eax, dword [eax + 0xc]
test eax, eax
je 0x413eb5
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x413ef8
push dword [0x4ba668]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413ee8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x413ee8
cmp dword [ecx], 0
jne 0x413ee8
mov al, byte [esi + 0x14]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x413ef1
push esi
call fcn.00451a43
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret