joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60c640
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.0060d6f0
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.0060d6f0
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 0x60c6b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x009bf794]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x60c858
mov rax, qword [0x009bf798]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x60c6fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x60c787
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x60c6e0
mov rcx, r12
call fcn.0060d410
mov rbp, rax
test rax, rax
je 0x60c892
mov rax, qword [0x009bf798]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0060d540
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x009bf798]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x60c8a1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x60c780
sub eax, 4
and eax, 0xfffffffb
jne 0x60c810
add dword [0x009bf794], 1
cmp ebx, 8
jae 0x60c7b8
test bl, 4
jne 0x60c860
test ebx, ebx
je 0x60c7a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x60c880
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 0x60c7a9
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 0x60c7ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x009bf798]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x60c780
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0060c640
nop dword [rax]
xor edi, edi
jmp 0x60c707
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x60c7a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x60c7a9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0060c640
mov rax, qword [0x009bf798]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0060c640
nop
nop dword [rax]
Function at 0x60d080
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x009bfa80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x009bfa60]
test rbx, rbx
je 0x60d0d4
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 0x60d0cb
test r12, r12
je 0x60d0cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x60d0b0
lea rcx, [0x009bfa80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x60d410
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00964770]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x60d489
mov rcx, r10
call fcn.0060d2e0
test eax, eax
je 0x60d489
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 0x60d486
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 0x60d47d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x60d489
add r8, 0x28
cmp r8, r9
jne 0x60d468
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x6d7ed0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9d, dword [rcx + 0x60]
mov ebx, dword [rcx + 0x5c]
test r9d, r9d
jle 0x6d8000
mov edx, dword [rcx + 0x288]
mov r10, qword [0x009646f0]
movzx r11d, bl
xor r8d, r8d
nop dword [rax]
mov eax, edx
add r8d, 1
shl edx, 8
shr eax, 0x18
xor eax, r11d
xor edx, dword [r10 + rax*4]
cmp r8d, r9d
jne 0x6d7ef8
mov eax, ebx
mov dword [rcx + 0x288], edx
mov byte [rcx + rax + 0x80], 1
movsxd rax, dword [rcx + 0x6c]
add rax, qword [rcx + 0x40]
cmp r8d, 2
je 0x6d7fb0
cmp r9d, 3
je 0x6d7fe0
cmp r9d, 1
je 0x6d7fd0
sub r9d, 4
movsxd r9, r9d
mov byte [rcx + r9 + 0x80], 1
mov byte [rax], bl
mov eax, dword [rcx + 0x6c]
mov rdx, qword [rcx + 0x40]
add eax, 1
mov dword [rcx + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [rcx + 0x6c]
mov rdx, qword [rcx + 0x40]
add eax, 1
mov dword [rcx + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [rcx + 0x6c]
mov rdx, qword [rcx + 0x40]
add eax, 1
mov dword [rcx + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [rcx + 0x6c]
movzx ebx, byte [rcx + 0x60]
mov r8, qword [rcx + 0x40]
add eax, 1
mov dword [rcx + 0x6c], eax
lea edx, [rbx - 4]
cdqe
mov byte [r8 + rax], dl
add dword [rcx + 0x6c], 1
pop rbx
ret
mov byte [rax], bl
mov eax, dword [rcx + 0x6c]
mov rdx, qword [rcx + 0x40]
add eax, 1
mov dword [rcx + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
add dword [rcx + 0x6c], 1
pop rbx
ret
mov byte [rax], bl
add dword [rcx + 0x6c], 1
pop rbx
ret
mov byte [rax], bl
mov eax, dword [rcx + 0x6c]
mov rdx, qword [rcx + 0x40]
add eax, 1
mov dword [rcx + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
jmp 0x6d7fb2
mov eax, ebx
mov byte [rcx + rax + 0x80], 1
movsxd rax, dword [rcx + 0x6c]
add rax, qword [rcx + 0x40]
jmp 0x6d7f32
Function at 0x6dcec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x0096a140]
mov rdi, qword [rcx + 0xa8]
mov r14, qword [rcx + 0x10]
mov r12, qword [rcx]
mov rsi, rcx
test rdi, rdi
jne 0x6dcfcf
jmp 0x6dd020
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov r13d, dword [rsi + rax*4 + 0xe8]
movsxd rax, dword [r14 + 0x90]
lea r8d, [rbx + 2]
lea r9d, [rax + 7]
cmp eax, dword [r14 + 0x94]
jge 0x6dd000
lea ecx, [rax + 1]
mov dword [r14 + 0x90], ecx
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 4], r8d
mov dword [rax + 8], r9d
mov dword [rax + 0xc], ebx
mov qword [rax + 0x10], 0
mov dword [rax], 0x37
mov rax, qword [r15 + 0x18]
mov rcx, rsi
mov r9d, 0x71
mov r8, qword [rax + 0x68]
call fcn.007dd700
mov rdx, rbp
mov rcx, r14
call fcn.007ff9f0
test rax, rax
je 0x6dd020
lea edx, [rbx + 1]
sub ebx, 1
mov dword [rax + 0x3c], r13d
mov dword [rax + 4], edx
mov dword [rax + 0x20], edx
mov dword [rax + 0x54], edx
mov edx, 8
mov dword [rax + 0x34], ebx
mov dword [rax + 0x50], r13d
mov word [rax + 0x4a], dx
test r13d, r13d
je 0x6dcfc7
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x6dcfc7
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe8], r13d
mov rdi, qword [rdi]
test rdi, rdi
je 0x6dd020
movsxd r15, dword [rdi + 0x10]
movzx eax, byte [rsi + 0x1f]
mov ebx, dword [rdi + 0x14]
mov rdx, r15
shl r15, 5
add r15, qword [r12 + 0x20]
test al, al
jne 0x6dcf00
mov eax, dword [rsi + 0x38]
lea r13d, [rax + 1]
mov dword [rsi + 0x38], r13d
jmp 0x6dcf11
mov dword [rsp + 0x20], ebx
mov edx, 0x37
mov rcx, r14
call fcn.0074a520
mov edx, dword [rdi + 0x10]
jmp 0x6dcf5f
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x721c80
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, r8
mov r8d, dword [rcx + 0x3c]
mov rbx, rcx
mov r12, rdx
mov edi, r9d
test r8d, r8d
jne 0x721d60
mov rsi, qword [rcx + 0x48]
test rsi, rsi
je 0x721d70
xor edx, edx
mov rcx, rsi
call fcn.0084b890
test eax, eax
jne 0x721cf1
mov rcx, qword [rsi + 0x80]
test word [rcx + 0x14], 0x9000
jne 0x721e00
mov eax, 4
mov qword [rcx], r12
mov word [rcx + 0x14], ax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x721cf1
call qword [0x008693f0]
mov rcx, qword [rbx + 0x48]
mov edx, 2
mov r9d, edi
mov r8, rbp
mov qword [rsp + 0x20], 0
call fcn.00821f50
mov rcx, qword [rbx + 0x48]
call fcn.00833a40
mov rcx, qword [rbx + 0x48]
call fcn.00831020
mov edx, 1
mov dword [rbx + 0x3c], eax
mov rbx, qword [rbx + 0x48]
mov rcx, rbx
call fcn.0084b890
test eax, eax
jne 0x721d60
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x721d60
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [0x008693f0]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, qword [rcx]
lea rcx, str.REPLACE_INTO__q._q_data_id__block__VALUES_____
mov rdx, qword [rax + 8]
mov r8, qword [rax + 0x10]
call fcn.0082f750
mov ecx, dword [rbx + 0x3c]
mov r13, rax
test ecx, ecx
jne 0x721dce
test rax, rax
je 0x721e10
mov rax, qword [rbx]
lea rdx, [rbx + 0x48]
mov qword [rsp + 0x30], 0
mov r9d, 0x85
mov qword [rsp + 0x28], rdx
mov r8d, 0xffffffff
mov rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call fcn.007dc0c0
mov dword [rbx + 0x3c], eax
mov rcx, r13
call fcn.0082d7e0
mov edx, dword [rbx + 0x3c]
test edx, edx
jne 0x721d60
mov rsi, qword [rbx + 0x48]
xor edx, edx
mov rcx, rsi
call fcn.0084b890
test eax, eax
jne 0x721cf1
jmp 0x721cc0
mov rdx, r12
call fcn.0084a820
jmp 0x721cdf
mov dword [rbx + 0x3c], 7
jmp 0x721dce
Function at 0x738cd0
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x58
mov r13d, 7
mov r9, rdx
mov rsi, r8
mov rdx, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
mov rbx, rcx
lea rcx, str.SELECT_count___FROM__Q._q__s
call fcn.0082f750
mov r12, rax
test rax, rax
je 0x738d48
lea rax, [rsp + 0x48]
mov rcx, qword [rbx]
mov r9d, pe_nt_image_headers64
mov rdx, r12
mov qword [rsp + 0x30], 0
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x48], 0
call fcn.007dc0c0
mov r13d, eax
test eax, eax
je 0x738d60
mov rcx, r12
call fcn.0082d7e0
mov eax, r13d
add rsp, 0x58
pop rbx
pop rsi
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x48]
call fcn.00833a40
cmp eax, 0x64
je 0x738d80
mov rcx, qword [rsp + 0x48]
call fcn.0082d530
mov r13d, eax
jmp 0x738d48
mov rcx, qword [rsp + 0x48]
call fcn.00826ca0
mov qword [rsi], rax
jmp 0x738d6f
Function at 0x74b590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movsxd r12, dword [rdx]
mov rdi, r12
mov r13, rdx
movzx edx, byte [r8]
mov rbp, rcx
mov rcx, r8
lea rbx, [rbp + r12]
test dl, dl
je 0x74b5fd
mov eax, edx
mov rsi, r8
lea r10, [0x009981e0]
xor r9d, r9d
nop word [rax + rax]
movzx r8d, al
test byte [r10 + r8], 6
jne 0x74b5df
cmp al, 0x5f
jne 0x74b5ef
movzx eax, byte [rsi + 1]
add rsi, 1
add r9d, 1
test al, al
jne 0x74b5d0
movzx eax, dl
test byte [r10 + rax], 4
je 0x74b690
mov byte [rbx], 0x22
add edi, 1
movzx edx, byte [rcx]
mov r8d, 1
movsxd r12, edi
mov eax, edi
lea rbx, [rbp + r12]
test dl, dl
jne 0x74b632
jmp 0x74b678
movzx edx, byte [rcx + 1]
add rcx, 1
test dl, dl
je 0x74b65c
movsxd r12, eax
mov rdi, r12
lea eax, [rdi + 1]
mov byte [rbp + r12], dl
movsxd rbx, eax
add rbx, rbp
cmp byte [rcx], 0x22
jne 0x74b620
add rcx, 1
mov byte [rbx], 0x22
lea eax, [rdi + 2]
movzx edx, byte [rcx]
movsxd rbx, eax
add rbx, rbp
test dl, dl
jne 0x74b62c
test r8d, r8d
jne 0x74b678
mov byte [rbx], 0
mov dword [r13], eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
add eax, 1
mov byte [rbx], 0x22
movsxd rbx, eax
add rbx, rbp
jmp 0x74b661
mov dword [rsp + 0x2c], 0x3b
cmp r9d, 1
jg 0x74b6c0
cmp byte [rsi], 0
setne al
xor r9d, 1
and r9d, 1
or al, r9b
jne 0x74b5fd
xor r8d, r8d
jmp 0x74b632
lea r8, [rsp + 0x2c]
mov edx, r9d
call fcn.00755f00
cmp dword [rsp + 0x2c], 0x3b
jne 0x74b5fd
cmp byte [rsi], 0
jne 0x74b5fd
movzx edx, byte [rcx]
test dl, dl
jne 0x74b6b5
mov eax, edi
jmp 0x74b661
Function at 0x7616b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
xor r13d, r13d
xor r9d, r9d
xor r11d, r11d
xor r14d, r14d
xor esi, esi
xor r10d, r10d
xor ebx, ebx
xor edi, edi
xor ebp, ebp
xor r12d, r12d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 8], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x120], rcx
xor ecx, ecx
mov qword [rsp + 0x130], r8
xor r8d, r8d
nop dword [rax]
mov r15, qword [rsp + 0x130]
add rcx, 1
xor r15, rcx
mov rax, r15
sub r15, 1
not rax
and rax, r15
mov r15, qword [rdx]
sar rax, 0x3f
xor r15, rbp
and r15, rax
xor rbp, r15
mov r15, qword [rdx + 0x30]
xor r15, rdi
and r15, rax
xor rdi, r15
mov r15, qword [rdx + 0x60]
xor r15, r12
and r15, rax
xor r12, r15
mov r15, qword [rsp + 0x10]
xor r15, qword [rdx + 8]
and r15, rax
xor qword [rsp + 0x10], r15
mov r15, qword [rsp + 0x18]
xor r15, qword [rdx + 0x38]
and r15, rax
xor qword [rsp + 0x18], r15
mov r15, qword [rsp + 8]
xor r15, qword [rdx + 0x68]
and r15, rax
xor qword [rsp + 8], r15
mov r15, qword [rdx + 0x10]
xor r15, rbx
and r15, rax
xor rbx, r15
mov r15, qword [rdx + 0x40]
xor r15, r10
and r15, rax
xor r10, r15
mov r15, qword [rdx + 0x70]
xor r15, rsi
and r15, rax
xor rsi, r15
mov r15, qword [rdx + 0x18]
add rdx, 0x90
xor r15, r14
and r15, rax
xor r14, r15
mov r15, qword [rsp + 0x20]
xor r15, qword [rdx - 0x48]
and r15, rax
xor qword [rsp + 0x20], r15
mov r15, qword [rsp + 0x28]
xor r15, qword [rdx - 0x18]
and r15, rax
xor qword [rsp + 0x28], r15
mov r15, qword [rdx - 0x70]
xor r15, r11
and r15, rax
xor r11, r15
mov r15, qword [rdx - 0x40]
xor r15, r9
and r15, rax
xor r9, r15
mov r15, qword [rdx - 0x10]
xor r15, r8
and r15, rax
xor r8, r15
mov r15, qword [rdx - 0x68]
xor r15, r13
and r15, rax
xor r13, r15
mov r15, qword [rsp + 0x30]
xor r15, qword [rdx - 0x38]
and r15, rax
xor qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x38]
xor r15, qword [rdx - 8]
and rax, r15
xor qword [rsp + 0x38], rax
cmp rcx, 0x10
jne 0x761738
mov rax, r12
movq xmm5, r14
mov r12, rbp
mov rbp, rdi
movq xmm2, rbx
mov rdi, rax
movq xmm1, r12
mov rax, qword [rsp + 0x120]
punpcklqdq xmm2, xmm5
movq xmm3, r11
movq xmm5, r13
movq xmm4, rbp
movhps xmm1, qword [rsp + 0x10]
punpcklqdq xmm3, xmm5
movups xmmword [rax + 0x10], xmm2
movhps xmm4, qword [rsp + 0x18]
movups xmmword [rax], xmm1
movq xmm5, r10
movq xmm1, r9
movups xmmword [rax + 0x20], xmm3
movq xmm2, rdi
movq xmm3, rsi
movhps xmm5, qword [rsp + 0x20]
movups xmmword [rax + 0x30], xmm4
movq xmm4, r8
movhps xmm1, qword [rsp + 0x30]
movhps xmm2, qword [rsp + 8]
movhps xmm3, qword [rsp + 0x28]
movhps xmm4, qword [rsp + 0x38]
movups xmmword [rax + 0x40], xmm5
movups xmmword [rax + 0x50], xmm1
movups xmmword [rax + 0x60], xmm2
movups xmmword [rax + 0x70], xmm3
movups xmmword [rax + 0x80], xmm4
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x7624d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r14d, dword [rcx + 0x80]
movsxd rax, edx
mov r13, rcx
mov rcx, qword [rcx + 0x78]
lea rdx, [rax*8]
mov rsi, rax
sub rdx, rax
shl rdx, 3
test rcx, rcx
je 0x7626b8
test rdx, rdx
je 0x7626d0
cmp rdx, 0x7ffffeff
ja 0x762682
call fcn.007e6b90
mov rdi, rax
test rdi, rdi
je 0x762682
movsxd rdx, r14d
lea rbp, [0x00869360]
xor r12d, r12d
lea rax, [rdx*8]
sub rax, rdx
xor edx, edx
lea rbx, [rdi + rax*8]
mov eax, esi
sub eax, r14d
mov rcx, rbx
cdqe
lea r8, [rax*8]
sub r8, rax
shl r8, 3
call sub.msvcrt.dll_memset
mov qword [r13 + 0x78], rdi
cmp r14d, esi
jl 0x76262c
jmp 0x7626b0
mov rcx, qword [0x00868fc0]
test rcx, rcx
je 0x76259a
call qword [0x008693e0]
mov ecx, 0x200
call fcn.007dc4f0
mov rdx, rax
test rdx, rdx
je 0x762673
lea rdi, [rdx + 8]
mov rcx, rdx
mov rax, r12
mov qword [rdx], 0
mov qword [rdx + 0x1f8], 0
and rdi, 0xfffffffffffffff8
sub rcx, rdi
add ecx, 0x200
shr ecx, 3
rep stosq qword [rdi], rax
mov dword [rdx], r15d
mov qword [rbx + 0x10], rdx
mov rax, qword [r13 + 0x128]
mov dword [rbx + 0x20], 1
test rax, rax
je 0x762614
mov edx, dword [rax + 0x58]
mov dword [rbx + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rbx + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rbx + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rbx + 0x30], eax
add r14d, 1
add rbx, 0x38
mov dword [r13 + 0x80], r14d
cmp r14d, esi
je 0x7626b0
mov rax, qword [r13 + 0x50]
mov r15d, dword [r13 + 0x20]
cmp qword [rax], 0
mov dword [rbx + 0x18], r15d
je 0x7626a0
mov rax, qword [r13 + 0x60]
test rax, rax
jle 0x7626a0
mov qword [rbx], rax
mov eax, dword [r13 + 0x3c]
mov dword [rbx + 0x1c], eax
mov eax, dword [rbp]
test eax, eax
jne 0x762588
mov ecx, 0x200
call qword [0x00869380]
mov rdx, rax
test rdx, rdx
jne 0x7625b0
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x20], 1
mov eax, 7
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r13 + 0xb8]
jmp 0x762647
xor eax, eax
jmp 0x762687
mov rcx, rdx
call fcn.007dc490
mov rdi, rax
jmp 0x76252a
call fcn.0082d7e0
mov eax, 7
jmp 0x762687
Function at 0x766ed0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, rdx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rdi, rcx
lea rdx, str.20c:20e
call fcn.00749380
cmp eax, 2
jne 0x766fb0
cmp byte [rdi + 5], 0x3a
lea rbx, [rdi + 5]
je 0x766fd0
mov dword [rsp + 0x34], 0
pxor xmm0, xmm0
lea rbp, [0x009981e0]
mov eax, dword [rsp + 0x2c]
xor ecx, ecx
mov byte [rsi + 0x2b], 1
mov word [rsi + 0x28], cx
mov dword [rsi + 0x14], eax
mov eax, dword [rsp + 0x30]
movsd qword [rsi + 0x20], xmm0
mov dword [rsi + 0x18], eax
movzx eax, byte [rbx]
test byte [rbp + rax], 1
je 0x766f57
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test byte [rbp + rax], 1
jne 0x766f48
mov dword [rsi + 0x1c], 0
movsx edx, byte [rbx]
mov eax, edx
cmp dl, 0x2d
je 0x767060
cmp edx, 0x2b
je 0x767018
and eax, 0xffffffdf
cmp al, 0x5a
jne 0x766fc0
nop dword [rax]
add rbx, 1
movzx eax, byte [rbx]
test byte [rbp + rax], 1
jne 0x766f80
xor eax, eax
mov byte [rsi + 0x2d], 1
cmp byte [rbx], 0
setne al
test eax, eax
jne 0x766fb0
mov edx, dword [rsi + 0x1c]
test edx, edx
setne byte [rsi + 0x2c]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
test edx, edx
setne al
jmp 0x766f9a
lea rcx, [rdi + 6]
lea r8, [rsp + 0x34]
lea rdx, [0x00956b9c]
call fcn.00749380
cmp eax, 1
jne 0x766fb0
pxor xmm0, xmm0
cmp byte [rdi + 8], 0x2e
lea rbx, [rdi + 8]
cvtsi2sd xmm0, dword [rsp + 0x34]
je 0x767070
addsd xmm0, qword [0x00962a40]
lea rbp, [0x009981e0]
jmp 0x766f1e
mov edi, 1
lea rcx, [rbx + 1]
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x38]
lea rdx, str.20b:20e
call fcn.00749380
cmp eax, 2
jne 0x766fb0
imul eax, dword [rsp + 0x38], 0x3c
add eax, dword [rsp + 0x3c]
add rbx, 6
imul eax, edi
mov dword [rsi + 0x1c], eax
jmp 0x766f84
mov edi, 0xffffffff
jmp 0x76701d
movzx edx, byte [rdi + 9]
lea rbp, [0x009981e0]
mov rax, rdx
test byte [rbp + rdx], 4
jne 0x767092
addsd xmm0, qword [0x00962a40]
jmp 0x766f1e
movsd xmm3, qword [0x009629d8]
movsd xmm4, qword [0x00962af8]
lea rbx, [rdi + 9]
pxor xmm1, xmm1
movsd xmm5, qword [0x00962bb0]
nop word [rax + rax]
movupd xmm2, xmm1
movsx eax, al
pxor xmm1, xmm1
movzx edx, byte [rbx + 1]
mulsd xmm2, xmm4
cvtsi2sd xmm1, eax
add rbx, 1
mulsd xmm3, xmm4
mov rax, rdx
addsd xmm1, xmm2
subsd xmm1, xmm5
test byte [rbp + rdx], 4
jne 0x7670b8
divsd xmm1, xmm3
addsd xmm0, xmm1
jmp 0x766f1e
Function at 0x778ea0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
test r8, r8
je 0x7790b8
lea rax, [r8 - 1]
cmp rax, 0xe
jbe 0x7790bf
mov r9, r8
xor eax, eax
pxor xmm0, xmm0
and r9, 0xfffffffffffffff0
nop dword [rax + rax]
movdqu xmm1, xmmword [rcx + rax]
movdqu xmm2, xmmword [rdx + rax]
add rax, 0x10
pxor xmm1, xmm2
por xmm0, xmm1
cmp rax, r9
jne 0x778ed0
movdqu xmm1, xmm0
mov r9, r8
psrldq xmm1, 8
and r9, 0xfffffffffffffff0
por xmm0, xmm1
movdqu xmm1, xmm0
psrldq xmm1, 4
por xmm0, xmm1
movdqu xmm1, xmm0
psrldq xmm1, 2
por xmm0, xmm1
movdqu xmm1, xmm0
psrldq xmm1, 1
por xmm0, xmm1
movups xmmword [rsp], xmm0
movzx eax, byte [rsp]
test r8b, 0xf
je 0x7790a9
movzx r10d, byte [rcx + r9]
xor r10b, byte [rdx + r9]
or eax, r10d
lea r10, [r9 + 1]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 1]
xor r10b, byte [rdx + r9 + 1]
or eax, r10d
lea r10, [r9 + 2]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 2]
xor r10b, byte [rdx + r9 + 2]
or eax, r10d
lea r10, [r9 + 3]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 3]
xor r10b, byte [rdx + r9 + 3]
or eax, r10d
lea r10, [r9 + 4]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 4]
xor r10b, byte [rdx + r9 + 4]
or eax, r10d
lea r10, [r9 + 5]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 5]
xor r10b, byte [rdx + r9 + 5]
or eax, r10d
lea r10, [r9 + 6]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 6]
xor r10b, byte [rdx + r9 + 6]
or eax, r10d
lea r10, [r9 + 7]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 7]
xor r10b, byte [rdx + r9 + 7]
or eax, r10d
lea r10, [r9 + 8]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 8]
xor r10b, byte [rdx + r9 + 8]
or eax, r10d
lea r10, [r9 + 9]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 9]
xor r10b, byte [rdx + r9 + 9]
or eax, r10d
lea r10, [r9 + 0xa]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 0xa]
xor r10b, byte [rdx + r9 + 0xa]
or eax, r10d
lea r10, [r9 + 0xb]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 0xb]
xor r10b, byte [rdx + r9 + 0xb]
or eax, r10d
lea r10, [r9 + 0xc]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 0xc]
xor r10b, byte [rdx + r9 + 0xc]
or eax, r10d
lea r10, [r9 + 0xd]
cmp r8, r10
jbe 0x7790a9
movzx r10d, byte [rcx + r9 + 0xd]
xor r10b, byte [rdx + r9 + 0xd]
or eax, r10d
lea r10, [r9 + 0xe]
cmp r8, r10
jbe 0x7790a9
movzx edx, byte [rdx + r9 + 0xe]
xor dl, byte [rcx + r9 + 0xe]
or eax, edx
movzx eax, al
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret
xor r9d, r9d
xor eax, eax
jmp 0x778f38

Function at 0x77b4b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
test rdx, rdx
je 0x77b4f0
lea r10, [rcx + rdx*8]
mov r8, 0xffffffffffffffff
mov rdx, qword [rcx]
mov r9, r8
add rcx, 8
mov rax, rdx
sub rdx, 1
not rax
and rax, rdx
sar rax, 0x3f
xor rax, r8
and rax, r9
xor r8, rax
cmp r10, rcx
jne 0x77b4c0
mov rax, r8
ret
mov r8, 0xffffffffffffffff
mov rax, r8
ret
Function at 0x77b500
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbx
test r8, r8
je 0x77b548
xor r10d, r10d
mov r11, 0xffffffffffffffff
mov r9, qword [rdx + r10*8]
xor r9, qword [rcx + r10*8]
mov rbx, r11
add r10, 1
mov rax, r9
sub r9, 1
not rax
and rax, r9
sar rax, 0x3f
xor rax, r11
and rax, rbx
xor r11, rax
cmp r8, r10
jne 0x77b510
mov rax, r11
pop rbx
ret
mov r11, 0xffffffffffffffff
mov rax, r11
pop rbx
ret

Function at 0x77b680
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbx
xor ebx, ebx
mov rax, qword [rcx]
mov r9, rdx
xor edx, edx
mov r10, rcx
cmp rax, r9
sbb rdx, rbx
mov rax, rdx
and eax, 1
mov rcx, rax
sub rax, 1
not rcx
and rcx, rax
sar rcx, 0x3f
mov rbx, rcx
not rbx
cmp r8, 1
je 0x77b6fc
lea r9, [r10 + 8]
lea r11, [r10 + r8*8]
mov rcx, 0xffffffffffffffff
nop word cs:[rax + rax]
mov r8, qword [r9]
mov r10, rcx
add r9, 8
mov rdx, r8
sub r8, 1
not rdx
and rdx, r8
sar rdx, 0x3f
xor rdx, rcx
and rdx, r10
xor rcx, rdx
cmp r11, r9
jne 0x77b6d0
xor rcx, rbx
mov rax, rbx
and rcx, rax
mov rax, rcx
xor rax, rbx
pop rbx
ret