joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019f2a0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140498128]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14019f306
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14019f2e9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14019f2e3
shr ax, 8
cmp al, 2
je 0x14019f306
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401702c0
add rsp, 0x1e8
ret
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14019f339
mov qword [0x1406faf98], rsi
jmp 0x14019f4c4
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x14044e6f8]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x14043143c]
call fcn.14037bf90
test rax, rax
je 0x14019f39d
mov rcx, rbx
test rbp, rbp
je 0x14019f38f
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14019f48c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14019f48c
test rbp, rbp
je 0x14019f3cc
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14019f3cc
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14019f48c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x14019f484
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.140375e18]
mov rdi, rax
test rax, rax
je 0x14019f47b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14019f47b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14019f420
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x14019f432
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14019f450
mov rcx, rdi
test rbp, rbp
je 0x14019f472
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14019f478
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140374388]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1406faf98], rsi
test rsi, rsi
je 0x14019f4c4
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14019f4c4
mov qword [0x1406faf90], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401bfa60
test al, al
lea rcx, [0x1406fafa0]
setne byte [0x1406fafa8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401702c0
add rsp, 0x1e8
ret
Function at 0x1401a1a00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x1401a1ba4
cmp r9, 4
jb 0x1401a1a4a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x1401a1a30
xor r11d, r11d
test r9, r9
je 0x1401a1ba4
cmp r9, 8
jb 0x1401a1b7d
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x1401a1a7c
cmp rdx, r8
jae 0x1401a1b7d
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x1401a1a91
cmp rdx, r10
jae 0x1401a1b7d
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1401a1b37
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x1401a1ad0
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x1401a1b6f
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax + rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x1401a1b50
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1401a1ba4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x1401a1b90
add rsp, 8
ret
Function at 0x1401a1bb0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1401a1be7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x1401a1bd0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1401a1cd8
sub rcx, r10
cmp r9, 8
jb 0x1401a1cb9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x1401a1c40
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1401a1cd8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1401a1cc0
test r8d, r8d
sete al
ret

Function at 0x1401a7b90
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1401a7ba5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1401a7750
Function at 0x1401b5450
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1401a6dd0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1401b4830
mov rcx, rdi
mov rsi, rax
call fcn.1401b4830
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401b5500
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1401a6dd0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1401a6e60
cmp rax, 0x3e8
ja 0x1401b5531
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1401b54b0
test rsi, rsi
je 0x1401b550d
mov rcx, rsi
call fcn.140374388
test rbx, rbx
je 0x1401b551a
mov rcx, rbx
call fcn.140374388
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1401b553e
mov rcx, rsi
call fcn.140374388
test rbx, rbx
je 0x1401b554b
mov rcx, rbx
call fcn.140374388
mov eax, 1
jmp 0x1401b551c
Function at 0x1401b5560
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140498128]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1401b55b2
jmp 0x1401b577b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401b5752
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1401b5752
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401b5752
cmp dword [rbp - 0x40], 0x10
jl 0x1401b5752
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1401b5752
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1401b5752
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401b5752
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1401bf4c0
test eax, eax
js 0x1401b5752
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.1401b0b80
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1401b5752
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401b5752
cmp dword [rbp - 0x40], 0x10
jl 0x1401b5752
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1401b5752
cmp dword [rbp - 0x40], 0x10
jl 0x1401b5752
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x1401b5752
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x1401b5752
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x1401b5752
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1401b5773
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401702c0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b57d0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1401b596e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1401b594e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1401b583e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401b5830
inc rbx
jmp 0x1401b5840
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1401b584d
lea ebp, [rax + 0xe]
jmp 0x1401b5859
cmp eax, 0x17
jne 0x1401b58f1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1401b58f1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1401b58f1
cmp rax, rbp
jb 0x1401b58f1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.140375e18]
mov r14, rax
test rax, rax
je 0x1401b5900
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.1403584b0
test rbx, rbx
je 0x1401b58de
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1403584b0
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1401b58ee
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1401b5820
jmp 0x1401b5906
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1401b5920
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1401b5949
test rdi, rdi
je 0x1401b5945
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.140374388]
mov rdi, rbx
test rbx, rbx
jne 0x1401b5930
xor edi, edi
jmp 0x1401b595d
test rdi, rdi
jne 0x1401b595d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x1401bbc00
Capabilities:
Query environment variable

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, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x140498478]
mov rdi, rax
test rax, rax
je 0x1401bbc7d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1401bbca8
cmp ebx, esi
je 0x1401bbca8
cmp ebx, 0x8000
ja 0x1401bbca8
cmp ebx, esi
jb 0x1401bbca3
mov edx, ebx
mov rcx, rdi
call qword [0x140498478]
mov rdi, rax
test rax, rax
jne 0x1401bbc40
mov rcx, rbp
call qword [fcn.140374388]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1401bbc88
mov rcx, rdi
jmp 0x1401bbc80
Function at 0x1401bd7f0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x88
mov rax, qword [0x140498128]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
mov rbx, rsi
mov rdi, rdx
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1401bd820
mov qword [rsp + 0xc0], rbp
xor r15d, r15d
cmp byte [rdx], 0x5b
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r14
jne 0x1401bda0d
cmp rbx, 4
jb 0x1401bda06
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
jne 0x1401bda06
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call fcn.14037ac20
cmp rbx, rax
je 0x1401bd944
cmp byte [rdi + rax], 0x25
lea r12, [rdi + rax]
mov rbx, rax
jne 0x1401bda06
lea r8d, [r15 + 2]
mov ebp, r15d
lea rdx, [0x140430bcc]
lea rcx, [r12 + 1]
lea r14, [r12 + 1]
call fcn.14037a5b0
test eax, eax
jne 0x1401bd8c9
movzx eax, byte [r12 + 3]
lea rcx, [r12 + 3]
test al, al
je 0x1401bd8c9
cmp al, 0x5d
cmovne r14, rcx
movzx eax, byte [r14]
test al, al
je 0x1401bd9ff
mov rcx, r15
cmp al, 0x5d
je 0x1401bd8f6
cmp rcx, 0xf
jge 0x1401bd8f6
inc r14
mov byte [rsp + rcx + 0x28], al
inc ebp
inc rcx
movzx eax, byte [r14]
test al, al
jne 0x1401bd8d8
test ebp, ebp
je 0x1401bd9ff
cmp byte [r14], 0x5d
jne 0x1401bd9ff
movsxd rax, ebp
cmp rax, 0x10
jae 0x1401bda28
lea rcx, [rsp + 0x28]
mov byte [rsp + rax + 0x28], r15b
call qword [fcn.14036efa8]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x28], rax
test rax, rax
jne 0x1401bd93d
mov eax, 7
jmp 0x1401bd9cb
mov word [r12], 0x5d
lea r8, [rsp + 0x28]
mov byte [rdi + rbx], r15b
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1401bda06
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea ecx, [rax + 0x16]
call fcn.1401bf4f0
test rax, rax
je 0x1401bd9b8
lea rax, [rsp + 0x38]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x1401bd984
cmp rsi, rbx
jae 0x1401bd9b8
lea rax, [rsp + 0x38]
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x38]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1401bd9a2
mov rbx, rsi
mov byte [rdi + rsi + 1], r15b
mov byte [rdi + rbx], 0x5d
cmp byte [rdi], r15b
mov eax, ntohs
cmove r15d, eax
mov eax, r15d
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401702c0
add rsp, 0x88
pop r15
pop rdi
pop rsi
pop rbx
ret
mov eax, 3
jmp 0x1401bd9cb
mov eax, reloc.WS2_32.dll_shutdown
jmp 0x1401bd9cb
lea rdx, str.__r_n_t_:___
mov rcx, rdi
call fcn.140379f70
cmp rbx, rax
je 0x1401bd9bc
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x1401bd9cb
call fcn.14018ab2c
int3
Function at 0x1401cfb10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov edi, dword [rsp + 0xa0]
mov r14d, 1
mov ebp, r14d
mov ebx, r9d
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov eax, 0x5a0000
cmp edi, eax
jg 0x1401cfb60
mov ecx, edi
neg ecx
cmp ecx, eax
jle 0x1401cfb69
inc ebp
add eax, 0x5a0000
jmp 0x1401cfb54
lea ecx, [rbp*4]
mov eax, edi
cdq
idiv ecx
mov ecx, eax
call fcn.1401c68b0
mov r13d, eax
lea rcx, [rsp + 0x28]
mov eax, 0x55555556
mov r8d, ebx
imul r13d
mov eax, edx
shr eax, 0x1f
add edx, eax
add r13d, edx
mov edx, r12d
call fcn.1401c6cb0
mov ecx, dword [rsp + 0x2c]
mov edx, r13d
neg ecx
call fcn.1401c2f90
mov ecx, dword [rsp + 0x28]
mov edx, r13d
mov ebx, eax
call fcn.1401c2f90
mov ecx, dword [rsp + 0x2c]
mov edx, eax
add ecx, dword [r15 + 4]
mov eax, dword [rsp + 0x28]
add eax, dword [r15]
mov dword [rsp + 0x28], eax
add eax, ebx
mov dword [rsp + 0x30], eax
lea eax, [rcx + rdx]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x2c], ecx
cmp ebp, r14d
jl 0x1401cfcdf
mov r12d, edi
nop
mov eax, edi
lea rcx, [rsp + 0x20]
cdq
idiv ebp
mov edx, dword [rsp + 0x90]
add eax, dword [rsp + 0x98]
mov r8d, eax
call fcn.1401c6cb0
mov ecx, dword [rsp + 0x24]
mov edx, r13d
call fcn.1401c2f90
mov ecx, dword [rsp + 0x20]
mov edx, r13d
neg ecx
mov ebx, eax
call fcn.1401c2f90
mov ecx, dword [rsp + 0x20]
mov edx, eax
add ecx, dword [r15]
mov eax, dword [rsp + 0x24]
add ebx, ecx
add eax, dword [r15 + 4]
mov dword [rsp + 0x20], ecx
mov rcx, rsi
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x38], ebx
lea r15d, [rax + rdx]
mov edx, 3
mov dword [rsp + 0x3c], r15d
call fcn.1401cf880
mov r9d, eax
test eax, eax
jne 0x1401cfcd9
mov ecx, dword [rsi]
inc r14d
mov rax, qword [rsi + 8]
add edi, r12d
mov r8, qword [rsi + 0x10]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x30]
mov qword [rdx], rax
mov rax, qword [rsp + 0x38]
mov qword [rdx + 8], rax
mov rax, qword [rsp + 0x20]
mov qword [rdx + 0x10], rax
mov word [r8 + rcx], 0x202
mov byte [r8 + rcx + 2], 1
mov eax, dword [rsp + 0x20]
add dword [rsi], 3
add eax, eax
sub eax, ebx
mov byte [rsi + 0x18], r9b
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
add eax, eax
sub eax, r15d
mov r15, qword [rsp + 0x88]
mov dword [rsp + 0x34], eax
cmp r14d, ebp
jle 0x1401cfbf0
mov eax, r9d
jmp 0x1401cfce1
mov byte [rsi + 0x18], 0
jmp 0x1401cfce1
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401d06b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov ebp, edx
lea r8d, [rdx + 0x5a0000]
mov rdi, rcx
mov edx, dword [rcx + 0x3c]
lea rcx, [rsp + 0x68]
call fcn.1401c6cb0
mov r9d, dword [rdi + 8]
add r9d, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
add ecx, dword [rdi + 0xc]
mov r8d, dword [rdi + 0x5c]
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x54], ecx
test r8d, r8d
js 0x1401d074a
mov r9d, dword [rdi + 0x40]
lea eax, [r8 + 1]
cmp r9d, eax
ja 0x1401d0711
mov dword [rdi + 0x40], r8d
jmp 0x1401d0746
mov rcx, qword [rdi + 0x48]
dec r9d
mov dword [rdi + 0x40], r9d
mov rax, qword [rcx + r9*8]
mov qword [rcx + r8*8], rax
mov rcx, qword [rdi + 0x50]
movzx eax, byte [rcx + r9]
mov byte [rcx + r8], al
lea ecx, [r9 - 1]
mov rax, qword [rdi + 0x50]
or byte [r8 + rax], 4
mov rax, qword [rdi + 0x50]
or byte [rcx + rax], 8
mov byte [rdi + 0x58], 0
mov eax, dword [rdi + 0x40]
lea rcx, [rdi + 0x40]
mov edx, 1
mov dword [rdi + 0x5c], eax
mov byte [rdi + 0x58], 0
call fcn.1401cf880
test eax, eax
jne 0x1401d086a
mov r8d, dword [rdi + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov qword [rcx + r8*8], rax
mov byte [rdx + r8], 1
inc dword [rdi + 0x40]
mov byte [rdi + 0x58], 0
mov eax, dword [rdi + 8]
sub eax, dword [rsp + 0x68]
mov r8d, dword [rdi + 0x8c]
mov dword [rsp + 0x50], eax
mov eax, dword [rdi + 0xc]
sub eax, dword [rsp + 0x6c]
mov dword [rsp + 0x54], eax
test r8d, r8d
js 0x1401d0805
mov r9d, dword [rdi + 0x70]
lea eax, [r8 + 1]
cmp r9d, eax
ja 0x1401d07c0
mov dword [rdi + 0x70], r8d
jmp 0x1401d07fe
mov rcx, qword [rdi + 0x78]
dec r9d
mov dword [rdi + 0x70], r9d
mov rax, qword [rcx + r9*8]
mov qword [rcx + r8*8], rax
mov rcx, qword [rdi + 0x80]
movzx eax, byte [rcx + r9]
mov byte [rcx + r8], al
lea ecx, [r9 - 1]
mov rax, qword [rdi + 0x80]
or byte [r8 + rax], 4
mov rax, qword [rdi + 0x80]
or byte [rcx + rax], 8
mov byte [rdi + 0x88], 0
mov eax, dword [rdi + 0x70]
lea rcx, [rdi + 0x70]
mov edx, 1
mov dword [rdi + 0x8c], eax
mov byte [rdi + 0x88], 0
call fcn.1401cf880
test eax, eax
jne 0x1401d0847
mov r9d, dword [rdi + 0x70]
mov rdx, qword [rdi + 0x78]
mov r8, qword [rdi + 0x80]
mov rcx, qword [rsp + 0x50]
mov qword [rdx + r9*8], rcx
mov byte [r8 + r9], 1
inc dword [rdi + 0x70]
mov byte [rdi + 0x88], 0
mov dword [rdi + 0x18], ebp
mov byte [rdi + 0x14], 0
mov dword [rdi + 0x24], r15d
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov byte [rdi + 0x58], 0
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret