joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009bc80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x14009bd21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14009bce5
mov dword [rsi], 0x51
jmp 0x14009bd1a
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140070e50
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14006a7f0
mov rax, qword [rdi + 8]
mov dword [rax + 0xd7c], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.14006a980
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b5540
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14009bd60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x14009bea1
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14009be31
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140070e50
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14006a7f0
mov eax, 2
jmp 0x14009bea3
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.14006bb20
test al, al
jne 0x14009bea1
mov qword [rsp + 0x1e0], rdi
call fcn.1400cc690
mov ebx, dword [rax]
call fcn.1400cc690
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140070e50
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14006a7f0
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x14009bea3
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400b5540
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x14009df60
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 [0x1401ea8a0]
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.140054f80
mov r13, rax
test rax, rax
jne 0x14009dfde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140070f80
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14006a7f0
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1400cc8c0]
jmp 0x14009e198
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 0x14009e051
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140070f80
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14006a7f0
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x14009e182
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14009e09a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140070f80
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14006a7f0
mov ebx, 0x4d
jmp 0x14009e176
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x14009e0cf
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14006a7f0
mov ebx, 0x4d
jmp 0x14009e16e
lea rcx, [rdi + 1]
call qword [fcn.1400cd480]
mov rbp, rax
test rax, rax
jne 0x14009e0e9
lea ebx, [rax + 0x1b]
jmp 0x14009e16e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x14009e148
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 0x14009e1ba
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14009e13f
mov edi, esi
jmp 0x14009e141
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x14009e100
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.14009dcc0
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.1400cc8c0]
mov rcx, r13
call fcn.1400cc8c0
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400b5540
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.140070f80
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14006a7f0
mov ebx, 0x4d
jmp 0x14009e166
Function at 0x1400aab10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.1400cd480]
mov rdi, rax
test rax, rax
jne 0x1400aab52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400aab99
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400aabf2
mov rsi, rbp
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 [rdi + 8]
call qword [rbx + 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 [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400aabb0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400aac33
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14019fcea]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14019fceb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400aac00
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c4664
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400c44f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c44f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c44f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c44f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c44f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c44f7
cmp dword [rcx + 0xf8], 0
je 0x1400c44f7
mov ecx, ebx
call fcn.1400c4598
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400c4388
cmp dword [rbp + 0x20], 0
je 0x1400c4544
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c454c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c4490
Function at 0x1400eb984
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400eb9a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400cc61c
or eax, 0xffffffff
jmp 0x1400eb9a6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400effe0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1401ea8a0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r15, rcx
lea r8, [rsp + 0x50]
xor ecx, ecx
mov edx, 1
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea rcx, [rsp + 0x88]
call fcn.140005110
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov ecx, 1
mov r14, rax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov edi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, edi
mov edx, ebx
mov rcx, r14
mov rbp, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor eax, eax
mov dword [rsp + 0x38], eax
mov r9d, ebx
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], edi
call qword [sym.imp.GDI32.dll_BitBlt]
lea rcx, [rsp + 0x60]
call fcn.1400051a0
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400052b0
lea rdx, [rsp + 0x78]
call fcn.1400f0170
mov rcx, r15
call fcn.140003830
mov rdx, rax
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.140005250
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea rcx, [rsp + 0x60]
call fcn.140005390
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov rcx, r15
call fcn.14000e230
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b5540
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1401037b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rdi
push r12
push r14
sub rsp, 0x50
mov r8, qword [rdx + 0x18]
xor r10d, r10d
mov rdi, rdx
mov r12, rcx
mov r14d, r10d
mov qword [rsp + 0x78], r8
cmp r10w, word [rdx + 0x60]
jae 0x14010393a
mov qword [rax - 0x30], rsi
mov esi, r10d
mov qword [rax - 0x38], r13
mov r13d, r10d
mov qword [rax - 0x20], rbx
mov qword [rax - 0x28], rbp
mov qword [rax - 0x40], r15
mov rax, qword [rdi + 8]
movsx rcx, word [rax + rsi*2]
cmp ecx, 0xfffffffe
jne 0x140103824
mov rax, qword [rdi + 0x50]
test byte [r9 + 0x3c], 0x58
setne r15b
mov rbp, qword [rax + r13 + 8]
jmp 0x140103851
test ecx, ecx
js 0x14010390a
mov rax, qword [r8 + 8]
lea rcx, [rcx + rcx*2]
test byte [rax + rcx*8 + 0x12], 0x20
lea rdx, [rax + rcx*8]
je 0x14010390a
mov rcx, r8
call fcn.140138690
mov rbp, rax
mov r15d, r10d
mov rcx, rbp
call fcn.140144c20
test eax, eax
jne 0x1401038fa
mov rcx, qword [r12]
lea edx, [rax + 0x20]
call fcn.1401800f0
mov rbx, rax
test rax, rax
je 0x140103921
mov rax, qword [r12 + 0x60]
mov rdx, rbp
mov rbp, qword [rsp + 0x70]
xor r8d, r8d
mov qword [rbx + 0x18], rax
mov rcx, qword [rbp]
call fcn.140145a80
mov qword [rbx], rax
mov rdx, rdi
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x44]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], r14d
mov byte [rbx + 0x14], r15b
mov rcx, qword [rbp]
call fcn.14012a7e0
test rax, rax
je 0x1401038d5
mov rax, qword [rdi + 0x20]
movzx ecx, byte [rsi + rax]
mov byte [rbx + 0x15], cl
mov qword [r12 + 0x60], rbx
cmp qword [rbx + 0x18], 0
jne 0x1401038f5
lea r8, [r12 + 0x60]
mov rcx, rbp
lea rdx, [0x140106740]
call fcn.140121430
mov r12, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
xor r10d, r10d
mov r9, qword [rsp + 0x88]
movzx eax, word [rdi + 0x60]
inc r14d
inc rsi
add r13, 0x20
cmp r14d, eax
jl 0x140103802
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
add rsp, 0x50
pop r14
pop r12
pop rdi
ret
Function at 0x1401065c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
movzx eax, byte [r8]
mov rsi, r9
mov r14, qword [rsp + 0x88]
mov rbx, r8
mov r15, rdx
mov rdi, rcx
cmp al, 0x2c
jne 0x14010660b
mov eax, dword [rsp + 0x80]
mov r8, qword [r8 + 0x18]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
call fcn.1401065c0
mov rax, qword [rbx + 0x10]
mov rbx, rax
movzx eax, byte [rax]
sub al, 0x2d
test al, 0xf7
jne 0x140106729
mov qword [rsp + 0x60], rbp
mov rbp, qword [rbx + 0x10]
cmp byte [rbp], 0xa7
jne 0x140106724
mov qword [rsp + 0x70], r13
mov r13, qword [rbx + 0x18]
mov rcx, r13
call fcn.140144c20
test eax, eax
je 0x14010671f
mov rdx, rbx
mov rcx, rdi
call fcn.1401471e0
mov rcx, rax
call fcn.1400f91b0
test eax, eax
je 0x14010671f
movsx r8, word [rbp + 0x30]
test r8w, r8w
js 0x14010671f
mov rax, qword [r15 + 0x18]
lea rcx, [r8 + r8*2]
mov qword [rsp + 0x68], r12
mov rax, qword [rax + 8]
movzx r12d, byte [rax + rcx*8 + 0xc]
cmp r12b, 0x42
jb 0x14010671a
test r14, r14
je 0x14010670a
mov r15, qword [rdi]
mov edx, 0x20
mov rcx, r15
call fcn.1401800f0
mov rsi, rax
test rax, rax
je 0x14010671a
movzx ebx, byte [r14 + 0x3c]
xor r8d, r8d
mov rdx, r13
mov rcx, r15
call fcn.140145a80
mov qword [rsi], rax
lea r8, [rdi + 0x68]
mov ecx, dword [r14 + 0x44]
test bl, 0x48
mov eax, dword [rsp + 0x80]
mov dword [rsi + 0xc], eax
setne al
mov dword [rsi + 8], ecx
movsx ecx, word [rbp + 0x30]
mov dword [rsi + 0x10], ecx
mov byte [rsi + 0x14], al
mov rax, qword [r8]
mov qword [rsi + 0x18], rax
mov byte [rsi + 0x15], r12b
mov qword [r8], rsi
cmp qword [rsi + 0x18], 0
jne 0x14010671a
lea rdx, [0x140106740]
mov rcx, rdi
call fcn.140121430
jmp 0x14010671a
cmp r8d, 0x3f
jge 0x14010671a
mov rax, qword [rsi]
btr rax, r8
mov qword [rsi], rax
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14013f080
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.140138fd0
test ebx, ebx
jne 0x14013f0e9
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.140138fd0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14014ccf0
Capabilities:
Create thread

Disassembly:
jmp 0x14017d710
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.1401806a0
mov rbx, rax
test rax, rax
jne 0x14017d74e
lea eax, [rbx + 7]
jmp 0x14017d7ce
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x14017d799
mov ecx, 0xc8
call fcn.14017ce80
test eax, eax
jne 0x14017d799
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x14017d7f0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call fcn.1400c84b0
mov qword [rbx], rax
test rax, rax
jne 0x14017d7a9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x14017d7c9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 8], eax
mov rcx, rsi
mov rax, rbp
call qword [case.0x140002a96.0]
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140176bd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
movsxd rax, dword [rcx + 0xc]
mov rsi, rdx
movsxd rbx, r8d
mov r9, rcx
test r8d, r8d
jle 0x140176c34
mov qword [rsp + 0x10], rbp
mov r10, rax
mov rbp, qword [rcx]
xor r11d, r11d
mov qword [rsp + 0x18], rdi
movsxd rdi, dword [rcx + 8]
nop
movzx ecx, byte [r11 + rsi]
lea rdx, [r10 + 1]
xor byte [r10 + rbp], cl
lea ecx, [rax + 1]
xor eax, eax
cmp rdx, rdi
cmovl eax, ecx
xor r10d, r10d
inc r11
cmp rdx, rdi
cmovl r10, rdx
cmp r11, rbx
jl 0x140176c00
mov rdi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 0x20]
mov dword [r9 + 0xc], eax
pop rsi
ret

Function at 0x14017d940
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call fcn.1400f9be0
test eax, eax
jne 0x14017daa1
lea ecx, [rax + 5]
mov qword [rsp + 0x38], rsi
call fcn.140180dd0
mov rcx, rax
mov rsi, rax
call fcn.140180d90
test ebx, ebx
jle 0x14017da8a
test rdi, rdi
je 0x14017da8a
cmp dword [0x1401f5190], 0
mov qword [rsp + 0x30], rbp
jne 0x14017d9fc
xor ecx, ecx
call fcn.1401811a0
movups xmm0, xmmword [str.expand_32_byte_k_]
movaps xmmword [0x1401f5190], xmm0
test rax, rax
jne 0x14017d9cd
xorps xmm0, xmm0
mov qword [0x1401f51c0], rax
movups xmmword [0x1401f51a0], xmm0
mov dword [0x1401f51c8], eax
movups xmmword [0x1401f51b0], xmm0
jmp 0x14017d9dc
lea r8, [0x1401f51a0]
mov rcx, rax
call fcn.140181410
mov eax, dword [0x1401f51c0]
xor cl, cl
mov byte [0x1401f5210], cl
mov dword [0x1401f51cc], eax
mov dword [0x1401f51c0], 0
jmp 0x14017da03
movzx ecx, byte [0x1401f5210]
movzx eax, cl
lea rbp, [0x1401f51d0]
cmp ebx, eax
jle 0x14017da52
test cl, cl
je 0x14017da30
movzx r8d, cl
mov rdx, rbp
mov rcx, rdi
call fcn.1400b7d10
movzx ecx, byte [0x1401f5210]
sub ebx, ecx
add rdi, rcx
inc dword [0x1401f51c0]
lea rdx, [0x1401f5190]
mov rcx, rbp
call fcn.14017dac0
mov cl, 0x40
mov byte [0x1401f5210], cl
cmp ebx, 0x40
jg 0x14017da11
movzx eax, cl
mov rcx, rdi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call fcn.1400b7d10
sub byte [0x1401f5210], bl
mov rcx, rsi
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140180d50
mov rcx, rsi
mov dword [0x1401f5190], 0
call fcn.140180d50
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021