joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140172439
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
imul rbx, rdx, 0x90
xor r14d, r14d
lea rdi, [rsp + 0x28]
mov r15, rcx
cmp rbx, r14
je 0x14017249e
cmp qword [r15 + 0x78], 0
je 0x14017248e
and qword [rsp + 0x28], 0
mov rcx, qword [rsi + r14 + 0x48]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x14017248e
mov rax, qword [rsp + 0x28]
mov qword [rsi + r14 + 0x80], rax
add r15, 0x90
add r14, 0x90
jmp 0x140172459
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401732ce
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x140173392
lea rcx, [0x14032bf22]
call sub.OLEAUT32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.OLEAUT32.dll_SysFreeString
mov rcx, r14
call sub.OLEAUT32.dll_SysFreeString
test ebp, ebp
js 0x140173392
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.140170376
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x1401733a1
mov qword [rdi], 2
mov rcx, rsi
call fcn.1401702fa
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1401754a2
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1401754bb
dec ecx
add rsp, 0x28
jmp fcn.14018714c
mov rcx, rax
call fcn.1401360e0
mov ecx, eax
jmp 0x1401754b2

Function at 0x140179f93
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140179f9a
test al, 1
je 0x140179fb9
test al, 2
jne 0x140179fce
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14032eb30]
mov edx, 0x23
jmp 0x140179fe1
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14032eb70]
mov edx, 0x25
call fcn.14003cdd0
ud2

Function at 0x14017a8cc
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1401794d7
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14017a907
xor eax, eax
jmp 0x14017a914
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14017ab6f
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.14017a8c4
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x14017acde
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x14017acec
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str._.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.32.0_src_io_poll_evented.rs
call fcn.1401794f5
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x14017acfe
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.140002fa6
cmp al, 0xd
jne 0x14017acae
mov rax, qword [r15 + 8]
test rax, rax
je 0x14017acae
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14017ad30
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.1400738ee
mov rbx, rax
xor ecx, ecx
call fcn.1401340b5
test rbx, rbx
je 0x14017aca3
mov ecx, 1
mov rdx, rsi
call fcn.140073a13
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140175623
cmp al, 0xd
jne 0x14017ad0f
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.14017a68a
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.140175502
jmp 0x14017abc5
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x14017ad1f
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x14017ad1f
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14017ad1f
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x1401880f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140188e90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140188e90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140188160
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140395324]
mov rbx, rcx
test esi, esi
jle 0x140188290
mov rax, qword [0x140395328]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401881ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140188235
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140188190
mov rcx, rbx
call fcn.140188bb0
mov rdi, rax
test rax, rax
je 0x1401882b2
mov rax, qword [0x140395328]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140188cf0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140395328]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140188297
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14018822e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140188240
add dword [0x140395324], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140395328]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14018822e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401880f0
nop dword [rax]
xor esi, esi
jmp 0x1401881b8
mov rax, qword [0x140395328]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401880f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401880f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140188820
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140395380]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140395360]
test rbx, rbx
je 0x14018887c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140188873
test rsi, rsi
je 0x140188873
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140188858
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140188bb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140361330]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140188bd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140188bd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140188bd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140188c2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140188c24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140188bd0
add rax, 0x28
cmp rax, r9
jne 0x140188c10
xor eax, eax
ret

Function at 0x140188c30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140361330]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140188c4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140188c58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140188c4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140188cf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140361330]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140188d0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140188d18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14018e8c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r11d, 1
mov eax, r8d
mov r10, rcx
mov r15, rdx
mov ecx, r9d
inc rax
shl r11, cl
mov edx, eax
add rdx, rdx
lea rdx, [rdx + r11 + 8]
cmp qword [rsp + 0x88], rdx
mov rdx, 0xffffffffffffffd2
setb dil
cmp r8d, 0xff
seta cl
or dil, cl
jne 0x14018eaef
mov rdx, 0xffffffffffffffd4
cmp r9d, 0xc
ja 0x14018eaef
mov edx, 1
lea esi, [r8 + 1]
lea rbx, [r10 + 4]
mov ecx, r9d
mov r8d, edx
mov dword [rsp + 8], esi
mov esi, 1
shl r8d, cl
movzx ecx, r9w
or ecx, 0x10000
lea ebp, [r8 - 1]
mov r14d, ecx
mov r12d, ecx
lea ecx, [r9 - 1]
shl edx, cl
xor ecx, ecx
mov dword [rsp + 0xc], edx
mov edx, ebp
mov r11w, word [r15 + rcx*2]
cmp r11w, 0xffff
jne 0x14018e988
mov r11d, edx
dec edx
mov byte [rbx + r11*4 + 2], cl
mov r11d, 1
jmp 0x14018e996
xor edi, edi
cmp r11w, word [rsp + 0xc]
cmovge esi, edi
mov dil, 1
mov r13, qword [rsp + 0x80]
mov word [r13 + rcx*2], r11w
mov r11d, dword [rsp + 8]
inc rcx
cmp ecx, r11d
jb 0x14018e96a
test dil, dil
je 0x14018e9c3
shl esi, 0x10
movzx r14d, r14w
or r14d, esi
mov r12d, r14d
mov r11d, r8d
mov ecx, r8d
mov dword [r10], r12d
shr r11d, 1
shr ecx, 3
lea ecx, [r11 + rcx + 3]
cmp edx, ebp
jne 0x14018ea76
add rax, rax
xor r11d, r11d
xor ebp, ebp
add rax, qword [rsp + 0x80]
movabs r14, 0x101010101010101
mov r13, r11
lea r12, [rax + rbp]
movsx rdi, word [r15 + r11*2]
imul r13, r14
mov dword [rsp + 0xc], edi
mov rsi, rdi
mov edi, 8
mov qword [r12], r13
cmp dword [rsp + 0xc], edi
jle 0x14018ea29
mov qword [r12 + rdi], r13
add rdi, 8
jmp 0x14018ea19
mov edi, dword [rsp + 8]
inc r11
add rbp, rsi
cmp r11d, edi
jb 0x14018e9f9
movsxd rdi, r8d
xor esi, esi
xor r11d, r11d
mov r12b, byte [rax + rsi]
mov rbp, rdx
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
mov rbp, rdx
mov r12b, byte [rax + rsi + 1]
add rsi, 2
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
and r11, rdx
cmp rsi, rdi
jb 0x14018ea40
xor r11d, r11d
jmp 0x14018eab0
xor r11d, r11d
xor eax, eax
movsx edi, word [r15 + r11*2]
xor esi, esi
cmp edi, esi
jle 0x14018ea9a
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, ebp
cmp edx, eax
jb 0x14018ea8e
inc esi
jmp 0x14018ea82
mov edi, dword [rsp + 8]
inc r11
cmp r11d, edi
jb 0x14018ea7b
or rdx, 0xffffffffffffffff
test eax, eax
je 0x14018ea71
jmp 0x14018eaef
movzx edx, byte [r10 + r11*4 + 6]
add rdx, rdx
add rdx, qword [rsp + 0x80]
movzx eax, word [rdx]
lea ecx, [rax + 1]
mov word [rdx], cx
bsr ecx, eax
xor ecx, 0x1f
lea ecx, [r9 + rcx - 0x1f]
shl eax, cl
mov byte [r10 + r11*4 + 7], cl
sub eax, r8d
mov word [r10 + r11*4 + 4], ax
inc r11
cmp r11d, r8d
jb 0x14018eab0
xor edx, edx
mov rax, rdx
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401e80a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rsi
push rbx
sub rsp, 0x30
mov r13, qword [rsp + 0x80]
mov rbp, rdx
mov rsi, rcx
mov rdx, r8
mov r8d, r9d
test rbp, rbp
je 0x1401e813f
mov r12, qword [rcx + 0x80]
mov qword [rsp + 0x28], rdx
mov rcx, r12
call fcn.1402347b0
mov rbx, rax
mov eax, 7
test rbx, rbx
je 0x1401e8152
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov r8, rbp
mov rcx, r12
call fcn.14023d320
mov eax, dword [rbx + 0x1c]
test ax, ax
je 0x1401e8108
cmp word [r12 + 8], ax
jae 0x1401e8114
mov ecx, 0x1082b
call fcn.140211c30
jmp 0x1401e8122
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call fcn.14020d7d0
mov rdx, qword [rsi + 0x80]
mov dword [rsp + 0x28], eax
mov rcx, qword [rdx + 0x10]
mov rdx, rbx
call fcn.1402131b0
mov eax, dword [rsp + 0x28]
jmp 0x1401e8152
mov r9, r13
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp fcn.14020fa20
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
ret
Function at 0x1401fd730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rcx + 0x80]
movsxd rdx, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
mov rsi, rdx
imul rdx, rdx, 0x38
call fcn.14022af70
mov r8, rax
test rax, rax
jne 0x1401fd766
mov eax, 7
jmp 0x1401fd802
movsxd rdi, ebp
mov ecx, esi
imul rdi, rdi, 0x38
sub ecx, ebp
movsxd rcx, ecx
imul rcx, rcx, 0x38
lea rdx, [rax + rdi]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rbx + 0x78], r8
mov rdi, rdx
cmp ebp, esi
jge 0x1401fd800
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401fd7a7
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401fd7ad
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.14020c160
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401fd75c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401fd7f2
mov edx, dword [rax + 0x58]
mov dword [rdi + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rdi + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rdi + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rdi + 0x30], eax
inc ebp
add rdi, 0x38
mov dword [rbx + 0x80], ebp
jmp 0x1401fd78a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x140222fa3
cmp byte [rcx + 0xa], 0
je 0x140222fa3
jmp 0x1401fd730
xor eax, eax
ret

Function at 0x140204180
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
sub rsp, 0x58
mov r12d, dword [rsp + 0xa0]
mov byte [rcx + 0x1c], 1
mov ebp, r8d
mov rsi, rdx
mov rdi, r9
mov qword [rsp + 0x28], r9
mov r9, rdx
mov dword [rsp + 0x20], r8d
mov r8, rdx
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 dword [rsp + 0x30], r12d
mov qword [rsp + 0x48], rcx
call fcn.140222380
test ebp, ebp
mov rcx, qword [rsp + 0x48]
jne 0x1402041f0
mov r9, rdi
mov r8, rsi
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 dword [rsp + 0xa0], r12d
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140222380
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140222f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rcx + 0x80]
movsxd rdx, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
mov rsi, rdx
imul rdx, rdx, 0x38
call fcn.14022af70
mov r8, rax
test rax, rax
jne 0x1401fd766
mov eax, 7
jmp 0x1401fd802
movsxd rdi, ebp
mov ecx, esi
imul rdi, rdi, 0x38
sub ecx, ebp
movsxd rcx, ecx
imul rcx, rcx, 0x38
lea rdx, [rax + rdi]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rbx + 0x78], r8
mov rdi, rdx
cmp ebp, esi
jge 0x1401fd800
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401fd7a7
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401fd7ad
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.14020c160
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401fd75c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401fd7f2
mov edx, dword [rax + 0x58]
mov dword [rdi + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rdi + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rdi + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rdi + 0x30], eax
inc ebp
add rdi, 0x38
mov dword [rbx + 0x80], ebp
jmp 0x1401fd78a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x140222fa3
cmp byte [rcx + 0xa], 0
je 0x140222fa3
jmp 0x1401fd730
xor eax, eax
ret
Function at 0x140250b60
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor edi, edi
xor esi, esi
movzx r12d, byte [rcx + 0x5b]
dec r12d
mov byte [rcx + 0x58], 1
mov rbx, rcx
cmp esi, r12d
jge 0x140250c53
movzx eax, byte [rbx + 0x5a]
lea eax, [rsi + rax + 1]
cdq
idiv r12d
movsxd rbp, edx
imul rax, rbp, 0x68
cmp dword [rbx + rax + 0x68], 0
lea rdi, [rbx + rax + 0x60]
jne 0x140250bb5
imul rbp, rbp, 0x68
cmp qword [rbx + rbp + 0x60], 0
je 0x140250bc6
inc esi
jmp 0x140250b7d
mov rcx, rdi
call fcn.140250cf0
test eax, eax
je 0x140250ba5
jmp 0x140250c78
lea rdx, [rbx + 0x60]
mov rax, rdi
mov rcx, qword [rdi + 0x28]
movups xmm0, xmmword [rbx + 0x38]
sub rax, rdx
movabs rdx, 0x4ec4ec4ec4ec4ec5
sar rax, 3
imul rax, rdx
xor edx, edx
mov byte [rbx + 0x5a], al
mov rax, qword [rbx + 0x48]
movups xmmword [rdi + 0x20], xmm0
mov qword [rdi + 0x30], rax
xor eax, eax
mov qword [rbx + 0x38], rax
mov dword [rbx + 0x48], edx
test rcx, rcx
je 0x140250c17
mov qword [rbx + 0x40], rcx
call fcn.140221e30
mov dword [rbx + 0x54], eax
jmp 0x140250c30
cmp qword [rbx + 0x40], 0
je 0x140250c30
movsxd rcx, dword [rbx + 0x54]
call fcn.140221d00
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140250c4c
mov r8, rdi
lea rdx, [0x140250c90]
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140231690
mov eax, 7
jmp 0x140250c78
jne 0x140250bc6
movsxd rsi, esi
lea rdx, [rbx + 0x38]
imul rsi, rsi, 0x68
lea rcx, [rbx + rsi + 0x60]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140250d60
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14025ace0
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r9d, r9d
xor r11d, r11d
movsxd rax, dword [rcx + 0xc]
lea r10d, [rax + 1]
add rax, qword [rcx]
mov bl, byte [rdx + r9]
xor byte [rax], bl
movsxd rax, r10d
cmp dword [rcx + 8], r10d
cmovle rax, r11
inc r9
cmp r8d, r9d
jg 0x14025aceb
add dword [rcx + 0x10], r8d
mov dword [rcx + 0xc], eax
pop rbx
ret
Function at 0x140002670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000269d
xor eax, eax
jmp 0x140002809
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400026d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400026d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002809
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400027fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000271a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002745
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002801
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400027b4
sub eax, 1
je 0x1400027b4
cmp eax, 2
jne 0x1400027fc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002801
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400027e2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400027fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002801
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003760
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002cc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002d93
cmp byte [rcx + 0x71], 0
je 0x140002d93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002d8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002d54
sub eax, 1
je 0x140002d58
cmp eax, 2
jne 0x140002d8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003760
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002d86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002d8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002d3c
xor al, al
jmp 0x140002d3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003760
add rsp, 0x60
pop rbx
ret

Function at 0x1400041c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000420e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000420e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000420e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000420e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000420e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004210
xor al, al
add rsp, 0x28
ret