joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012c310
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x50
xor ebp, ebp
mov rsi, r8
cmp qword [rcx + 0x18], 8
mov rbx, rdx
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x48], rbp
jb 0x14012c33f
mov rcx, qword [rcx]
mov r8, rcx
mov r9d, 1
lea rcx, [rsp + 0x38]
mov rdx, 0xffffffff80000002
call fcn.14012c210
test eax, eax
jne 0x14012c3b2
cmp qword [rbx + 0x18], 8
mov dword [rsp + 0x60], ebp
jb 0x14012c36b
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x78], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012c3b2
cmp dword [rsp + 0x30], 4
jne 0x14012c3b2
mov eax, dword [rsp + 0x60]
mov bl, 1
mov dword [rsi], eax
jmp 0x14012c3b4
xor bl, bl
cmp qword [rsp + 0x38], rbp
je 0x14012c3c6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x14012c3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r8
mov rbx, rdx
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov dword [rbp - 0x40], r15d
mov qword [rbp - 0x38], r15
cmp qword [rcx + 0x18], 8
jb 0x14012c427
mov rcx, qword [rcx]
mov r8, rcx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x48]
call fcn.14012c210
test eax, eax
je 0x14012c446
xor dil, dil
jmp 0x14012c59f
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp - 0x28]
call fcn.14002dcb0
lea rdi, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdi, qword [rbp - 0x28]
movzx eax, r15w
mov ecx, 0x104
rep stosw word [rdi], ax
mov qword [rbp - 0x18], 0x104
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov word [rax + 0x208], r15w
lea rdi, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdi, qword [rbp - 0x28]
cmp qword [rbx + 0x18], 8
jb 0x14012c4b8
mov rbx, qword [rbx]
mov eax, dword [rbp - 0x18]
add eax, eax
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x4c]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012c571
mov eax, dword [rbp - 0x4c]
dec eax
cmp eax, 1
ja 0x14012c571
test rdi, rdi
je 0x14012c515
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x14012c511
test al, 1
jne 0x14012c571
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x14012c515
jmp 0x14012c571
mov word [rdi], r15w
xor edx, edx
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.14008b500
mov rcx, rax
cmp qword [rbp - 0x18], rax
jae 0x14012c539
lea rcx, str.invalid_string_position
call fcn.140107ed8
int3
mov qword [rbp - 0x18], rcx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov word [rax + rcx*2], r15w
lea rax, [rbp - 0x28]
cmp r14, rax
je 0x14012c56c
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, r14
call fcn.14002ddd0
mov dil, 1
jmp 0x14012c574
xor dil, dil
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x14012c58e
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.14002e610
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
cmp qword [rbp - 0x48], 0
je 0x14012c5b0
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x140132f20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x140132f30
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x140132f80
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov dword [r10], r11d
ret

Function at 0x140133590
Capabilities:
Encode data using base64 via winapi

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [rdx]
xor ebp, ebp
mov rdi, rcx
mov dword [rsp + 0x34], ebp
cmp rsi, qword [rdx + 8]
jne 0x1401335cd
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbp
mov word [rcx], bp
jmp 0x14013368f
mov qword [rsp + 0x90], rbx
lea rax, [rsp + 0x30]
mov ebx, dword [rdx + 8]
xor r9d, r9d
sub ebx, esi
mov dword [rsp + 0x30], ebp
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r8d, 0x40000001
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
dec edx
mov qword [rsp + 0x50], 7
xor r8d, r8d
mov qword [rsp + 0x48], rbp
mov word [rsp + 0x38], bp
call fcn.140047ad0
cmp qword [rsp + 0x50], 8
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmovae r9, qword [rsp + 0x38]
mov r8d, 0x40000001
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov qword [rdi + 0x18], 7
lea rdx, [rsp + 0x38]
mov qword [rdi + 0x10], rbp
mov rcx, rdi
mov word [rdi], bp
call fcn.14002df10
mov r8, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x90]
cmp r8, 8
jb 0x14013368f
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
inc r8
call fcn.14002e610
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140138a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor dil, dil
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140138a5a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140138a71
mov edi, eax
shr edi, 4
not dil
and dil, 1
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140138a89
mov rdx, qword [rbx]
inc r8
mov rcx, rbx
call fcn.14002e610
xor eax, eax
mov qword [rbx + 0x18], 7
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rax
jb 0x140138aa1
mov rbx, qword [rbx]
mov word [rbx], ax
movzx eax, dil
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140139f60
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1f8]
sub rsp, 0x2f0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x3c], esi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.kernel32.dll
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.14029de34
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rbp - 0x30], si
jne 0x140139fe3
mov r8d, esi
jmp 0x140139ffa
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140139ff0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14002c3d0
nop
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x50]
call fcn.14013a580
test al, al
je 0x14013a105
mov edx, dword [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.1400766d0
mov rbx, rax
mov edx, dword [rsp + 0x34]
lea rcx, [rbp - 0x70]
call fcn.1400766d0
nop
lea r8, [0x140335310]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140044b70
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400784b0
nop
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14013a09e
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14002e610
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x14013a0c9
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.14002e610
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x14013a0f3
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.14002e610
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rsi
mov word [rbp - 0x50], si
jmp 0x14013a136
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x14013a11d
mov rax, qword [rdi]
jmp 0x14013a120
mov rax, rdi
mov word [rax], si
xor r8d, r8d
lea rdx, [0x140328340]
mov rcx, rdi
call fcn.14002c3d0
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14013a153
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14002e610
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14013a580
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14, r9
mov r15, r8
mov rbp, rdx
mov rbx, rcx
mov dword [rax - 0x58], 1
cmp qword [rcx + 0x10], 0
jne 0x14013a5c1
xor al, al
jmp 0x14013a6d5
cmp qword [rcx + 0x18], 8
jb 0x14013a5cb
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14013a5ba
inc edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor eax, eax
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x28], rax
mov ecx, edi
call fcn.14026ded8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14013a510
cmp qword [rbx + 0x18], 8
jb 0x14013a61b
mov rbx, qword [rbx]
mov rsi, qword [rsp + 0x38]
mov r9, rsi
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14013a693
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x28]
lea rdx, [0x140327fbc]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14013a693
cmp dword [rsp + 0x80], 0
je 0x14013a693
mov rcx, qword [rsp + 0x28]
cmp dword [rcx], 0xfeef04bd
jne 0x14013a693
movzx eax, word [rcx + 0x12]
mov dword [rbp], eax
movzx eax, word [rcx + 0x10]
mov dword [r15], eax
movzx eax, word [rcx + 0x16]
mov dword [r14], eax
movzx ecx, word [rcx + 0x14]
mov rax, qword [rsp + 0xa0]
mov dword [rax], ecx
mov sil, 1
jmp 0x14013a696
xor sil, sil
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14013a6d1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x14013a6d1
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14013a6d1
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
movzx eax, sil
lea r11, [rsp + 0x60]
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 0x14014a5b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14014a5dc
xor eax, eax
jmp 0x14014a710
test rbx, rbx
je 0x14014a5d5
mov rcx, rsi
call fcn.14014a730
cmp rbp, rax
jb 0x14014a5d5
xor edx, edx
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r9d, edx
cmp rsi, 2
jbe 0x14014a68a
mov r10d, 1
lea r8, [rdi + 1]
sub r10, rdi
movzx eax, byte [r8 - 1]
lea r8, [r8 + 3]
shr rax, 2
add rdx, 4
add r9, 3
movzx eax, byte [rax + r11]
mov byte [rbx], al
movzx ecx, byte [r8 - 4]
movzx eax, byte [r8 - 3]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [rbx + 1], al
movzx ecx, byte [r8 - 3]
movzx eax, byte [r8 - 2]
and ecx, 0xf
shr rax, 6
shl rcx, 2
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [rbx + 2], al
movzx eax, byte [r8 - 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rbx + 3], al
add rbx, 4
lea rax, [r10 + r8]
cmp rax, rsi
jb 0x14014a611
add rdi, r9
sub rsi, r9
test sil, 2
je 0x14014a6d6
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rbx], al
movzx ecx, byte [rdi]
movzx eax, byte [rdi + 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [rbx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
jmp 0x14014a701
test sil, 1
je 0x14014a709
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rbx], al
movzx eax, byte [rdi]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [rbx + 1], al
mov word [rbx + 2], 0x3d3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140161bb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
push r14
sub rsp, 0x38
mov r14, qword [rcx + 0x98]
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
mov r12, qword [rcx]
test r14, r14
je 0x140161db2
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r13
xor r13d, r13d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax]
movsxd rsi, dword [r14 + 0x10]
movzx eax, byte [rdi + 0x1f]
mov r15d, dword [r14 + 0x14]
shl rsi, 5
add rsi, qword [r12 + 0x20]
test al, al
jne 0x140161c11
inc dword [rdi + 0x38]
mov ebp, dword [rdi + 0x38]
jmp 0x140161c20
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0xcc]
movsxd rcx, dword [rbx + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rbx + 0x94], ecx
jg 0x140161c4d
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, reloc.WS2_32.dll_getservbyname
mov rcx, rbx
call fcn.140178b80
jmp 0x140161c7b
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_getservbyname
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rsi + 0x18]
xor edx, edx
mov r8d, dword [r14 + 0x10]
mov rcx, rdi
mov dword [rsp + 0x20], 0x61
mov r9, qword [r9 + 0x68]
call fcn.1401ae150
mov eax, dword [rbx + 0x90]
add eax, 5
cmp eax, dword [rbx + 0x94]
jle 0x140161cbf
mov edx, 5
mov rcx, rbx
call fcn.140178bf0
test eax, eax
jne 0x140161d9e
movsxd rax, dword [rbx + 0x90]
lea r8, [0x1402f552a]
mov r10d, 5
lea r11, [0x1402f69a0]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r9, rax
nop dword [rax]
movzx ecx, byte [r8 - 2]
mov byte [rax], cl
movsx ecx, byte [r8 - 1]
mov dword [rax + 4], ecx
movsx edx, byte [r8]
mov dword [rax + 8], edx
movzx ecx, byte [r8 - 2]
test byte [rcx + r11], 1
je 0x140161d20
cmp byte [r8], r13b
jle 0x140161d20
add edx, dword [rbx + 0x90]
mov dword [rax + 8], edx
movsx ecx, byte [r8 + 1]
add r8, 4
mov dword [rax + 0xc], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
add rax, 0x18
sub r10, 1
jne 0x140161cf0
add dword [rbx + 0x90], 5
test r9, r9
je 0x140161d9e
mov dword [r9 + 0x3c], ebp
lea ecx, [r15 + 1]
mov dword [r9 + 4], ecx
lea eax, [r15 - 1]
mov dword [r9 + 0x34], eax
mov eax, 8
mov word [r9 + 0x4a], ax
mov dword [r9 + 0x20], ecx
mov dword [r9 + 0x50], ebp
mov dword [r9 + 0x54], ecx
test ebp, ebp
je 0x140161d92
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x140161d92
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], ebp
inc byte [rdi + 0x1f]
mov r14, qword [r14]
test r14, r14
jne 0x140161bf0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rbx
ret
Function at 0x140161f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov r13, rcx
mov r15d, edx
mov r12d, r9d
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r8d, dword [r11 + 0x30]
mov ecx, r8d
mov r10, qword [rax + 8]
mov r14, qword [r11]
mov dword [rsp + 0x78], r8d
movsxd rax, dword [r10 + 0x30]
cmp eax, r8d
mov qword [rsp + 0x28], rax
cmovl ecx, eax
xor ebx, ebx
imul r15, rax
mov dword [rsp + 0x70], ecx
mov rcx, rax
cmp eax, r8d
je 0x140161fe8
cmp byte [r14 + 0x10], bl
mov eax, 8
cmovne ebx, eax
mov rdi, r15
sub rdi, rcx
test ebx, ebx
jne 0x14016214a
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x30], rsi
cmp rdi, r15
jge 0x14016212c
mov rax, rdi
movsxd rbp, r8d
cqo
mov qword [rsp + 0x20], 0
idiv rbp
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
mov eax, dword [0x1403db2b8]
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x140162121
xor r9d, r9d
lea r8, [rsp + 0x20]
mov edx, r10d
mov rcx, r14
call qword [r14 + 0x108]
mov ebx, eax
test eax, eax
jne 0x1401620c1
mov rcx, qword [rsp + 0x20]
call fcn.1401b0330
mov ebx, eax
test eax, eax
jne 0x1401620c1
mov rax, qword [rsp + 0x20]
movsxd r8, dword [rsp + 0x70]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv qword [rsp + 0x28]
add rdx, qword [rsp + 0x80]
call fcn.14028db80
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x1401620c1
test r12d, r12d
jne 0x1401620c1
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 0x3c]
btr eax, 0x1f
bswap eax
mov dword [rsi + 0x1c], eax
mov r8, qword [rsp + 0x20]
test r8, r8
je 0x14016211c
test byte [r8 + 0x34], 0x20
je 0x140162114
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + DllRegisterServer]
jmp 0x14016211c
mov rcx, r8
call fcn.1401b11a0
mov r8d, dword [rsp + 0x78]
add rdi, rbp
test ebx, ebx
je 0x140162003
mov rbp, qword [rsp + 0x88]
mov eax, ebx
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x140170bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
sub rsp, 0x28
movzx eax, byte [rdx]
mov rbx, rdx
mov rbp, rcx
cmp al, 0xad
jne 0x140170be8
movzx eax, byte [rdx + 2]
cmp al, 0xae
jne 0x140170bf4
mov rax, qword [rdx + 0x20]
mov ecx, dword [rax]
jmp 0x140170c06
cmp al, 0x88
jne 0x140170ca3
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x20]
mov ecx, dword [rcx]
cmp ecx, 1
je 0x140170ca3
mov qword [rsp + 0x48], rdi
xor edi, edi
mov dword [r8], edi
cmp byte [rdx], 0x88
jne 0x140170c31
mov rcx, rbp
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rbp
pop rbx
jmp fcn.1401962e0
mov eax, dword [rbp + 0x38]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], r15
movsxd r14, ecx
lea r15d, [rax + 1]
add eax, ecx
mov dword [rbp + 0x38], eax
test ecx, ecx
jle 0x140170c9e
mov qword [rsp + 0x40], rsi
mov esi, r15d
nop word [rax + rax]
mov rdx, qword [rbx + 0x20]
mov r8d, esi
mov rcx, rbp
mov rdx, qword [rdx + rdi + 8]
call fcn.14019d280
inc esi
lea rdi, [rdi + 0x20]
sub r14, 1
jne 0x140170c60
mov rsi, qword [rsp + 0x40]
mov eax, r15d
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rbp
pop rbx
ret
mov eax, r15d
jmp 0x140170c88
mov rcx, rbp
add rsp, 0x28
pop rbp
pop rbx
jmp fcn.14019fed0
Function at 0x1401877f0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
lea r9, str.sqlite_master
mov rdi, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.1401addd0
test ebx, ebx
jne 0x140187844
mov r9, rdi
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.1401addd0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14018ff90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
mov rsi, qword [rcx + 0x98]
mov r14, rcx
mov r15, qword [rcx]
mov rbx, qword [rcx + 0x10]
test rsi, rsi
je 0x140190148
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x30], r13
lea r13, [0x1402f69a0]
nop dword [rax]
nop word [rax + rax]
movsxd r8, dword [rsi + 0x10]
xor edx, edx
mov rax, qword [r15 + 0x20]
mov r9, r8
mov edi, dword [rsi + 0x14]
mov rcx, r14
shl r9, 5
mov dword [rsp + 0x20], 0x60
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.1401ae150
mov r8, qword [rsi + 8]
lea ebp, [rdi - 1]
mov edx, ebp
mov rcx, rbx
mov r8, qword [r8]
call fcn.1401caff0
mov eax, dword [rbx + 0x90]
add eax, 0xc
cmp eax, dword [rbx + 0x94]
jle 0x140190047
mov edx, recv
mov rcx, rbx
call fcn.140178bf0
test eax, eax
jne 0x140190134
movsxd rax, dword [rbx + 0x90]
lea r8, [0x1402f5b5a]
mov r10d, recv
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r9, rax
nop dword [rax]
movzx ecx, byte [r8 - 2]
mov byte [rax], cl
movsx ecx, byte [r8 - 1]
mov dword [rax + 4], ecx
movsx edx, byte [r8]
mov dword [rax + 8], edx
movzx ecx, byte [r8 - 2]
test byte [rcx + r13], 1
je 0x1401900a0
cmp byte [r8], r12b
jle 0x1401900a0
add edx, dword [rbx + 0x90]
mov dword [rax + 8], edx
movsx ecx, byte [r8 + 1]
add r8, 4
mov dword [rax + 0xc], ecx
mov byte [rax + 1], r12b
mov qword [rax + 0x10], r12
mov word [rax + 2], r12w
add rax, 0x18
sub r10, 1
jne 0x140190070
add dword [rbx + 0x90], 0xc
test r9, r9
je 0x140190134
mov eax, reloc.WS2_32.dll_recv
mov dword [r9 + 8], edi
mov word [r9 + 0x4a], ax
lea ecx, [rdi + 2]
lea eax, [rdi + 1]
mov dword [r9 + 0xc], ecx
mov dword [r9 + 0x68], eax
mov dword [r9 + 0x3c], edi
mov dword [r9 + 0x4c], ebp
mov dword [r9 + 0x54], edi
mov dword [r9 + 0x84], edi
mov dword [r9 + 0x94], edi
mov dword [r9 + 0xb0], ecx
mov dword [r9 + 0xac], edi
mov dword [r9 + 0xf8], edi
cmp dword [r14 + 0x34], r12d
jne 0x140190128
mov dword [r14 + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14018ffe0
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret