joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aca00
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400aca6f
call fcn.14029cb50
cmp dword [rax], 4
je 0x1400aca40
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1402959c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400acaa0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400acb0e
call fcn.14029cb50
cmp dword [rax], 4
je 0x1400acae0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1402959c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x1400adcb0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x30], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x1400adcf4
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400add10
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1400add34
cmp qword [rsi + 0x18], 0x10
jb 0x1400add1a
mov rsi, qword [rsi]
lea r8, [rsp + 0x24]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400add39
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.14011a880
mov r12, rax
test rax, rax
je 0x1400ade22
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call fcn.140113990
mov dword [rsp + 0x28], eax
test eax, eax
jle 0x1400ade15
nop
test r14b, r14b
jne 0x1400ade10
mov edx, ebx
mov rcx, r12
call fcn.140113be0
mov rsi, rax
cmp dword [rax], edi
jne 0x1400addfa
mov rcx, qword [rax + 8]
call fcn.1400ada00
mov rcx, qword [rsi + 8]
mov rbp, rax
call fcn.1400cf1a0
movsxd r8, eax
cmp edi, 2
je 0x1400adde9
cmp edi, 7
jne 0x1400addfa
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.140298510
test eax, eax
je 0x1400adde4
mov r8, r15
lea rcx, [rsp + 0x24]
mov rdx, rbp
call fcn.140298510
test eax, eax
jne 0x1400addfa
mov r13b, 1
jmp 0x1400addfa
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call fcn.1400a3c60
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x28]
jl 0x1400add80
test r14b, r14b
jne 0x1400ade10
test r13b, r13b
je 0x1400ade15
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.14011a8d0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402959c0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x1400adf20
cmp rbx, 0x7fffffff
ja 0x1400adf20
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b07e0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
lea rax, [0x1402d25e0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 9
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14007d4d0
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r9d, 0xffffffff
lea r8d, [rbx + 3]
lea rdx, [rsp + 0x60]
call fcn.140292984
mov r8d, eax
test eax, eax
jne 0x1400b089c
mov edx, dword [rsp + 0x70]
test dl, 1
mov ecx, 0x1ff
mov eax, 0x16d
cmovne ecx, eax
mov dword [rsp + 0x34], ecx
bt edx, 0xa
jae 0x1400b088e
mov eax, dword [rsp + 0x74]
cmp eax, 0xa000000c
jne 0x1400b0880
lea ebx, [r8 + 4]
jmp 0x1400b08bd
cmp eax, 0xa0000003
jne 0x1400b088e
mov ebx, 0xa
jmp 0x1400b08bd
movzx ebx, dl
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
jmp 0x1400b08bd
mov dword [rsp + 0x34], 0xffff
sub eax, 2
je 0x1400b08b8
sub eax, 1
je 0x1400b08b8
sub eax, 0x32
je 0x1400b08b8
cmp eax, 0x46
jne 0x1400b08bd
mov ebx, 1
mov dword [rsp + 0x30], r8d
lea rax, [0x1403bc040]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
je 0x1400b0916
cmp ebx, 1
sete bl
lea rcx, [rsp + 0x40]
call fcn.140081630
test bl, bl
je 0x1400b08fd
lea rcx, str.Resources
call fcn.1402a63d0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402959c0
add rsp, 0x90
pop rbx
ret
mov bl, 1
test r8d, r8d
je 0x1400b08e3
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.1400814e0
int3
Function at 0x1400b43e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400b44a8
mov byte [0x1403c66d1], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], sendto
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.Invalid_Socket]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x1402d26a8]
mov dword [rsp + 0x28], eax
movzx eax, word [0x1402d26ac]
mov word [rsp + 0x2c], ax
lea rcx, [rsp + 0x20]
call fcn.1400b7f50
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400b4608
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b449e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b4631
call fcn.14029591c
jmp 0x1400b4608
mov rcx, rsi
call fcn.140295924
mov rbp, rax
xor ebx, ebx
mov r15d, 0xf4240
nop dword [rax + rax]
mov r8d, esi
sub r8d, ebx
cmp r8d, r15d
cmovg r8d, r15d
lea rdx, [rbx + rbp]
mov r9d, 8
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jl 0x1400b4503
cdqe
add rbx, rax
add qword [rdi], rax
cmp rbx, rsi
jae 0x1400b44fb
cmp byte [0x1403c66d1], 0
je 0x1400b44c0
mov rax, rbp
jmp 0x1400b460a
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140089a40
nop
mov rcx, rax
call fcn.1400890f0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400b4556
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b4551
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b4637
call fcn.14029591c
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov edx, 0x20
lea rcx, [rsp + 0x20]
call fcn.14007b800
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], reloc.WS2_32.dll_sendto
mov qword [rsp + 0x38], 0x1f
movups xmm0, xmmword [str.Socket_Closed_Code_1]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402d26c0]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
lea rcx, [rsp + 0x20]
call fcn.1400b7f50
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400b45f1
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b45ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b462b
call fcn.14029591c
mov rcx, r14
call fcn.14008e0c0
mov byte [0x1403c66d1], 1
mov rcx, rbp
call fcn.14029591c
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402959c0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14029ca04
int3
call fcn.14029ca04
int3
call fcn.14029ca04
int3

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

Disassembly:
mov r8, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
mov r8, qword [r8]
mov rcx, qword [rcx]
jmp fcn.1400b43e0
Function at 0x1400c4530
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, rdx
movsxd rbx, ecx
lea rcx, [rsp + 0x40]
call fcn.1400af2a0
nop
mov rdi, rbx
cmp rbx, 2
jl 0x1400c45a8
lea rbx, [rsi + 8]
dec rdi
nop word [rax + rax]
lea rdx, [0x1402d0c24]
lea rcx, [rsp + 0x40]
call fcn.140083620
mov rdx, qword [rbx]
lea rcx, [rsp + 0x40]
call fcn.140083620
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x1400c4580
lea rcx, [0x1402d3c80]
call fcn.1402a6838
lea rcx, [rsp + 0x40]
call fcn.1400841c0
mov rdi, rax
lea rcx, [rsp + 0xa0]
call fcn.1400c2470
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1400c24e0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400aef30
mov rcx, rax
call fcn.1400841c0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8, rax
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0x60]
call fcn.14007b390
nop
lea rcx, [rsp + 0x80]
call fcn.14007b390
nop
lea rcx, [rsp + 0xa0]
call fcn.14007b390
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140083250
mov rcx, rax
call fcn.140083260
mov ecx, 1
call fcn.14029eaa8
int3

Function at 0x1400c4680
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, rdx
movsxd rbx, ecx
lea rcx, [rsp + 0x40]
call fcn.1400af2a0
nop
mov rdi, rbx
cmp rbx, 2
jl 0x1400c46f8
lea rbx, [rsi + 8]
dec rdi
nop word [rax + rax]
lea rdx, [0x1402d0c24]
lea rcx, [rsp + 0x40]
call fcn.140083620
mov rdx, qword [rbx]
lea rcx, [rsp + 0x40]
call fcn.140083620
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x1400c46d0
lea rcx, [rsp + 0x40]
call fcn.1400841c0
mov rdi, rax
lea rcx, [rsp + 0xa0]
call fcn.1400c2470
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1400c24e0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400aef30
mov rcx, rax
call fcn.1400841c0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0x60]
call fcn.14007b390
nop
lea rcx, [rsp + 0x80]
call fcn.14007b390
nop
lea rcx, [rsp + 0xa0]
call fcn.14007b390
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140083250
mov rcx, rax
call fcn.140083260
mov ecx, 1
call fcn.14029eaa8
int3
Function at 0x14011acf0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140295f80
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 0x14011f910
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14011f97c
movzx ecx, byte [rcx]
test cl, cl
je 0x14011f97c
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 0x14011f930
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.140295f80
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14011fa13
movzx eax, byte [rcx]
test al, al
je 0x14011fa13
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1401743c0
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 0x14011f9b0
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 0x1401337a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140295f80
sub rsp, rax
lea rcx, [0x1403fc4b0]
add rsp, 0x28
jmp fcn.14011ab70
Function at 0x14014b420
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x14014b582
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov ecx, dword [rdx + 0x10]
movq xmm4, rsi
xor ecx, dword [r8 + 0x10]
and ecx, esi
punpcklqdq xmm4, xmm4
xor dword [rdx + 0x10], ecx
xor dword [r8 + 0x10], ecx
mov edx, dword [rdx + 0x14]
mov ecx, dword [r8 + 0x14]
xor rcx, rdx
and ecx, 4
and rcx, rsi
mov eax, ecx
xor eax, edx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], ecx
xor ecx, ecx
mov edx, ecx
test r9d, r9d
jle 0x14014b542
cmp ebx, 2
jb 0x14014b542
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x14014b4ce
cmp rdi, r8
jae 0x14014b53d
cmp r9, r10
ja 0x14014b4d8
cmp rdi, r10
jae 0x14014b53d
cmp r9, r11
ja 0x14014b4e2
cmp rdi, r11
jae 0x14014b53d
cmp r8, r10
ja 0x14014b4ec
cmp rax, r10
jae 0x14014b53d
cmp r8, r11
ja 0x14014b4f6
cmp rax, r11
jae 0x14014b53d
mov eax, ebx
and eax, 0xfffffffe
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x14014b500
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x14014b57d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x14014b550
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x1401626d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.140295f80
sub rsp, rax
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1403fc848], 0
lea rax, [0x140162050]
mov qword [rsp + 0x28], rax
lea rbx, [0x140308260]
lea rax, [0x140308270]
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140162490]
mov qword [rsp + 0x38], rax
lea rax, [0x140308280]
mov qword [rsp + 0x40], rax
lea rax, [0x140161ff0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1401628a9
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14016289f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402ae070
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402ae0d0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1401627ca
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14016282a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402ae070
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402ae0d0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140162897
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14016282a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140162897
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop dword [rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x140162886
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x140162840
mov rax, qword [rsp + 0x28]
mov qword [0x1403c1ab0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1403c1ac0], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1403c1ad0], rax
jmp 0x14016288f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1403fc848], 1
mov rax, rbp
lea rcx, [0x1403c1aa8]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1402959c0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x1401628e0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x870
call fcn.140295f80
sub rsp, rax
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor ebp, ebp
mov dword [rsp + 0x28], edx
mov r8d, 0x401
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x20], r9w
mov r12d, ebp
call fcn.140297340
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x401
call fcn.140297340
mov r9d, 0x400
lea rbx, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x450]
lea edx, [r9 + 1]
call fcn.1402ae14c
lea r15, [rbp - 1]
nop
mov rcx, r14
mov qword [r13], rbp
mov rsi, r13
mov byte [rdi], bpl
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x140162ade
cmp word [rax + 0x10], 2
jne 0x140162a07
cmp word [rax + 0x12], 4
jne 0x140162a07
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x140162a02
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.140162b40
mov qword [rsi], rax
test rax, rax
je 0x140162ad7
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x1401629d0
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.1402ae14c
cmp qword [r13], rbp
jne 0x140162a80
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x140162a25
test rax, rax
je 0x140162af8
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140162a53
inc rax
test ecx, ecx
jne 0x140162a40
test edx, edx
je 0x140162af8
inc r12d
cmp r12d, 0x10
je 0x140162af8
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x140162990
cmp dword [rsp + 0x8c0], ebp
je 0x140162b0b
nop dword [rax]
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x140162a90
lea rdx, [r15 + 1]
mov ecx, 1
call fcn.1402a47c8
mov rbx, rax
test rax, rax
jne 0x140162ab6
mov rbx, rbp
jmp 0x140162ac5
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call fcn.1402ae070
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x140162b0b
mov ebp, 8
jmp 0x140162b0b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x140162b06
sub ecx, 1
je 0x140162aff
sub ecx, 1
jne 0x140162b06
mov ebp, 0x2afb
jmp 0x140162b0b
mov ebp, 0x2afa
jmp 0x140162b0b
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1402959c0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401658b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r12
push r13
push r14
mov eax, 0x50
call fcn.140295f80
sub rsp, rax
mov r14, qword [rsp + 0xa8]
lea r10, [rax - 0x51]
mov rbp, qword [rsp + 0xb0]
xor r11d, r11d
cmp r14, 1
mov eax, r11d
mov r13, r9
mov r12, r8
mov r9, qword [rcx]
setne al
add rax, rbp
mov rsi, rcx
cmp rax, r9
jbe 0x14016590e
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
cmp r14, 1
je 0x140165a13
lea r10, [r8 - 1]
add r10, r9
movzx ebx, byte [r10]
cmp dword [rsp + 0xb8], r11d
je 0x14016594b
sub r9, rbx
mov eax, 1
sub r9, rbp
dec r9
mov qword [rcx], r9
jmp 0x140165a4a
lea rcx, [rbx + rax]
mov qword [rsp + 0x98], r15
mov r15d, 0x100
mov r8, r9
sub r8, rcx
mov rax, r9
xor r8, rcx
xor rax, rcx
or r8, rax
xor r8, r9
shr r8, 0x3f
dec r8
cmp r9, r15
cmovb r15, r9
test r15, r15
je 0x1401659ed
mov qword [rsp + 0x90], rdi
mov rdi, rbx
shr rdi, 0x3f
nop dword [rax]
nop dword [rax + rax]
mov rax, r11
lea r10, [r10 - 1]
shr rax, 0x3f
mov rcx, rbx
sub rcx, r11
inc r11
shr rcx, 0x3f
xor cl, al
xor al, dil
or cl, al
xor cl, dil
dec cl
movzx edx, cl
movzx ecx, byte [r10 + 1]
xor rcx, rbx
and rdx, rcx
not rdx
and r8, rdx
cmp r11, r15
jb 0x1401659a0
mov rdx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
lea rax, [rbx + 1]
not r8
movzx r10d, r8b
dec r10
shr r10, 0x3f
neg r10
and rax, r10
sub r9, rax
mov qword [rsi], r9
mov rax, qword [rsp + 0xc0]
mov r9, r13
mov qword [rsp + 0x40], rax
mov r8, r12
mov rax, qword [rsp + 0xa0]
mov rcx, rsi
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.1401654e0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret

Function at 0x140168ca0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.140295f80
sub rsp, rax
cmp dword [0x1403fc870], 0
jne 0x140168d5a
xor edx, edx
mov dword [0x1403fc870], 1
mov r8d, 0x198
lea rcx, [0x1403fc880]
call fcn.140297340
mov ecx, 0x202
lea rdx, [0x1403fc880]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140168d5a
call fcn.14011fa20
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.14011fb40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.14011fc40
call fcn.14011fa20
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.14011fb40
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.14011fc40
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret