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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x28], 0
mov rdi, rcx
mov r15d, dword [rcx + 0x14]
mov rsi, qword [rcx + 0x40]
mov r12, qword [rcx + 0x30]
jne 0x18006a5f1
xor ebx, ebx
test byte [rcx + 0xc], 2
jne 0x18006a610
mov ecx, r15d
call fcn.18023eec4
lea rdx, [r12 + rsi]
cmp rax, 0xffffffffffffffff
je 0x18006a6d3
mov r9, rdx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edx
lea r8d, [rbx + 2]
shr r9, 0x20
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp rax, 0xffffffffffffffff
je 0x18006a610
or dword [rdi + 0x10], 2
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x38], r12
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor edx, edx
mov ecx, r15d
lea r8d, [rdx + 1]
call fcn.1802395a8
mov rcx, rsi
mov r13, rax
mov rbp, rbx
call fcn.18022c454
mov r14, rax
test rax, rax
je 0x18006a6d3
test r13, r13
js 0x18006a6cb
xor r8d, r8d
mov rdx, r12
mov ecx, r15d
call fcn.1802395a8
test rax, rax
js 0x18006a6cb
test rsi, rsi
jle 0x18006a681
nop dword [rax]
mov r8d, esi
lea rdx, [r14 + rbx]
sub r8d, ebx
mov ecx, r15d
call fcn.18023d0c4
movsxd rbp, eax
test eax, eax
jle 0x18006a681
add rbx, rbp
cmp rbx, rsi
jl 0x18006a660
call fcn.1802397c4
xor r8d, r8d
mov rdx, r13
mov ecx, r15d
mov r12d, dword [rax]
call fcn.1802395a8
test rbp, rbp
js 0x18006a6b1
jne 0x18006a6a3
cmp rsi, rbx
jg 0x18006a6b1
test rax, rax
js 0x18006a6cb
mov qword [rdi + 0x28], r14
jmp 0x18006a5f1
mov rcx, r14
call fcn.18022c440
call fcn.1802397c4
mov dword [rax], r12d
mov eax, 0xffffffff
jmp 0x18006a5f3
mov rcx, r14
call fcn.18022c440
mov eax, 0xffffffff
jmp 0x18006a5f3
Function at 0x18006f590
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xa0
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov ebp, r8d
mov rbx, rcx
test rcx, rcx
jne 0x18006f649
test dx, dx
jne 0x18006f649
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov edx, 0x84000001
lea ecx, [rbx + 2]
call fcn.18004f7d0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18006f5fd
lea rdx, str.socket
mov rcx, rax
call fcn.180062b10
mov rax, rdi
jmp 0x18006f7b8
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18006f641
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov ebx, eax
call sub.WS2_32.dll_closesocket
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, 0xffffffffffffffff
mov rax, rdi
jmp 0x18006f7b8
xor eax, eax
movzx r9d, dx
xorps xmm0, xmm0
mov qword [rsp + 0xd0], rsi
xorps xmm1, xmm1
mov qword [rsp + 0x38], rax
lea r8, [0x180253e84]
mov dword [rsp + 0x6c], eax
lea edx, [rax + 0x20]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], 1
movdqu xmmword [rsp + 0x4c], xmm0
mov dword [rsp + 0x40], 0x401
movdqu xmmword [rsp + 0x5c], xmm1
call fcn.18004ca00
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
call fcn.18004d8f0
test eax, eax
je 0x18006f6f6
cmp eax, 0xfffffc71
jne 0x18006f6d4
lea rcx, [0x180262b80]
call fcn.180062a70
mov rax, 0xffffffffffffffff
jmp 0x18006f7b0
mov ecx, eax
call fcn.18004dc60
mov rdx, rax
lea rcx, str.getaddrinfo:__s
call fcn.180062bc0
mov rax, 0xffffffffffffffff
jmp 0x18006f7b0
mov rsi, qword [rsp + 0x38]
test rsi, rsi
jne 0x18006f709
lea rax, [rsi - 1]
jmp 0x18006f7b0
mov ecx, dword [rsi + 4]
xor r8d, r8d
mov edx, 0x84000001
mov dword [rsp + 0x30], 1
call fcn.18004f7d0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18006f73b
lea rdx, str.socket
mov rcx, rax
call fcn.180062b10
jmp 0x18006f7a5
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x18006f786
test ebp, ebp
je 0x18006f770
mov rcx, rdi
call fcn.18004c6c0
test eax, eax
js 0x18006f786
mov r8d, dword [rsi + 0x10]
mov rcx, rdi
mov rdx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x18006f7a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov ebx, eax
call sub.WS2_32.dll_closesocket
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, 0xffffffffffffffff
mov rcx, rsi
call fcn.18004dc00
mov rax, rdi
mov rsi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180227e50
add rsp, 0xa0
pop rdi
pop rbp
pop rbx
ret
Function at 0x180073860
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x470], rax
movsxd r12, r9d
lea rax, [rsp + 0x40]
mov r15, r8
mov dword [rsp + 0x30], 0xa
mov r14, rdx
mov dword [rsp + 0x28], 0x20
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov edx, r12d
lea r8, [rsp + 0x60]
mov rcx, r15
mov r9d, 0x401
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x18007390f
mov qword [rsp + 0x30], rbx
mov r9d, 0x400
lea rbx, [0x180333f20]
mov dword [rsp + 0x28], 0x400
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, rbx
lea rdx, str.getnameinfo_failed:__s
mov ecx, 1
call fcn.180062b60
jmp 0x180073a32
lea rcx, [rsp + 0x60]
call fcn.180232140
lea rcx, [rsp + 0x40]
mov rbp, rax
call fcn.180232140
mov rsi, rax
test rbp, rbp
je 0x180073a25
test rax, rax
je 0x180073a20
mov rax, qword [rdi + 0xa8]
test rax, rax
je 0x18007395a
mov rdx, qword [rdi + 0xb0]
mov rcx, qword [rdi + 0xb8]
call rax
mov rbx, rax
mov rcx, rsi
call fcn.18023c5a0
mov rcx, qword [rdi + 0xb8]
mov r9, rbp
mov r8, rbx
mov word [rsp + 0x20], ax
xor edx, edx
call fcn.18006c630
mov rcx, rbp
mov rbx, rax
call fcn.18022c440
mov rcx, rsi
call fcn.18022c440
test rbx, rbx
je 0x180073a32
mov rcx, qword [rdi + 0x70]
mov qword [rbx + 0xb8], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rbx + 0xc0], rcx
test byte [rdi + 0x80], 1
je 0x1800739bd
or dword [rbx + 0xc8], 0x20
mov rcx, qword [rbx + 0x18]
mov rdx, r14
or dword [rbx + 0xc8], 1
mov dword [rbx + 0xe4], 3
mov qword [rbx + 0x10], r14
call fcn.180063010
test eax, eax
jne 0x180073a16
mov rcx, qword [rbx + 0x18]
lea edx, [rax + 2]
call fcn.180063260
test eax, eax
jne 0x180073a16
mov rcx, qword [rbx + 0x18]
lea edx, [rax + 4]
call fcn.180063300
test eax, eax
jne 0x180073a16
mov rcx, qword [rbx + 0x18]
mov r8, r12
mov rdx, r15
call fcn.1800658b0
mov rax, rbx
jmp 0x180073a34
mov rcx, rbx
call fcn.18006cb00
jmp 0x180073a32
mov rcx, rbp
jmp 0x180073a2d
test rsi, rsi
je 0x180073a32
mov rcx, rsi
call fcn.18022c440
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180227e50
add rsp, 0x480
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180074eb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx eax, byte [0x18032f5f0]
lea rdi, [0x18032f5f0]
add al, 0xff
mov r11d, edx
xor r10d, r10d
mov rbx, rcx
nop dword [rax]
nop word [rax + rax]
inc al
mov byte [0x18032f5f0], al
movzx r9d, al
mov eax, r10d
cdq
inc r10d
idiv r11d
movzx r8d, byte [r9 + rdi + 2]
movsxd rax, edx
movzx ecx, r8b
add cl, byte [rax + rbx]
movzx eax, byte [0x18032f5f1]
add al, cl
mov byte [0x18032f5f1], al
movzx ecx, al
movzx eax, byte [rcx + rdi + 2]
mov byte [r9 + rdi + 2], al
movzx eax, byte [0x18032f5f1]
mov byte [rax + rdi + 2], r8b
movzx eax, byte [0x18032f5f0]
cmp r10d, 0x100
jl 0x180074ee0
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov byte [0x18032f5f1], al
ret
Function at 0x1800750f0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x68
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp dword [0x18032f5e8], 0
jne 0x180075142
xor eax, eax
lea rcx, [0x18032f5f2]
nop word [rax + rax]
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x100
jl 0x180075120
mov word [0x18032f5f0], 0
mov dword [0x18032f5e8], 1
cmp dword [0x18032f6f8], 0
jne 0x18007518a
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x18032f700]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180075180
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800752ce
mov dword [0x18032f6f8], 1
mov rcx, qword [0x18032f700]
lea r8, [rsp + 0x30]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1800752ce
mov edx, 0x20
lea rcx, [rsp + 0x30]
call fcn.180074eb0
mov edx, 0x20
lea rcx, [rsp + 0x30]
call fcn.18004f980
mov r9d, 0x400
lea r10, [0x18032f5f0]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [0x18032f5f0]
inc al
mov byte [0x18032f5f0], al
movzx r8d, al
movzx eax, byte [0x18032f5f1]
movzx edx, byte [r8 + r10 + 2]
add al, dl
mov byte [0x18032f5f1], al
movzx ecx, al
movzx eax, byte [rcx + r10 + 2]
mov byte [r8 + r10 + 2], al
movzx eax, byte [0x18032f5f1]
mov byte [rax + r10 + 2], dl
movzx eax, byte [0x18032f5f0]
inc al
mov byte [0x18032f5f0], al
movzx r8d, al
movzx eax, byte [0x18032f5f1]
movzx edx, byte [r8 + r10 + 2]
add al, dl
mov byte [0x18032f5f1], al
movzx ecx, al
movzx eax, byte [rcx + r10 + 2]
mov byte [r8 + r10 + 2], al
movzx eax, byte [0x18032f5f1]
mov byte [rax + r10 + 2], dl
movzx eax, byte [0x18032f5f0]
inc al
mov byte [0x18032f5f0], al
movzx r8d, al
movzx eax, byte [0x18032f5f1]
movzx edx, byte [r8 + r10 + 2]
add al, dl
mov byte [0x18032f5f1], al
movzx ecx, al
movzx eax, byte [rcx + r10 + 2]
mov byte [r8 + r10 + 2], al
movzx eax, byte [0x18032f5f1]
mov byte [rax + r10 + 2], dl
sub r9, 1
jne 0x1800751e0
mov dword [0x18032f6f4], 0x186a00
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180227e50
add rsp, 0x68
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180227e50
add rsp, 0x68
ret
Function at 0x18007c970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
test rcx, rcx
je 0x18007c9ca
call fcn.180079360
test rax, rax
je 0x18007c9ca
call fcn.180078f00
cmp qword [rax], 0
je 0x18007c9ca
cmp qword [rax + 0x10], 0
je 0x18007c9ca
mov r9d, edi
mov r8, r14
mov rdx, r15
mov rcx, rsi
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
jmp fcn.18007cfb0
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
test eax, eax
jle 0x18007c9e0
mov edx, eax
jmp 0x18007c9e7
jns 0x18007c9f6
mov edx, 0x80
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x18007ca11
mov r12d, 1
mov edx, 0xb0
mov ecx, r12d
call fcn.180237840
mov rbx, rax
test rax, rax
jne 0x18007ca18
xor eax, eax
jmp 0x18007ca9d
lea rax, [0x1802630d8]
mov qword [rbx + 0x10], r15
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x20], r14
mov dword [rbx + 0x28], edi
mov word [rbx + 0x2c], r12w
mov dword [rbx + 0x30], eax
test r12b, dil
jne 0x18007ca44
mov eax, 0x4000000
mov dword [rbx + 0x30], eax
test dil, 4
je 0x18007ca52
or eax, 0x80000000
mov dword [rbx + 0x30], eax
test dil, 0x10
je 0x18007ca64
mov ecx, r12d
call fcn.180075ad0
mov qword [rbx + 8], rax
mov r8, qword [rsp + 0x78]
lea rax, [0x18007d3d0]
mov r9d, reloc.WS2_32.dll_select
mov qword [rsp + 0x28], rbx
lea rcx, [rbx + 0x38]
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.1800522e0
test dil, 0x20
jne 0x18007ca9a
mov rcx, rbx
call fcn.18007cd80
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18007d9d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
call fcn.180078f00
movzx ecx, byte [rbx + 0x91]
xor r8d, r8d
mov rsi, rax
mov dword [rsp + 0x50], 0
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov r9, qword [rbx + 0x88]
mov rdi, rax
test byte [r9 + 0x34], 1
je 0x18007db6c
cmp rax, 0xffffffffffffffff
jne 0x18007da2c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18007db55
add r9, 0x38
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rbx + 0x88]
test byte [rax + 0x28], 1
jne 0x18007da61
mov rcx, rdi
call fcn.18004c660
mov rcx, qword [rbx + 0x88]
mov r8d, 1
mov rdx, rdi
mov rcx, qword [rcx + 0x48]
call fcn.180079210
test eax, eax
jns 0x18007da9c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
movzx edx, byte [rbx + 0x90]
lea rax, [rbx + 0x28]
mov rcx, qword [rbx + 0x88]
lea r8, [rbx + 0x98]
mov qword [rsp + 0x38], rax
xor r9d, r9d
shr edx, 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
mov rdx, rdi
mov qword [rbx + 0x50], rdi
mov rcx, qword [rcx + 0x38]
call qword [rsi]
test eax, eax
je 0x18007db48
mov rax, qword [rbx + 0x88]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18007daf9
xor ecx, ecx
call fcn.180075b10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x88]
lea rdx, [rbx + 0x60]
mov rcx, qword [rcx + 0x40]
call fcn.180053c80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbx + 0x88]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x18007db6c
xor ecx, ecx
call fcn.180075b30
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x18007db6c
mov rcx, qword [rbx + 0x88]
lea rdx, [rbx + 0x60]
mov dword [rbx + 0x58], eax
mov rcx, qword [rcx + 0x40]
call fcn.180053c80
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18007e060
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x178
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x18007e29b
test byte [rcx + 0x38], 0x10
je 0x18007e29b
mov rdx, qword [rcx + 0x30]
xor esi, esi
mov qword [rsp + 0x1b8], rbp
mov dword [rsp + 0x40], esi
test rdx, rdx
je 0x18007e0b9
xor ecx, ecx
call fcn.180075b10
test byte [rdi + 0x38], 4
mov ebp, 0xffffffff
jne 0x18007e27f
test byte [rdi + 0x90], 1
jne 0x18007e27f
xor edx, edx
mov qword [rsp + 0x160], r15
mov r8d, 0x100
mov qword [rdi + 0x98], rsi
lea rcx, [rdi + 0xa8]
mov dword [rdi + 0xa0], esi
call fcn.180229410
lea r8d, [rbp + 0x11]
mov rdx, rbx
mov rcx, rdi
call fcn.180069c60
cmp eax, ebp
je 0x18007e277
mov qword [rsp + 0x170], r13
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x168], r14
call fcn.180069520
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 1
lea r9d, [rbp + 0x11]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.180069ee0
movsxd r14, eax
mov r13, rdi
mov rdx, r14
test eax, eax
jle 0x18007e1a0
lea r8, [rsp + 0x50]
sub r8, rdi
lea r9, [rsp + 0x58]
sub r9, rdi
lea rcx, [rdi + 0xa8]
nop dword [rax]
mov rax, qword [r8 + rcx - 0xa8]
mov qword [rcx + 8], rax
mov eax, dword [r9 + rcx - 0xa8]
mov dword [rcx], eax
lea rcx, [rcx + 0x10]
sub rdx, 1
jne 0x18007e180
mov rax, qword [rsp + 0x48]
mov dword [rdi + 0xa0], r14d
mov rbx, qword [rax]
mov qword [rdi + 0x98], rbx
test rbx, rbx
je 0x18007e1d5
nop dword [rax + rax]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.180069b50
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18007e1c0
mov rcx, rdi
call fcn.180069ad0
mov rcx, qword [r13 + 0x88]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], r12
lea rdx, [rdi + 0xa8]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov r14, qword [rsp + 0x168]
mov r13, qword [rsp + 0x170]
test eax, eax
je 0x18007e26e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x18007e26e
mov rcx, qword [rdi + 0x98]
cmp dword [rdi + 0xa0], esi
jle 0x18007e25a
nop dword [rax]
mov rbx, qword [rcx]
mov edx, reloc.WS2_32.dll_recv
call fcn.180069b60
inc esi
mov rcx, rbx
cmp esi, dword [rdi + 0xa0]
jl 0x18007e240
xor edx, edx
mov rcx, rdi
call fcn.180069580
mov rcx, rdi
call fcn.180066230
jmp 0x18007e277
or dword [rdi + 0x90], 1
mov ebp, esi
mov r15, qword [rsp + 0x160]
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x18007e28f
xor ecx, ecx
call fcn.180075b30
mov eax, ebp
mov rbp, qword [rsp + 0x1b8]
jmp 0x18007e2a0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180227e50
add rsp, 0x178
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18007e2d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x48
xor edi, edi
mov rbp, rdx
mov r14, rcx
test rcx, rcx
je 0x18007e2fd
test byte [rcx + 0x38], 0x10
je 0x18007e2fd
mov rsi, rcx
lea r12d, [rdi - 1]
jmp 0x18007e30f
mov r12d, 0xffffffff
mov rsi, rdi
test r14, r14
je 0x18007e4cb
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x18007e31f
xor ecx, ecx
call fcn.180075b10
test byte [r14 + 0x38], 2
jne 0x18007e4bb
test byte [rsi + 0x90], 2
jne 0x18007e4bb
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x18007e4b8
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x40], r15
test rbp, rbp
js 0x18007e35b
cmp rbp, rax
jbe 0x18007e35e
mov rbp, rax
mov edx, 1
mov rcx, r14
call fcn.180069520
lea r15, [rsi + 0xa8]
mov qword [rsi + 0x98], rdi
mov rcx, r15
mov dword [rsi + 0xa0], edi
xor edx, edx
mov r8d, 0x100
call fcn.180229410
mov rbx, qword [r14]
mov ecx, edi
mov dword [rsp + 0x80], ecx
mov r13, rdi
mov qword [rsi + 0x98], rbx
test rbx, rbx
je 0x18007e3ff
mov rax, qword [rbx + 0x28]
mov edx, 0x20
add rax, qword [rbx + 0x10]
mov rcx, rbx
mov qword [r15 + 8], rax
call fcn.180069b50
mov ecx, dword [rsp + 0x80]
mov rax, qword [rbx + 0x18]
inc ecx
mov dword [rsp + 0x80], ecx
cmp rbp, rax
jbe 0x18007e3f5
mov dword [r15], eax
inc r13
sub rbp, qword [rbx + 0x18]
add r15, 0x10
mov rbx, qword [rbx]
cmp r13, 0x10
jl 0x18007e3a5
jmp 0x18007e3ff
mov dword [r15], ebp
mov dword [rsp + 0x80], ecx
mov dword [rsi + 0xa0], ecx
mov rcx, r14
call fcn.180069ad0
mov rax, qword [rsp + 0x90]
lea r9, [rsp + 0x98]
mov r8d, dword [rsp + 0x80]
lea rdx, [rsi + 0xa8]
mov rcx, qword [rsi + 0x88]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASend]
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x88]
test eax, eax
je 0x18007e4b1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x18007e4b1
mov rcx, qword [rsi + 0x98]
cmp dword [rsi + 0xa0], edi
jle 0x18007e49a
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.180069b60
inc edi
mov rcx, rbx
cmp edi, dword [rsi + 0xa0]
jl 0x18007e480
mov edx, 1
mov rcx, r14
call fcn.180069580
mov rcx, r14
call fcn.180066230
jmp 0x18007e4bb
or dword [rsi + 0x90], 2
mov r12d, edi
mov rdx, qword [r14 + 0x30]
test rdx, rdx
je 0x18007e4cb
xor ecx, ecx
call fcn.180075b30
mov eax, r12d
add rsp, 0x48
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800aaaed
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
in eax, 0x48
sub esp, 0x60

Function at 0x1800aaaf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
in eax, 0x48
sub esp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
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 rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x1800aabdb

Function at 0x1800aac00
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x1800d4bb0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180227e80
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1800d6ef0
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1800d6f5c
movzx ecx, byte [rcx]
test cl, cl
je 0x1800d6f5c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1800d6f10
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x1800d6f60
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.180227e80
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1800d6ff3
movzx eax, byte [rcx]
test al, al
je 0x1800d6ff3
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.180114670
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x1800d6f90
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1800ed220
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180227e80
sub rsp, rax
lea rcx, [0x18032fe88]
add rsp, 0x28
jmp fcn.1800d4a30