joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082be0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140381300]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14007e655
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.14007e4f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140262bb0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x14007e600

Function at 0x14008b520
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 [0x140381300]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0xf
lea rsi, [rcx + 8]
xorps xmm0, xmm0
mov byte [rsp + 0x20], 0
mov rbp, rdx
mov dword [rsp + 0x30], ebx
mov edi, 2
mov r15d, ebx
movups xmmword [rsp + 0x38], xmm0
mov rdx, rsi
jbe 0x14008b570
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 0x14008b58c
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14008b5b0
cmp qword [rsi + 0x18], 0xf
jbe 0x14008b596
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14008b5b5
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.1400a4d60
mov r12, rax
test rax, rax
je 0x14008b6a2
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call fcn.1400a7130
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x14008b695
nop word [rax + rax]
test r14b, r14b
jne 0x14008b690
mov edx, ebx
mov rcx, r12
call fcn.1400a7380
mov rsi, rax
cmp dword [rax], edi
jne 0x14008b67a
mov rcx, qword [rax + 8]
call fcn.1400a5220
mov rcx, qword [rsi + 8]
mov rbp, rax
call fcn.1400a5230
movsxd r8, eax
cmp edi, 2
je 0x14008b669
cmp edi, 7
jne 0x14008b67a
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.1402996a0
test eax, eax
je 0x14008b664
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.1402996a0
test eax, eax
jne 0x14008b67a
mov r13b, 1
jmp 0x14008b67a
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.14008b6d0
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x14008b600
test r14b, r14b
jne 0x14008b690
test r13b, r13b
je 0x14008b695
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.1400a7540
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140262bb0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008c910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10d, dword [0x140389630]
lea r11, [0x140389630]
mov r9d, 0x270
cmp r10d, r9d
jne 0x14008c985
lea r8, [0x140389638]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14008c940
mov r10d, dword [0x140389630]
jmp 0x14008ca9f
cmp r10d, 0x4e0
jb 0x14008ca9f
mov qword [rsp + 0x10], rbx
xor r10d, r10d
mov qword [rsp + 0x18], rsi
lea rbx, [0x140389634]
mov qword [rsp], rdi
lea rsi, [0x14038a628]
lea rdi, [0x140389ff4]
mov r9d, r10d
mov r8d, 0x38c
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r9 + rdi]
xor edx, dword [r9 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, dword [r9 + rdi]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + rsi]
xor ecx, edx
mov dword [r9 + rbx], ecx
add r9, 4
cmp r9, r8
jb 0x14008c9d0
mov rdi, qword [rsp]
lea r9, [0x140389ff8]
mov rsi, qword [rsp + 0x18]
nop word [rax + rax]
mov eax, dword [r8 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r8 + r9]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + r11 - 0x388]
xor ecx, edx
mov dword [r8 + rbx], ecx
add r8, 4
cmp r8, 0x9bc
jb 0x14008ca20
mov edx, dword [0x14038a9b0]
xor edx, dword [0x140389634]
mov rbx, qword [rsp + 0x10]
btr edx, 0x1f
xor edx, dword [0x14038a9b0]
mov eax, edx
mov dword [0x140389630], r10d
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [0x140389c64]
mov dword [0x140389ff0], ecx
mov eax, r10d
mov ecx, dword [r11 + rax*4 + 4]
inc eax
mov dword [0x140389630], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x14038a9b4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 8
ret
Function at 0x140094940
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140381300]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov r15, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call fcn.140261db4
test eax, eax
jne 0x140094acc
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x140094abc
mov rcx, rdi
call fcn.14021bf40
mov rcx, rsi
mov rdi, rax
call fcn.140261dbc
test rdi, rdi
je 0x140094a4e
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, ebp
call fcn.1400a6320
xor r9d, r9d
mov rcx, rax
mov r14, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.1400aa0a0
mov r8, r14
mov rdx, r14
mov rcx, rdi
call fcn.14021c7f0
mov r9, qword [rsp + 0x80]
add r9, 8
cmp qword [r9 + 0x18], 0xf
jbe 0x140094a03
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call fcn.14021b0d0
mov rdx, rdi
mov rcx, r15
call fcn.14008b0d0
cmp al, 1
jne 0x140094a6f
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x66]
call fcn.1400aa0a0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140262bb0
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call fcn.14021cae0
mov rcx, rsi
call fcn.140261db4
test eax, eax
jne 0x140094acc
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x140094abc
mov rcx, rdi
call fcn.14021b560
mov rcx, rsi
call fcn.140261dbc
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x140094a51
dec eax
mov ecx, 6
mov dword [rsi + 0x4c], eax
call fcn.140261204
int3
mov ecx, 5
call fcn.140261204
int3

Function at 0x140096d50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140096d84
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140096d70
ret
Function at 0x14009b710
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
sar rdi, 2
test rdi, rdi
je 0x14009b8f3
mov qword [rsp + 0x50], rbx
mov rbx, qword [0x14038a9f8]
sub rbx, qword [0x14038a9f0]
mov qword [rsp + 0x30], r13
sar rbx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x14009b763
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x14009b791
cmp rdi, 0x44
jb 0x14009b770
mov eax, 7
jmp 0x14009b791
cmp rdi, 0x27
jb 0x14009b77d
mov eax, 5
jmp 0x14009b791
cmp rdi, 7
jb 0x14009b78a
mov eax, 3
jmp 0x14009b791
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x14009b7aa
mov r15, rdi
mov r8, rdi
mov qword [rsp + 0x68], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, rsi
call fcn.1402997a0
xor ecx, ecx
test r15, r15
je 0x14009b85d
nop
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [rsi + rdx*4]
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
mov r8d, dword [rsi + rdx*4]
xor r8d, dword [rbp]
xor r8d, r11d
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x14009b81d
mov rax, rbx
jmp 0x14009b835
cmp rcx, rbx
ja 0x14009b832
mov rax, qword [0x14038a9f0]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x14009b835
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r15
jb 0x14009b7d0
add r15, rdi
cmp rcx, r15
jae 0x14009b8da
inc r14
lea rbp, [rcx - 1]
inc r13
nop
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [rsi + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x14009b870
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400a04f0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400a05bc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400a05bc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400a05d5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400a05ac
cmp byte [rax], 0x5c
jne 0x1400a05a6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400a05a6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400a0592
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400a05a3
test r8b, 0x10
jne 0x1400a05a6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400a05a6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14009ae90
test edi, edi
jne 0x1400a0510
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14009ae80
int3

Function at 0x1400ab7b0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402632b0
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 0x1400c9180
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
mov eax, gethostbyaddr
call fcn.1402632b0
sub rsp, rax
movsxd rbx, ecx
mov edi, r8d
mov dword [rsp + 0x40], 1
mov rbp, rdx
cmp ebx, 0xffffffff
jne 0x1400c91eb
call fcn.1400b42e0
lea r8, str.BIO_connect
lea edx, [rbx + 0x60]
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400b4400
xor r8d, r8d
lea ecx, [rbx + 0x21]
mov edx, 0x87
call fcn.1400b4500
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov qword [rsp + 0x48], rsi
shr edx, 3
mov ecx, ebx
and edx, 1
call fcn.1400d9320
test eax, eax
je 0x1400c929e
mov rsi, rbx
test dil, 4
je 0x1400c92b5
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400c92b5
call fcn.1400b42e0
lea r8, str.BIO_connect
mov edx, 0x69
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400b4400
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.1400b4500
call fcn.1400b42e0
lea r8, str.BIO_connect
mov edx, WSAGetLastError
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400b4400
xor r8d, r8d
mov edx, 0x89
mov ecx, 0x20
call fcn.1400b4500
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dil, 0x10
je 0x1400c9342
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov rcx, rsi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400c9342
call fcn.1400b42e0
lea r8, str.BIO_connect
mov edx, reloc.WS2_32.dll_WSAStartup
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400b4400
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov ecx, 2
mov edx, eax
call fcn.1400b4500
call fcn.1400b42e0
lea r8, str.BIO_connect
mov edx, 0x75
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400b4400
xor r8d, r8d
mov edx, 0x8a
jmp 0x1400c9294
mov rcx, rbp
call fcn.1400daa90
mov rcx, rbp
mov ebx, eax
call fcn.1400daa80
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400c93d6
mov ecx, eax
call fcn.1400a6390
test eax, eax
jne 0x1400c929e
call fcn.1400b42e0
lea r8, str.BIO_connect
mov edx, 0x7d
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400b4400
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_connect__
mov ecx, 2
mov edx, eax
call fcn.1400b4500
call fcn.1400b42e0
lea r8, str.BIO_connect
mov edx, 0x7f
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.1400b4400
xor r8d, r8d
lea edx, [r8 + 0x67]
jmp 0x1400c9294
mov eax, 1
jmp 0x1400c92a0
Function at 0x1400c97c0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1402632b0
sub rsp, rax
mov rax, qword [0x140381300]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x1400c97f7
mov eax, 0xfffffffe
jmp 0x1400c9917
test rbx, rbx
je 0x1400c9915
cmp r8d, 0x30
jne 0x1400c9915
mov r8d, gethostbyaddr
mov rdx, rdi
call fcn.1400c96a0
test eax, eax
jle 0x1400c9915
movdqa xmm0, xmmword [str.6666666666666666OBJ_dup]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1400c96a0
test eax, eax
je 0x1400c9915
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400c94a0
test eax, eax
je 0x1400c9915
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov rdx, rdi
mov rcx, rbx
movups xmmword [rbx + 0x24], xmm0
lea r8d, [rax + 0x30]
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.1400c96a0
test eax, eax
jle 0x1400c9915
movdqa xmm0, xmmword [0x1402bc830]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1400c96a0
test eax, eax
je 0x1400c9915
mov r8d, shutdown
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400c96a0
test eax, eax
je 0x1400c9915
mov edx, shutdown
lea rcx, [rsp + 0x48]
call fcn.140001240
mov eax, 1
jmp 0x1400c9917
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140262bb0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400cbf50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1402632b0
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x1400cbf9a
call fcn.1400b42e0
lea r8, str.c2i_ibuf
mov edx, 0xa0
lea rcx, str.crypto_asn1_a_int.c
call fcn.1400b4400
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.1400b4500
xor eax, eax
add rsp, 0x28
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x1400cbfad
mov dword [rdx], r11d
cmp r9, 1
jne 0x1400cbfcf
test r10, r10
je 0x1400cbfc5
movzx eax, byte [r8]
test r11d, r11d
je 0x1400cbfc3
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x28
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x1400cbfe1
mov eax, 1
jmp 0x1400cc09a
xor eax, eax
cmp cl, 0xff
jne 0x1400cc0df
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x1400cc08f
cmp rcx, 8
jb 0x1400cc080
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop word [rax + rax]
movd xmm1, dword [rax + r8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r8 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x1400cc020
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x1400cc08f
nop dword [rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1400cc080
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x1400cc0df
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x1400cc0df
call fcn.1400b42e0
lea r8, str.c2i_ibuf
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.1400b4400
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.1400b4500
xor eax, eax
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x1400cc12d
neg r11d
sbb r11d, r11d
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x1400cc12d
add r9, r8
mov r8, rbx
nop word [rax + rax]
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
xor ecx, r11d
add edx, ecx
mov byte [r8 + r10], dl
shr edx, 8
test r8, r8
jne 0x1400cc110
mov rax, rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400cc140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rdi, r9
mov rbx, rcx
test rcx, rcx
je 0x1400cc254
test r10, r10
je 0x1400cc254
movzx eax, byte [rcx]
test r8d, r8d
jne 0x1400cc189
cmp al, 0x7f
jbe 0x1400cc24d
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x1400cc25c
mov r11b, 0xff
cmp al, 0x80
jbe 0x1400cc19f
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x1400cc25c
jne 0x1400cc24d
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x1400cc23e
cmp rcx, 8
jb 0x1400cc230
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm3, xmm1
movd xmm1, dword [rax + rbx + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm2, xmm1
cmp rax, rdx
jb 0x1400cc1d0
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x1400cc23e
nop word [rax + rax]
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x1400cc230
neg edx
sbb r11b, r11b
movzx r11d, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x1400cc25c
mov eax, 1
mov r10, rdx
test rdi, rdi
je 0x1400cc2b5
mov rcx, qword [r9]
test rcx, rcx
je 0x1400cc2b5
mov edx, edx
movzx r8d, r11b
add rdx, rcx
and r8d, 1
mov byte [rcx], r11b
test r10, r10
je 0x1400cc2b2
lea r9, [r10 + rbx]
mov rbx, r10
sub rbx, r10
add rbx, rdx
nop dword [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x1400cc290
add qword [rdi], rax
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x1400cc4a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1402632b0
sub rsp, rax
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.1400cc140

Function at 0x1400d9250
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1402632b0
sub rsp, rax
cmp dword [0x140385e20], 0
jne 0x1400d930a
xor edx, edx
mov dword [0x140385e20], 1
mov r8d, 0x198
lea rcx, [0x140385e30]
call fcn.1402997a0
mov ecx, 0x202
lea rdx, [0x140385e30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400d930a
call fcn.1400b42e0
lea r8, str.BIO_sock_init
mov edx, 0x92
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400b4400
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.1400b4500
call fcn.1400b42e0
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400b4400
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.1400b4500
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400d9320
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402632b0
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x1400d9382
call fcn.1400b42e0
lea r8, str.BIO_socket_ioctl
mov edx, 0xcf
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1400b4400
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.1400b4500
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x1400db630
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1402632b0
sub rsp, rax
mov rax, qword [0x140381300]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140386108], 0
lea rax, [0x1400dafb0]
mov qword [rsp + 0x28], rax
lea rbx, [0x1402be170]
lea rax, [0x1402be180]
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x1400db3f0]
mov qword [rsp + 0x38], rax
lea rax, [0x1402be190]
mov qword [rsp + 0x40], rax
lea rax, [0x1400daf50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1400db809
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400db7ff
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402728c0
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140272920
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400db72a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400db78a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402728c0
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140272920
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400db7f7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400db78a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400db7f7
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 0x1400db7e6
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1400db7a0
mov rax, qword [rsp + 0x28]
mov qword [0x14037b970], rax
mov rax, qword [rsp + 0x38]
mov qword [0x14037b980], rax
mov rax, qword [rsp + 0x48]
mov qword [0x14037b990], rax
jmp 0x1400db7ef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140386108], 1
mov rax, rbp
lea rcx, [0x14037b968]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140262bb0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret