joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140100400
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 0x1401004c7
lea rcx, [0x14026365a]
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]
mov rax, qword [rax + 0xa0]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call rax
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x1401004c7
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.1400fd115
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 0x1401004d6
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400fd057
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140100c11
Capabilities:
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
call fcn.14003fd3b
cmp rax, 1
jbe 0x14003fc8b
mov rsi, rax
add rsi, 8
jmp 0x14003fd0e
je 0x14003fd0c
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi], xmm0
mov edx, 0x10
mov rcx, rsi
call sub.bcryptprimitives.dll_ProcessPrng
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov ecx, 8
mov edx, 0x18
call fcn.1400c603d
test rax, rax
je 0x14003fd2b
mov rsi, rax
mov rbx, rax
lea rax, [0x1402131c0]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
call fcn.14003fd3b
mov rdi, rax
mov ecx, dword [0x1402131d8]
test ecx, ecx
je 0x14003fd1b
dec ecx
add rsi, 8
mov rdx, rbx
call fcn.14011c0fc
test rdi, rdi
je 0x14003fd0e
mov edx, 8
mov rcx, rdi
call fcn.14003fef0
jmp 0x14003fd0e
xor esi, esi
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1402131c0]
call fcn.1400cb3c0
mov ecx, eax
jmp 0x14003fcec
mov ecx, 8
mov edx, 0x18
call fcn.14002f6d0
int3
jmp 0x14003fc6b
Function at 0x140100c16
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, rcx
lea rdx, [0x140263c7f]
lea rcx, [rsp + 0x70]
mov r8d, 0x2c
call fcn.140100eb4
lea rdx, [0x140263cab]
lea rcx, [rsp + 0x40]
mov r8d, 0x12
call fcn.140100eb4
lea rax, [rsp + 0x88]
and qword [rax], 0
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20019
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x140100ca3
movabs rax, 0x8000000000000000
mov qword [rdi], rax
mov rbx, qword [rsp + 0x48]
jmp 0x140100e34
mov dword [rsp + 0x38], 0x800
and dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x58]
mov edx, 0x800
call fcn.1400ff64e
mov rbx, qword [rsp + 0x48]
lea r13, [rsp + 0x38]
lea r15, [rsp + 0x3c]
lea r12, [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140100d0d
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.14011af82
jmp 0x140100cd3
test eax, eax
jne 0x140100e01
mov r8d, dword [rsp + 0x38]
shr r8d, 1
lea rcx, [rsp + 0x90]
mov rdx, r14
call fcn.1400f78f8
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140100d4d
cmp byte [rax + rcx - 1], 0
sete r8b
jmp 0x140100d50
xor r8d, r8d
test r8b, r8b
je 0x140100e10
test rcx, rcx
je 0x140100dfa
movzx r9d, byte [rax + rcx - 1]
mov rdx, 0xffffffffffffffff
test r9b, r9b
jns 0x140100df2
movzx r10d, byte [rax + rcx - 2]
cmp r10b, 0xbf
jg 0x140100da0
movzx r11d, byte [rax + rcx - 3]
cmp r11b, 0xbf
jg 0x140100da6
movzx ebp, byte [rax + rcx - 4]
and ebp, 7
shl ebp, 6
and r11d, 0x3f
or r11d, ebp
jmp 0x140100daa
and r10d, 0x1f
jmp 0x140100db5
and r11d, 0xf
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
cmp r9d, 0x110000
je 0x140100d50
cmp r9d, 0x80
jb 0x140100df2
mov rdx, 0xfffffffffffffffe
cmp r9d, 0x800
jb 0x140100df2
xor edx, edx
cmp r9d, 0x10000
setb dl
or rdx, 0xfffffffffffffffc
add rcx, rdx
jmp 0x140100d3d
xor ecx, ecx
jmp 0x140100d3d
movabs rax, 0x8000000000000000
mov qword [rdi], rax
jmp 0x140100e27
mov qword [rsp + 0xa0], rcx
mov qword [rdi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x58]
mov rdx, r14
call fcn.1400c5fec
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.1400f7235
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.1400f7235
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140103abc
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140103ad5
dec ecx
add rsp, 0x28
jmp fcn.14011c0f4
mov rcx, rax
call fcn.1400cb3c0
mov ecx, eax
jmp 0x140103acc
Function at 0x14010920e
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 0x140109215
test al, 1
je 0x140109234
test al, 2
jne 0x14010924c
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402667e8]
mov edx, 0x23
call fcn.140033610
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140266828]
mov edx, 0x25
call fcn.140033610
int3

Function at 0x140109e86
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140108273
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 0x140109ec1
xor eax, eax
jmp 0x140109ece
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14010a187
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 rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2a]
lea r15, [rsp + 0x42]
mov r12, qword [rcx + 0x10]
mov r13d, 0x7fffffff
cmp r9, r13
cmovb r13, r9
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov rcx, rbp
mov rdx, r12
mov r8, rdi
call fcn.140109e7e
mov al, byte [rsp + 0x29]
cmp al, 3
je 0x14010a305
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x14010a2fe
mov cl, byte [rsp + 0x28]
movzx edx, word [r14 + 4]
mov word [r15 + 4], dx
mov edx, dword [r14]
mov dword [r15], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14010a325
mov rdx, rsi
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14010a30c
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.1400471aa
cmp al, 0xd
jne 0x14010a2ce
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14010a2ce
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14010a331
mov r13, r12
mov r12, rbx
mov rbx, r14
mov r14, rdi
mov rdi, rsi
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140068875
mov rsi, rax
xor ecx, ecx
call fcn.14006a520
test rsi, rsi
je 0x14010a2ba
mov ecx, 1
mov rdx, rbp
call fcn.140068aee
mov rbp, rsi
mov rsi, rdi
mov rdi, r14
mov r14, rbx
mov rbx, r12
mov r12, r13
mov r13, qword [rsp + 0x30]
mov rcx, rbp
call fcn.140102b00
cmp al, 0xd
jne 0x14010a2fe
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.140109c00
lea rbp, [rsp + 0x20]
mov rcx, rbp
call fcn.140101347
jmp 0x14010a1d7
mov eax, 1
jmp 0x14010a311
mov eax, 2
jmp 0x14010a311
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._home_ellie_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.40.0_src_io_poll_evented.rs
call fcn.140037190
ud2
Function at 0x140117966
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
xorps xmm0, xmm0
lea r13, [rsp + 0x30]
movaps xmmword [r13], xmm0
mov r15d, 0x10
mov r12d, 0xffffffff
test r15, r15
je 0x1401179e6
mov rdi, r13
cmp r15, r12
mov r14d, 0xffffffff
cmovb r14, r15
add r13, r14
sub r15, r14
xor ecx, ecx
mov rdx, rdi
mov r8d, r14d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140117994
mov ebx, eax
mov rcx, rdi
mov edx, r14d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x140117994
and ebx, 0x7fffffff
jne 0x140117a9b
mov rax, qword [rsp + 0x38]
mov rcx, rax
shr rcx, 0x38
mov byte [rsi], cl
mov rcx, rax
shr rcx, 0x30
mov byte [rsi + 1], cl
mov rcx, rax
shr rcx, 0x28
mov byte [rsi + 2], cl
mov rcx, rax
shr rcx, 0x20
mov byte [rsi + 3], cl
mov ecx, eax
shr ecx, 0x18
mov byte [rsi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 5], cl
mov ecx, eax
and ecx, 0xf00
or ecx, 0x4000
mov byte [rsi + 6], ch
mov rcx, qword [rsp + 0x30]
mov byte [rsi + 7], al
movabs rax, 0x3f00000000000000
and rax, rcx
bts rax, 0x3f
shr rax, 0x38
mov byte [rsi + 8], al
mov rax, rcx
shr rax, 0x30
mov byte [rsi + 9], al
mov rax, rcx
shr rax, 0x28
mov byte [rsi + 0xa], al
mov rax, rcx
shr rax, 0x20
mov byte [rsi + 0xb], al
mov eax, ecx
shr eax, 0x18
mov byte [rsi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xd], al
mov byte [rsi + 0xe], ch
mov byte [rsi + 0xf], cl
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x2c]
mov dword [rax], ebx
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
lea rax, [0x14028b8b8]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov eax, 1
mov qword [rcx + 8], rax
and qword [rcx + 0x20], 0
lea r8, [0x140041c34]
mov qword [rdx + 8], r8
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str._home_ellie_.cargo_registry_src_index.crates.io_6f17d22bba15001f_uuid_1.10.0_src_rng.rscould_not_retrieve_random_bytes_for_uuid:
call fcn.140032920
int3

Function at 0x14011dc80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.14011ea80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14011ea80
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14011dcf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1402de204]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14011dea0
mov rax, qword [0x1402de208]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14011dd3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14011ddc7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14011dd20
mov rcx, r12
call fcn.14011e7a0
mov rbp, rax
test rax, rax
je 0x14011defd
mov rax, qword [0x1402de208]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14011e8d0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402de208]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14011dee2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14011ddc0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14011de50
add dword [0x1402de204], 1
cmp ebx, 8
jae 0x14011ddf8
test bl, 4
jne 0x14011deb0
test ebx, ebx
je 0x14011dde9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14011ded0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14011dde9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14011de2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1402de208]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14011ddc0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14011dc80
xor edi, edi
jmp 0x14011dd47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14011dde9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14011dde9
mov rax, qword [0x1402de208]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14011dc80
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14011dc80
nop
nop dword [rax]
Function at 0x14011e410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402de260]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1402de240]
test rbx, rbx
je 0x14011e464
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14011e45b
test r12, r12
je 0x14011e45b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14011e440
lea rcx, [0x1402de260]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]

Function at 0x14011e7a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1402993e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14011e819
mov rcx, r10
call fcn.14011e670
test eax, eax
je 0x14011e819
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14011e816
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14011e80d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14011e819
add r8, 0x28
cmp r8, r9
jne 0x14011e7f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140124880
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 qword [rsp + 0x68], rdx
mov r10, rcx
mov ecx, r9d
inc rax
shl r11, cl
mov edx, eax
add rdx, rdx
lea rdx, [rdx + r11 + 8]
cmp rdx, qword [rsp + 0x88]
mov r11, 0xffffffffffffffd2
seta sil
cmp r8d, 0xff
seta dl
or sil, dl
jne 0x140124abb
mov r11, 0xffffffffffffffd4
cmp r9d, 0xc
ja 0x140124abb
lea edi, [r8 + 1]
movzx r14d, r9w
lea rbx, [r10 + 4]
xor r13d, r13d
mov r15d, 1
mov dword [rsp + 0xc], edi
or r14d, 0x10000
mov r11d, 1
mov r8d, r15d
mov r12d, r14d
shl r8d, cl
lea ecx, [r9 - 1]
lea edi, [r8 - 1]
shl r15d, cl
xor ecx, ecx
mov edx, edi
cmp dword [rsp + 0xc], ecx
jbe 0x140124974
mov rbp, qword [rsp + 0x68]
mov bp, word [rbp + rcx*2]
cmp bp, 0xffff
jne 0x140124958
mov ebp, edx
dec edx
mov byte [rbx + rbp*4 + 2], cl
mov rbp, qword [rsp + 0x80]
mov word [rbp + rcx*2], 1
jmp 0x14012496f
mov rsi, qword [rsp + 0x80]
cmp bp, r15w
cmovge r11d, r13d
mov word [rsi + rcx*2], bp
mov sil, 1
inc rcx
jmp 0x140124929
test sil, sil
je 0x140124984
shl r11d, 0x10
movzx r12d, r14w
or r12d, r11d
mov r11d, r8d
mov ecx, r8d
mov dword [r10], r12d
shr r11d, 3
shr ecx, 1
lea ecx, [r11 + rcx + 3]
cmp edx, edi
jne 0x140124a3a
add rax, rax
xor r11d, r11d
xor ebp, ebp
add rax, qword [rsp + 0x80]
movabs r14, 0x101010101010101
mov r12, r11
imul r12, r14
cmp dword [rsp + 0xc], r11d
jbe 0x1401249fa
mov rsi, qword [rsp + 0x68]
lea r13, [rax + rbp]
mov edi, 8
movsx r15, word [rsi + r11*2]
mov qword [r13], r12
mov rsi, r15
cmp r15d, edi
jle 0x1401249f2
mov qword [r13 + rdi], r12
add rdi, 8
jmp 0x1401249e2
add rbp, rsi
inc r11
jmp 0x1401249ba
xor esi, esi
xor r11d, r11d
movsxd r12, r8d
cmp r12, rsi
ja 0x140124a0c
xor r11d, r11d
jmp 0x140124a79
mov bpl, byte [rax + rsi]
mov rdi, r11
add r11, rcx
and rdi, rdx
mov byte [rbx + rdi*4 + 2], bpl
mov rdi, rdx
mov bpl, byte [rax + rsi + 1]
add rsi, 2
and rdi, r11
add r11, rcx
mov byte [rbx + rdi*4 + 2], bpl
and r11, rdx
jmp 0x140124a02
xor r11d, r11d
xor eax, eax
cmp dword [rsp + 0xc], r11d
jbe 0x140124a6f
mov rsi, qword [rsp + 0x68]
movsx ebp, word [rsi + r11*2]
xor esi, esi
cmp ebp, esi
jle 0x140124a6a
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, edi
cmp edx, eax
jb 0x140124a5e
inc esi
jmp 0x140124a52
inc r11
jmp 0x140124a3f
or r11, 0xffffffffffffffff
test eax, eax
je 0x140124a07
jmp 0x140124abb
cmp r8d, r11d
jbe 0x140124ab8
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
jmp 0x140124a79
xor r11d, r11d
mov rax, r11
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14018f340
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
xor esi, esi
movsxd r13, edx
mov rbp, rcx
mov r15, r8
mov r14, r9
cmp qword [rcx + r13*8 + 0x28], 0
mov r10, r13
jne 0x14018f545
lea rdi, [rsp + 0x48]
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov ecx, 0x16
mov rbx, qword [rbp]
rep movsd dword [rdi], dword [rsi]
cmp r13d, 4
jg 0x14018f3c4
cmp r13d, 2
jg 0x14018f42a
je 0x14018f3fe
test r13d, r13d
js 0x14018f4a7
mov r9, qword [rbx + 0x50]
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rsp + r13*8 + 0x48]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.1401faf00
jmp 0x14018f416
cmp r13d, 0xa
jne 0x14018f4a7
mov rdx, qword [rbx + 0x60]
mov r8, qword [rbx + 0x48]
lea rcx, str.SELECT__s_FROM__s_AS_T
call fcn.1401faf00
mov r9d, 5
mov r12, rax
test rax, rax
jne 0x14018f4e8
mov esi, 7
jmp 0x14018f545
mov rdx, qword [rbx + 0x60]
mov r9, qword [rbx + 0x50]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r8, qword [rbx + 0x48]
call fcn.1401faf00
mov r12, rax
mov r9d, 1
test rax, rax
jne 0x14018f4e8
jmp 0x14018f3f4
mov esi, dword [rbx + 0x18]
lea ecx, [rsi + rsi + 3]
lea r12d, [rsi + 1]
movsxd rcx, ecx
call fcn.1401fae60
mov r9, rax
xor eax, eax
test r9, r9
je 0x14018f3f4
cmp r12d, eax
jle 0x14018f45c
mov byte [r9 + rax*2], 0x3f
mov byte [r9 + rax*2 + 1], 0x2c
inc rax
jmp 0x14018f447
add r12, r12
mov eax, 0
inc esi
mov rcx, qword [rsp + r13*8 + 0x48]
cmovl r12, rax
mov qword [rsp + 0x38], r9
mov byte [r9 + r12 - 1], 0
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
call fcn.1401faf00
mov r9, qword [rsp + 0x38]
mov r12, rax
mov rcx, r9
call fcn.1401f9f40
mov r9d, 5
test r12, r12
jne 0x14018f4e8
jmp 0x14018f3f4
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + r13*8 + 0x48]
mov dword [rsp + 0xf8], r10d
mov r8, qword [rbx + 0x10]
call fcn.1401faf00
mov r12, rax
test rax, rax
je 0x14018f3f4
mov r10d, dword [rsp + 0xf8]
xor r9d, r9d
cmp r10d, 3
setge r9b
lea r9d, [r9*4 + 1]
mov rax, qword [rbp]
or r8d, 0xffffffff
mov rdx, r12
inc dword [rax + 0x78]
lea rax, [rbp + r13*8 + 0x28]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
call fcn.1401fb360
mov rcx, r12
mov esi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call fcn.1401f9f40
test esi, esi
je 0x14018f545
test r14, r14
je 0x14018f545
mov rcx, qword [rbx]
call fcn.1401f9750
lea rcx, [0x14028f827]
mov rdx, rax
call fcn.1401faf00
mov qword [r14], rax
mov rcx, qword [rbp + r13*8 + 0x28]
mov qword [r15], rcx
call fcn.1401fb9b0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14019fd30
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.1401dbaa0
mov r8, rax
test rax, rax
jne 0x14019fd66
mov eax, 7
jmp 0x14019fe02
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 0x14019fe00
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x14019fda7
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x14019fdad
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.1401b2cd0
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14019fd5c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x14019fdf2
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 0x14019fd8a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1401a78a0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebp, dword [rsp + 0xa0]
mov byte [rcx + 0x1c], 1
mov edi, r8d
mov rbx, rdx
mov rsi, 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], ebp
mov qword [rsp + 0x48], rcx
call fcn.1401d0570
test edi, edi
mov rcx, qword [rsp + 0x48]
jne 0x1401a790b
mov r9, rsi
mov r8, rbx
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], ebp
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1401d0570
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret