joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501c00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x501e53
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
add qword [rax + 0x68], rcx
mov rsi, qword [rax + 0x60]
test rsi, rsi
jle 0x501d30
nop dword [rax + rax]
cmp rsi, 0x40
ja 0x501e45
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea r8, [rsi - 0x40]
mov r9, r8
neg r8
cmp rcx, r8
cmovl r8, rcx
mov qword [rsp + 0x28], r8
sar r9, 0x3f
and r9, rsi
lea rsi, [rax + r9]
lea rsi, [rsi + 0x20]
cmp rbx, rsi
je 0x501ca2
mov rax, rsi
mov rcx, r8
call fcn.0045ed60
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x28]
mov rsi, qword [rax + 0x60]
add rsi, r8
mov qword [rax + 0x60], rsi
cmp rsi, 0x40
jne 0x501d0c
mov qword [rsp], rax
lea rcx, [rax + 0x20]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.00502280
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x60], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x28]
cmp rcx, r8
jb 0x501e3c
sub rdi, r8
mov rsi, rcx
sub rcx, r8
mov r9, rdi
neg rdi
sar rdi, 0x3f
and r8, rdi
add rbx, r8
jmp 0x501d40
mov rsi, rcx
mov r9, rdi
nop word [rax + rax]
nop
cmp rcx, 0x40
jl 0x501de0
mov rdi, rcx
and rcx, 0xffffffffffffffc0
cmp r9, rcx
jb 0x501e34
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r9
call fcn.00502280
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
cmp rcx, rax
jb 0x501e2f
mov rdx, qword [rsp + 0x38]
mov rsi, rax
sub rax, rdx
mov rdx, rcx
sub rcx, rsi
sar rax, 0x3f
and rax, rdx
and rax, 0xffffffffffffffc0
mov rdx, qword [rsp + 0x40]
lea rbx, [rdx + rax]
mov rax, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
nop dword [rax]
test rcx, rcx
je 0x501e1e
cmp rcx, 0x40
mov edx, 0x40
cmovl rdx, rcx
lea rdi, [rax + 0x20]
cmp rbx, rdi
je 0x501e1a
mov qword [rsp + 0x38], rdx
mov rax, rdi
mov rcx, rdx
call fcn.0045ed60
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov qword [rax + 0x60], rdx
mov rax, rsi
xor ebx, ebx
xor ecx, ecx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
call fcn.0045e4c0
mov rdx, r9
call fcn.0045e480
mov rax, r8
nop
call fcn.0045e4c0
mov rax, rsi
mov ecx, 0x40
call fcn.0045e4c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045bd20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00501c00
Function at 0x506f40
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x507094
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp + 0x88], rbx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rax + 8]
movups xmmword [rsp + 0x28], xmm0
movups xmm0, xmmword [rax + 0x18]
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x20]
nop
call fcn.00506c00
mov qword [rsp + 0x10], 0
movups xmmword [rsp + 0x48], xmm15
movups xmmword [rsp + 0x50], xmm15
movups xmmword [rsp + 0x60], xmm15
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x88]
xor eax, eax
jmp 0x506fe4
inc rax
mov rcx, rbx
cmp rax, 5
jge 0x507035
imul rdx, rax, 0x33
mov rsi, rdx
sar rdx, 0x3f
shr rdx, 0x3d
add rdx, rsi
sar rdx, 3
mov rdi, rdx
shl rdx, 3
sub rsi, rdx
cmp rsi, 0x40
sbb rdx, rdx
mov r8, qword [rsp + rax*8 + 0x48]
mov rbx, rcx
mov rcx, rsi
shl r8, cl
and r8, rdx
mov qword [rsp + 0x10], r8
mov rdx, qword [rsp + 0x10]
mov qword [rsp + 0x18], rdx
xor ecx, ecx
jmp 0x507060
test byte [rcx], al
mov rax, rcx
mov ebx, 0x20
mov rcx, rbx
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
movzx r8d, byte [rbx + rsi]
or r8d, edx
mov byte [rbx + rsi], r8b
inc rcx
nop dword [rax + rax]
cmp rcx, 8
jge 0x506fde
movzx edx, byte [rsp + rcx + 0x18]
lea rsi, [rdi + rcx]
cmp rsi, 0x20
jge 0x506fde
test byte [rbx], al
nop
cmp rsi, 0x20
jb 0x50704c
mov rax, rsi
mov ecx, 0x20
call fcn.0045e400
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.0045bd20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00506f40
Function at 0x520c40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x520d15
movdqa xmm0, xmmword [0x0060f0a0]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x520c81
movdqa xmm0, xmmword [0x0060f0b0]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x520d97
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x520d6b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x0060ecf0]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x0060f480]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x14003e450
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14003e472
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14003e4ec
mov rdi, r14
mov rcx, rbx
call fcn.14003ff20
test rax, rax
jle 0x14003e4c4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400aa8e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14003e4dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14003e4e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14003e486
sub r14, rdi
jmp 0x14003e5d9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14003e503
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003e505
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003e53a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400aa8e0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14003e5d6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x14003e575
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x14003e5b1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400b3834
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14003e5ef
cmp rbp, rax
ja 0x14003e581
mov r8, rdi
test rdi, rdi
je 0x14003e5d6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400b3834
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x14003e5d9
Function at 0x140056210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, rdx
movzx edx, byte [rcx]
test dl, dl
je 0x140056245
lea r9, [0x1400df950]
movzx eax, byte [r8]
test al, al
je 0x140056245
movzx eax, byte [rax + r9]
movzx edx, dl
cmp byte [rdx + r9], al
jne 0x140056257
movzx edx, byte [rcx + 1]
inc rcx
inc r8
test dl, dl
jne 0x140056221
xor edx, edx
mov eax, edx
cmp byte [rcx], al
sete al
cmp byte [r8], dl
setne dl
xor eax, edx
ret
xor eax, eax
ret

Function at 0x14005e810
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1400c28d0
cdqe
add rsp, 0x28
ret
Function at 0x1400667b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400667f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140066990
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x140118140]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x218]
mov r14, qword [rcx + r8*8 + 0x1d0]
add rbx, rax
mov rax, qword [rcx + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x140066a9a
lea rax, [0x140066840]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x140066a9a
cmp qword [rbx], 0
je 0x140066a21
test rdi, rdi
je 0x140066a9a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.14008f820
cmp eax, 0xffffffff
je 0x140066a9a
test al, 1
je 0x140066a9a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140066a79
mov eax, dword [rbp + 0x6ec]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [fcn.1400b9320]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140066ad4
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140066a9a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x140066b13
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140066ae3
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x140066b13
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140066b16
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.14006f2e0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1400665a0
mov dword [rbp + 0xd94], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400a56f0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x268], 0
je 0x14006704d
call fcn.140053c40
test eax, eax
je 0x140067079
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1d0]
cmp rcx, 0xffffffffffffffff
je 0x140067079
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1400672c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140118140]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140067373
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14006f2e0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400665a0
jmp 0x14006743b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x140067410
sub edx, 1
je 0x1400673ba
cmp edx, 0x15
jne 0x1400673c1
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1400673c1
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x14006743b
lea rdx, [rsp + 0x34]
jmp 0x140067392
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.1400bb97c
mov dword [rax], 0x273f
call fcn.1400bb97c
mov ebx, dword [rax]
call fcn.1400bb97c
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14006f2e0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400665a0
jmp 0x14006743b
cmp dword [rsp + 0x20], 2
jle 0x140067432
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x1400ffd48]
mov rcx, rbx
call fcn.140054ca0
jmp 0x140067435
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400a56f0
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret

Function at 0x140067d70
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14013d260]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140067dd4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140093cf0
test al, al
je 0x140067dc8
mov dword [0x14013d260], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14013d260], 1
jmp 0x140067dd9
cmp eax, 2
je 0x140067e2b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140067e0a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140067e2b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1400696d0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140118140]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140069736
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140069719
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140069713
shr ax, 8
cmp al, 2
je 0x140069736
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400a56f0
add rsp, 0x1e8
ret
call fcn.140094e40
test eax, eax
jne 0x140069950
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 0x140069776
mov qword [0x14013d270], rsi
jmp 0x14006990d
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1400e1578]
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, [0x1400e1588]
call fcn.1400bcb58
test rax, rax
je 0x1400697da
mov rcx, rbx
test rbp, rbp
je 0x1400697cc
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x1400698cc
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x1400698cc
test rbp, rbp
je 0x140069809
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140069809
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x1400698cc
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 0x1400698c4
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.1400b9320]
mov rdi, rax
test rax, rax
je 0x1400698bb
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400698bb
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140069860
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x140069872
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 0x140069890
mov rcx, rdi
test rbp, rbp
je 0x1400698b2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1400698b8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400b35c0]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x14013d270], rsi
test rsi, rsi
je 0x14006990d
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14013d268]
test rax, rax
cmovne rcx, rax
mov qword [0x14013d268], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140093cf0
test al, al
lea rcx, [0x14013f028]
setne byte [0x14013f020]
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.1400a56f0
add rsp, 0x1e8
ret
Function at 0x140069c80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140069d4b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1400547d0
cmp eax, 4
jne 0x140069cfc
cmp byte [0x14013d27c], r14b
jne 0x140069d08
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x140069d4d
mov eax, dword [rsp + 0x50]
jmp 0x140069d27
imul eax, dword [0x14013d278], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x14013d278], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140069d42
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140069d30
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140069cb0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140069d60
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x140118140]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x140069f0c
test r14b, 1
je 0x140069f0c
mov qword [r11 + 0x18], rbx
dec r14
mov qword [r11 - 0x28], rbp
mov ecx, 0x2b
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 - 0x38], r13
je 0x140069e8b
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.1400547d0
cmp eax, 4
jne 0x140069e2c
cmp byte [0x14013d27c], r13b
jne 0x140069e3c
lea r9d, [rax - 2]
mov dword [rsp + 0x20], r13d
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x140069ecd
mov eax, dword [rsp + 0x20]
jmp 0x140069e5b
imul eax, dword [0x14013d278], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x14013d278], eax
rol eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x140069e82
sub rbp, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140069e70
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x140069de0
mov eax, ecx
test ecx, ecx
jne 0x140069ecd
test r14, r14
je 0x140069ec8
lea rdx, str.0123456789abcdef
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x140069ea0
mov byte [rsi], 0
xor eax, eax
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a56f0
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x140069eed
Function at 0x14006d6f0
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 [0x1401180d8]
mov rdi, rax
test rax, rax
je 0x14006d76d
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 0x14006d798
cmp ebx, esi
je 0x14006d798
cmp ebx, 0x8000
ja 0x14006d798
cmp ebx, esi
jb 0x14006d793
mov edx, ebx
mov rcx, rdi
call qword [0x1401180d8]
mov rdi, rax
test rax, rax
jne 0x14006d730
mov rcx, rbp
call qword [fcn.1400b35c0]
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 0x14006d778
mov rcx, rdi
jmp 0x14006d770

Function at 0x140071060
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x140071075
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140070b40

Function at 0x140071c70
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.14008bd90
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140069970
mov rcx, rdi
mov rsi, rax
call fcn.140069970
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140071d20
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14008bd90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14008be20
cmp rax, 0x3e8
ja 0x140071d51
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 0x140071cd0
test rsi, rsi
je 0x140071d2d
mov rcx, rsi
call fcn.1400b35c0
test rbx, rbx
je 0x140071d3a
mov rcx, rbx
call fcn.1400b35c0
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 0x140071d5e
mov rcx, rsi
call fcn.1400b35c0
test rbx, rbx
je 0x140071d6b
mov rcx, rbx
call fcn.1400b35c0
mov eax, 1
jmp 0x140071d3c