joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017a0a0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x240], rax
test rdx, rdx
je 0x14017a0db
mov eax, dword [rdx]
test eax, eax
je 0x14017a0db
cmp eax, 1
je 0x14017a12e
mov eax, dword [rdx + 4]
add rdx, 8
add rdx, rax
mov eax, dword [rdx]
test eax, eax
jne 0x14017a0c6
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x104
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x20]
movzx r8d, byte [0x140256a90]
call fcn.14018c810
test eax, eax
je 0x14017a14c
cmp eax, 1
je 0x14017a137
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x14017a176
test rcx, rcx
je 0x14017a176
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14017a176
call fcn.14018eeb0
mov ebx, eax
jmp 0x14017a172
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb ebx, ebx
neg ebx
dec ebx
jmp 0x14017a158
mov rcx, qword [rsp + 0x20]
call fcn.14018eeb0
mov ebx, eax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x14017a172
test rcx, rcx
je 0x14017a172
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
je 0x14017a18c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018f710
mov ecx, eax
call fcn.14018b1c0
jmp 0x14017a18e
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x250
pop rbx
ret

Function at 0x14017a370
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14017a3a0
mov eax, eax
cmp rax, rbx
ja 0x14017a3a0
xor eax, eax
neg eax
sbb eax, eax
and eax, 0x1388
add rsp, 0x20
pop rbx
ret
mov eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0x1388
add rsp, 0x20
pop rbx
ret

Function at 0x14017a4b0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x14017a4c3
mov eax, 0x1b62
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edx, edx
mov ecx, 0x1388
test eax, eax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14017a500
Capabilities:
Query environment variable

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
mov r15, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
xor r13d, r13d
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x14017a532
inc rbx
mov r8b, 1
mov rdx, rbx
call fcn.140197280
mov r12, rax
cmp rax, rbx
cmovb r12, rbx
lea rcx, [r12 + r12]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov r8, rdi
test rax, rax
jne 0x14017a587
mov rdx, rsi
mov rcx, rbp
call fcn.1401aec20
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call fcn.140197280
mov rbx, rax
jmp 0x14017a5ca
mov rdx, r12
mov rcx, r14
call fcn.1401aec20
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call fcn.140197280
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp rbx, rsi
jb 0x14017a5c1
test rsi, rsi
je 0x14017a5c1
mov word [rbp + rsi*2 - 2], r13w
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15, r15
je 0x14017a5d2
mov qword [r15], rbx
mov eax, 0x1b65
test rbx, rbx
cmovne eax, r13d
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

Function at 0x14017bde0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov ebp, ecx
mov rsi, r9
mov r14, r8
mov r15d, edx
test r8, r8
je 0x14017bf44
test r9, r9
je 0x14017bf44
cmp dword [0x1402574a8], 0
mov qword [rsp + 0x50], r12
lea r12, [0x1402574d0]
jne 0x14017beb9
mov qword [rsp + 0x40], rbx
xor edx, edx
mov r8d, 0x700
mov qword [rsp + 0x48], rdi
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov ebx, edi
nop dword [rax]
nop word [rax + rax]
mov r8d, ebx
lea edx, [rbx + 0x2a]
shl r8, 7
mov ecx, 0x400
add r8, r12
mov r9d, 0x3f
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
inc ebx
cmp ebx, 7
jl 0x14017be50
lea rbx, [0x140257850]
nop dword [rax]
mov r8d, edi
lea edx, [rdi + 0x31]
shl r8, 7
mov ecx, 0x400
add r8, rbx
mov r9d, 0x3f
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
inc edi
cmp edi, 7
jl 0x14017be80
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov dword [0x1402574a8], 1
cmp ebp, 6
jbe 0x14017bec7
lea r8, [0x1401ef380]
jmp 0x14017bedb
neg r15d
sbb r8, r8
and r8d, 7
add r8, rbp
shl r8, 7
add r8, r12
mov r12, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [r8 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14017bef0
lea rax, [rax*2 + 2]
cmp rax, qword [rsi]
jbe 0x14017bf21
mov qword [rsi], rax
mov eax, 0x1b61
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
lfence
mov rdx, qword [rsi]
mov rcx, r14
shr rdx, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov rbp, qword [rsp + 0x58]
mov eax, 0x1b62
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x14017c1b0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, r9d
mov r10, rdx
mov r11, rcx
cmp rcx, 0xffffffffffffffff
je 0x14017c235
test rdx, rdx
je 0x14017c235
test r8d, r8d
js 0x14017c235
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14017c235
mov ecx, dword [rdx + 8]
mov eax, ebx
mov rdx, qword [rdx]
and eax, 1
mov dword [rsp + 0x28], ecx
mov r9d, eax
or r9d, 2
mov qword [rsp + 0x20], rdx
and bl, 2
mov rdx, r10
mov rcx, r11
cmove r9d, eax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x14017c22a
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
je 0x14017c22a
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14017c222
mov qword [rax], rcx
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 0x1388
add rsp, 0x30
pop rbx
ret
mov eax, 0x1b62
add rsp, 0x30
pop rbx
ret

Function at 0x14017c2c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0xb0]
mov r10d, r9d
mov rdi, qword [rsp + 0xb8]
cmp rcx, 0xffffffffffffffff
je 0x14017c3ff
test rdx, rdx
je 0x14017c3ff
test r8d, r8d
js 0x14017c3ff
test rsi, rsi
je 0x14017c3ff
test rdi, rdi
je 0x14017c3ff
mov eax, r9d
mov qword [r11 + 0x20], rbx
and eax, 1
mov qword [r11 - 0x18], rbp
mov r9d, eax
mov qword [r11 - 0x20], r14
or r9d, 2
mov qword [r11 - 0x28], r15
and r10b, 2
mov dword [rsp + 0x30], 0x1c
cmove r9d, eax
lea rax, [r11 - 0x58]
mov qword [r11 - 0x60], rax
lea rax, [r11 - 0x50]
mov qword [r11 - 0x68], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd r15, eax
cmp r15d, 0xffffffff
je 0x14017c3f1
movsxd rbp, dword [rsp + 0x30]
mov edx, 0x20
lea ecx, [rdx - 0x1f]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x14017c3e1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
test rax, rax
je 0x14017c3e1
mov r8, rbp
lea rdx, [rsp + 0x38]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], rbx
mov dword [rbx + 8], ebp
mov qword [rdi], r15
cmp r15, 0xffffffffffffffff
je 0x14017c3f8
xor eax, eax
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x78
pop rdi
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi], 0
mov qword [rdi], 0xffffffffffffffff
mov eax, 0x1388
jmp 0x14017c3b6
mov eax, 0x1b62
jmp 0x14017c3cd
Function at 0x14017c4e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
je 0x14017c5b2
test rdx, rdx
je 0x14017c5b2
mov qword [r11 + 0x18], rbp
lea r8, [r11 - 0x48]
mov qword [r11 - 0x10], rsi
lea rdx, [r11 - 0x40]
movsxd rcx, ecx
mov qword [r11 - 0x18], rdi
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14017c5a6
movsxd rsi, dword [rsp + 0x20]
lea edx, [rax + 0x20]
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
je 0x14017c59d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi], rax
test rax, rax
je 0x14017c59d
mov r8, rsi
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov dword [rdi + 8], esi
mov qword [rbx], rdi
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x60
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [rbx], rax
mov eax, 0x1388
jmp 0x14017c578
mov eax, 0x1b62
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x60
pop rbx
ret

Function at 0x14017c8b0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
cmp rcx, 0xffffffffffffffff
je 0x14017c8f5
test rdx, rdx
je 0x14017c8f5
test r8d, r8d
jns 0x14017c8df
mov r8d, dword [rdx + 8]
mov rdx, qword [rdx]
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14017c8eb
xor eax, eax
add rsp, 0x28
ret
lfence
call fcn.14018be50
test eax, eax
jns 0x14017c8d8
mov eax, 0x1388
add rsp, 0x28
ret
mov eax, 0x1b62
add rsp, 0x28
ret

Function at 0x14017d9a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14017d9b9
mov eax, 0x1b62
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14017d9d2
lea ecx, [rax + 1]
xor eax, eax
mov qword [rbx], rcx
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14017da10
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x14017da36
test rdx, rdx
je 0x14017da36
dec ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 0x1b62
add rsp, 0x20
pop rbx
ret

Function at 0x14017da50
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x14017da63
mov eax, 0x1b62
add rsp, 0x28
ret
dec ecx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor edx, edx
mov ecx, 0x1388
test eax, eax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14017da80
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r15d, r9d
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
mov ebx, r8d
test r8d, r8d
jle 0x14017db66
mov r12d, dword [rsp + 0x4e0]
xor r13d, r13d
nop dword [rax]
xor edx, edx
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
lea r9, [rsp + 0x250]
mov qword [rsp + 0x258], rsi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x250], 1
lea ecx, [rdx + 1]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14017db8d
mov r9d, r15d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp ecx, 0xffffffff
jne 0x14017db59
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14017db9c
jmp 0x14017db5e
add rdi, rcx
sub ebx, ecx
test ebx, ebx
jg 0x14017dad0
mov eax, r14d
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x478
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test ebp, ebp
jne 0x14017db9c
mov ecx, 0x5b4
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
jmp 0x14017db69

Function at 0x14017dbb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r14d, dword [rsp + 0x4c0]
mov ebp, r8d
mov rsi, rdx
mov qword [rsp + 0x4b8], rdi
mov rbx, rcx
xor r15d, r15d
nop dword [rax]
xor r8d, r8d
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
lea r9, [rsp + 0x250]
mov qword [rsp + 0x258], rbx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x250], 1
lea ecx, [r8 + 1]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x14017dc92
test eax, eax
je 0x14017dc87
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14017dc87
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14017dc83
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14017dbf0
mov eax, edi
jmp 0x14017dc97
mov ecx, 0x5b4
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x470
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14017eb80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov qword [r9], 0
mov rdi, r9
mov r10d, dword [rcx + 0x18]
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov eax, r10d
and eax, 1
mov r9d, eax
or r9d, 2
and r10b, 2
cmove r9d, eax
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14017ebfc
cdqe
cmp rax, 0xffffffffffffffff
je 0x14017ebfc
test rax, rax
jne 0x14017ebec
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14003c8e9.0]
mov eax, 0x4e34
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov qword [rdi], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018f710
cmp eax, 0x10
jne 0x14017ec1e
mov eax, 0x4e35
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14003c8e9.0]
mov rbx, qword [rsp + 0x30]
mov eax, 0x4e2a
add rsp, 0x20
pop rdi
ret
Function at 0x14018b280
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
mov eax, r9d
mov r10d, r9d
and eax, 1
mov r9d, eax
or r9d, 2
and r10b, 2
cmove r9d, eax
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14018b2b3
mov rax, 0xffffffffffffffff
add rsp, 0x28
ret
cdqe
add rsp, 0x28
ret

Function at 0x14018b2c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, r9d
mov r10d, r9d
and eax, 1
mov r9d, eax
or r9d, 2
and r10b, 2
cmove r9d, eax
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14018b2f3
mov rax, 0xffffffffffffffff
add rsp, 0x28
ret
cdqe
add rsp, 0x28
ret
Function at 0x14018bd50
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov edi, edx
mov rsi, rcx
test r8, r8
je 0x14018bdac
test edx, edx
jle 0x14018bdac
cmp byte [r8], bpl
je 0x14018bd9b
mov rbx, qword [r8 + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub ebx, eax
add edi, ebx
jns 0x14018bdb3
lea ecx, [rbp + 0xf]
call fcn.14018f3e0
xor eax, eax
jmp 0x14018be34
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
mov qword [rbx + 8], rax
mov byte [rbx], 1
jmp 0x14018bdb3
mov rcx, rbp
test edx, edx
js 0x14018bde6
cmp dword [0x140256d94], ebp
lea rcx, [rsp + 0x50]
mov eax, 0x64
cmovne edi, eax
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x50], edx
sub edi, eax
imul eax, edi, 0x3e8
mov dword [rsp + 0x54], eax
cmp byte [rsi + 6], bpl
lea r9, [rsi + 0x418]
mov qword [rsp + 0x20], rcx
lea r8, [rsi + 0x210]
cmove r9, rbp
lea rdx, [rsi + 8]
cmp byte [rsi + 5], bpl
cmove r8, rbp
cmp byte [rsi + 4], bpl
cmove rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14018be26
jmp 0x14018be32
test eax, eax
jne 0x14018be32
lea ecx, [rax + 0xf]
call fcn.14018f3e0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14018be50
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14018be8b
lea ecx, [rdi + 0xb]
call fcn.14018f3e0
mov eax, edi
jmp 0x14018c03b
mov r9d, 4
mov qword [rsp + 0x6c0], rbp
mov qword [rsp + 0x688], r14
lea r8, [rsp + 0x30]
mov qword [rsp + 0x680], r15
mov dword [rsp + 0x30], 1
lea edx, [r9 - 3]
call fcn.14018b300
test eax, eax
jne 0x14018c01e
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
movsxd rbp, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14018c05a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018f710
cmp eax, 0x10
jne 0x14018c01e
xor eax, eax
mov dword [rsp + 0x50], 0xffffffff
mov r8, rdi
mov word [rsp + 0x54], ax
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x56], al
lea edx, [rax + 1]
call fcn.14018bcc0
mov r8, rdi
lea rcx, [rsp + 0x50]
mov edx, 2
call fcn.14018bcc0
xor r14d, r14d
lea r15d, [r14 + 0x64]
mov rax, r14
test esi, esi
js 0x14018bf6c
cmp dword [0x140256d94], eax
mov ecx, esi
mov eax, 0x10624dd3
cmovne ecx, r15d
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
cmp byte [rsp + 0x56], r14b
lea r9, [rsp + 0x468]
lea r8, [rsp + 0x260]
mov qword [rsp + 0x20], rax
cmove r9, r14
lea rdx, [rsp + 0x58]
cmp byte [rsp + 0x55], r14b
cmove r8, r14
cmp byte [rsp + 0x54], r14b
cmove rdx, r14
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x14018c01e
test eax, eax
je 0x14018c05e
cmp eax, 1
jl 0x14018c01e
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14018c01e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018f710
mov ebx, eax
cmp byte [rsp + 0x55], r14b
je 0x14018c015
lea rdx, [rsp + 0x260]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x14018c056
cmp ebx, 0x10
je 0x14018bf34
mov eax, 0xffffffff
mov r14, qword [rsp + 0x688]
mov rbp, qword [rsp + 0x6c0]
mov r15, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x690
pop rdi
pop rsi
pop rbx
ret
test ebx, ebx
jne 0x14018c01e
xor eax, eax
jmp 0x14018c023
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.14018f3e0
jmp 0x14018c01e
Function at 0x14018c5e0
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x560], rax
xor eax, eax
mov qword [rsp + 0x6c0], rbx
xor sil, sil
mov word [rsp + 0x44], ax
xor r10d, r10d
mov byte [rsp + 0x46], al
mov r14d, r8d
mov r13, rdx
lea r15, [rax - 1]
mov rdi, rcx
mov r12d, r10d
nop word [rax + rax]
mov edx, dword [rsp + 0x48]
mov r8d, 0xffffffff
mov eax, dword [rbp + 0x150]
movzx ecx, byte [rsp + 0x44]
test cl, cl
mov dword [rsp + 0x40], r8d
cmovne edx, r10d
cmp byte [rsp + 0x45], 0
mov dword [rsp + 0x48], edx
cmovne eax, r10d
cmp byte [rsp + 0x46], 0
mov dword [rbp + 0x150], eax
mov eax, dword [rbp + 0x358]
cmovne eax, r10d
mov dword [rbp + 0x358], eax
cmp rdi, 0xffffffffffffffff
je 0x14018c7fc
test cl, cl
jne 0x14018c6a2
mov edx, r10d
mov byte [rsp + 0x44], 1
mov dword [rsp + 0x48], edx
mov eax, r10d
test edx, edx
je 0x14018c6bf
lea rcx, [rsp + 0x50]
nop
cmp qword [rcx], rdi
je 0x14018c6bf
inc eax
add rcx, 8
cmp eax, edx
jb 0x14018c6b0
cmp eax, edx
jne 0x14018c6d8
cmp edx, 0x40
jae 0x14018c6d8
mov ecx, eax
mov qword [rsp + rcx*8 + 0x50], rdi
inc dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
cmp edi, r8d
mov ebx, r14d
mov eax, r14d
cmovg r8d, edi
mov dword [rsp + 0x40], r8d
test r14d, r14d
jle 0x14018c716
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test sil, sil
je 0x14018c70b
lea ebx, [r12 + r14]
sub ebx, eax
js 0x14018c7c5
xor r10d, r10d
jmp 0x14018c71d
mov r12d, eax
mov sil, 1
xor r10d, r10d
jmp 0x14018c71d
mov rcx, r10
test eax, eax
js 0x14018c751
cmp dword [0x140256d94], 0
lea rcx, [rsp + 0x30]
mov eax, 0x64
cmovne ebx, eax
mov eax, 0x10624dd3
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub ebx, eax
imul eax, ebx, 0x3e8
mov dword [rsp + 0x34], eax
cmp byte [rsp + 0x46], 0
lea r9, [rbp + 0x358]
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x150]
cmove r9, r10
lea rdx, [rsp + 0x48]
cmp byte [rsp + 0x45], 0
cmove r8, r10
cmp byte [rsp + 0x44], 0
cmove rdx, r10
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x14018c7cf
test eax, eax
je 0x14018c7c5
jle 0x14018c7cf
mov rdx, r13
mov rcx, rdi
call fcn.14018bc10
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14018c7cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018f710
cmp eax, 0x10
jne 0x14018c7cf
xor r10d, r10d
jmp 0x14018c640
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.14018f3e0
mov rbx, qword [rsp + 0x6c0]
mov rax, r15
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x670
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
Function at 0x14018c810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x20
movzx eax, word [rcx + 2]
lea rbp, str.UNC_
xor edx, edx
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
xor r12b, r12b
xor r14b, r14b
mov r13, r9
cmp word [rcx], 0x5c
mov rbx, rcx
lea r15d, [rdx + 1]
mov esi, edx
jne 0x14018c955
cmp ax, 0x5c
jne 0x14018c929
cmp word [rcx + 4], 0x3f
jne 0x14018c918
cmp word [rcx + 6], 0x5c
lea rax, [rcx + 8]
cmovne rax, rcx
sete r14b
mov rbx, rax
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], si
jne 0x14018c890
inc rax
test r14b, r14b
je 0x14018c8d5
lea rcx, [0x1401fb348]
test r8b, r8b
lea rsi, [0x14020b888]
cmove rsi, rcx
mov rcx, rdi
nop dword [rax]
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x14018c8c0
add rax, rcx
movzx r15d, r8b
xor r15d, 1
mov qword [r13 + 0x10], rdx
test r12b, r12b
mov rcx, r13
cmove rbp, rdx
lea rdx, [rax + 4]
cmove rdx, rax
call fcn.14000b4e0
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
test al, al
jne 0x14018c9a1
mov eax, 2
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret
lea rbx, [rcx + 4]
movzx r14d, r15b
movzx r12d, r15b
jmp 0x14018c881
cmp ax, 0x3f
jne 0x14018c881
cmp word [rcx + 4], ax
jne 0x14018c881
cmp word [rcx + 6], 0x5c
jne 0x14018c881
add rbx, 8
movzx r14d, r15b
jmp 0x14018c881
cmp ax, 0x3a
jne 0x14018c962
cmp word [rcx + 4], 0x5c
je 0x14018c981
mov r8d, 4
mov rdx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
movzx r8d, byte [rsp + 0x60]
xor edx, edx
test eax, eax
jne 0x14018c881
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], si
jne 0x14018c990
inc rax
jmp 0x14018c8a1
test rsi, rsi
je 0x14018c9c6
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14018c9b0
mov rdx, rsi
mov rcx, r13
call fcn.14000b470
test rbp, rbp
je 0x14018c9f0
mov r8, rdi
nop
inc r8
cmp word [rbp + r8*2], 0
jne 0x14018c9d0
mov rdx, rbp
mov rcx, r13
call fcn.14000b470
nop word [rax + rax]
cmp word [rbx + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x14018c9f0
lea r8, [rdi + 1]
mov rdx, rbx
mov rcx, r13
call fcn.14000b470
mov rbx, qword [rsp + 0x68]
mov eax, r15d
add rsp, 0x20
pop r15
pop r13
pop rdi
pop rsi
pop rbp
ret