joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000247c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
lea rcx, [0x1000013f0]
call main
lea rcx, [0x100001430]
call main
lea rcx, [0x100001470]
call main
lea rcx, [0x1000013f0]
call main
lea rcx, [0x100001580]
call main
call fcn.1000026e8
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
mov byte [rsp + 0x78], 0
call sub.ntdll.dll_memset
xor edx, edx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea ecx, [rdx + 2]
mov r9d, 0x1000
mov r8d, 0x100000
mov dword [rsp + 0x30], 0x30
call sub.ntdll.dll_RtlCreateHeap
test rax, rax
mov qword [0x100004690], rax
jne 0x100002521
lea rcx, [0x1000011a8]
call main
jmp 0x1000025f0
xor ecx, ecx
call sub.ntdll.dll_NtInitializeRegistry
xor r8d, r8d
lea r9, [rsp + 0x78]
lea ecx, [r8 + 7]
mov dl, 1
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
je 0x10000254b
lea rcx, [0x1000011c0]
jmp 0x1000025e9
xor r8d, r8d
lea r9, [rsp + 0x78]
mov dl, 1
lea ecx, [r8 + 8]
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
je 0x10000256b
lea rcx, [0x1000011f0]
jmp 0x1000025e9
xor r8d, r8d
lea r9, [rsp + 0x78]
mov dl, 1
lea ecx, [r8 + 0x13]
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
je 0x10000258b
lea rcx, [0x100001228]
jmp 0x1000025e9
xor r8d, r8d
lea r9, [rsp + 0x78]
mov dl, 1
lea ecx, [r8 + 0x11]
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
je 0x1000025ab
lea rcx, [0x100001260]
jmp 0x1000025e9
xor r8d, r8d
lea r9, [rsp + 0x78]
mov dl, 1
lea ecx, [r8 + 0x12]
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
je 0x1000025cb
lea rcx, [0x100001288]
jmp 0x1000025e9
xor r8d, r8d
lea r9, [rsp + 0x78]
mov dl, 1
lea ecx, [r8 + 5]
call sub.ntdll.dll_RtlAdjustPrivilege
test eax, eax
je 0x100002601
lea rcx, [0x1000012b0]
mov edx, eax
call main
lea rcx, [0x1000015c8]
call main
jmp 0x1000026ce
mov ecx, 4
call fcn.100002bd8
call fcn.100001a60
test eax, eax
jne 0x10000261d
lea rcx, [0x1000015e0]
jmp 0x1000025f7
call fcn.100002250
lea rdx, [rsp + 0x80]
xor ecx, ecx
mov qword [rsp + 0x80], 0xfffffffffe363c80
call qword [sym.imp.ntdll.dll_NtDelayExecution]
cmp dword [0x100004680], 0
je 0x10000265a
xor ecx, ecx
call fcn.100002198
mov ecx, 8
call fcn.100002bd8
jmp 0x100002666
lea rcx, [0x1000015f8]
call main
cmp dword [0x100004680], 0
je 0x1000026b2
cmp dword [0x100004684], 6
jne 0x10000267d
call fcn.100002984
lea rcx, [0x100001610]
call main
lea rdx, [rsp + 0x80]
xor ecx, ecx
mov qword [rsp + 0x80], 0xfffffffffc6c7900
call qword [sym.imp.ntdll.dll_NtDelayExecution]
mov ecx, 1
call qword [sym.imp.ntdll.dll_NtShutdownSystem]
jmp 0x1000026ce
lea rdx, [rsp + 0x80]
xor ecx, ecx
mov qword [rsp + 0x80], 0xfffffffffe363c80
call qword [sym.imp.ntdll.dll_NtDelayExecution]
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
add rsp, 0x68
ret
Function at 0x1000026e8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20a0
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x100004100]
xor rax, rsp
mov qword [rsp + 0x2090], rax
xor ebx, ebx
mov edi, 0x2000
lea rcx, [rsp + 0x90]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x38], ebx
mov ebp, ebx
call sub.ntdll.dll_memset
lea rdx, [0x100001630]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x30]
mov edx, 0xf003f
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
je 0x1000027a6
lea rcx, [0x1000016b8]
mov edx, eax
call main
or eax, 0xffffffff
jmp 0x100002953
lea rdx, [0x1000016f0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r8d, 2
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, ebx
je 0x100002800
lea rcx, [0x100001708]
mov edx, eax
call main
mov ebx, 0xfffffffe
jmp 0x100002946
mov edx, dword [rsp + 0x94]
cmp edx, 7
je 0x100002822
lea rcx, [0x100001730]
call main
mov ebx, 0xfffffffd
jmp 0x100002946
lea rsi, [rsp + 0x9c]
lea r9, [0x100001748]
cmp word [rsi], bx
je 0x100002946
mov rdi, rsi
mov r8d, 8
mov rdx, r9
sub rdi, r9
movzx ecx, word [rdi + rdx]
cmp cx, 0x5a
ja 0x10000285d
cmp cx, 0x41
jb 0x10000285d
add cx, 0x20
movzx eax, word [rdx]
cmp ax, 0x5a
ja 0x100002870
cmp ax, 0x41
jb 0x100002870
add ax, 0x20
add rdx, 2
add r8d, 0xffffffff
je 0x100002884
cmp cx, bx
je 0x100002884
cmp cx, ax
je 0x100002849
movzx eax, ax
movzx ecx, cx
mov rdi, rsi
sub ecx, eax
je 0x1000028b6
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov eax, ecx
lea ebp, [rbp + rcx + 1]
lea rsi, [rsi + rax*2 + 2]
cmp rsi, rbx
jne 0x100002831
jmp 0x100002946
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
movsxd rax, ecx
lea rdx, [rsi + rax*2 + 2]
cmp word [rdx], bx
jne 0x1000028e0
mov word [rsi], bx
mov word [rsi + 2], bx
lea eax, [rbp + rbp]
jmp 0x100002908
mov edi, dword [rsp + 0x98]
shr edi, 1
sub edi, ecx
mov rcx, rsi
sub edi, ebp
mov r8d, edi
add r8, r8
call sub.ntdll.dll_memmove
lea edx, [rdi + 1]
lea eax, [rbp + rdi]
mov word [rsi + rdx*2], bx
add eax, eax
mov r9d, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x9c]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
cmp eax, ebx
je 0x100002946
lea rcx, [0x100001760]
mov edx, eax
call main
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rsp + 0x2090]
xor rcx, rsp
call fcn.100002d40
lea r11, [rsp + 0x20a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100002984
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0xb0
lea rdx, [0x100001780]
lea rcx, [rax - 0x48]
xor edi, edi
mov byte [rax + 8], dil
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
lea ecx, [rdi + 0x40]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x98], ecx
mov qword [rsp + 0x90], rax
xor eax, eax
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0xd0]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x80]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, edi
mov ebx, eax
je 0x100002a4d
lea rcx, [0x1000017b8]
call main
jmp 0x100002bbe
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0xc8], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xcc], edi
mov byte [rsp + 0xc0], 0x10
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, edi
mov ebx, eax
je 0x100002abb
cmp eax, 0x103
jne 0x100002bb0
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0xc8], 0xa
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xcc], edi
mov byte [rsp + 0xc0], 1
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, edi
mov ebx, eax
je 0x100002b2d
cmp eax, 0x103
jne 0x100002bb0
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0xc8], 0xb
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xcc], edi
mov byte [rsp + 0xc0], 1
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, edi
mov ebx, eax
je 0x100002b9b
cmp eax, 0x103
jne 0x100002bb0
mov rcx, qword [rsp + 0xd0]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtFlushBuffersFile]
mov ebx, edi
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0xd8]
add rsp, 0xb0
pop rdi
ret
Function at 0x100002bd8
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0xb0
lea rdx, [0x1000012f0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x88], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0xa8], 0
mov ecx, 0x40
lea rax, [rsp + 0x70]
mov qword [rsp + 0x90], rax
xor eax, eax
mov dword [rsp + 0x98], ecx
and dword [rsp + 0x50], eax
and qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], 1
and dword [rsp + 0x30], eax
lea rcx, [rsp + 0xc8]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x80]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rax
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
jne 0x100002d1b
and dword [rsp + 0xd4], eax
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xd0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xd0], 8
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
mov ebx, eax
je 0x100002cf6
cmp eax, 0x103
jne 0x100002d0b
mov rcx, qword [rsp + 0xc8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtFlushBuffersFile]
xor ebx, ebx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
add rsp, 0xb0
pop rbx
ret

Function at 0x100002d68
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100004100]
jne 0x100002d5a
rol rcx, 0x10
test cx, 0xffff
jne 0x100002d56
repz ret
ror rcx, 0x10
jmp 0x100002d68
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x1000041b0]
mov rcx, rsi
call sub.ntdll.dll_RtlCaptureContext
mov rdi, qword [0x1000042a8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call sub.ntdll.dll_RtlLookupFunctionEntry
test rax, rax
je 0x100002dd8
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_RtlVirtualUnwind
mov r11, qword [0x1000042a8]
jmp 0x100002df4
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x1000042a8], r11
mov qword [0x100004248], rax
mov rax, qword [0x100004100]
mov qword [0x100004230], rbx
mov qword [0x100004120], r11
mov dword [0x100004114], 1
mov ebx, 0xc0000409
lea rcx, [0x100001150]
mov dword [0x100004110], ebx
mov qword [rsp + 0x78], rax
mov rax, qword [0x100004108]
mov qword [rsp + 0x78], rax
call sub.ntdll.dll_RtlUnhandledExceptionFilter
mov edx, ebx
or rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtTerminateProcess
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x100002df4
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100004100]
jne 0x100002d5a
rol rcx, 0x10
test cx, 0xffff
jne 0x100002d56
repz ret
ror rcx, 0x10
jmp 0x100002d68
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x1000041b0]
mov rcx, rsi
call sub.ntdll.dll_RtlCaptureContext
mov rdi, qword [0x1000042a8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call sub.ntdll.dll_RtlLookupFunctionEntry
test rax, rax
je 0x100002dd8
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_RtlVirtualUnwind
mov r11, qword [0x1000042a8]
jmp 0x100002df4
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x1000042a8], r11
mov qword [0x100004248], rax
mov rax, qword [0x100004100]
mov qword [0x100004230], rbx
mov qword [0x100004120], r11
mov dword [0x100004114], 1
mov ebx, 0xc0000409
lea rcx, [0x100001150]
mov dword [0x100004110], ebx
mov qword [rsp + 0x78], rax
mov rax, qword [0x100004108]
mov qword [rsp + 0x78], rax
call sub.ntdll.dll_RtlUnhandledExceptionFilter
mov edx, ebx
or rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtTerminateProcess
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140771058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407711df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140771089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077106f
add dl, dl
jne 0x140771096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407710f6
xor eax, eax
add dl, dl
jne 0x1407710a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407711ad
add dl, dl
jne 0x1407710b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407710c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407710d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407710dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407710ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14077107e
mov eax, 1
add dl, dl
jne 0x140771106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140771113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407710fb
sub eax, ebx
mov ebx, 1
jne 0x14077114c
mov ecx, 1
add dl, dl
jne 0x14077112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140771123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140771168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140771175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077115d
cmp eax, 0x7d00
jae 0x14077119b
cmp eax, 0x500
jb 0x140771196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077107e
cmp eax, 0x7f
ja 0x14077119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407711d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14077107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002cd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1801715d0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180002e48
mov ecx, 0x228
call fcn.18000be40
mov rbx, rax
test rax, rax
je 0x180002e48
xor edx, edx
mov r8d, 0x228
mov rcx, rax
call fcn.18012e4b0
test rdi, rdi
je 0x180002d93
lea r9, [0x18014dd68]
mov r8, rdi
lea r10, [0x180144c60]
sub r9, rdi
nop
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x180002e6b
test ecx, ecx
jne 0x180002e7d
lea rdi, [0x180179cb0]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call fcn.18012e4b0
lea rcx, str.SystemDrive
mov r8d, 0x8000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x180002d91
cmp eax, 0x8000
jbe 0x180002d93
xor edi, edi
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012e4b0
lea r8, str._s
lea rcx, [rsp + 0x54]
mov r9, rdi
mov edx, 0x104
call fcn.180129834
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x54]
call fcn.180129fbc
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x180002e40
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x180002de6
test al, 4
je 0x180002e85
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012e4b0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.18012a104
cmp eax, 0xffffffff
je 0x180002e40
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x180002e1c
test al, 4
je 0x180002e85
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012e4b0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.18012a104
cmp eax, 0xffffffff
jne 0x180002e10
mov rcx, rbx
call fcn.180002fb0
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180128570
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
movzx edx, byte [rax + r10]
movzx ecx, byte [rcx + r10]
sub ecx, edx
jne 0x180002d93
inc r8
jmp 0x180002d40
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x54]
mov r8d, 0x104
mov dword [rbx + 0xc], eax
call fcn.18012a240
mov byte [rbx + 0x114], 0
mov rax, rbx
jmp 0x180002e4a
Function at 0x180005680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
lea rdx, [0x180144af0]
mov rcx, rax
call fcn.18012a4bc
mov rdi, rax
test rax, rax
je 0x1800057fd
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rbp
lea r8d, [rdx + 2]
call fcn.18012ae28
mov rcx, rdi
call fcn.18012ac48
mov rcx, rdi
movsxd rbp, eax
call fcn.180129378
mov r11, qword [rbx]
mov rax, qword [r11 + 0x18]
movsxd rcx, dword [rax + 0x88]
cmp rbp, rcx
jle 0x180005736
mov dword [rbx + 0x24], 0x12
test byte [r11 + 0x14], 1
je 0x18000571f
mov rax, qword [str.string_or_blob_too_big]
lea rdx, str.unknown_error
mov r9b, 1
test rax, rax
mov rcx, rbx
mov qword [rsp + 0x20], 0
cmovne rdx, rax
or r8d, 0xffffffff
call fcn.18003bb90
mov rcx, rdi
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.18012afc4
mov qword [rsp + 0x48], rsi
test rbp, rbp
mov esi, 1
cmovne rsi, rbp
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800057e3
test rsi, rsi
je 0x1800057e3
mov rcx, rsi
call fcn.18000be40
mov rsi, rax
test rax, rax
je 0x1800057e3
mov r9, rdi
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.18012a7a8
cmp rbp, rax
jne 0x18000579c
lea r9, [sym.sqlite.dll_sqlite3_free]
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call sym.sqlite.dll_sqlite3_result_blob64
jmp 0x1800057eb
mov rax, qword [rbx]
mov dword [rbx + 0x24], 0xa
test byte [rax + 0x14], 1
je 0x1800057d9
mov rax, qword [str.disk_I_O_error]
lea rdx, str.unknown_error
mov r9b, 1
test rax, rax
mov rcx, rbx
mov qword [rsp + 0x20], 0
cmovne rdx, rax
or r8d, 0xffffffff
call fcn.18003bb90
mov rcx, rsi
call sym.sqlite.dll_sqlite3_free
jmp 0x1800057eb
mov rcx, rbx
call sym.sqlite.dll_sqlite3_result_error_nomem
mov rcx, rdi
call fcn.18012afc4
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000efe0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov r12, rdx
mov edi, ecx
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18000f1d4
cmp byte [0x180172924], al
mov qword [rsp + 0x40], rsi
jne 0x18000f00e
xor esi, esi
jmp 0x18000f02a
mov ecx, 5
call qword [0x180172990]
mov rsi, rax
test rax, rax
je 0x18000f02a
mov rcx, rax
call qword [0x1801729a0]
test edi, edi
jle 0x18000f1b7
test r12, r12
je 0x18000f1b7
cmp dword [0x180181de0], 0
mov qword [rsp + 0x30], rbx
jne 0x18000f138
mov qword [rsp + 0x38], rbp
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x18000f05f
xor ebp, ebp
jmp 0x18000f09d
cmp byte [0x180172924], 0
jne 0x18000f06c
xor ebx, ebx
jmp 0x18000f088
mov ecx, 2
call qword [0x180172990]
mov rbx, rax
test rax, rax
je 0x18000f088
mov rcx, rax
call qword [0x1801729a0]
mov rbp, qword [0x1801820e8]
test rbx, rbx
je 0x18000f09d
mov rcx, rbx
call qword [0x1801729b0]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x180181de0], xmm0
test rbp, rbp
jne 0x18000f0c4
lea r8d, [rbp + 0x2c]
lea rcx, [0x180181df0]
xor edx, edx
call fcn.18012e4b0
jmp 0x18000f113
mov eax, dword [0x180172ad0]
test eax, eax
je 0x18000f101
xor ecx, ecx
mov qword [0x180181df0], rcx
mov dword [0x180181df0], eax
mov qword [0x180181df8], rcx
mov qword [0x180181e00], rcx
mov qword [0x180181e08], rcx
mov qword [0x180181e10], rcx
mov dword [0x180181e18], ecx
jmp 0x18000f113
lea r8, [0x180181df0]
mov edx, 0x2c
mov rcx, rbp
call qword [rbp + 0x68]
mov eax, dword [0x180181e10]
mov rbp, qword [rsp + 0x38]
xor cl, cl
mov dword [0x180181e10], 0
mov byte [0x180181e60], cl
mov dword [0x180181e1c], eax
jmp 0x18000f13f
movzx ecx, byte [0x180181e60]
movzx eax, cl
lea rbx, [0x180181e20]
cmp edi, eax
jle 0x18000f193
nop dword [rax]
test cl, cl
je 0x18000f171
movzx r8d, cl
mov rdx, rbx
mov rcx, r12
call fcn.180128740
movzx r11d, byte [0x180181e60]
sub edi, r11d
add r12, r11
inc dword [0x180181e10]
lea rdx, [0x180181de0]
mov rcx, rbx
call fcn.18000ece0
mov cl, 0x40
mov byte [0x180181e60], cl
cmp edi, 0x40
jg 0x18000f150
movzx eax, cl
movsxd r8, edi
mov rcx, r12
sub eax, edi
movsxd rdx, eax
add rdx, rbx
call fcn.180128740
sub byte [0x180181e60], dil
mov rbx, qword [rsp + 0x30]
jmp 0x18000f1c1
mov dword [0x180181de0], 0
test rsi, rsi
je 0x18000f1cf
mov rcx, rsi
call qword [0x1801729b0]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18004add0
Capabilities:
Create thread

Disassembly:
mov rax, rcx
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x18004adfc
cmp dword [rcx + 0x20], 0
je 0x18004adf4
mov rcx, qword [rcx]
lea rdx, [0x18004ada0]
mov r8, rax
jmp fcn.18000f210
mov rcx, rax
jmp fcn.18004ac90
xor eax, eax
ret

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

Disassembly:
push rbx
push r12
sub rsp, 0x28
mov rbx, rdx
movzx edx, byte [rdx]
mov r12, rcx
movzx eax, dl
cmp dl, 0xb0
jne 0x18005708d
movzx eax, byte [rbx + 2]
cmp al, 0xb1
jne 0x180057099
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax]
jmp 0x1800570ab
cmp al, 0x8a
jne 0x180057142
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x20]
mov ecx, dword [rcx]
cmp ecx, 1
je 0x180057142
mov qword [rsp + 0x48], rsi
xor esi, esi
mov dword [r8], esi
cmp dl, 0x8a
jne 0x1800570da
mov rdx, rbx
mov rcx, r12
mov rsi, qword [rsp + 0x48]
add rsp, 0x28
pop r12
pop rbx
jmp fcn.180055170
mov eax, dword [r12 + 0x38]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r13
lea edi, [rax + 1]
add eax, ecx
movsxd r13, ecx
mov dword [r12 + 0x38], eax
test ecx, ecx
jle 0x18005713e
mov qword [rsp + 0x40], rbp
mov ebp, edi
mov rdx, qword [rbx + 0x20]
mov r8d, ebp
mov rcx, r12
mov rdx, qword [rdx + rsi + 8]
call fcn.1800599e0
inc ebp
add rsi, 0x20
dec r13
jne 0x180057101
mov rbp, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
add rsp, 0x28
pop r12
pop rbx
ret
mov eax, edi
jmp 0x180057127
mov rdx, rbx
mov rcx, r12
add rsp, 0x28
pop r12
pop rbx
jmp fcn.180059630

Function at 0x18005be40
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 r12
sub rsp, 0x40
mov r12d, dword [rsp + 0x70]
mov ebx, r8d
mov rbp, r9
mov dword [rax - 0x18], r12d
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.180064b90
test ebx, ebx
jne 0x18005bea9
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], r12d
call fcn.180064b90
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret