joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010e94
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r8d, r8d
lea edx, [r8 + 2]
lea esi, [rdx + 0x15]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010fb1
lea r9, [rbp - 0x3c]
mov dword [rbp - 0x3c], 1
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi - 0xd]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x180010fa8
lea r9, [rbp - 0x38]
mov dword [rbp - 0x38], 0x10000
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180010f30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rax, [rbp - 0x34]
mov dword [rbp - 0x34], 0x1c
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, str.ff02:0000:0000:0000:0000:0000:0000:0001
mov edx, esi
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x180010fa8
mov ecx, 0x59a
mov word [rbp - 0x30], si
call qword [sym.imp.WS2_32.dll_htons]
and dword [rbp - 0x2c], 0
lea rdx, [rbp - 0x40]
and dword [rbp - 0x18], 0
xor r9d, r9d
mov word [rbp - 0x2e], ax
mov rcx, rbx
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x1c
mov byte [rbp - 0x40], 2
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x180010fa8
mov rax, rbx
jmp 0x180010fb5
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
or rax, 0xffffffffffffffff
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180014440
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180011008
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x40], 0
mov rbx, rdx
xor edx, edx
mov r14, r8
mov rdi, rcx
mov esi, r9d
lea rcx, [rbp - 0x38]
lea r8d, [rdx + 0x30]
call fcn.180016020
and dword [rbp - 0x34], 0
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x38]
mov dword [rbp - 0x30], 2
lea rdx, str.1434
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18001109e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2af9
jne 0x180011097
or dword [rbp - 0x38], 4
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x38]
mov rcx, rbx
lea rdx, str.1434
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18001109e
xor al, al
jmp 0x18001112e
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x18001111f
cmp dword [rdi], 0x40
jge 0x18001111b
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x1800110b9
cmp ecx, 0x17
jne 0x180011112
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
call qword [sym.imp.WS2_32.dll_socket]
movsxd rcx, dword [rdi]
mov qword [rdi + rcx*8 + 8], rax
movsxd rax, dword [rdi]
mov rcx, qword [rdi + rax*8 + 8]
cmp rcx, 0xffffffffffffffff
je 0x180011112
mov eax, dword [rbx + 0x10]
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov r8d, esi
mov rax, qword [rbx + 0x20]
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x180011110
movsxd rcx, dword [rdi]
mov rcx, qword [rdi + rcx*8 + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180011112
inc dword [rdi]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800110a7
mov rbx, qword [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [rdi], 0
setne al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180011e5c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdx, qword [rcx]
lea r8, [rsp + 0x40]
mov rdi, rcx
xor r9d, r9d
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ebx, ebx
test eax, eax
je 0x180011eb9
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], ebx
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180011ee2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 0x24], eax
mov dword [rdi + 0x28], 5
jmp 0x180011ee2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x24], eax
mov ebx, eax
cmp eax, 0x274d
je 0x180011edb
cmp eax, 0x4c9
je 0x180011edb
mov dword [rdi + 0x28], 6
jmp 0x180011ee2
mov dword [rdi + 0x28], 7
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180011ef0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
and qword [rsp + 0x60], 0
mov rbx, rcx
mov edi, 0x20
mov ecx, edi
call fcn.18001446c
mov qword [rbx], rax
test rax, rax
jne 0x180011f29
lea edi, [rax + 0xe]
mov dword [rbx + 0x28], 2
mov dword [rbx + 0x24], edi
jmp 0x180011fee
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.180016020
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edi, [r9 + 1]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
jne 0x180011f6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rbx + 0x24], eax
mov dword [rbx + 0x28], 3
jmp 0x180011fee
mov rax, qword [rbx]
xor edx, edx
mov qword [rax + 0x18], rcx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x20]
call fcn.180016020
mov rax, qword [rbx + 8]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x20]
lea rdx, [0x18001dbb4]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x24], ecx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180011fbc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180011f5c
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rbx + 0x18]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x180011fec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rbx + 0x24], eax
mov dword [rbx + 0x28], 5
jmp 0x180011fee
xor edi, edi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180011ffe
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180012240
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov eax, r8d
mov rsi, rdx
lea r8, [rcx + 0x70]
mov rdi, rcx
mov edx, eax
lea r9d, [rbx + 0x30]
mov dword [rcx + 0xa4], r9d
lea r14d, [rbx + 2]
mov dword [r11 - 0x18], r14d
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x28], rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1800122ad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0xc3b4
lea ecx, [r14 + 5]
mov edx, eax
mov ebx, eax
call fcn.18000c5ec
jmp 0x1800122d1
or rax, 0xffffffffffffffff
inc rax
cmp byte [rax + rdi + 0x70], bl
jne 0x1800122b1
mov dword [rdi + 0xa4], eax
movzx ecx, word [rsi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi + 0xaa], ax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800122f0
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov eax, r8d
mov rsi, rdx
lea r8, [rcx + 0x38]
mov rdi, rcx
mov edx, eax
lea r9d, [rbx + 0x30]
mov dword [rcx + 0x6c], r9d
lea r14d, [rbx + 2]
mov dword [r11 - 0x18], r14d
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x28], rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x18001235a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0xc3b4
lea ecx, [r14 + 5]
mov edx, eax
mov ebx, eax
call fcn.18000c5ec
jmp 0x18001237b
or rax, 0xffffffffffffffff
inc rax
cmp byte [rax + rdi + 0x38], bl
jne 0x18001235e
mov dword [rdi + 0x6c], eax
movzx ecx, word [rsi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi + 0xa8], ax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800125fc
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x30]
call fcn.180016020
and dword [rbp - 0x2c], 0
mov rcx, rbx
mov dword [rbp - 0x30], 2
call fcn.1800129c0
test al, al
je 0x180012643
or dword [rbp - 0x30], 4
lea r9, [rbp + 0x28]
xor edx, edx
lea r8, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x180012728
mov rbx, qword [rbp + 0x28]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800126de
call fcn.1800129c0
test al, al
jne 0x1800126da
mov rcx, qword [rbp + 0x28]
or rax, 0xffffffffffffffff
mov rdx, qword [rcx + 0x18]
inc rax
cmp byte [rdx + rax], 0
jne 0x180012680
mov edi, 0x401
cmp eax, edi
jge 0x1800126cb
sub rdx, rsi
lea rax, [rdi + 0x7ffffbfd]
test rax, rax
je 0x1800126b3
mov al, byte [rdx + rsi]
test al, al
je 0x1800126b3
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x180012695
test rdi, rdi
lea rax, [rsi - 1]
cmovne rax, rsi
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
jmp 0x180012744
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ebx, 0x7a
mov edx, ebx
jmp 0x180012732
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x18001271f
mov edi, 0x401
mov edx, dword [rbx + 0x10]
mov r9d, edi
mov rcx, qword [rbx + 0x20]
mov r8, rsi
mov dword [rsp + 0x30], 4
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x18001275a
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800126e8
mov rbx, qword [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov edx, eax
mov r8d, 0xc3b4
mov ecx, 7
call fcn.18000c5ec
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp + 0x28]
jmp 0x1800126c1
Function at 0x180012764
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x38], 0
mov rbx, rcx
and qword [rbp + 0x48], 0
lea rcx, [rbp - 0x30]
and qword [rbp + 0x40], 0
xor r15d, r15d
xor edx, edx
lea r8d, [r15 + 0x30]
call fcn.180016020
and dword [rbp - 0x2c], r15d
lea rdi, [0x18001dbb4]
mov rdx, rdi
mov dword [rbp - 0x28], 1
lea r9, [rbp + 0x38]
mov dword [rbp - 0x30], 1
lea r8, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180012806
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2af9
jne 0x1800127f5
or dword [rbp - 0x30], 4
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180012806
mov rdi, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x40]
jmp 0x1800128ce
lea r9, [rbp + 0x48]
mov dword [rbp - 0x30], 4
lea r8, [rbp - 0x30]
mov dword [rbp - 0x2c], 2
mov rdx, rdi
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
lea r9, [rbp + 0x40]
mov dword [rbp - 0x2c], reloc.WS2_32.dll_socket
lea r8, [rbp - 0x30]
mov rdx, rdi
lea rcx, [0x18001dbc4]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rsi, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x40]
test rsi, rsi
jne 0x180012863
test rbx, rbx
jne 0x180012863
mov rdi, qword [rbp + 0x38]
jmp 0x1800128ce
mov rdi, qword [rbp + 0x38]
mov r14, rdi
test rdi, rdi
je 0x1800128e4
test rsi, rsi
je 0x180012896
cmp dword [r14 + 4], 2
jne 0x180012896
mov r8, qword [r14 + 0x10]
cmp r8, qword [rsi + 0x10]
jne 0x180012896
mov rdx, qword [rsi + 0x20]
mov rcx, qword [r14 + 0x20]
call fcn.1800171e0
test eax, eax
je 0x1800128c8
test rbx, rbx
je 0x1800128bd
cmp dword [r14 + 4], 0x17
jne 0x1800128bd
mov r8, qword [r14 + 0x10]
cmp r8, qword [rbx + 0x10]
jne 0x1800128bd
mov rdx, qword [rbx + 0x20]
mov rcx, qword [r14 + 0x20]
call fcn.1800171e0
test eax, eax
je 0x1800128c8
mov r14, qword [r14 + 0x28]
test r14, r14
je 0x1800128ce
jmp 0x18001286f
mov r15d, 1
test rdi, rdi
je 0x1800128e4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rsi, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x40]
test rsi, rsi
je 0x1800128f6
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbx, qword [rbp + 0x40]
test rbx, rbx
je 0x180012904
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, r15d
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001291c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18001297c
mov ecx, 0x101
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x18001297c
mov r8d, 0xc3b4
mov edx, eax
mov ecx, 7
call fcn.18000c5ec
jmp 0x18001299c
call fcn.180014194
mov ebx, eax
test eax, eax
jne 0x180012968
and dword [rdi + 4], ebx
lea eax, [rbx + 1]
and dword [rdi + 8], ebx
mov dword [rdi + 0xc], eax
mov dword [rdi + 0x10], eax
mov dword [rdi], 7
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180014440
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1e0
pop rdi
ret
Function at 0x180012fe4
Capabilities:
Connect socket

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r14d, r8d
mov rdi, rdx
mov r15, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
and qword [rbp - 0x28], 0
or qword [rbp - 0x20], 0xffffffffffffffff
mov byte [rbp - 0x18], 0
and dword [rbp - 0x14], 0
and dword [rbp - 0x10], 0
mov r8d, dword [rdx + 0xc]
mov edx, dword [rdx + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rbp - 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x18001305a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x10], 5
jmp 0x18001307f
mov edx, 1
mov r8d, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x18001308a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x10], 3
mov dword [rbp - 0x14], eax
mov ebx, eax
mov rdi, qword [rbp - 0x30]
jmp 0x180013090
mov qword [rbp - 0x30], rdi
xor ebx, ebx
test ebx, ebx
jne 0x18001317a
cmp r14d, 0xffffffff
je 0x18001312a
lea rcx, [rbp - 0x38]
call fcn.180011ef0
mov ebx, eax
test eax, eax
jne 0x18001317a
lea rcx, [rbp - 0x38]
call fcn.180011d50
mov ebx, eax
mov eax, 0x3e5
test ebx, ebx
je 0x1800130d1
cmp ebx, eax
jne 0x180013176
cmp ebx, eax
jne 0x180013124
mov edx, r14d
mov rcx, qword [rbp - 0x38]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1800130f8
mov byte [rbp - 0x18], al
lea rcx, [rbp - 0x38]
call fcn.180011e5c
jmp 0x180013122
mov ebx, 0x102
cmp eax, ebx
jne 0x18001310d
mov dword [rbp - 0x14], ebx
mov dword [rbp - 0x10], 1
jmp 0x180013124
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x10], 4
and qword [rbp - 0x38], 0
mov ebx, eax
mov rsi, qword [rbp - 0x20]
jmp 0x180013169
xor ebx, ebx
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180013169
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rbp - 0x14], eax
cmp eax, 0x274d
je 0x180013162
cmp eax, 0x4c9
mov dword [rbp - 0x10], 6
jne 0x180013169
mov dword [rbp - 0x10], 7
test ebx, ebx
jne 0x18001317a
or qword [rbp - 0x20], 0xffffffffffffffff
mov qword [r15 + 0x30], rsi
test ebx, ebx
je 0x18001318d
mov r8d, 0xc3b4
mov edx, ebx
mov ecx, 7
call fcn.18000c5ec
nop
lea rcx, [rbp - 0x38]
call fcn.180011ca0
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800137d4
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
mov r9d, dword [rdx + 0x58]
xor ebx, ebx
add r9, qword [rdx + 0x48]
mov rdi, rdx
mov dword [rax + 0x18], ebx
mov rsi, rcx
mov dword [rax + 8], ebx
mov eax, dword [rdx + 0x50]
add r9, rax
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x48], r9
cmp qword [rcx + 0xb0], rbx
je 0x18001382f
mov edx, 0x139f
mov ebx, edx
mov r8d, 0xc3b4
mov ecx, 7
call fcn.18000c5ec
jmp 0x1800138bc
mov qword [rdx + 0x18], rbx
lea rax, [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x18001387c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x180013875
mov edx, eax
jmp 0x18001381a
mov ebx, 0x3e5
jmp 0x1800138bc
cmp dword [0x1800282e8], ebx
je 0x180013875
mov rcx, qword [rsi + 0x30]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1800138a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180013871
mov eax, dword [rsp + 0x70]
test eax, eax
jne 0x1800138b9
mov edx, 0x2746
jmp 0x180013818
add dword [rdi + 0x50], eax
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180013fd4
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x70
mov qword [rax - 0x38], 0xfffffffffffffffe
mov rbx, rcx
xor edi, edi
and dword [rax + 0x10], edi
and dword [rax + 8], edi
mov rax, qword [rcx + 0xd8]
cmp dword [rax], 0x103
je 0x18001418a
mov rax, qword [rcx + 0xd0]
mov qword [rsp + 0x58], rax
and dword [rsp + 0x60], edi
lea rsi, [rax + 0x10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x60], 1
mov rdx, qword [rbx + 0xd8]
cmp dword [rdx], 0x103
jne 0x180014048
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x18001418c
xor r9d, r9d
lea r8, [rsp + 0x98]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x18001407e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x3e3
je 0x18001407e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18001418a
mov rax, qword [rbx + 0xd8]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2000747a
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x1800140ee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1800140ee
mov rax, qword [rbx + 0xd8]
cmp qword [rax], 0x103
jne 0x1800140e3
and qword [rax], 0
and dword [rbx + 0xe0], 0
xor edi, edi
jmp 0x180014070
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov edi, 4
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x18001413f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1800140e3
cmp dword [rsp + 0x90], 0x2000
jbe 0x18001417f
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x90]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18001417f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x180014070
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
mov eax, edi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x2fc544890
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc545970
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc545292
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc567108]
test eax, eax
je 0x2fc54532a
lea rax, [0x2fc5670e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc567110]
mov qword [rbp - 8], rax
jmp 0x2fc54530e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc545302
cmp qword [rbp - 0x10], 0
je 0x2fc545302
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5452c8
lea rax, [0x2fc5670e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc54532b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc545430
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc545458
mov eax, 0
jmp 0x2fc5454a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc545481
mov eax, 0
jmp 0x2fc5454a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc5454a1
mov eax, 0
jmp 0x2fc5454a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5454ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc54552a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc545521
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc545521
mov rax, qword [rbp - 8]
jmp 0x2fc54553f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5454f4
mov eax, 0
add rsp, 0x20
pop rbp
ret