joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1f80]
mov eax, 0x2080
call fcn.1801082a0
sub rsp, rax
mov rax, qword [0x18016f298]
xor rax, rsp
mov qword [rbp + 0x1f70], rax
mov rdi, r8
mov rbx, rcx
call fcn.1800a8a00
test eax, eax
jns 0x180008357
xor eax, eax
jmp 0x18000847d
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x1000
call fcn.18010a4e0
mov r8, rdi
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.18011614c
xor edx, edx
lea rcx, [rbp + 0xf70]
mov r8d, 0x1000
call fcn.18010a4e0
lea rax, [rsp + 0x70]
or r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp byte [rax + r9], 0
jne 0x1800083a0
xor ecx, ecx
mov dword [rsp + 0x38], 7
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov edx, 0x1000
lea rcx, [rbp + 0xf70]
call fcn.1800a8d70
lea rcx, [rsp + 0x48]
mov word [rsp + 0x57], 0x6266
mov dword [rsp + 0x5e], 0x34383337
mov dword [rsp + 0x4e], 0x39333230
mov dword [rsp + 0x5a], 0x33303436
mov dword [rsp + 0x48], 0x30663363
mov dword [rsp + 0x63], 0x35613636
mov dword [rsp + 0x52], 0x63613732
mov word [rsp + 0x67], 0x61
mov byte [rsp + 0x59], reloc.WLDAP32.dll_Ordinal_50
mov word [rsp + 0x4c], 0x3132
mov byte [rsp + 0x56], 0x34
mov byte [rsp + 0x62], reloc.WLDAP32.dll_Ordinal_50
call fcn.1800053d0
mov edx, dword [rsp + 0x40]
lea rcx, [rbp + 0xf70]
call fcn.1800054c0
test al, al
je 0x180008350
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18010a4e0
lea r8, [rbp + 0xf70]
mov edx, 0x1000
mov rcx, rbx
call fcn.18011614c
mov eax, 1
mov rcx, qword [rbp + 0x1f70]
xor rcx, rsp
call fcn.180107470
lea r11, [rsp + 0x2080]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x180008bc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18016f298]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14d, gethostname
movsxd rdx, edx
mov eax, gethostname
mov dword [rbp - 0x4e], 0x300032
mov word [rbp - 0x34], ax
xor eax, eax
mov word [rbp - 0x18], ax
mov eax, 0x66
lea r8d, [r14 + 2]
mov dword [rbp - 0x2e], 0x330035
mov word [rbp - 0x3a], r8w
lea edi, [r14 + 0x2c]
lea r8, [rbp - 0x60]
mov dword [rbp - 0x56], 0x300038
mov dword [rbp - 0x5a], 0x350037
mov dword [rbp - 0x60], 0x640038
mov dword [rbp - 0x3e], 0x2d0032
mov dword [rbp - 0x38], 0x320063
mov dword [rbp - 0x52], 0x2d0031
mov dword [rbp - 0x32], 0x39002d
mov dword [rbp - 0x1c], 0x330063
mov dword [rbp - 0x20], 0x620034
mov dword [rbp - 0x48], 0x2d0031
mov dword [rbp - 0x26], 0x300064
mov dword [rbp - 0x44], 0x630034
mov word [rbp - 0x5c], r14w
mov dword [rbp - 0x2a], 0x300066
mov word [rbp - 0x22], di
mov word [rbp - 0x40], ax
mov word [rbp - 0x4a], di
call fcn.1801161ac
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180107470
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008f00
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x100
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x18016f298]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.18000a680
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
mov rdx, qword [rsp + 0x60]
cmp byte [rdx], bl
jne 0x180008f5d
mov r8d, ebx
jmp 0x180008f6a
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bl
jne 0x180008f61
lea rcx, [rsp + 0x40]
call fcn.1800041e0
nop
mov rax, qword [0x1803e5670]
cmp rax, 0x10
jb 0x180008fd1
mov rcx, qword [0x1803e5658]
inc rax
cmp rax, 0x1000
jb 0x180008fcc
test cl, 0x1f
je 0x180008f9f
call fcn.18010c14c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180008fae
call fcn.18010c14c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180008fbd
call fcn.18010c14c
int3
cmp rcx, 0x27
jbe 0x180008fc9
call fcn.18010c14c
int3
mov rcx, rax
call fcn.180002860
mov qword [0x1803e5670], 0xf
mov qword [0x1803e5668], rbx
mov byte [0x1803e5658], 0
lea rdx, [rsp + 0x40]
lea rcx, [0x1803e5658]
call fcn.180003c30
nop
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x180009054
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x18000904f
test cl, 0x1f
je 0x180009022
call fcn.18010c14c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180009031
call fcn.18010c14c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180009040
call fcn.18010c14c
int3
cmp rcx, 0x27
jbe 0x18000904c
call fcn.18010c14c
int3
mov rcx, rax
call fcn.180002860
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x18000907b
call fcn.180112a30
cmp qword [0x1803e5600], 0
jne 0x1800090b2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, [0x1803e5600]
lea r8, [0x180004670]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1803e5600], rax
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180107470
add rsp, 0x100
pop rbx
ret
Function at 0x1800304e0
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 0x180030548
cmp byte [r14 + 0x10], bl
mov eax, 8
cmovne ebx, eax
mov rdi, r15
sub rdi, rcx
test ebx, ebx
jne 0x1800306a6
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x30], rsi
cmp rdi, r15
jge 0x180030688
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 [0x1803e0ec4]
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x18003067d
xor r9d, r9d
lea r8, [rsp + 0x20]
mov edx, r10d
mov rcx, r14
call qword [r14 + 0x108]
mov ebx, eax
test eax, eax
jne 0x18003061d
mov rcx, qword [rsp + 0x20]
call fcn.18001fa70
mov ebx, eax
test eax, eax
jne 0x18003061d
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.180109e10
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x18003061d
test r12d, r12d
jne 0x18003061d
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 0x3c]
bswap eax
mov dword [rsi + 0x1c], eax
mov r8, qword [rsp + 0x20]
test r8, r8
je 0x180030678
test byte [r8 + 0x34], 0x20
je 0x180030670
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 + 0x90]
jmp 0x180030678
mov rcx, r8
call fcn.1800195b0
mov r8d, dword [rsp + 0x78]
add rdi, rbp
test ebx, ebx
je 0x180030563
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 0x180045450
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rbx, rcx
je 0x1800454ad
mov rcx, qword [rcx]
call fcn.180043d90
mov ecx, eax
test eax, eax
jne 0x1800454cb
movups xmm1, xmmword [rbx + 0x28]
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbx + 0x38], xmm1
movups xmmword [rbx + 0x28], xmm0
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x30], rax
jne 0x180045496
mov eax, ecx
mov dword [rbx + 0x1c], 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
lea rdx, [0x180045430]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.180012c00
call fcn.180045160
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbx + 0x28], xmm0
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x30], rcx
jne 0x1800454cb
mov dword [rbx + 0x1c], 1
add rsp, 0x20
pop rbx
ret

Function at 0x180046370
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x38]
xor ebx, ebx
mov r14, qword [rcx + 0x40]
mov r15, r9
mov ebp, r8d
mov r13, rdx
mov rdi, qword [rsi + 0x30]
test rdi, rdi
jne 0x180046408
movzx eax, word [r14 + 6]
imul ecx, eax, 0x38
mov rax, qword [r14 + 0x10]
add ecx, 0x50
test rax, rax
je 0x1800463ca
mov edx, ecx
mov rcx, rax
call fcn.180010400
jmp 0x1800463cf
call fcn.18000ff10
mov rdi, rax
test rax, rax
jne 0x1800463dc
mov rdi, rbx
jmp 0x1800463f3
lea rax, [rdi + 0x18]
mov qword [rdi], r14
mov qword [rdi + 8], rax
movzx eax, word [r14 + 6]
inc ax
mov word [rdi + 0x10], ax
mov qword [rsi + 0x30], rdi
test rdi, rdi
jne 0x180046404
lea eax, [rdi + 7]
jmp 0x18004648a
mov word [rdi + 0x10], bp
cmp byte [rsi + 0x58], bl
je 0x180046442
cmp byte [rsi + 0x59], bl
je 0x180046420
mov rax, qword [rsi + 0x10]
mov r8, qword [rax + 0x28]
add rax, 0x14
jmp 0x18004644a
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rcx + rcx*4]
shl rax, 4
add rax, qword [rdx + 0x18]
mov r8, qword [rax + 0x28]
add rax, 0x14
jmp 0x18004644a
mov rax, qword [rsi + 0x38]
lea r8, [rax + 0x10]
mov edx, dword [rax]
mov r9, rdi
mov rcx, r14
call fcn.180036bf0
test ebp, ebp
jle 0x180046472
mov rax, qword [rdi + 8]
add rax, 8
test byte [rax], 1
jne 0x1800464a9
inc ebx
add rax, 0x38
cmp ebx, ebp
jl 0x180046463
mov rdx, qword [r13 + 0x10]
xor r9d, r9d
mov ecx, dword [r13 + 0xc]
mov r8, rdi
call fcn.1800372d0
mov dword [r15], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
mov dword [r15], 0xffffffff
jmp 0x180046488
Function at 0x180052940
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_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.180059610
test ebx, ebx
jne 0x180052994
mov r9, rdi
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.180059610
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180059810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, r8
lea r14, [0x180150ad0]
mov rdi, rdx
mov rbp, rcx
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1800598d8
nop dword [rax]
mov r9d, ebx
cmp ebx, 2
jge 0x18005984c
xor r9d, 1
test rsi, rsi
je 0x1800598a5
mov rax, qword [rbp + 0x20]
mov r8, rsi
movzx edx, byte [rsi]
movsxd rcx, r9d
shl rcx, 5
mov r10, qword [rcx + rax]
movzx ecx, byte [rdx + r14]
movzx eax, byte [r10]
movzx eax, byte [rax + r14]
sub ecx, eax
jne 0x1800598cd
movzx eax, dl
sub r10, rsi
nop
test al, al
je 0x1800598a1
movzx ecx, byte [r10 + r8 + 1]
inc r8
movzx edx, byte [rcx + r14]
movzx eax, byte [r8]
movzx ecx, byte [rax + r14]
sub ecx, edx
je 0x180059880
jmp 0x1800598cd
test ecx, ecx
jne 0x1800598cd
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r9d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.180014d00
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180059910
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x180059840
movzx edx, byte [rdi]
cmp byte [rdx + r14], 0x73
jne 0x18005990e
lea r8, str.sqlite_master
sub r8, rdi
nop dword [rax]
test dl, dl
je 0x180059923
movzx eax, byte [r8 + rdi + 1]
inc rdi
movzx ecx, byte [rax + r14]
movzx edx, byte [rdi]
movzx eax, byte [rdx + r14]
cmp eax, ecx
je 0x1800598f0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x180059937
neg r9
sbb eax, eax
jmp 0x180059978
test r9, r9
je 0x18005990e
movzx eax, byte [r9]
mov rdx, rsi
movzx r8d, byte [rsi]
movzx ecx, byte [rax + r14]
movzx eax, byte [r8 + r14]
sub eax, ecx
jne 0x180059978
sub r9, rsi
test r8b, r8b
je 0x180059978
movzx eax, byte [r9 + rdx + 1]
inc rdx
movzx ecx, byte [rax + r14]
movzx r8d, byte [rdx]
movzx eax, byte [r8 + r14]
sub eax, ecx
je 0x180059958
test eax, eax
jne 0x18005990e
lea rdi, str.sqlite_temp_master
jmp 0x180059832
Function at 0x180059bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x180059c8d
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r15
lea r15, [0x180150ad0]
mov eax, ebx
cmp ebx, 2
jge 0x180059bf0
xor eax, 1
movsxd rcx, eax
mov rax, qword [rsi + 0x20]
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x180059c4f
mov r10, qword [rcx + rax]
mov r8, rdi
movzx edx, byte [rdi]
movzx eax, byte [r10]
movzx r9d, byte [rdx + r15]
movzx ecx, byte [rax + r15]
sub r9d, ecx
jne 0x180059c67
movzx eax, dl
sub r10, rdi
test al, al
je 0x180059c4a
movzx eax, byte [r8 + 1]
inc r8
movzx ecx, byte [r10 + r8]
movzx r9d, byte [rax + r15]
movzx edx, byte [rcx + r15]
sub r9d, edx
je 0x180059c28
jmp 0x180059c67
test r9d, r9d
jne 0x180059c67
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.180014d00
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x180059c72
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x180059be6
mov rbp, qword [rsp + 0x40]
mov rax, r11
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, r11
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18005c980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rcx, rdi
mov edx, 0x5f
call fcn.18010a300
mov r14, rax
test rax, rax
jne 0x18005c9af
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
lea rbp, [0x180150ad0]
mov byte [rax], 0
xor ebx, ebx
cmp dword [rsi + 0x28], ebx
jle 0x18005ca09
nop word [rax + rax]
mov eax, ebx
cmp ebx, 2
jge 0x18005c9da
xor eax, 1
movsxd rcx, eax
xor r8d, r8d
mov rax, qword [rsi + 0x20]
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.180014d00
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18005ca42
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x18005c9d0
movzx edx, byte [rdi]
cmp byte [rdx + rbp], 0x73
jne 0x18005ca40
lea r8, str.sqlite_master
sub r8, rdi
nop dword [rax]
test dl, dl
je 0x18005cab1
movzx eax, byte [r8 + rdi + 1]
inc rdi
movzx ecx, byte [rax + rbp]
movzx edx, byte [rdi]
movzx eax, byte [rdx + rbp]
cmp eax, ecx
je 0x18005ca20
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov byte [r14], 0x5f
test rax, rax
je 0x18005c9a4
cmp dword [rax + 0x54], 0
je 0x18005c9a4
mov rax, qword [rax + 0x58]
lea rcx, [rsi + 0x1c8]
xor r8d, r8d
mov rdx, qword [rax]
call fcn.180014d00
mov rax, qword [rax + 0x10]
test rax, rax
je 0x18005c9a4
mov rax, qword [rax]
cmp dword [rax], 3
jl 0x18005c9a4
mov rdx, qword [rax + 0xb8]
test rdx, rdx
je 0x18005c9a4
lea rcx, [r14 + 1]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp rdx
mov rax, qword [rsi + 0x20]
cmp qword [rax + 0x20], 0
jne 0x18005ca40
lea rdi, str.sqlite_temp_master
jmp 0x18005c9c3
Function at 0x1800a8f60
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov rbp, rcx
mov ecx, dword [rsp + 0x70]
mov ebx, edi
mov r14d, edi
mov esi, edi
mov r15, r9
call fcn.1800a8f50
movabs rax, 0xaaaaaaaaaaaaaaab
mov rcx, r15
mul r15
shr rdx, 1
lea rax, [rdx + rdx*2]
lea r12, [rdx*4]
sub rcx, rax
je 0x1800a8fd3
test byte [rsp + 0x70], 2
jne 0x1800a8fc9
add r12, 4
jmp 0x1800a8fd3
shr rcx, 1
add r12, 2
add r12, rcx
cmp qword [rsp + 0x58], r12
ja 0x1800a8fdf
call fcn.1800a8a80
test byte [rsp + 0x70], 4
je 0x1800a9065
test r15, r15
je 0x1800a90d5
mov r11, qword [rsp + 0x60]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r14 + r11]
add rdi, 8
shl esi, 8
inc r14
add esi, eax
cmp rdi, 6
jb 0x1800a9041
nop word [rax + rax]
mov eax, esi
sub rdi, 6
mov rcx, rdi
shr eax, cl
and eax, 0x3f
mov ecx, eax
call fcn.1800a8bc0
mov byte [rbx + rbp], al
inc rbx
cmp rdi, 6
jae 0x1800a9020
cmp r14, r15
jb 0x1800a9000
test rdi, rdi
je 0x1800a90d5
mov ecx, 6
sub cl, dil
shl esi, cl
and esi, 0x3f
mov ecx, esi
call fcn.1800a8bc0
jmp 0x1800a90cf
test r15, r15
je 0x1800a90d5
mov r11, qword [rsp + 0x60]
nop
movzx eax, byte [r14 + r11]
add rdi, 8
shl esi, 8
inc r14
add esi, eax
cmp rdi, 6
jb 0x1800a90b1
nop word [rax + rax]
mov eax, esi
sub rdi, 6
mov rcx, rdi
shr eax, cl
and eax, 0x3f
mov ecx, eax
call fcn.1800a8b50
mov byte [rbx + rbp], al
inc rbx
cmp rdi, 6
jae 0x1800a9090
cmp r14, r15
jb 0x1800a9070
test rdi, rdi
je 0x1800a90d5
mov ecx, 6
sub cl, dil
shl esi, cl
and esi, 0x3f
mov ecx, esi
call fcn.1800a8b50
mov byte [rbx + rbp], al
inc rbx
cmp rbx, r12
jae 0x1800a90ee
sub r12, rbx
lea rdi, [rbx + rbp]
mov rcx, r12
mov eax, 0x3d
rep stosb byte [rdi], al
add rbx, r12
mov rax, qword [rsp + 0x58]
mov byte [rbx + rbp], 0
inc rbx
cmp rbx, rax
jb 0x1800a90f3
mov rbx, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1800a92f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
lea r9, [rsp + 0x40]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
test eax, eax
sete cl
neg ecx
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1800a9320
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
lea r9, [rsp + 0x40]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
test eax, eax
sete cl
neg ecx
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1800a9350
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
lea r9, [rsp + 0x40]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
test eax, eax
sete cl
neg ecx
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1800a93a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x1803e36f0], rax
cmp rax, 0xf
ja 0x1800a93c5
call fcn.1800a8a80
mov edx, reloc.WS2_32.dll_recv
lea rcx, [0x1803e36f8]
call fcn.1800a9740
xor eax, eax
add rsp, 0x58
ret

Function at 0x1800a9660
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rcx
xor r9d, r9d
mov qword [rsp + 0x10], rdx
mov r10, r8
mov byte [rsp + 8], 0
test r8, r8
je 0x1800a96ab
nop word [rax + rax]
mov rax, qword [rsp + 0x10]
movzx ecx, byte [rax + r9]
mov rax, qword [rsp + 0x18]
movzx r8d, byte [rax + r9]
inc r9
movzx eax, byte [rsp + 8]
xor r8d, ecx
or eax, r8d
mov byte [rsp + 8], al
cmp r9, r10
jb 0x1800a9680
movzx eax, byte [rsp + 8]
dec eax
sar eax, 8
and eax, 1
dec eax
ret

Function at 0x1800aa000
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1800aa080
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x1800aa024
call fcn.1800a8a80
mov edx, ebx
mov rcx, rdi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1800aa037
call fcn.1800a8a80
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800aa090
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x18
mov rax, rdx
test r9, r9
jne 0x1800aa0c6
mov ebx, 0x79622d32
mov r10d, 0x61707865
mov r11d, 0x3320646e
mov r9d, 0x6b206574
jmp 0x1800aa0d5
mov r10d, dword [r9]
mov r11d, dword [r9 + 4]
mov ebx, dword [r9 + 8]
mov r9d, dword [r9 + 0xc]
mov ecx, dword [r8 + 0x18]
mov edx, dword [r8 + 0x14]
mov r14d, dword [r8]
mov r15d, dword [r8 + 4]
mov r12d, dword [r8 + 8]
mov ebp, dword [r8 + 0xc]
mov r13d, dword [r8 + 0x10]
mov edi, dword [rax + 8]
mov esi, dword [rax + 0xc]
mov dword [rsp + 0x68], ecx
mov ecx, dword [r8 + 0x1c]
mov r8d, dword [rax + 4]
mov dword [rsp + 0x78], edx
mov edx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, dword [rsp + 0x78]
mov qword [rsp + 8], 0xa
nop dword [rax]
lea eax, [rcx + r10]
rol eax, 7
xor ebp, eax
lea eax, [r10 + rbp]
rol eax, 9
xor edi, eax
lea eax, [rdi + rbp]
rol eax, 0xd
xor ecx, eax
lea eax, [rdi + rcx]
ror eax, 0xe
xor r10d, eax
lea eax, [r14 + r11]
rol eax, 7
xor esi, eax
lea eax, [rsi + r11]
rol eax, 9
xor dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
add eax, esi
rol eax, 0xd
xor r14d, eax
mov eax, dword [rsp + 0x68]
add eax, r14d
ror eax, 0xe
xor r11d, eax
lea eax, [rdx + rbx]
rol eax, 7
xor dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
add eax, ebx
rol eax, 9
xor r15d, eax
mov eax, dword [rsp + 0x70]
add eax, r15d
rol eax, 0xd
xor edx, eax
lea eax, [rdx + r15]
ror eax, 0xe
xor ebx, eax
lea eax, [r9 + r13]
rol eax, 7
xor r12d, eax
lea eax, [r12 + r9]
rol eax, 9
xor r8d, eax
lea eax, [r8 + r12]
rol eax, 0xd
xor r13d, eax
lea eax, [r8 + r13]
ror eax, 0xe
xor r9d, eax
lea eax, [r12 + r10]
rol eax, 7
xor r14d, eax
mov dword [rsp], r14d
lea eax, [r14 + r10]
rol eax, 9
xor r15d, eax
lea eax, [r15 + r14]
rol eax, 0xd
xor r12d, eax
lea eax, [r12 + r15]
ror eax, 0xe
xor r10d, eax
lea eax, [r11 + rbp]
rol eax, 7
xor edx, eax
lea eax, [rdx + r11]
rol eax, 9
xor r8d, eax
lea eax, [r8 + rdx]
rol eax, 0xd
xor ebp, eax
lea eax, [r8 + rbp]
ror eax, 0xe
xor r11d, eax
lea eax, [rsi + rbx]
rol eax, 7
xor r13d, eax
lea eax, [rbx + r13]
mov r14d, dword [rsp + 0x70]
rol eax, 9
xor edi, eax
lea eax, [rdi + r13]
rol eax, 0xd
xor esi, eax
lea eax, [rsi + rdi]
ror eax, 0xe
xor ebx, eax
mov eax, dword [rsp + 0x70]
add eax, r9d
rol eax, 7
xor ecx, eax
lea eax, [rcx + r9]
rol eax, 9
xor dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
add eax, ecx
rol eax, 0xd
xor r14d, eax
mov eax, dword [rsp + 0x68]
add eax, r14d
mov dword [rsp + 0x70], r14d
mov r14d, dword [rsp]
ror eax, 0xe
xor r9d, eax
sub qword [rsp + 8], 1
jne 0x1800aa120
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov dword [rcx], r10d
mov dword [rcx + 4], r11d
mov dword [rcx + 8], ebx
mov dword [rcx + 0xc], r9d
mov dword [rcx + 0x10], edx
mov dword [rcx + 0x14], r8d
mov dword [rcx + 0x18], edi
mov dword [rcx + 0x1c], esi
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800b16d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
ret