joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073410
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14007344f
lea rdx, str.Couldnt_set_desired_mode
call fcn.14004afd0
lea eax, [rdi + 0x11]
jmp 0x1400735b5
cmp edx, 0xc8
je 0x140073466
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.14004b0c0
cmp esi, 0x13
jne 0x14007347b
mov rdx, rbp
mov rcx, rbx
call fcn.140073310
jmp 0x1400735b1
cmp esi, 0x14
jne 0x140073593
cmp byte [rbx + 0x718], 2
mov rbp, qword [rbx + 0x18]
jne 0x1400734f8
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400734f8
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.14007be70
test eax, eax
jne 0x1400735b1
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call fcn.1400e3a18
test rax, rax
je 0x1400734ed
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1400734f8
mov rcx, qword [rsp + 0x40]
call qword [fcn.1400e9194]
mov rdx, qword [rbx + 0x780]
test rdx, rdx
jne 0x14007351d
cmp byte [rbx + 0x1318], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140152033]
test rdi, rdi
mov r9, r8
lea rax, [0x140152bf0]
cmovne r9, rdi
lea rcx, [0x14012e080]
cmovne r8, rax
call fcn.140037c30
mov rcx, rdi
mov rsi, rax
call qword [fcn.1400e9194]
test rsi, rsi
jne 0x14007355b
lea edi, [rsi + 0x1b]
jmp 0x1400735b3
lea rdx, [rbp + 0x6d0]
mov r9, rsi
lea r8, [0x14012cb90]
mov rcx, rbx
call fcn.1400895b0
mov rcx, rsi
mov edi, eax
call qword [fcn.1400e9194]
test edi, edi
jne 0x1400735b3
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1f
jmp 0x1400735b3
cmp esi, 0x15
jne 0x14007359e
lea r8d, [rsi - 8]
jmp 0x1400735a7
cmp esi, 0x16
jne 0x1400735b3
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.140072e20
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14007a460
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push r13
sub rsp, 0x90
mov rax, qword [0x14016d408]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rdx]
mov rbx, r8
mov rsi, rdx
mov r13, rcx
test al, al
jne 0x14007a495
mov eax, recvfrom
jmp 0x14007a5b3
mov qword [rsp + 0x88], rbp
cmp al, 0x5b
jne 0x14007a675
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
cmp rbx, 4
jb 0x14007a66b
inc rsi
sub rbx, 2
cmp byte [rbx + rsi], 0x5d
jne 0x14007a66b
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
call fcn.1400fce60
cmp rbx, rax
je 0x14007a5d2
cmp byte [rsi + rax], 0x25
lea r14, [rsi + rax]
mov rbx, rax
jne 0x14007a66b
xor ebp, ebp
lea rdx, [0x14013830c]
lea rcx, [r14 + 1]
lea rdi, [r14 + 1]
lea r8d, [rbp + 2]
call fcn.1400ed780
test eax, eax
jne 0x14007a52c
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x14007a52c
cmp al, 0x5d
cmovne rdi, rcx
movzx eax, byte [rdi]
test al, al
je 0x14007a661
mov rcx, rbp
nop word [rax + rax]
cmp al, 0x5d
je 0x14007a55d
cmp rcx, 0xf
jge 0x14007a55d
inc rdi
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rdi]
test al, al
jne 0x14007a540
test ebp, ebp
je 0x14007a661
cmp byte [rdi], 0x5d
jne 0x14007a661
movsxd rax, ebp
cmp rax, 0x10
jae 0x14007a698
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x14003f979.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x14007a5cc
mov eax, 7
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e0e00
add rsp, 0x90
pop r13
pop rsi
pop rbx
ret
mov word [r14], 0x5d
lea r8, [rsp + 0x20]
mov byte [rbx + rsi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14007a66b
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x16]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x14007a656
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x14007a615
cmp rdx, rbx
jae 0x14007a656
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14007a640
mov rbx, rdx
mov byte [rdx + rsi + 1], al
mov byte [rbx + rsi], 0x5d
xor eax, eax
jmp 0x14007a599
mov eax, 3
jmp 0x14007a599
mov eax, socket
jmp 0x14007a599
lea rdx, str.__r_n_t_:____________
mov rcx, rsi
call fcn.1400e8d90
xor ebp, ebp
mov ecx, reloc.WS2_32.dll_setsockopt
cmp rbx, rax
cmovne ebp, ecx
mov eax, ebp
jmp 0x14007a5ab
call fcn.1400e1608
int3
Function at 0x140085110
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x14016d408]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.1400600a0
mov r13, rax
test rax, rax
jne 0x14008518e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140060f40
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004afd0
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1400e9194]
jmp 0x140085348
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140085201
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140060f40
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004afd0
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x140085332
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14008524a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140060f40
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004afd0
mov ebx, 0x4d
jmp 0x140085326
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x14008527f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14004afd0
mov ebx, 0x4d
jmp 0x14008531e
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x140085299
lea ebx, [rax + 0x1b]
jmp 0x14008531e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1400852f8
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008536a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1400852ef
mov edi, esi
jmp 0x1400852f1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1400852b0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140084e90
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.1400e9194]
mov rcx, r13
call fcn.1400e9194
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400e0e00
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140060f40
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004afd0
mov ebx, 0x4d
jmp 0x140085316
Function at 0x14008c2a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x14008c2e5
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14008c330
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x14008c392
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14008c350
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14008c3d3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14013ab30]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14013ab31]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14008c3a0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x14008c3f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.14004dd00
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x14008c596
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14008c480
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x14008c4e2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14008c4a0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14008c523
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14013ab30]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14013ab31]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14008c4f0
mov rcx, qword [rsp + 0x70]
call fcn.14004dd00
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x14008c552
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.1400e9194]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x14008dda0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14008de05
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x14008ddb0
ret
Function at 0x1400b1100
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rsi
push r12
push r15
sub rsp, 0x28
mov r12d, r9d
mov r15, r8
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400b12db
test rdx, rdx
je 0x1400b12db
movabs rax, 0x7fffffffffffffff
cmp r8, rax
ja 0x1400b12db
cmp dword [rcx], 0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x20], r14
mov r14, qword [rsp + 0x70]
jne 0x1400b116f
mov r8, r14
mov edx, 0x100
call fcn.1400b16f0
test al, al
je 0x1400b1200
movzx eax, byte [rsi]
mov rcx, rsi
mov edi, 0x1505
test al, al
je 0x1400b1195
nop
imul rdi, rdi, 0x21
movzx eax, al
lea rcx, [rcx + 1]
add rdi, rax
movzx eax, byte [rcx]
test al, al
jne 0x1400b1180
xor edx, edx
mov eax, edi
div dword [rbp]
mov rax, qword [rbp + 0x10]
mov r13d, edx
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x1400b11e0
nop dword [rax]
cmp dword [rbx + 0x20], edi
jne 0x1400b11d7
mov r8, qword [rbx]
mov rax, rsi
sub r8, rsi
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400b11d3
inc rax
test ecx, ecx
jne 0x1400b11c0
test edx, edx
je 0x1400b1221
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400b11b0
mov ecx, 0x28
call fcn.1400f4b64
mov rbx, rax
test rax, rax
jne 0x1400b1242
xor r8d, r8d
lea edx, [rax + 0xe]
mov rcx, r14
call fcn.1400a8970
xor al, al
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r12
pop rsi
pop rbp
ret
test r12b, 8
je 0x1400b122e
cmp qword [rbx + 8], 0xffffffffffffffff
jne 0x1400b1239
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x1400b12c6
xor r8d, r8d
lea edx, [r8 + 0xa]
jmp 0x1400b11f8
mov qword [rax], rsi
xorps xmm1, xmm1
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + r13*8]
mov qword [rbx + 0x18], rcx
mov rax, qword [rbp + 0x10]
mov qword [rax + r13*8], rbx
mov dword [rbx + 0x20], edi
mov qword [rbx + 8], 0xffffffffffffffff
inc qword [rbp + 8]
mov rcx, qword [rbp + 8]
mov edx, dword [rbp]
test rcx, rcx
js 0x1400b127e
cvtsi2sd xmm1, rcx
jmp 0x1400b1293
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x14013c2a0]
comisd xmm1, xmm0
jbe 0x1400b12c6
cmp edx, 0x80000000
jae 0x1400b12c6
add edx, edx
mov r8, r14
mov rcx, rbp
call fcn.1400b16f0
test al, al
je 0x1400b1200
test r12b, 8
je 0x1400b12d0
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov al, 1
jmp 0x1400b1202
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
lea edx, [r8 + 0x12]
call fcn.1400a8970
xor al, al
add rsp, 0x28
pop r15
pop r12
pop rsi
pop rbp
ret
Function at 0x1400b1300
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, r8
mov r11, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400b1471
test rdx, rdx
je 0x1400b1471
cmp qword [rcx + 8], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
jbe 0x1400b13b3
movzx eax, byte [rdx]
mov r8, rdx
mov r10d, 0x1505
test al, al
je 0x1400b1366
nop
imul r10, r10, 0x21
movzx eax, al
lea r8, [r8 + 1]
add r10, rax
movzx eax, byte [r8]
test al, al
jne 0x1400b1350
mov r14, qword [rcx + 0x10]
xor edx, edx
mov eax, r10d
xor edi, edi
div dword [rcx]
mov ebp, edx
mov r8, qword [r14 + rdx*8]
test r8, r8
je 0x1400b13b3
nop
cmp dword [r8 + 0x20], r10d
jne 0x1400b13a7
mov r9, qword [r8]
mov rax, r11
sub r9, r11
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1400b13a3
inc rax
test ecx, ecx
jne 0x1400b1390
test edx, edx
je 0x1400b13de
mov rdi, r8
mov r8, qword [r8 + 0x18]
test r8, r8
jne 0x1400b1380
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 9]
call fcn.1400a8970
xor al, al
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
cmp qword [r8 + 8], 0xffffffffffffffff
jne 0x1400b1462
mov rax, qword [r8 + 0x18]
test rdi, rdi
je 0x1400b13f4
mov qword [rdi + 0x18], rax
jmp 0x1400b13f8
mov qword [r14 + rbp*8], rax
mov rcx, r8
call fcn.1400e9194
dec qword [rbx + 8]
xorps xmm1, xmm1
mov rcx, qword [rbx + 8]
mov edx, dword [rbx]
test rcx, rcx
js 0x1400b1419
cvtsi2sd xmm1, rcx
jmp 0x1400b142e
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x14013c298]
comisd xmm0, xmm1
jbe 0x1400b146a
cmp edx, 0x100
jbe 0x1400b146a
shr edx, 1
mov r8, rsi
mov rcx, rbx
call fcn.1400b16f0
test al, al
jne 0x1400b146a
jmp 0x1400b13c2
mov qword [r8 + 0x10], 0xffffffffffffffff
mov al, 1
jmp 0x1400b13c4
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x12]
call fcn.1400a8970
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x20
pop rsi
ret
Function at 0x1400b1500
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov esi, r8d
mov rbx, rdx
mov r11, rcx
test rcx, rcx
je 0x1400b15e7
test rdx, rdx
je 0x1400b15e7
cmp qword [rcx + 8], 0
jbe 0x1400b15e0
movzx r8d, byte [rdx]
mov r10, rdx
mov eax, 0x1505
test r8b, r8b
je 0x1400b1568
nop dword [rax]
imul rax, rax, 0x21
movzx ecx, r8b
lea r10, [r10 + 1]
movzx r8d, byte [r10]
add rax, rcx
test r8b, r8b
jne 0x1400b1550
xor edx, edx
div dword [r11]
mov rax, qword [r11 + 0x10]
mov r9, qword [rax + rdx*8]
test r9, r9
je 0x1400b15e0
nop word [rax + rax]
mov r8, qword [r9]
mov rax, rbx
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400b15a3
inc rax
test ecx, ecx
jne 0x1400b1590
test edx, edx
je 0x1400b15b6
mov r9, qword [r9 + 0x18]
test r9, r9
jne 0x1400b1580
lea edx, [r9 + 9]
jmp 0x1400b15ec
test sil, 8
je 0x1400b15d6
mov rax, qword [r9 + 8]
cmp rax, 0xffffffffffffffff
je 0x1400b15e0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [r9 + 0x10]
cmp rax, 0xffffffffffffffff
jne 0x1400b15fe
mov edx, 9
jmp 0x1400b15ec
mov edx, reloc.WS2_32.dll_select
xor r8d, r8d
mov rcx, rdi
call fcn.1400a8970
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b5470
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x1400b558e
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400b5512
sub rsi, rdx
movzx eax, word [rbx + 8]
lea rdx, [rsp + 0x48]
or eax, 2
mov r8d, 1
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [rsi + rdi]
mov byte [rdi], cl
mov byte [rsp + 0x48], cl
mov ecx, dword [rbx]
not ecx
call fcn.1400b80c0
not eax
lea rdx, [rsp + 0x48]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x48], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1400b80c0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
sub rbp, 1
jne 0x1400b54a1
jmp 0x1400b557a
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x48]
movzx eax, byte [rdi + rsi]
not ecx
mov r8d, 1
mov byte [rsp + 0x48], al
call fcn.1400b80c0
not eax
lea rdx, [rsp + 0x48]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x48], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1400b80c0
inc rdi
not eax
mov dword [rbx + 8], eax
cmp rdi, rbp
jb 0x1400b5520
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b5590
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x1400b56ce
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x48], rdi
mov rbp, r9
mov r15, r8
mov r14, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400b5652
mov qword [rsp + 0x40], rsi
sub r15, rdx
nop dword [rax]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x58]
movzx esi, byte [r15 + r14]
not ecx
movzx edi, word [rbx + 8]
mov r8d, 1
or di, 2
mov byte [rsp + 0x58], sil
call fcn.1400b80c0
not eax
lea rdx, [rsp + 0x58]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x58], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1400b80c0
not eax
lea r14, [r14 + 1]
mov dword [rbx + 8], eax
movzx eax, di
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, sil
mov byte [r14 - 1], cl
sub rbp, 1
jne 0x1400b55d0
mov rsi, qword [rsp + 0x40]
jmp 0x1400b56bb
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x58]
movzx eax, byte [rdi + r15]
not ecx
mov r8d, 1
mov byte [rsp + 0x58], al
call fcn.1400b80c0
not eax
lea rdx, [rsp + 0x58]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x58], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1400b80c0
inc rdi
not eax
mov dword [rbx + 8], eax
cmp rdi, rbp
jb 0x1400b5660
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret

Function at 0x1400b56f0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], r8
lea r8d, [r9 + 0x10]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r9
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
setns al
add rsp, 0x58
ret

Function at 0x1400b5930
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400b5959
mov eax, 0xffffffff
cmp r8, rax
ja 0x1400b5959
mov rcx, qword [rcx + 8]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
test eax, eax
setns al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x1400b5c80
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
movzx r8d, dx
mov r9d, 2
mov rdx, rcx
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
setns al
add rsp, 0x28
ret
Function at 0x1400bf3a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400bf424
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400bf424
dec r8
sub rdx, 1
jne 0x1400bf40a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret