joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bd6c0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x1400bd726
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x14053b960]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x1400bd751
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14053b960]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
add rcx, qword [rdx]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.1400be3c0
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400bd800
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400bd830
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400bd860
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
add rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400bd890
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x1400bd990
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1404b1ff4], 0xffffffff
jne 0x1400bd9bf
call fcn.1400bd4a0
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400bd940]
call fcn.1401f505c
jmp 0x1400bd9f0
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400bd9f0
call fcn.1400be780
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400bd940]
call fcn.1401f505c
add rsp, 0x28
ret

Function at 0x1400bda70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret

Function at 0x1400bdc70
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1400bdca0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x1400bdd12
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14053b960]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x1400bdd70
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x1400bdd70
cmp dword [rsp + 0x20], 0x100000
jge 0x1400bdd33
mov dword [rsp + 0x20], 0x100000
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14053b960]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400bddb0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret
Function at 0x1400be0d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x1400be320
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x1400be37b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x1400be37b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x1400be37d
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400be390
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x1400be440
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret

Function at 0x1400be780
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, reloc.ODBC32.dll_SQLAllocHandle
xor edx, edx
mov rcx, qword [0x14053b960]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
mov rcx, qword [0x14053b960]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1404b1ff4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x1400c33a0
Capabilities:
Generate random numbers via rtlgenrandom
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov ebx, edi
nop
lea rcx, [rsp + 0x48]
mov edx, 4
mov dword [rsp + 0x48], edi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400c3439
mov edx, dword [rsp + 0x48]
mov rcx, rdi
nop
cmp rbx, 4
jae 0x1400c33f1
mov eax, edx
inc rbx
shr eax, cl
add rcx, 8
mov byte [rsp + rbx + 0x4f], al
cmp rcx, 0x20
jb 0x1400c33d0
cmp rbx, 4
jb 0x1400c33b0
lea rcx, str.EXPAT_ENTROPY_DEBUG
call qword [sym.imp.msvcrt.dll_getenv]
mov ebx, dword [rsp + 0x50]
test rax, rax
je 0x1400c34b3
movzx ecx, byte [rax]
cmp cl, byte [0x1402403cc]
jne 0x1400c34b3
movzx eax, byte [rax + 1]
cmp al, byte [0x1402403cd]
jne 0x1400c34b3
call qword [sym.imp.msvcrt.dll___iob_func]
lea r8, str.rand_s
jmp 0x1400c3490
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [rsp + 0x48]
xor ebx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.EXPAT_ENTROPY_DEBUG
xor eax, ebx
imul ebx, eax, 0x7fffffff
call qword [sym.imp.msvcrt.dll_getenv]
test rax, rax
je 0x1400c34b3
movzx ecx, byte [rax]
cmp cl, byte [0x1402403cc]
jne 0x1400c34b3
movzx eax, byte [rax + 1]
cmp al, byte [0x1402403cd]
jne 0x1400c34b3
call qword [sym.imp.msvcrt.dll___iob_func]
lea r8, str.fallback_4_
lea rdx, str.Entropy:__s_____0x_0lx___lu_bytes__n
lea rcx, [rax + 0x60]
mov r9d, 8
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
call qword [sym.imp.msvcrt.dll_fprintf]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c7bf0
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [rcx + 0x28]
mov r9, qword [rcx + 0x30]
mov r8, rcx
sub dl, cl
sub dl, 0x20
movsx rax, dl
add r9, rax
movsx eax, dl
shl r9, 0x38
dec eax
cmp eax, 6
ja case.default.0x1400c7c28
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0xc7d40]
add rcx, rdx
jmp rcx
movzx eax, byte [r8 + 0x26]
shl rax, 0x30
or r9, rax
movzx eax, byte [r8 + 0x25]
shl rax, 0x28
or r9, rax
movzx eax, byte [r8 + 0x24]
shl rax, 0x20
or r9, rax
movzx eax, byte [r8 + 0x23]
shl rax, 0x18
or r9, rax
movzx eax, byte [r8 + 0x22]
shl rax, 0x10
or r9, rax
movzx eax, byte [r8 + 0x21]
shl rax, 8
or r9, rax
movzx eax, byte [r8 + 0x20]
or r9, rax
xor qword [r8 + 0x18], r9
mov r10, qword [r8]
mov rcx, qword [r8 + 8]
mov rax, qword [r8 + 0x18]
mov rdx, qword [r8 + 0x10]
mov r11d, 2
add r10, rcx
add rdx, rax
rol rcx, 0xd
xor rcx, r10
rol rax, 0x10
xor rax, rdx
add rdx, rcx
rol r10, 0x20
add r10, rax
mov qword [r8], r10
rol rcx, 0x11
xor rcx, rdx
rol rax, 0x15
xor rax, r10
rol rdx, 0x20
dec r11
jne 0x1400c7c93
xor qword [r8], r9
mov r9, qword [r8]
xor rdx, 0xff
mov qword [r8 + 0x10], rdx
mov qword [r8 + 0x18], rax
mov qword [r8 + 8], rcx
lea r10d, [r11 + 4]
nop dword [rax + rax]
add r9, rcx
add rdx, rax
rol rcx, 0xd
xor rcx, r9
rol rax, 0x10
xor rax, rdx
add rdx, rcx
rol r9, 0x20
add r9, rax
mov qword [r8], r9
rol rcx, 0x11
xor rcx, rdx
rol rax, 0x15
xor rax, r9
rol rdx, 0x20
dec r10
jne 0x1400c7cf0
mov qword [r8 + 0x18], rax
xor rax, rdx
mov qword [r8 + 8], rcx
xor rax, rcx
mov qword [r8 + 0x10], rdx
xor rax, r9
ret

Function at 0x1400c7dd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
lea rbx, [rdx + r8]
mov qword [rsp + 0x10], rbp
mov r11, rcx
lea rax, [rcx + 0x28]
mov qword [rsp + 0x18], rdi
cmp rdx, rbx
jae 0x1400c7e09
mov r8, qword [rax]
cmp r8, rax
jae 0x1400c7e12
movzx ecx, byte [rdx]
inc rdx
mov byte [r8], cl
inc qword [rax]
cmp rdx, rbx
jb 0x1400c7df0
cmp qword [rax], rax
jb 0x1400c7ee8
movzx ecx, byte [r11 + 0x26]
movzx edi, byte [r11 + 0x27]
mov r10, qword [r11]
mov r8, qword [r11 + 8]
mov r9, qword [r11 + 0x10]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x25]
lea rbp, [r11 + 0x20]
shl rdi, 8
mov esi, 2
or rdi, rcx
movzx ecx, byte [r11 + 0x24]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x23]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x22]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [r11 + 0x21]
shl rdi, 8
or rdi, rcx
movzx ecx, byte [rbp]
shl rdi, 8
or rdi, rcx
xor qword [r11 + 0x18], rdi
mov rcx, qword [r11 + 0x18]
nop word [rax + rax]
add r10, r8
add r9, rcx
rol r8, 0xd
xor r8, r10
rol rcx, 0x10
xor rcx, r9
add r9, r8
rol r10, 0x20
add r10, rcx
mov qword [r11], r10
rol r8, 0x11
xor r8, r9
rol rcx, 0x15
xor rcx, r10
rol r9, 0x20
dec rsi
jne 0x1400c7e90
xor qword [r11], rdi
add qword [r11 + 0x30], 8
mov qword [r11 + 0x18], rcx
mov qword [r11 + 8], r8
mov qword [r11 + 0x10], r9
mov qword [rax], rbp
cmp rdx, rbx
jb 0x1400c7df0
mov rdi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x20]
mov rax, r11
pop rsi
ret
Function at 0x1400dbdc0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, edx
mov r10, rcx
mov r8d, 0x80000000
test rcx, rcx
je 0x1400dbe2f
mov qword [rsp], rbx
lea rbx, [0x140245f40]
test r10b, 1
je 0x1400dbe23
mov ecx, r11d
mov eax, r8d
mov edx, 0x80000000
and ecx, 0x1f
xor r8d, r8d
mov r9d, dword [rbx + rcx*4]
nop dword [rax + rax]
test r9d, edx
je 0x1400dbe10
lea ecx, [rdx - 1]
xor r8d, eax
test r9d, ecx
je 0x1400dbe23
shr edx, 1
test al, 1
je 0x1400dbe1f
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400dbe00
shr eax, 1
jmp 0x1400dbe00
inc r11d
sar r10, 1
jne 0x1400dbde0
mov rbx, qword [rsp]
mov eax, r8d
add rsp, 8
ret
Function at 0x1400fe020
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov qword [rcx + 8], rsi
call fcn.1401005f0
mov edx, 0xa0
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.1401005c0
mov rbx, rax
test rax, rax
jne 0x1400fe076
mov rcx, rdi
call fcn.140100600
mov rcx, qword [rdi]
mov dword [rcx + 0x28], gethostname
mov rcx, qword [rdi]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov dword [rbx + 0x5c], 0x3b9aca00
lea rax, [fcn.1400fdbc0]
lea rcx, str.JPEGMEM
mov qword [rbx], rax
lea rax, [fcn.1400fd9f0]
mov qword [rbx + 8], rax
lea rax, [fcn.1400fdae0]
mov qword [rbx + 0x10], rax
lea rax, [fcn.1400fd900]
mov qword [rbx + 0x18], rax
lea rax, [0x1400fe440]
mov qword [rbx + 0x20], rax
lea rax, [0x1400fe390]
mov qword [rbx + 0x28], rax
lea rax, [0x1400fe1b0]
mov qword [rbx + 0x30], rax
lea rax, [0x1400fd6b0]
mov qword [rbx + 0x38], rax
lea rax, [0x1400fd450]
mov qword [rbx + 0x40], rax
lea rax, [0x1400fded0]
mov qword [rbx + 0x48], rax
lea rax, [0x1400fe4f0]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x90], 0xa0
mov qword [rdi + 8], rbx
call qword [sym.imp.msvcrt.dll_getenv]
test rax, rax
je 0x1400fe180
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call qword [sym.imp.msvcrt.dll_sscanf]
test eax, eax
jle 0x1400fe180
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x1400fe173
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x1400fe177
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1401734d0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov rbp, r9
mov dword [rax - 0x18], r14d
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
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 rsi, rcx
mov byte [rcx + 0x1c], 1
mov dword [rax - 0x28], ebx
call fcn.1401a5d80
test ebx, ebx
jne 0x140173539
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 r9, rbp
mov r8, rdi
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.1401a5d80
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140193880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov r14, rdx
mov ebx, r11d
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x140193989
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r15
lea r15, [0x14024e440]
lea r12, str.main
nop
mov r9d, ebx
cmp ebx, 2
jge 0x1401938cc
xor r9d, 1
mov rax, qword [rsi + 0x20]
movsxd rcx, r9d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x140193901
mov r8, qword [rcx + rax]
mov r10, rdi
sub r10, r8
nop dword [rax + rax]
movzx ecx, byte [r8]
movzx eax, byte [r10 + r8]
cmp ecx, eax
jne 0x14019393c
test ecx, ecx
jne 0x14019394a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.140142960
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x140193920
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1401938c0
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x14019394f
inc r8
jmp 0x1401938f0
test r9d, r9d
jne 0x140193919
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x140193975
test edx, edx
je 0x140193901
inc rax
jmp 0x140193960
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x140193919
inc rax
jmp 0x140193960
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401de730
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rbx, rcx
je 0x1401de78d
mov rcx, qword [rcx]
call fcn.1401e0c20
mov ecx, eax
test eax, eax
jne 0x1401de7ab
movups xmm1, xmmword [rbx + 0x28]
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm1
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x30], rax
jne 0x1401de776
mov eax, ecx
mov dword [rbx + 0x1c], 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
lea rdx, [0x1401de710]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401b80c0
call fcn.1401de400
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbx + 0x28], xmm0
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x30], rcx
jne 0x1401de7ab
mov dword [rbx + 0x1c], 1
add rsp, 0x20
pop rbx
ret
Function at 0x1401f505c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140539fc0], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140539fd0]
jne 0x1401f50a9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140539ff8], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140539fc0], 1
mov ecx, dword [0x140539ff8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1401f517e
mov rcx, qword [0x1404ba214]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1401f51a9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140539fc8]
test rax, rax
je 0x1401f50f9
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140539fc8], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x1401f51c4]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140539ff8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1404ba214]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1401f51a9
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1401f5a80
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1404ba214]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14053b640]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x14053b660], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], IsNetDrive
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.1401f9048
mov rbx, qword [rsp + 0x30]
lea rax, [0x1401f6938]
mov qword [rdi + 0xb0], rax
lea rax, [0x1401f699c]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.1401f63dc]
mov qword [rdi + 0x20], rax
lea rax, [0x1401f628c]
mov qword [rdi + 0x60], rax
lea rax, [0x1401f6a40]
mov qword [rdi + 0xc8], rax
lea rax, [0x1401f69e8]
mov qword [rdi + 0xc0], rax
lea rax, [0x1401f5f18]
mov qword [rdi + 0x68], rax
lea rax, [0x1401f5ebc]
mov qword [rdi + 0x48], rax
lea rax, [0x1401f5ee8]
mov qword [rdi + 0x50], rax
lea rax, [0x1401f5d6c]
mov qword [rdi + 0x58], rax
lea rax, [0x1401f6730]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret