joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114a13
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.140114713
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x140114b94
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x140114ba2
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._Users_no_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.34.0_src_io_poll_evented.rs
call fcn.140112e6c
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140114bb4
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14004cf65
cmp al, 0xd
jne 0x140114b64
mov rax, qword [r15 + 8]
test rax, rax
je 0x140114b64
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140114be6
mov r15, r14
mov r14, rbx
mov rbx, r13
mov r13, rdi
mov rdi, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14006ee05
mov rbp, rax
xor ecx, ecx
call fcn.140070aa7
test rbp, rbp
je 0x140114b50
mov ecx, 1
mov rdx, rsi
call fcn.14006efa1
mov rsi, rbp
mov rbp, rdi
mov rdi, r13
mov r13, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14010d3b9
cmp al, 0xd
jne 0x140114bc5
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.140114477
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14010ba81
jmp 0x140114a69
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x140114bd5
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x140114bd5
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x140114bd5
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 0x140114c67
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
lea rcx, [0x14022f1e0]
call fcn.14010baff
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140114c96
mov rsi, rax
cmp qword [rax + 8], 0
je 0x140114c96
add rsi, 8
jmp 0x140114d13
lea rsi, [0x14022f1e0]
mov rcx, rsi
call fcn.14010baff
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140114d11
mov rdi, rax
test rax, rax
jne 0x140114cf1
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x30], 0
mov ecx, 0x10
mov edx, 8
call fcn.14010d30d
mov rdi, rax
mov qword [rax], rsi
and qword [rax + 8], 0
mov rcx, rsi
call fcn.14010baff
mov ecx, eax
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
lea rsi, [rdi + 8]
call fcn.1401113ac
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x28]
mov qword [rcx], rdx
mov qword [rdi + 8], rax
call fcn.1401113db
jmp 0x140114d13
xor esi, esi
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140122c9c
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, 0x90
mov rsi, rcx
xorps xmm0, xmm0
lea r13, [rsp + 0x40]
movaps xmmword [r13], xmm0
mov r15d, 0x10
mov r12d, 0xffffffff
test r15, r15
je 0x140122d18
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 0x140122cca
mov ebx, eax
mov rcx, rdi
mov edx, r14d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x140122cca
xor ebx, 0x80000000
jne 0x140122d81
movdqa xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
mov al, byte [rsp + 0x26]
mov cl, byte [rsp + 0x27]
mov dl, byte [rsp + 0x28]
mov r8b, byte [rsp + 0x2f]
pextrw r9d, xmm0, 2
movd dword [rsi], xmm0
psrldq xmm0, 9
and dl, 0x3f
or dl, 0x80
and al, 0xf
or al, 0x40
mov word [rsi + 4], r9w
mov byte [rsi + 6], al
mov byte [rsi + 7], cl
mov byte [rsi + 8], dl
movd dword [rsi + 9], xmm0
mov byte [rsi + 0xf], r8b
pextrw eax, xmm0, 2
mov word [rsi + 0xd], ax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x3c]
mov dword [rax], ebx
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
lea rax, str.could_not_retrieve_random_bytes_for_uuid:
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov eax, 1
mov qword [rcx + 8], rax
and qword [rcx + 0x20], 0
lea r8, [0x140045b22]
mov qword [rdx + 8], r8
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str._Users_no_.cargo_registry_src_index.crates.io_6f17d22bba15001f_uuid_1.6.1_src_rng.rs
call fcn.1400355c0
ud2
Function at 0x140129740
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.14012a500
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.14012a500
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 0x1401297b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402fa2b4]
mov rbx, rcx
test esi, esi
jle 0x1401298e0
mov rax, qword [0x1402fa2b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401297fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140129885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401297e0
mov rcx, rbx
call fcn.14012a220
mov rdi, rax
test rax, rax
je 0x140129902
mov rax, qword [0x1402fa2b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14012a360
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402fa2b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401298e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14012987e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140129890
add dword [0x1402fa2b4], 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 [0x1402fa2b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14012987e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140129740
nop dword [rax]
xor esi, esi
jmp 0x140129808
mov rax, qword [0x1402fa2b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140129740
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140129740
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140129e90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402fa320]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1402fa300]
test rbx, rbx
je 0x140129eec
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 rsi, rsi
je 0x140129ee3
test eax, eax
jne 0x140129ee3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140129ec8
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 0x14012a220
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402b69d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14012a240
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14012a248
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14012a240
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14012a29d
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 0x14012a294
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14012a240
add rax, 0x28
cmp rax, r9
jne 0x14012a280
xor eax, eax
ret

Function at 0x14012a2a0
Capabilities:
Parse pe header

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

Function at 0x14012a360
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402b69d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14012a37f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14012a388
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1401301e0
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 0x14013040f
mov rdx, 0xffffffffffffffd4
cmp r9d, 0xc
ja 0x14013040f
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 0x1401302a8
mov r11d, edx
dec edx
mov byte [rbx + r11*4 + 2], cl
mov r11d, 1
jmp 0x1401302b6
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 0x14013028a
test dil, dil
je 0x1401302e3
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 0x140130396
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 0x140130349
mov qword [r12 + rdi], r13
add rdi, 8
jmp 0x140130339
mov edi, dword [rsp + 8]
inc r11
add rbp, rsi
cmp r11d, edi
jb 0x140130319
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 0x140130360
xor r11d, r11d
jmp 0x1401303d0
xor r11d, r11d
xor eax, eax
movsx edi, word [r15 + r11*2]
xor esi, esi
cmp edi, esi
jle 0x1401303ba
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, ebp
cmp edx, eax
jb 0x1401303ae
inc esi
jmp 0x1401303a2
mov edi, dword [rsp + 8]
inc r11
cmp r11d, edi
jb 0x14013039b
or rdx, 0xffffffffffffffff
test eax, eax
je 0x140130391
jmp 0x14013040f
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 0x1401303d0
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 0x14018a010
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 0x14018a0af
mov r12, qword [rcx + 0x80]
mov qword [rsp + 0x28], rdx
mov rcx, r12
call fcn.1402041f0
mov rbx, rax
mov eax, 7
test rbx, rbx
je 0x14018a0c2
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov r8, rbp
mov rcx, r12
call fcn.14020cfe0
mov eax, dword [rbx + 0x1c]
test ax, ax
je 0x14018a078
cmp word [r12 + 8], ax
jae 0x14018a084
mov ecx, 0x10e85
call fcn.1401d8870
jmp 0x14018a092
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call fcn.1401d4420
mov rdx, qword [rsi + 0x80]
mov dword [rsp + 0x28], eax
mov rcx, qword [rdx + 0x10]
mov rdx, rbx
call fcn.1401d9e10
mov eax, dword [rsp + 0x28]
jmp 0x14018a0c2
mov r9, r13
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp fcn.1401d6640
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
ret
Function at 0x1401ae870
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor edi, edi
movsxd r12, edx
mov rbp, rcx
mov r14, r8
mov r13, r9
cmp qword [rcx + r12*8 + 0x28], 0
mov r15, r12
jne 0x1401aea4d
lea rdi, [rsp + 0x38]
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov ecx, 0x16
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [rbp]
cmp r12d, 4
jg 0x1401ae8f0
cmp r12d, 2
jg 0x1401ae942
je 0x1401ae916
test r12d, r12d
js 0x1401ae9b2
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsp + r12*8 + 0x38]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.140218400
jmp 0x1401ae92e
cmp r12d, 0xa
jne 0x1401ae9b2
mov rdx, qword [rsi + 0x60]
mov r8, qword [rsi + 0x48]
lea rcx, str.SELECT__s_FROM__s_AS_T
call fcn.140218400
mov rbx, rax
jmp 0x1401aea3d
mov rdx, qword [rsi + 0x60]
mov r9, qword [rsi + 0x50]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r8, qword [rsi + 0x48]
call fcn.140218400
mov rbx, rax
mov r9d, 1
test rax, rax
jne 0x1401ae9df
jmp 0x1401ae95e
mov edi, dword [rsi + 0x18]
lea ecx, [rdi + rdi + 3]
lea ebx, [rdi + 1]
movsxd rcx, ecx
call fcn.140218360
mov r15, rax
xor eax, eax
test r15, r15
jne 0x1401ae968
mov edi, 7
jmp 0x1401aea4d
cmp ebx, eax
jle 0x1401ae97c
mov byte [r15 + rax*2], 0x3f
mov byte [r15 + rax*2 + 1], 0x2c
inc rax
jmp 0x1401ae968
xor eax, eax
add rbx, rbx
inc edi
mov rcx, qword [rsp + r12*8 + 0x38]
cmovl rbx, rax
mov r9, r15
mov byte [r15 + rbx - 1], 0
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call fcn.140218400
mov rcx, r15
mov rbx, rax
call fcn.1402174a0
jmp 0x1401aea3d
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + r12*8 + 0x38]
mov r8, qword [rsi + 0x10]
call fcn.140218400
mov rbx, rax
test rax, rax
je 0x1401ae95e
xor r9d, r9d
cmp r15d, 2
setg r9b
lea r9d, [r9*4 + 1]
mov rax, qword [rbp]
or r8d, 0xffffffff
mov rdx, rbx
inc dword [rax + 0x78]
xor eax, eax
mov qword [rsp + 0x28], rax
lea rax, [rbp + r12*8 + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
call fcn.140218830
mov rcx, rbx
mov edi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call fcn.1402174a0
test edi, edi
je 0x1401aea4d
test r13, r13
je 0x1401aea4d
mov rcx, qword [rsi]
call fcn.140216ca0
lea rcx, [0x1402a8b5a]
mov rdx, rax
call fcn.140218400
mov qword [r13], rax
jmp 0x1401aea4d
mov r9d, 5
test rbx, rbx
jne 0x1401ae9df
jmp 0x1401ae95e
mov rcx, qword [rbp + r12*8 + 0x28]
mov qword [r14], rcx
call fcn.140218e50
mov eax, edi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401bed50
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.1401fa610
mov r8, rax
test rax, rax
jne 0x1401bed86
mov eax, 7
jmp 0x1401bee22
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 0x1401bee20
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401bedc7
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401bedcd
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.1401d2d80
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401bed7c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401bee12
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 0x1401bedaa
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x1401f1e83
cmp byte [rcx + 0xa], 0
je 0x1401f1e83
jmp 0x1401bed50
xor eax, eax
ret

Function at 0x1401c6600
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.1401f1260
test ebp, ebp
mov rcx, qword [rsp + 0x48]
jne 0x1401c6670
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.1401f1260
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401c9860
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r12, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rsi, r8
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
cmp qword [rcx + r12*8 + 0x28], 0
mov rbp, r12
mov rdi, r9
mov qword [rsp + 0x48], rax
lea r13, [r12 + 4]
jne 0x1401c98b7
mov rdx, qword [rsp + r12*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.1401c9cb0
mov qword [rbx + r13*8 + 8], rax
cmp dword [rbx + 0x40], 0
jne 0x1401c9970
mov r12, qword [rbx + r12*8 + 0x28]
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.140214400
mov rcx, r12
call fcn.140219b70
cmp eax, 0x65
jne 0x1401c9913
test ebp, ebp
lea rdx, str.__rowid
mov r9, rdi
mov r8, rsi
lea rax, str.__parent
mov rcx, rbx
cmovne rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.1401c9760
jmp 0x1401c995f
cmp eax, 0x64
jne 0x1401c995f
xor edx, edx
mov rcx, r12
call fcn.140215230
mov r9, rax
cmp rdi, rax
je 0x1401c995f
lea rdx, str.__rowid
test ebp, ebp
mov r8, rsi
mov rcx, rbx
lea rax, str.__parent
mov qword [rsp + 0x30], rdi
cmovne rax, rdx
mov qword [rsp + 0x28], rsi
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.1401c9760
mov rcx, r12
call fcn.140218e50
cmp dword [rbx + 0x40], 0
jne 0x1401c9970
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1401ea430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
mov r9d, edx
cmp ecx, 0x7f
jg 0x1401ea44e
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x1401ea4f5
add ecx, 0x20
jmp 0x1401ea4f5
cmp ecx, 0xffff
jg 0x1401ea4e7
or r8d, 0xffffffff
xor r11d, r11d
mov ebx, 0xa2
mov esi, 2
lea r10, [0x1402b8560]
lea eax, [rbx + r11]
cdq
idiv esi
movsxd rdx, eax
movzx edx, word [r10 + rdx*4]
cmp ecx, edx
jl 0x1401ea48e
lea r11d, [rax + 1]
mov r8d, eax
jmp 0x1401ea491
lea ebx, [rax - 1]
cmp ebx, r11d
jge 0x1401ea472
movsxd rax, r8d
movzx edx, word [r10 + rax*4]
movzx r8d, byte [r10 + rax*4 + 3]
add r8d, edx
cmp ecx, r8d
jge 0x1401ea4d2
mov al, byte [r10 + rax*4 + 2]
xor edx, ecx
mov r8d, eax
and r8d, 1
test r8d, edx
jne 0x1401ea4d2
shr al, 1
lea rdx, [0x1402bbca0]
and eax, 0x7f
add cx, word [rdx + rax*2]
movzx ecx, cx
test r9d, r9d
je 0x1401ea4f5
xor edx, edx
cmp r9d, 2
sete dl
pop rbx
pop rsi
jmp fcn.1401c4cc0
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x1401ea4f5
add ecx, 0x28
mov eax, ecx
pop rbx
pop rsi
ret

Function at 0x1401f1e70
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.1401fa610
mov r8, rax
test rax, rax
jne 0x1401bed86
mov eax, 7
jmp 0x1401bee22
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 0x1401bee20
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401bedc7
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401bedcd
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.1401d2d80
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401bed7c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401bee12
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 0x1401bedaa
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x1401f1e83
cmp byte [rcx + 0xa], 0
je 0x1401f1e83
jmp 0x1401bed50
xor eax, eax
ret
Function at 0x1402236f0
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 0x1402237e3
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 0x140223745
imul rbp, rbp, 0x68
cmp qword [rbx + rbp + 0x60], 0
je 0x140223756
inc esi
jmp 0x14022370d
mov rcx, rdi
call fcn.140223880
test eax, eax
je 0x140223735
jmp 0x140223808
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 0x1402237a7
mov qword [rbx + 0x40], rcx
call fcn.1401f0d10
mov dword [rbx + 0x54], eax
jmp 0x1402237c0
cmp qword [rbx + 0x40], 0
je 0x1402237c0
movsxd rcx, dword [rbx + 0x54]
call fcn.1401f0bb0
mov qword [rbx + 0x40], rax
test rax, rax
je 0x1402237dc
mov r8, rdi
lea rdx, [0x140223820]
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1402010d0
mov eax, 7
jmp 0x140223808
jne 0x140223756
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.1402238f0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret