joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a3d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006a409
mov dword [rsp + 0x30], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402f09e0
add rsp, 0x48
ret

Function at 0x14006a420
Capabilities:
Get file size

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x20], eax
cmp eax, 0xffffffff
jne 0x14006a473
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, 0xffffffffffffffff
mov rax, qword [rsp + 0x20]
test ecx, ecx
cmovne rax, rdx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1402f09e0
add rsp, 0x38
ret
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1402f09e0
add rsp, 0x38
ret
Function at 0x140070c50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [rcx + 0x48], 0
mov rbx, rcx
je 0x140070cca
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140070cca
xor ebp, ebp
lea rax, [r11 - 0x28]
mov qword [r11 - 0x30], rbp
xor r9d, r9d
mov qword [r11 - 0x38], rbp
xor r8d, r8d
mov qword [r11 - 0x40], rax
xor edx, edx
mov qword [r11 - 0x48], rbp
mov qword [r11 - 0x50], rbp
mov qword [r11 - 0x58], rbp
mov qword [r11 - 0x60], rbp
mov qword [r11 - 0x68], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140070cd1
mov r8d, eax
lea rdx, str.Unable_to_query_registry_key_info__winError:__d_
lea ecx, [rbp + 3]
call fcn.14006e290
xor al, al
jmp 0x140070d66
mov eax, dword [rsp + 0x60]
mov edi, 4
cmp eax, 4
jb 0x140070ce2
lea edi, [rax + 2]
mov ecx, edi
mov edx, 1
call fcn.1402f9040
mov rsi, rax
test rax, rax
je 0x140070cca
mov rdx, qword [rbx + 0x48]
lea r9, [rsp + 0x64]
mov rcx, qword [rbx + 0x40]
xor r8d, r8d
mov qword [rsp + 0x98], r14
lea r14, [rbx + 0x38]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x30], rax
mov dword [r14], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jbe 0x140070d52
mov r8, qword [rbx + 0x48]
lea rdx, str.Unable_to_query_registry_value__valueName:___s___winError:__d_
mov r9d, eax
mov ecx, 3
call fcn.14006e290
mov rcx, rsi
call fcn.1402ff780
xor al, al
jmp 0x140070d5e
mov dword [rbx + 0x3c], ebp
test eax, eax
je 0x140070d5c
mov dword [r14], ebp
mov al, 1
mov r14, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1402f09e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140071780
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
push r12
lea rbp, [r11 - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
xor eax, eax
mov qword [r11 - 0x30], r14
mov rdi, rdx
mov qword [r11 - 0x38], r15
mov r14, r8
mov r15, rcx
mov qword [rbp - 9], rax
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call fcn.140314264
xor r12d, r12d
mov qword [rbp - 0x41], rax
test rax, rax
jne 0x1400717eb
lea ebx, [rax + 6]
jmp 0x14007190f
mov rcx, rdi
call fcn.140314264
mov qword [rbp - 0x39], rax
test rax, rax
jne 0x140071804
lea ebx, [rax + 6]
jmp 0x14007190f
mov dword [rbp - 0x49], 3
cmp qword [rbp - 0x41], r12
je 0x14007190a
lea rcx, [rbp - 0x49]
call fcn.1400706d0
mov ebx, eax
test eax, eax
jne 0x14007190f
mov rdx, qword [rbp - 0x39]
lea r9, [rbp + 0xf]
mov rcx, qword [rbp - 9]
xor r8d, r8d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x49], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140071877
mov r9, qword [rbp - 0x39]
lea rdx, str.Unable_to_query_registry_value__parentKey:___s___valueName:___s___winError:__d_
mov r8, qword [rbp - 0x41]
lea ecx, [rbx + 3]
mov dword [rsp + 0x20], eax
call fcn.14006e290
mov ebx, 3
jmp 0x14007190f
mov eax, dword [rbp + 0xf]
mov ebx, r12d
mov dword [rbp - 0xd], eax
cmp byte [rbp - 0x31], bl
jne 0x14007188f
mov ebx, 3
jmp 0x14007190f
mov rcx, qword [r14 + 0x80]
lea rdx, [rbp + 7]
mov r8d, 0xa
call fcn.1403062f0
mov rdx, qword [r14 + 0x80]
mov esi, eax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], bl
jne 0x1400718b5
add rcx, rdx
cmp qword [rbp + 7], rcx
je 0x1400718cd
mov ebx, 3
jmp 0x14007190f
lea rcx, [r14 + 0xb0]
mov r8d, 0x20
lea rdx, [rbp - 0x30]
call fcn.1402f5480
test eax, eax
jne 0x1400718ec
cmp esi, dword [rbp - 0xd]
je 0x14007190f
mov r9, rdi
lea rdx, str.The_registry_value_exists__but_its_content_is_different__parentKey:___s___valueName:___s__
mov r8, r15
mov ecx, 3
call fcn.14006e290
mov ebx, shutdown
jmp 0x14007190f
mov ebx, 1
mov rcx, qword [rbp - 9]
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
test rcx, rcx
je 0x140071942
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 9], r12
mov rcx, qword [rbp - 0x41]
call fcn.1402ff780
mov rcx, qword [rbp - 0x39]
mov qword [rbp - 0x41], r12
call fcn.1402ff780
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1402f09e0
add rsp, 0xc0
pop r12
pop rbx
pop rbp
ret
Function at 0x140072cf0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x140435478], ebx
jne 0x140072d1d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x140435470], rax
jmp 0x140072d24
mov rax, qword [0x140435470]
test rax, rax
je 0x140072d7d
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [0x140435480], 0
jne 0x140072d55
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x140435480], rax
xor edx, edx
lea ecx, [rdx + 0xc]
call fcn.14007bc70
call fcn.1402d3d20
mov ebx, eax
test eax, eax
jne 0x140072d70
inc dword [0x140435468]
mov rcx, qword [0x140435470]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140075310
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
test edx, 0xc0000
mov r12, r9
mov r13d, r8d
lea r9, [rsp + 0x78]
setne r10b
mov esi, edx
bt edx, 0x18
mov rdi, rcx
mov r15d, 7
setb al
test al, r10b
mov eax, 1
cmove r15d, eax
xor r8d, r8d
mov edx, r15d
mov ecx, r15d
call fcn.140074fa0
test eax, eax
je 0x140075372
mov rax, 0xffffffffffffffff
jmp 0x140075461
mov qword [rsp + 0x70], rbp
mov r9, r12
mov ebp, dword [rsp + 0x98]
mov r8d, r13d
mov qword [rsp + 0x30], 0
mov edx, esi
mov qword [rsp + 0x80], r14
mov rcx, rdi
mov r14d, dword [rsp + 0x90]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140075424
mov edx, esi
mov qword [rsp + 0x30], 0
btr edx, 0x18
mov dword [rsp + 0x28], ebp
mov r9, r12
mov dword [rsp + 0x20], r14d
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140075410
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140075424
mov r9d, esi
mov dword [rsp + 0x20], eax
mov r8, rdi
lea rdx, str.Unable_to_open_file:___s___dwDesiredAccess:__u__winError:__d_
lea ecx, [rbx + 4]
call fcn.14006e290
jmp 0x140075424
mov r8, rdi
lea rdx, str.Unable_to_open_file_with_the_ACCESS_SYSTEM_SECURITY_flag:___s_
mov ecx, 2
call fcn.14006e290
mov ecx, dword [rsp + 0x78]
xor r9d, r9d
mov edx, r15d
lea r8d, [r9 + 1]
call fcn.140074fa0
mov r14, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
test eax, eax
je 0x14007545e
cmp rbx, 0xffffffffffffffff
je 0x14007545e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, 0xffffffffffffffff
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140087b10
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402f1230
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 0x1400a3850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r15
mov eax, gethostbyname
call fcn.1402f1230
sub rsp, rax
mov rsi, qword [rsp + 0x88]
mov r10, r9
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov ebx, dword [rsi]
test ebx, ebx
jns 0x1400a3895
mov dword [rsi], 0xffffffff
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov rbp, qword [rsp + 0x80]
test ebx, ebx
je 0x1400a38c8
test rdi, rdi
je 0x1400a38c8
mov eax, ebx
dec rdi
movzx ecx, byte [rax + rbp]
xor cl, byte [r12]
inc r12
mov byte [r15], cl
inc r15
inc ebx
and ebx, 0xf
jne 0x1400a38a6
mov r9, qword [rsp + 0x90]
cmp rdi, 0x10
jb 0x1400a3999
mov qword [rsp + 0x28], r13
mov rsi, r15
mov r13, rdi
mov qword [rsp + 0x20], r14
shr r13, 4
mov r14, r12
imul rax, r13, 0xfffffffffffffff0
sub rsi, rbp
sub r14, rbp
add rdi, rax
mov rax, r13
shl rax, 4
add r15, rax
mov qword [rsp + 0x68], r15
add r12, rax
mov r15, qword [rsp + 0x78]
nop word [rax + rax]
mov r8, r15
mov rdx, rbp
mov rcx, rbp
call r9
cmp ebx, 0x10
jae 0x1400a3965
mov edx, reloc.WS2_32.dll_ntohs
mov eax, ebx
sub edx, ebx
add rax, rbp
shr edx, 3
inc edx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r14 + rax]
xor rcx, qword [rax]
mov qword [rsi + rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x1400a3950
mov r9, qword [rsp + 0x90]
add rsi, 0x10
add r14, 0x10
xor ebx, ebx
sub r13, 1
jne 0x1400a3920
mov r15, qword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
test rdi, rdi
je 0x1400a39c6
mov r8, r10
mov rdx, rbp
mov rcx, rbp
call r9
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r12]
xor al, byte [rcx + rbp]
mov byte [rcx + r15], al
sub rdi, 1
jne 0x1400a39b0
mov dword [rsi], ebx
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a3f30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
mov eax, 0x20
call fcn.1402f1230
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x1400a3f60
mov eax, 0xfffffffe
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x30]
movabs rax, 0x2000000000000000
add rcx, rbx
cmp rcx, rax
ja 0x1400a4052
cmp rcx, rbx
jb 0x1400a4052
mov qword [rsp + 0x40], rsi
mov esi, dword [rbp + 0x17c]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rbp + 0x30], rcx
test esi, esi
je 0x1400a3fd6
test rbx, rbx
je 0x1400a4032
movzx eax, byte [r14]
dec rbx
mov ecx, esi
inc r14
xor byte [rcx + rbp + 0x40], al
inc esi
and esi, 0xf
jne 0x1400a3fa0
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov rdx, r12
mov rcx, rdi
call qword [rbp + 0x170]
jmp 0x1400a3fde
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov qword [rsp + 0x58], r15
mov r15, rbx
and r15, 0xfffffffffffffff0
je 0x1400a4004
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rdi
call qword [rbp + 0x168]
add r14, r15
sub rbx, r15
mov r15, qword [rsp + 0x58]
test rbx, rbx
je 0x1400a4032
mov esi, ebx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + rdi - 0x40]
xor byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x1400a4020
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov r12, qword [rsp + 0x50]
mov dword [rbp + 0x17c], esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x1400a50c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
mov eax, 0x28
call fcn.1402f1230
sub rsp, rax
xor r13d, r13d
mov rdi, r8
mov qword [rcx + 0x30], r13
mov rsi, rdx
mov qword [rcx + 0x38], r13
mov rbx, rcx
mov qword [rcx + 0x178], r13
cmp r8, 0xc
jne 0x1400a5112
movsd xmm0, qword [rdx]
lea edi, [r8 - 0xb]
movsd qword [rcx], xmm0
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov dword [rcx + 0xc], 0x1000000
jmp 0x1400a5250
mov qword [rsp + 0x50], rbp
mov rbp, rdi
mov qword [rsp + 0x58], r12
mov qword [rcx + 0x40], r13
mov qword [rsp + 0x60], r14
mov qword [rcx + 0x48], r13
cmp rdi, 0x10
jb 0x1400a51e0
mov qword [rsp + 0x20], r15
mov r15, rdi
shr r15, 4
imul rax, r15, 0xfffffffffffffff0
add rdi, rax
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rbx + 0x60]
xor byte [rbx + 0x40], al
lea rcx, [rbx + 0x40]
movzx eax, byte [rsi + 1]
xor byte [rbx + 0x41], al
movzx eax, byte [rsi + 2]
xor byte [rbx + 0x42], al
movzx eax, byte [rsi + 3]
xor byte [rbx + 0x43], al
movzx eax, byte [rsi + 4]
xor byte [rbx + 0x44], al
movzx eax, byte [rsi + 5]
xor byte [rbx + 0x45], al
movzx eax, byte [rsi + 6]
xor byte [rbx + 0x46], al
movzx eax, byte [rsi + 7]
xor byte [rbx + 0x47], al
movzx eax, byte [rsi + 8]
xor byte [rbx + 0x48], al
movzx eax, byte [rsi + 9]
xor byte [rbx + 0x49], al
movzx eax, byte [rsi + 0xa]
xor byte [rbx + 0x4a], al
movzx eax, byte [rsi + 0xb]
xor byte [rbx + 0x4b], al
movzx eax, byte [rsi + 0xc]
xor byte [rbx + 0x4c], al
movzx eax, byte [rsi + 0xd]
xor byte [rbx + 0x4d], al
movzx eax, byte [rsi + 0xe]
xor byte [rbx + 0x4e], al
movzx eax, byte [rsi + 0xf]
xor byte [rbx + 0x4f], al
call qword [rbx + 0x170]
add rsi, 0x10
sub r15, 1
jne 0x1400a5150
mov r15, qword [rsp + 0x20]
test rdi, rdi
je 0x1400a520f
lea rcx, [rbx + 0x40]
sub rsi, rbx
nop dword [rax]
movzx eax, byte [rsi + rcx - 0x40]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdi, 1
jne 0x1400a51f0
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x170]
shl rbp, 3
lea rdx, [rbx + 0x60]
bswap rbp
xor qword [rbx + 0x48], rbp
lea rcx, [rbx + 0x40]
call qword [rbx + 0x170]
mov rax, qword [rbx + 0x40]
mov edi, dword [rbx + 0x4c]
mov r14, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov qword [rbx], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 8], rax
bswap edi
nop dword [rax + rax]
mov qword [rbx + 0x40], r13
lea rdx, [rbx + 0x20]
mov qword [rbx + 0x48], r13
mov rcx, rbx
mov r8, qword [rbx + 0x188]
call qword [rbx + 0x180]
inc edi
bswap edi
mov dword [rbx + 0xc], edi
add rsp, 0x28
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a7f90
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1402f1230
sub rsp, rax
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x1400a7fc7
mov eax, 0xfffffffe
jmp 0x1400a80e7
test rbx, rbx
je 0x1400a80e5
cmp r8d, 0x30
jne 0x1400a80e5
mov r8d, gethostbyname
mov rdx, rdi
call fcn.1400a7e60
test eax, eax
jle 0x1400a80e5
movdqa xmm0, xmmword [str.6666666666666666c2i_ibuf]
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.1400a7e60
test eax, eax
je 0x1400a80e5
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400a7c60
test eax, eax
je 0x1400a80e5
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.1400a7e60
test eax, eax
jle 0x1400a80e5
movdqa xmm0, xmmword [0x14035bda0]
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.1400a7e60
test eax, eax
je 0x1400a80e5
mov r8d, shutdown
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400a7e60
test eax, eax
je 0x1400a80e5
mov edx, shutdown
lea rcx, [rsp + 0x48]
call fcn.140001240
mov eax, 1
jmp 0x1400a80e7
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402f09e0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400a9f00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1402f1230
sub rsp, rax
mov r10, rcx
test r9, r9
jne 0x1400a9f4a
call fcn.140089990
lea r8, [0x14035bdb0]
mov edx, 0xa0
lea rcx, str.crypto_asn1_a_int.c
call fcn.140089ab0
xor r8d, r8d
mov edx, 0xde
lea ecx, [r8 + 0xd]
call fcn.140089bb0
xor eax, eax
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
movzx ebx, byte [r8]
and ebx, 0x80
test rdx, rdx
je 0x1400a9f60
mov dword [rdx], ebx
cmp r9, 1
jne 0x1400a9f86
test r10, r10
je 0x1400a9f77
movzx eax, byte [r8]
test ebx, ebx
je 0x1400a9f75
neg al
mov byte [rcx], al
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
movzx ecx, byte [r8]
xor r11d, r11d
mov eax, r11d
test cl, cl
jne 0x1400a9fa1
mov eax, 1
mov r11d, eax
jmp 0x1400aa061
cmp cl, 0xff
jne 0x1400aa0aa
mov eax, 1
lea rcx, [r9 - 1]
mov edx, r11d
cmp r9, rax
jbe 0x1400aa04f
cmp rcx, 8
jb 0x1400aa040
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop dword [rax]
nop dword [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 0x1400a9fe0
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 0x1400aa04f
nop dword [rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1400aa040
test edx, edx
mov eax, r11d
setne al
test edx, edx
setne r11b
test edx, edx
je 0x1400aa0aa
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp ebx, ecx
jne 0x1400aa0aa
call fcn.140089990
lea r8, [0x14035bdb0]
mov edx, 0xc1
lea rcx, str.crypto_asn1_a_int.c
call fcn.140089ab0
xor r8d, r8d
mov edx, 0xdd
lea ecx, [r8 + 0xd]
call fcn.140089bb0
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov ecx, eax
sub r9, rcx
test r10, r10
je 0x1400aa0fd
neg ebx
lea rax, [r11 + r8]
sbb r11d, r11d
movzx r11d, r11b
mov ecx, r11d
and ecx, 1
test r9, r9
je 0x1400aa0fd
lea r8, [rax + r9]
mov rdx, r8
sub rdx, r8
add rdx, r9
nop dword [rax]
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, r11d
add ecx, eax
mov byte [r10 + rdx], cl
shr ecx, 8
test rdx, rdx
jne 0x1400aa0e0
mov rbx, qword [rsp + 0x20]
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400aa110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
xor r10d, r10d
xor r11b, r11b
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x1400aa228
test rdx, rdx
je 0x1400aa228
movzx eax, byte [rcx]
test r8d, r8d
jne 0x1400aa155
cmp al, 0x7f
jbe 0x1400aa220
mov r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1400aa230
mov r11b, 0xff
cmp al, 0x80
jbe 0x1400aa16d
mov r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1400aa230
jne 0x1400aa220
mov eax, 1
lea rcx, [rdx - 1]
cmp rdx, rax
jbe 0x1400aa20f
cmp rcx, 8
jb 0x1400aa200
and ecx, 7
mov r8, rdx
sub r8, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop word [rax + 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, r8
jb 0x1400aa1a0
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd r10d, xmm2
cmp rax, rdx
jae 0x1400aa20f
nop word [rax + rax]
movzx ecx, byte [rax + rbx]
inc rax
or r10d, ecx
cmp rax, rdx
jb 0x1400aa200
neg r10d
sbb r11b, r11b
movzx r11d, r11b
mov r10d, r11d
and r10d, 1
mov eax, r10d
add rax, rdx
jmp 0x1400aa230
mov eax, 1
mov rdx, r10
test rsi, rsi
je 0x1400aa29a
mov rcx, qword [r9]
test rcx, rcx
je 0x1400aa29a
mov qword [rsp + 0x10], rdi
mov edi, r10d
movzx r8d, r11b
add rdi, rcx
and r8d, 1
mov byte [rcx], r11b
test rdx, rdx
je 0x1400aa292
lea r10, [rbx + rdx]
mov r9, r10
sub r9, r10
add r9, rdx
nop word [rax + rax]
movzx edx, byte [r10 - 1]
lea r10, [r10 - 1]
dec r9
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rdi + r9], r8b
shr r8d, 8
test r9, r9
jne 0x1400aa270
add qword [rsi], rax
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
pop rsi
ret

Function at 0x1400aa490
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.1402f1230
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.1400aa110

Function at 0x1400b7930
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1402f1230
sub rsp, rax
cmp dword [0x140432030], 0
jne 0x1400b79ea
xor edx, edx
mov dword [0x140432030], 1
mov r8d, 0x198
lea rcx, [0x140432040]
call fcn.1402f5120
mov ecx, 0x202
lea rdx, [0x140432040]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400b79ea
call fcn.140089990
lea r8, str.BIO_sock_init
mov edx, 0x94
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140089ab0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.140089bb0
call fcn.140089990
lea r8, str.BIO_sock_init
mov edx, 0x96
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140089ab0
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.140089bb0
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400b7a00
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402f1230
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 0x1400b7a62
call fcn.140089990
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140089ab0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.140089bb0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b7a70
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1402f1230
sub rsp, rax
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x1400b7b02
test rbx, rbx
jne 0x1400b7aaa
lea eax, [r8 + 1]
jmp 0x1400b7b07
xor ecx, ecx
call fcn.140306510
mov rcx, rax
cmp rbx, rax
jge 0x1400b7abd
xor eax, eax
jmp 0x1400b7b07
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]
jmp 0x1400b7b07
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1402f09e0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret