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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14004a740
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [0x14004a460]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x14004a7fa
xor eax, eax
lea rcx, [rdi + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
test dword [rdx + 0x58], 0x100000
je 0x14004a76a
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x1400cd560]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004a79a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14004a7fe
test dword [rbx + 0x58], 0x100000
je 0x14004a855
cmp qword [rdi + 0x70], 0
jne 0x14004a7cb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x14004a88e
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x14004a855
mov rdx, qword [rdi + 0x58]
lea r8, [0x1400470d0]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14004a855
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14004a810
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004a81e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14004a84b
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14004a874
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14004a874
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14004a874
xor r9d, r9d
lea rdx, [0x14004b090]
lea r8d, [r9 + 0x32]
call fcn.140044b60
or dword [rbx + 0x58], 0x20000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1400494b0
int3
Function at 0x14004c220
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x1400bf018]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14004c41e
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x1400cdad0], rax
mov ebx, 2
xor ecx, ecx
mov word [0x1400cdad0], bx
mov qword [0x1400cdad8], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x1400cdad4]
mov word [0x1400cdad2], ax
lea rcx, str.0.0.0.0
call fcn.140049190
test eax, eax
jne 0x14004c42d
call fcn.14003ba00
test eax, eax
jne 0x14004c433
mov qword [rsp + 0x470], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004c331
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14004c439
mov eax, dword [0x1400cdb00]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1400cdb00], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14004c44e
jmp 0x14004c358
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14004c4a2
cmp eax, 0x273a
jbe 0x14004c4a2
cmp eax, 0x2740
jae 0x14004c4a2
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004c3cf
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14004c463
mov eax, dword [0x1400cdafc]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1400cdafc], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14004c478
jmp 0x14004c3f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14004c48d
cmp eax, 0x273a
jbe 0x14004c48d
cmp eax, 0x2740
jae 0x14004c48d
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140059450
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1400494b0
int3
call fcn.1400638ac
int3
call fcn.1400638ac
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.1400494b0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.1400494b0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.1400494b0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.1400494b0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.1400494b0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.1400494b0
int3
Function at 0x14004e850
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x20]
mov rsi, rcx
test dword [rdi + 0x194], 0x2000
jne 0x14004e88f
mov rcx, qword [0x1400cd5b0]
lea r9, str.Cannot_resume_connections_without_enabling_MHD_ALLOW_SUSPEND_RESUME__n
mov r8d, 0xa7b
lea rdx, [0x1400c1f90]
call qword [0x1400cd5a8]
int3
lea rcx, [rdi + 0x130]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsi + 0x168], 1
lea rcx, [rdi + 0x130]
mov byte [rdi + 0x17b], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x168], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
je 0x14004e906
mov rcx, qword [rdi + 0x170]
lea rdx, [0x1400bfc3c]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14004e906
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14004e906
lea rdx, str.Failed_to_signal_resume_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.140058130
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004ee90
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov rax, qword [0x1400bf018]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x30], 0x1c
mov rdi, rcx
mov qword [r11 - 0x30], rax
mov rcx, qword [rcx + 0x158]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x14004f09e
movzx eax, byte [rdi + 0x179]
test al, al
jne 0x14004f09e
mov qword [r11 + 0x10], rbx
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov qword [r11 + 0x18], rsi
call qword [sym.imp.WS2_32.dll_accept]
xor bl, bl
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004efbc
cmp dword [rsp + 0x30], 0
jle 0x14004efbc
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14004ef54
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140057770
mov r8, rax
lea rdx, str.Failed_to_set_nonblocking_mode_on_incoming_connection_socket:__s_n
mov rcx, rdi
call fcn.140058130
jmp 0x14004ef56
mov bl, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14004ef79
lea rdx, str.Failed_to_set_noninheritable_mode_on_incoming_connection_socket._n
mov rcx, rdi
call fcn.140058130
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov byte [rsp + 0x28], bl
mov rdx, rsi
mov rcx, rdi
mov byte [rsp + 0x20], 0
call fcn.14004d9f0
mov eax, 1
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140059450
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2726
je 0x14004f097
cmp eax, 0x2746
je 0x14004f097
cmp eax, 0x2733
je 0x14004effa
mov ecx, eax
call fcn.140057770
mov r8, rax
lea rdx, str.Error_accepting_connection:__s_n
mov rcx, rdi
call fcn.140058130
cmp rsi, 0xffffffffffffffff
je 0x14004f02f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14004f02f
mov rcx, qword [0x1400cd5b0]
lea r9, [0x1400c0f88]
mov r8d, 0xb83
lea rdx, [0x1400c2e40]
call qword [0x1400cd5a8]
int3
cmp ebx, 0x2728
je 0x14004f03f
cmp ebx, 0x2747
jne 0x14004f097
cmp dword [rdi + 0x180], 0
jne 0x14004f060
lea rdx, str.Hit_process_or_system_resource_limit_at_FIRST_connection._This_is_really_bad_as_there_is_no_sane_way_to_proceed._Will_try_busy_waiting_for_system_resources_to_become_magically_available._n
mov rcx, rdi
call fcn.140058130
xor eax, eax
jmp 0x14004ef9c
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x130]
mov byte [rdi + 0x17a], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [rdi + 0x180]
lea rdx, str.Hit_process_or_system_resource_limit_at__u_connections__temporarily_suspending_accept__._Consider_setting_a_lower_MHD_OPTION_CONNECTION_LIMIT._n
mov rcx, rdi
call fcn.140058130
xor eax, eax
jmp 0x14004ef9c
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140059450
add rsp, 0x60
pop rdi
ret
Function at 0x14004f4c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push r12
push r13
push r14
sub rsp, 0x50
mov r14, rcx
mov byte [rcx + 0x17c], 0
mov rcx, qword [rcx + 0x168]
mov r13, r9
mov r12, rdx
cmp rcx, 0xffffffffffffffff
je 0x14004f51d
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004f51d
nop dword [rax + rax]
mov rcx, qword [r14 + 0x168]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14004f500
mov rcx, qword [r14 + 0x158]
cmp rcx, 0xffffffffffffffff
je 0x14004f54b
movzx eax, byte [r14 + 0x179]
test al, al
jne 0x14004f54b
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004f54b
mov rcx, r14
call fcn.14004ee90
mov eax, dword [r14 + 0x194]
and eax, 4
test al, al
jne 0x14004f60c
mov qword [rsp + 0x78], rbx
mov rbx, qword [r14 + 0x18]
test rbx, rbx
je 0x14004f607
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
nop dword [rax + rax]
mov r15, qword [rbx + 0x118]
mov rbp, qword [rbx + 8]
cmp r15, 0xffffffffffffffff
je 0x14004f5e6
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r14
mov rcx, r15
test eax, eax
setne sil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r12
mov rcx, r15
test eax, eax
setne dil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
movzx r9d, sil
movzx r8d, dil
test eax, eax
mov rcx, rbx
setne dl
call fcn.14004d190
mov rbx, rbp
test rbp, rbp
jne 0x14004f590
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rcx, r14
call fcn.14004f0c0
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
ret
Function at 0x140050170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push r15
sub rsp, 0x68
mov rax, qword [0x1400bf018]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rcx + 0x178]
mov r15d, edx
mov rbx, rcx
test al, al
je 0x14005019f
xor eax, eax
jmp 0x140050353
mov eax, dword [rcx + 0x194]
and eax, 4
test al, al
jne 0x1400501b6
call fcn.14004fe20
jmp 0x140050353
mov rcx, qword [rcx + 0x158]
xor eax, eax
mov qword [rsp + 0x88], rbp
mov ebp, 0xffffffff
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x60], r12
lea edi, [rax + 1]
xor r12d, r12d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r14
mov esi, r12d
mov qword [rsp + 0x28], rax
mov r14d, ebp
mov qword [rsp + 0x30], rax
mov r13d, 0x300
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
cmp rcx, 0xffffffffffffffff
je 0x140050231
movzx eax, byte [rbx + 0x179]
test al, al
jne 0x140050231
mov qword [rsp + 0x28], rcx
mov ebp, r12d
mov dword [rsp + 0x30], r13d
mov esi, edi
mov rcx, qword [rbx + 0x168]
cmp rcx, 0xffffffffffffffff
je 0x140050252
mov eax, esi
mov r14d, esi
add rax, rax
inc esi
mov qword [rsp + rax*8 + 0x28], rcx
mov dword [rsp + rax*8 + 0x30], r13d
test dword [rbx + 0x194], 0x2000
je 0x140050266
mov rcx, rbx
call fcn.14004e920
test esi, esi
je 0x14005032a
mov eax, r12d
lea rcx, [rsp + 0x28]
sub eax, r15d
mov edx, esi
neg eax
sbb r8d, r8d
call qword [sym.imp.WS2_32.dll_WSAPoll]
test eax, eax
jns 0x1400502b9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x14005032a
mov ecx, eax
call fcn.140057770
mov r8, rax
lea rdx, [0x1400c1638]
mov rcx, rbx
call fcn.140058130
mov edi, r12d
jmp 0x14005032a
cmp r14d, 0xffffffff
je 0x1400502fd
movsxd rax, r14d
add rax, rax
movzx ecx, word [rsp + rax*8 + 0x32]
and cx, r13w
cmp r12w, cx
je 0x1400502fd
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x168]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1400502e0
movzx eax, byte [rbx + 0x178]
test al, al
jne 0x1400502b4
cmp ebp, 0xffffffff
je 0x14005032a
movsxd rcx, ebp
add rcx, rcx
movzx edx, word [rsp + rcx*8 + 0x32]
and dx, r13w
cmp r12w, dx
je 0x14005032a
mov rcx, rbx
call fcn.14004ee90
mov r14, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x98]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140059450
add rsp, 0x68
pop r15
pop rbx
ret
Function at 0x140052870
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x40], 1
test rcx, rcx
je 0x1400528b2
mov rcx, qword [rcx + 0x118]
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c7010]
lea rax, [0x1400c3678]
mov r9d, 0x234
lea rdx, [0x1400c3798]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3

Function at 0x140052900
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rcx, rcx
je 0x14005293f
mov rcx, qword [rcx + 0x118]
lea r9, [rsp + 0x40]
lea edx, [rbx + 6]
mov dword [rsp + 0x20], 4
lea r8d, [rbx + 1]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
lea r8, [0x1400c7080]
lea rax, str.NULL___connection
mov r9d, 0x286
lea rdx, [0x1400c38f8]
mov qword [rsp + 0x20], rax
call fcn.140005c40
mov ecx, 2
call fcn.1400622c8
mov rcx, rax
call fcn.140063028
call fcn.1400638ac
int3
Function at 0x1400584b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rsi, r9
mov ecx, 0x18
mov rdi, r8
mov rbp, rdx
call fcn.140061ddc
mov rbx, rax
test rax, rax
je 0x140058548
mov qword [rax], rsi
mov rax, qword [rsp + 0x60]
mov qword [rbx + 8], rax
mov eax, 0xffffffff
mov qword [rbx + 0x10], rbp
cmp rdi, rax
jbe 0x140058519
call fcn.140063860
mov rcx, rbx
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140062194
xor eax, eax
jmp 0x140058551
xor eax, eax
lea r8, [0x140058460]
mov qword [rsp + 0x28], rax
mov r9, rbx
mov edx, edi
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140065f24
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x14005854c
mov rcx, rbx
call fcn.140062194
xor eax, eax
jmp 0x140058551
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14005bba0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x1400a0178]
xor ecx, ecx
lea r8, [0x1400a0170]
lea rdx, str.FlsAlloc
call fcn.14005b9c8
mov rbx, rax
test rax, rax
je 0x14005bbe0
mov rcx, rax
call fcn.140059eb0
mov rcx, rdi
call rbx
jmp 0x14005bbe6
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005bc48
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400a0188]
mov ecx, 2
lea r8, [0x1400a0180]
lea rdx, str.FlsGetValue
call fcn.14005b9c8
mov rdi, rax
test rax, rax
je 0x14005bc89
mov rcx, rax
call fcn.140059eb0
mov ecx, ebx
call rdi
jmp 0x14005bc91
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005bc9c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400a0190]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400a0188]
call fcn.14005b9c8
mov rsi, rax
test rax, rax
je 0x14005bce8
mov rcx, rax
call fcn.140059eb0
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14005bcf3
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400640c0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400640e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400637f0
or eax, 0xffffffff
jmp 0x1400640e2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140066e48
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140066c6c
Function at 0x140076a40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2140]
mov eax, 0x2240
call fcn.140072e30
sub rsp, rax
mov rax, qword [0x1400bf018]
xor rax, rsp
mov qword [rbp + 0x2130], rax
mov rsi, rcx
lea r14, [0x1400cd630]
mov rcx, qword [0x1400cd600]
xor r15d, r15d
mov rdi, rdx
test rcx, rcx
jne 0x140076aa6
call fcn.14003d1a0
test eax, eax
je 0x140076a9c
mov ecx, r15d
jmp 0x140076aa6
mov qword [0x1400cd600], r14
mov rcx, r14
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 1]
call fcn.140041e20
xor r9d, r9d
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140041cc0
test eax, eax
je 0x140076ad6
mov ecx, eax
call fcn.140049560
mov ebx, eax
jmp 0x140076af6
lea rcx, [rbp + 0x80]
mov dword [rbp + 0xc8], r15d
mov dword [rbp + 0xb8], 0x1a4
call fcn.140043b30
mov ebx, dword [rbp - 0x18]
test ebx, ebx
jns 0x140076b2a
mov ecx, ebx
call fcn.14003b5f0
mov ecx, 2
mov rbx, rax
call fcn.1400622c8
mov rcx, rax
lea rdx, str.unable_to_open__s:__s_n
mov r9, rbx
mov r8, rsi
call fcn.140005c40
xor al, al
jmp 0x140076c52
lea rcx, [rsp + 0x60]
call fcn.1400444c0
lea rdx, [0x1400a99a4]
mov ecx, ebx
call fcn.14006824c
lea rcx, [rbp + 0x130]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov r9, rax
lea rcx, [rbp + 0x130]
mov qword [rsp + 0x30], 0x2000
mov qword [rsp + 0x40], rcx
mov edx, 1
lea rcx, [rbp + 0x130]
mov qword [rsp + 0x38], r15
mov r8d, 0x2000
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x58], r15b
mov qword [rsp + 0x50], r15
call fcn.14006261c
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rsp + 0x38], rcx
cmp rax, qword [rsp + 0x30]
jae 0x140076bc6
mov byte [rax + rdx], r15b
inc qword [rsp + 0x38]
mov byte [rsp + 0x58], 1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140006000
mov rcx, qword [0x1400cd600]
test rcx, rcx
jne 0x140076bf7
call fcn.14003d1a0
test eax, eax
je 0x140076bed
mov rcx, r15
jmp 0x140076bf7
mov qword [0x1400cd600], r14
mov rcx, r14
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 2]
call fcn.140041e20
lea rcx, [rbp + 0x80]
mov dword [rbp + 0xb0], ebx
call fcn.140043b30
lea rcx, [rsp + 0x60]
call fcn.1400444c0
mov ecx, dword [rdi + 0x50]
test ecx, ecx
je 0x140076c4a
call fcn.140005e80
mov r8d, dword [rdi + 0x58]
lea rcx, str._s__d_:__s_n
mov r9, rax
mov rdx, rsi
call fcn.140005c90
xor al, al
jmp 0x140076c52
cmp word [rdi + 0xe], 3
sete al
mov rcx, qword [rbp + 0x2130]
xor rcx, rsp
call fcn.140059450
mov rbx, qword [rsp + 0x2280]
add rsp, 0x2240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007b9e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0xd00], 2
mov rsi, rdx
mov rbx, rcx
je 0x14007ba0e
mov dword [rcx + 0xd00], 2
movzx ecx, word [rcx + 0xca8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
mov edx, 0x140
mov rcx, qword [rbx + 0xe28]
call fcn.1400594b0
mov ecx, 0x80
call fcn.140059474
mov rdx, qword [rbx + 0xd30]
mov ecx, 0x140
mov r14, rax
mov qword [rax], rdx
call fcn.140059474
mov r8, qword [0x1400cd600]
xor edi, edi
mov rcx, qword [rbx + 0xd30]
mov qword [rbx + 0xe28], rax
mov qword [rax], rcx
test r8, r8
jne 0x14007ba8c
call fcn.14003d1a0
test eax, eax
je 0x14007ba7e
mov r8d, edi
jmp 0x14007ba8c
lea r8, [0x1400cd630]
mov qword [0x1400cd600], r8
mov rdx, qword [rbx + 0xe28]
lea rax, [r8 + 0x10]
mov qword [rdx + 8], r8
lea rcx, [rdx + 0x20]
mov dword [rdx + 0x10], listen
mov dword [rdx + 0x58], 0x20
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [r8 + 0x18], rcx
mov dword [rdx + 0x30], 0xffffffff
mov qword [rdx + 0x60], rdi
mov qword [rdx + 0x78], rdi
mov qword [rdx + 0x108], rdi
mov dword [rdx + 0x100], edi
mov dword [rdx + 0x88], recv
mov qword [rdx + 0xc0], rdi
mov qword [rdx + 0xf0], rdi
mov qword [rdx + 0xf8], 0xffffffffffffffff
mov qword [rdx + 0x80], rdx
mov qword [rdx + 0x120], rdi
mov qword [rdx + 0x110], 0xffffffffffffffff
mov qword [rdx + 0x138], rdi
mov qword [rdx + 0x130], rdi
mov dword [rdx + 0x128], edi
mov dword [rdx + 0x118], edi
mov rdi, qword [rbx + 0xe28]
mov rcx, qword [rdi + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x14007bb78
mov edx, 6
mov dword [rsp + 0x40], 1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14007bb78
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14007bb7f
or dword [rdi + 0x58], 0x2000000
mov rdx, qword [rbx + 0xe28]
cmp dword [rdx + 0x10], 0xc
jne 0x14007bbb4
movzx eax, word [rsi]
cmp ax, 2
jne 0x14007bb9d
mov r9d, reloc.WS2_32.dll_recv
jmp 0x14007bba9
cmp ax, 0x17
jne 0x14007bbb4
mov r9d, 0x1c
mov r8, rsi
mov rcx, r14
call fcn.1400475f0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret