joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d9610
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0x19], 0
mov r12, r9
mov rdi, r8
mov r10, rdx
mov rbp, rcx
jge 0x1401d9680
mov rax, qword [rcx + 0x80]
xor ecx, ecx
mov rdx, qword [rax + 0x10]
mov dword [rsp + 0x20], edx
test r8, r8
je 0x1401d966e
nop word [rax + rax]
mov rax, rcx
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
xor byte [r10 + rcx], al
inc rcx
cmp rcx, rdi
jb 0x1401d9650
mov rax, qword [rbp + 0x80]
mov rcx, rdi
and ecx, 3
je 0x1401d967c
shl cl, 3
ror rdx, cl
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x80]
mov rdx, r10
mov rbx, qword [rax]
add rbx, 0x50
mov r15, qword [rbx + 0x10]
lea r14, [rbx + 0x10]
mov rcx, rbx
call fcn.1401a6950
mov r10, qword [rbp + 0x80]
mov rax, qword [r10]
cmp dword [rax + 0x70], 1
jne 0x1401d973a
cmp qword [rbx + 0x18], 0xf
jbe 0x1401d96c7
mov rdx, qword [rbx]
mov rbx, rdx
add rdx, qword [r14]
jmp 0x1401d96cd
mov rdx, qword [r14]
add rdx, rbx
lea rax, [r15 + rbx]
cmp rax, rdx
je 0x1401d973a
lea rbx, [0x1405e79d0]
nop dword [rax]
cmp dword [r10 + 0x18], 0
movzx r8d, byte [rax]
mov r9d, r8d
movzx r11d, byte [r8 + rbx]
je 0x1401d9703
mov ecx, dword [r10 + 0x1c]
and r9d, 0x3f
shl ecx, 6
or r9d, ecx
jmp 0x1401d9712
mov r8d, 0xff
mov ecx, r11d
sar r8d, cl
and r9d, r8d
mov dword [r10 + 0x1c], r9d
mov ecx, dword [r10 + 0x18]
add ecx, 0x10
shl ecx, 4
add ecx, r11d
movzx r8d, byte [rcx + rbx]
mov dword [r10 + 0x18], r8d
cmp r8d, 1
je 0x1401d9750
inc rax
cmp rax, rdx
jne 0x1401d96e0
sub qword [rbp + 0x30], rdi
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
call fcn.14017c330
mov qword [rsp + 0x30], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r12], xmm0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401fad90
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, r8
mov rax, rdx
mov rbx, rcx
test r8, r8
je 0x1401fadc9
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
movups xmmword [r8], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [r8 + 0x10], xmm0
test rax, rax
je 0x1401fadf3
mov rdx, rbx
cmp qword [rcx + 0x18], 7
jbe 0x1401faddb
mov rdx, qword [rcx]
cmp qword [rax + 0x18], 7
jbe 0x1401fade5
mov rax, qword [rax]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x1401fae05
cmp qword [rcx + 0x18], 7
jbe 0x1401fadfd
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1401fae1b
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xorps xmm0, xmm0
mov qword [rsp + 0x48], 0
movups xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [rsp + 0x48]
movsd qword [rsp + 0x30], xmm0
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1401fce20
nop
cmp dword [rsp + 0x68], 3
je 0x1401fae6e
lea r9, str.boost::filesystem::create_directory
mov r8, rdi
mov rdx, rbx
mov ecx, esi
call fcn.1401ffaa0
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1401fc730
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov esi, edx
movzx r14d, dl
shr esi, 4
mov r15, r8
and sil, 1
mov ebp, edx
mov rbx, rcx
and r14b, 1
je 0x1401fc7cf
and edx, 0xfffffffe
cmp qword [rcx + 0x18], 7
jbe 0x1401fc770
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401fc7cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd r10, eax
cmp r10d, 0x35
ja 0x1401fc79d
movabs rax, 0x2000000020800c
bt rax, r10
jb 0x1401fc86b
lea eax, [r10 - 0x43]
cmp eax, 0x38
ja 0x1401fc7ba
movabs rcx, 0x100000000100001
bt rcx, rax
jb 0x1401fc86b
cmp r10d, 0xa1
je 0x1401fc86b
mov ecx, r10d
jmp 0x1401fc859
mov rax, qword [rbx + 0x18]
mov rcx, rbx
test sil, sil
jne 0x1401fc7ec
cmp rax, 7
jbe 0x1401fc7e4
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1401fc7fb
cmp rax, 7
jbe 0x1401fc7f5
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1401fc86f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd rdi, eax
cmp edi, 0x35
ja 0x1401fc81d
movabs rax, 0x2000000020800c
bt rax, rdi
jb 0x1401fc86b
lea eax, [rdi - 0x43]
cmp eax, 0x38
ja 0x1401fc835
movabs rcx, 0x100000000100001
bt rcx, rax
jb 0x1401fc86b
cmp edi, 0xa1
je 0x1401fc86b
test r14b, r14b
je 0x1401fc857
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x1401fc84f
mov rcx, qword [rbx]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, edi
lea r9, str.boost::filesystem::remove
mov r8, r15
mov rdx, rbx
call fcn.1401ffaa0
xor al, al
jmp 0x1401fc871
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1401fcfc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140648080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
cmp qword [rdx + 0x18], 7
jbe 0x1401fcff2
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401fd010
lea rcx, [rsp + 0x48]
call fcn.1401b3e80
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x88
mov r8d, 7
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1401fd0ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401fd0a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401fd176
call fcn.1404a4b9c
movdqa xmm0, xmmword [0x1405f9240]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
cmp rbx, 0xffffffffffffffff
je 0x1401fd0dd
test rbx, rbx
je 0x1401fd0dd
mov r9, r15
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.1401fcaf0
nop
jmp 0x1401fd149
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 5
jne 0x1401fd12e
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1401fd0f7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1401fd126
bt eax, 0xa
jb 0x1401fd12e
mov edx, eax
mov rcx, rsi
call fcn.1401fb3d0
and edi, 0x10
or edi, 0x20
shr edi, 4
mov dword [r14], edi
mov dword [r14 + 4], eax
jmp 0x1401fd13f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov r9, r15
mov r8, rsi
mov edx, ebp
mov rcx, r14
call fcn.1401fb6b0
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401fd152
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1404a4900
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1404abb04
nop
int3
Function at 0x140202180
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1402021aa
mov eax, dword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.error_while_reading
mov rcx, rbx
call fcn.1402021c0
int3

Function at 0x140214870
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1404a54e0
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 0x140214a60
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
push rdi
push r13
mov eax, gethostbyaddr
call fcn.1404a54e0
sub rsp, rax
mov eax, dword [0x140650288]
mov r13d, ecx
mov ebx, 1
cmp eax, 2
je 0x140214ad3
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x140650288], ebx
je 0x140214aad
cmp eax, ebx
je 0x140214a90
mov eax, dword [0x140650288]
cmp eax, 2
jne 0x140214af2
jmp 0x140214ad3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, [0x140214980]
xor edx, edx
xor ecx, ecx
mov dword [0x140650284], eax
call fcn.140257b50
mov dword [0x140650288], 2
mov r8d, reloc.WS2_32.dll___WSAFDIsSet
lea rdx, str.crypto_threads_win.c
mov ecx, 0x58
call fcn.140215fa0
mov rdi, rax
test rax, rax
jne 0x140214afd
xor eax, eax
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.140264d40
mov qword [rdi + 0x30], rax
call fcn.140264960
mov qword [rdi + 0x40], rax
call fcn.140264960
mov qword [rdi + 0x50], rax
call fcn.140264d40
mov qword [rdi + 0x38], rax
call fcn.140264d40
cmp r13d, ebx
mov qword [rdi + 0x48], rax
mov r8d, 0x85
lea rdx, str.crypto_threads_win.c
cmovge ebx, r13d
inc ebx
movsxd rbx, ebx
lea rcx, [rbx*8]
call fcn.140215fa0
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140214b99
cmp qword [rdi + 0x40], 0
je 0x140214b99
cmp qword [rdi + 0x50], 0
je 0x140214b99
cmp qword [rdi + 0x30], 0
je 0x140214b99
cmp qword [rdi + 0x38], 0
je 0x140214b99
cmp qword [rdi + 0x48], 0
jne 0x140214bf2
mov r8d, 0xa8
lea rdx, str.crypto_threads_win.c
mov rcx, rax
call fcn.140215d10
lea rcx, [rdi + 0x40]
call fcn.1402648c0
lea rcx, [rdi + 0x50]
call fcn.1402648c0
lea rcx, [rdi + 0x38]
call fcn.140264cd0
lea rcx, [rdi + 0x48]
call fcn.140264cd0
lea rcx, [rdi + 0x30]
call fcn.140264cd0
mov r8d, 0xae
lea rdx, str.crypto_threads_win.c
mov rcx, rdi
call fcn.140215d10
xor edi, edi
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
Function at 0x140214c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.1404a54e0
sub rsp, rax
mov rbx, rcx
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140650284]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140214cb1
mov r8d, 0xdd
lea rdx, str.crypto_threads_win.c
mov ecx, 0xf0
call fcn.140215fa0
mov r14, rax
test rax, rax
jne 0x140214ca2
mov r8d, 0xde
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_data___NULL
call fcn.140255170
mov ecx, dword [0x140650284]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
mov rax, r14
cmp qword [rax], 0
jne 0x140214cc2
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x140214d83
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x140214cb6
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
nop
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140214ce0
mov rcx, qword [rbx + 0x10]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140214d04
cmp r8d, eax
je 0x140214d62
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140214d30
mov r8d, eax
mov rax, qword [rbx + 0x10]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140214d54
cmp r8d, eax
jne 0x140214d20
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x10]
lea rdx, [r14 + rcx*8]
mov dword [rdx + 8], 1
mov qword [rdx + 0x10], rbx
lea rcx, [rax + r8*8]
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140214da0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.1404a54e0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140650284]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
lea rdx, [rsi + 0x10]
xor r8d, r8d
cmp qword [rdx], rdi
je 0x140214e09
inc r9d
inc r8
add rdx, 0x18
cmp r8, 0xa
jl 0x140214de4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
lea rcx, [rax + rax*2]
add dword [rsi + rcx*8 + 8], 0xffffffff
lea rbx, [rsi + rcx*8]
jne 0x140214e58
mov rax, qword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [rax], rcx
cmp rcx, 1
jns 0x140214e49
mov r8d, 0x10b
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_ret___0
call fcn.140255170
mov qword [rbx], 0
mov qword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1402163f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [rcx - 1]
movsxd rdi, r9d
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
mov r11, rdx
and rsi, rcx
mov r10, r8
mov ecx, dword [rdx + 8]
dec rsi
xor ecx, dword [r8 + 8]
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
movq xmm4, rsi
mov ecx, dword [rdx + 0x10]
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, edx
mov eax, dword [r8 + 0x14]
xor rcx, rax
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 0x140216509
cmp edi, 2
jb 0x140216509
mov r9, qword [r8]
lea rax, [rdi - 1]
mov r8, qword [r11]
lea rbx, [rdi - 1]
lea rbx, [r9 + rbx*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x14021649a
cmp rbx, r8
jae 0x140216509
cmp r9, r10
ja 0x1402164a4
cmp rbx, r10
jae 0x140216509
cmp r9, r11
ja 0x1402164ae
cmp rbx, r11
jae 0x140216509
cmp r8, r10
ja 0x1402164b8
cmp rax, r10
jae 0x140216509
cmp r8, r11
ja 0x1402164c2
cmp rax, r11
jae 0x140216509
mov eax, edi
and eax, 0xfffffffe
nop word [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [r8 + rcx]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
xorps xmm3, xmm1
andps xmm3, xmm4
movdqa xmm0, xmm3
xorps xmm3, xmm2
xorps xmm0, xmm1
movdqu xmmword [r8 + rcx - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x1402164d0
movsxd rax, edx
cmp rax, rdi
jge 0x14021653e
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, rdi
jl 0x140216511
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140216dc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
test byte [rcx + 0x14], 4
lea rax, [rcx + 8]
mov r11, qword [rcx]
lea rsi, [rdx + 8]
mov rbx, qword [rdx]
je 0x140216ebd
mov ecx, dword [rsi]
cmp dword [rax], ecx
jne 0x140216ebd
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
xor edi, edi
mov ebp, edi
test ecx, ecx
jle 0x140216eaa
sub r11, rbx
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx + r11]
inc ebp
mov rdx, qword [rbx]
lea rbx, [rbx + 8]
mov rcx, r8
shr rdx, 0x3f
sub r8, qword [rbx - 8]
shr r8, 0x3f
xor r8d, edx
shr rcx, 0x3f
xor edx, ecx
or r8d, edx
xor r8d, ecx
neg r8d
mov dword [rsp + 0x10], r8d
not r8d
mov r10d, dword [rsp + 0x10]
mov dword [rsp + 0x10], r8d
mov r9d, dword [rsp + 0x10]
and edi, r9d
mov r8, qword [rbx - 8]
or edi, r10d
mov rdx, qword [rbx + r11 - 8]
mov rcx, r8
sub r8, qword [rbx + r11 - 8]
shr r8, 0x3f
shr rdx, 0x3f
xor r8d, edx
shr rcx, 0x3f
xor edx, ecx
or r8d, edx
xor r8d, ecx
neg r8d
mov dword [rsp + 0x10], r8d
not r8d
mov edx, dword [rsp + 0x10]
and edx, 1
mov dword [rsp + 0x10], r8d
mov ecx, dword [rsp + 0x10]
and edi, ecx
or edi, edx
cmp ebp, dword [rsi]
jl 0x140216e10
mov rbp, qword [rsp + 0x18]
mov eax, edi
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
pop rsi
ret
mov ecx, dword [rax]
mov eax, ecx
sub eax, dword [rsi]
jne 0x140216eeb
lea eax, [rcx - 1]
movsxd rcx, eax
test eax, eax
js 0x140216ee9
lea rax, [rbx + rcx*8]
sub r11, rbx
mov rdx, qword [rax + r11]
cmp rdx, qword [rax]
jne 0x140216ef2
sub rax, 8
sub rcx, 1
jns 0x140216ed6
xor eax, eax
mov rbx, qword [rsp + 0x28]
pop rsi
ret
mov rbx, qword [rsp + 0x28]
mov eax, 0xffffffff
mov ecx, 1
cmova eax, ecx
pop rsi
ret
Function at 0x1402171f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x40
call fcn.1404a54e0
sub rsp, rax
xor r13d, r13d
mov r12d, r9d
mov r15d, r13d
mov edi, r13d
mov ebp, r13d
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
call fcn.140216950
mov r8d, eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp dword [rsp + 0x90], r13d
jne 0x14021726f
mov edi, dword [rsi + 0x10]
mov ecx, edi
neg ecx
lea ecx, [rax*8]
sbb r15d, r15d
movzx r15d, r15b
cmp ecx, r8d
jne 0x14021726d
test edi, edi
sete bpl
jmp 0x14021726f
mov ebp, edi
add eax, ebp
cmp ebx, 0xffffffff
jne 0x1402172a3
mov ebx, eax
mov eax, dword [rsi + 0xc]
shl eax, 3
movsxd rdx, eax
test eax, eax
jne 0x14021731e
test ebx, ebx
je 0x1402173b5
movsxd r8, ebx
xor edx, edx
mov rcx, r14
call fcn.1404dd800
jmp 0x1402173b5
cmp ebx, eax
jge 0x140217278
movups xmm2, xmmword [rsi]
movsxd rax, dword [rsi + 8]
movsd xmm0, qword [rsi + 0x10]
movsd qword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm2
test eax, eax
jle 0x1402172e4
movq rcx, xmm2
lea r8, [rcx + rax*8]
nop dword [rax + rax]
cmp qword [r8 - 8], r13
lea r8, [r8 - 8]
jne 0x1402172e0
dec eax
test eax, eax
jg 0x1402172d0
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x30]
test eax, eax
cmove ecx, r13d
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x20]
call fcn.140216950
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ebp
cmp ebx, eax
jge 0x140217278
mov rax, 0xffffffffffffffff
jmp 0x1402173b7
cmp r12d, 1
je 0x14021732d
lea eax, [rbx - 1]
movsxd rcx, eax
add r14, rcx
mov r11d, 1
movsxd rbp, ebx
cmp r12d, r11d
mov rax, 0xffffffffffffffff
lea r12, [rdx - 1]
cmovne r11, rax
mov eax, dword [rsi + 8]
shl eax, 3
xor r9d, r9d
xor r10d, r10d
movsxd r13, eax
test ebx, ebx
je 0x1402173b5
nop dword [rax + rax]
mov rcx, qword [rsi]
movzx eax, r9b
and al, 7
mov rdx, r9
shl al, 3
shr rdx, 3
mov r8, qword [rcx + rdx*8]
movzx ecx, al
shr r8, cl
mov rax, r10
sub rax, r13
shr rax, 0x3f
neg al
and r8b, al
xor r8b, r15b
lea eax, [r8 + rdi]
cmp r8b, al
mov byte [r14], al
mov rax, r9
seta dil
sub rax, r12
shr rax, 0x3f
add r14, r11
add r9, rax
inc r10
cmp r10, rbp
jb 0x140217360
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1402485e0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1404a54e0
sub rsp, rax
cmp dword [0x140650370], 0
jne 0x14024869d
xor edx, edx
mov dword [0x140650370], 1
mov r8d, 0x198
lea rcx, [0x140650380]
call fcn.1404dd800
mov ecx, 0x202
lea rdx, [0x140650380]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14024869d
call fcn.14021d2b0
lea r8, str.BIO_sock_init
mov edx, reloc.OLEAUT32.dll_DllRegisterServer
lea rcx, str.crypto_bio_bio_sock.c
call fcn.14021d3d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.14021d530
call fcn.14021d2b0
lea r8, str.BIO_sock_init
mov edx, 0x98
lea rcx, str.crypto_bio_bio_sock.c
call fcn.14021d3d0
xor r8d, r8d
mov edx, 0x7a
mov ecx, 0x20
call fcn.14021d530
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1402486b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1404a54e0
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 0x140248712
call fcn.14021d2b0
lea r8, str.BIO_socket_ioctl
mov edx, 0xf4
lea rcx, str.crypto_bio_bio_sock.c
call fcn.14021d3d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.14021d530
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x140248720
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1404a54e0
sub rsp, rax
mov rax, qword [0x140648080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0xffffffff
jne 0x140248753
mov eax, ecx
jmp 0x1402487b5
test rbx, rbx
jne 0x14024875f
mov eax, 1
jmp 0x1402487b5
xor ecx, ecx
call fcn.1404bd530
mov rcx, rax
cmp rbx, rax
jge 0x140248772
xor eax, eax
jmp 0x1402487b5
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1404a4900
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1402494e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1404a54e0
sub rsp, rax
mov rax, qword [0x140648080]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140650520], 0
lea rax, [0x140248e50]
mov qword [rsp + 0x28], rax
lea rbx, [0x140511710]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140249290]
mov qword [rsp + 0x38], rax
lea rax, [0x140511730]
mov qword [rsp + 0x40], rax
lea rax, [0x140248df0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1402496b9
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1402496af
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1404bd23c
lea r8, [0x140511740]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1404befa0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1402495da
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14024963a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1404bd23c
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1404befa0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1402496a7
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14024963a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1402496a7
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 0x140249696
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x140249650
mov rax, qword [rsp + 0x28]
mov qword [0x1406407c8], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1406407d8], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1406407e8], rax
jmp 0x14024969f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140650520], 1
mov rax, rbp
lea rcx, [0x1406407c0]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1404a4900
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret