joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400061ec
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000d608]
jmp 0x14000626e
cmp dword [0x14000cd04], 0
mov rdi, rbx
jne 0x14000624c
cmp dword [0x14000de60], 0
jne 0x14000624c
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x140006214
mov eax, dword [0x14000cd00]
mov ebx, 1
test eax, eax
je 0x140006317
cmp dword [0x14000cd04], 0
jne 0x140006317
cmp dword [0x14000de60], 0
jne 0x140006317
lea r8, [0x14000d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400062d3
mov al, byte [r8 + rcx]
test al, al
je 0x1400062d3
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400062b5
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000de64], 0x20
mov byte [rax], 0
je 0x1400062f4
lea rcx, [rsp + 0x40]
call fcn.140007c40
lea rcx, [0x1400097d0]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000204c
mov eax, dword [0x14000cd00]
cmp word [0x14000de78], bx
je 0x140006387
test eax, eax
je 0x140006387
cmp byte [0x14000c7d0], 0
je 0x140006387
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140006387
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x14000cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x1400063b8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ebx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000114c
mov r8, rbp
mov edx, 0x104
mov rcx, rdi
inc esi
call fcn.140001008
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rdi
call fcn.140007ba8
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400064b6
cmp esi, 0x190
jl 0x1400063e3
mov r9, rdi
lea rdx, [0x14000997c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x140006490
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000644b
mov dword [0x14000cd00], 1
mov ebx, 1
jmp 0x140006490
Function at 0x1400064e4
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x1400065df
lea rdx, [rsp + 0x50]
call fcn.1400063b8
test eax, eax
je 0x140006688
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140006560
mov al, byte [r8 + rcx]
test al, al
je 0x140006560
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140006541
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x1400065cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x1400065bb
sub ecx, 1
je 0x1400065b2
sub ecx, 1
je 0x1400065a9
cmp ecx, 1
jne 0x1400065cc
lea r8, [0x140009998]
jmp 0x1400065c2
lea r8, str.alpha
jmp 0x1400065c2
lea r8, str.mips
jmp 0x1400065c2
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.140007ba8
lea r8, [0x140009700]
mov edx, edi
mov rcx, rbx
call fcn.140007ba8
jmp 0x14000661e
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140006610
mov al, byte [r9 + rcx]
test al, al
je 0x140006610
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x1400065f1
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140006b70
test eax, eax
jne 0x140006649
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000667d
mov dword [0x14000cd00], 1
test esi, esi
je 0x14000668c
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140006ca4
test eax, eax
jne 0x14000668c
cmp dword [0x14000cd00], eax
je 0x140006688
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
nop dword [rax + rax]
jmp 0x140006688
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
jmp 0x140006698
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140008470
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140006b8b
add ebx, 0x14
mov ecx, 0x40
mov edx, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140006bf5
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004dcc
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140001008
lea r8, str.TMP4351_.TMP
mov edx, ebx
mov rcx, rsi
call fcn.140007ba8
and qword [rsp + 0x30], 0
mov ebp, 1
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
nop dword [rax + rax]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140006bd2
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140006bd2
test al, 0x10
je 0x140006bd2
and dword [0x14000d544], 0
mov eax, ebp
jmp 0x140006bdf
Function at 0x14000772c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x1400077c9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007813
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007792
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
test eax, eax
je 0x140007803
call qword [sym.imp.KERNEL32.DLL_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.14000114c
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x14000775e
jmp 0x14000781f
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_FreeResource]
nop dword [rax + rax]
jmp 0x14000781f
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140007a44
mov al, byte [r9 + rcx]
test al, al
je 0x140007a44
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140007a25
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.140007ba8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140007a96
test al, 0x10
jne 0x140007a96
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x140007aa9
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008470
add rsp, 0x148
ret
Function at 0x140007ac8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
nop dword [rax + rax]
test rax, rax
je 0x140007b63
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140007b63
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x140007b3a
and qword [rsp + 0x20], rax
jmp 0x140007b3f
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
nop dword [rax + rax]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_FreeResource]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jne 0x140007b87
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004dcc
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007f04
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x14000809c
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.DLL_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008096
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140008096
cmp dword [rsp + 0x54], 4
jne 0x140008096
cmp dword [rsp + 0x58], 0xa
jae 0x140008096
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008096
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008096
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x140009700]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008096
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x14000803f
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008065
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x140008076
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
jmp 0x14000802a
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140008096
and edi, 0x3ff
cmp edi, esi
je 0x14000808e
cmp edi, 0xd
jne 0x140008096
mov dword [0x14000c20c], esi
jmp 0x14000809c
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140008470
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140008218
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140008964
add rsp, 0x28
jmp 0x140008218
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000cb78], rbx
je 0x140008262
cmp rax, rbx
jne 0x140008277
mov edi, 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140008284
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x1400082f1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14000824b
mov eax, dword [0x14000cb80]
test eax, eax
jne 0x1400082e7
mov dword [0x14000cb80], 1
lea r14, [0x140009688]
lea rbx, [0x140009670]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x1400082d9
test eax, eax
jne 0x1400082dd
cmp qword [rbx], 0
je 0x1400082ce
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400082af
test eax, eax
je 0x1400082f1
mov eax, 0xff
jmp 0x140008444
mov dword [0x14000c224], 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140008319
lea rdx, [0x140009668]
lea rcx, [0x140009658]
call sub.msvcrt.dll__initterm
mov dword [0x14000cb80], 2
test edi, edi
jne 0x140008326
xor eax, eax
xchg qword [0x14000cb78], rax
cmp qword [0x14000cb88], 0
je 0x14000835a
lea rcx, [0x14000cb88]
call fcn.1400088d0
test eax, eax
je 0x14000835a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000cb88]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x1400083e6
test cl, cl
je 0x14000837d
test edi, edi
jne 0x1400083e6
dec cl
cmp cl, 0x1f
ja 0x140008390
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14000837d
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002c54
mov dword [0x14000c220], eax
cmp dword [0x14000c240], 0
jne 0x1400083cf
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c224], 0
jne 0x1400083e4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c220]
jmp 0x140008444
cmp cl, 0x22
jne 0x1400083f8
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14000840a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14000836d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x180001e70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1801705d0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180001fe8
mov ecx, 0x228
call fcn.18000af90
mov rbx, rax
test rax, rax
je 0x180001fe8
xor edx, edx
mov r8d, 0x228
mov rcx, rax
call fcn.18012d640
test rdi, rdi
je 0x180001f33
lea r9, [0x18014ca78]
mov r8, rdi
lea r10, [0x180143970]
sub r9, rdi
nop
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x18000200b
test ecx, ecx
jne 0x18000201d
lea rdi, [0x180178cb0]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call fcn.18012d640
lea rcx, str.SystemDrive
mov r8d, 0x8000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x180001f31
cmp eax, 0x8000
jbe 0x180001f33
xor edi, edi
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012d640
lea r8, str._s
lea rcx, [rsp + 0x54]
mov r9, rdi
mov edx, 0x104
call fcn.1801289c4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x54]
call fcn.18012914c
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x180001fe0
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x180001f86
test al, 4
je 0x180002025
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012d640
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.180129294
cmp eax, 0xffffffff
je 0x180001fe0
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x180001fbc
test al, 4
je 0x180002025
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012d640
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.180129294
cmp eax, 0xffffffff
jne 0x180001fb0
mov rcx, rbx
call fcn.180002150
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180127700
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 0x180001f33
inc r8
jmp 0x180001ee0
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x54]
mov r8d, 0x104
mov dword [rbx + 0xc], eax
call fcn.1801293d0
mov byte [rbx + 0x114], 0
mov rax, rbx
jmp 0x180001fea
Function at 0x180004820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
lea rdx, [0x180143800]
mov rcx, rax
call fcn.18012964c
mov rdi, rax
test rax, rax
je 0x18000499d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rbp
lea r8d, [rdx + 2]
call fcn.180129fb8
mov rcx, rdi
call fcn.180129dd8
mov rcx, rdi
movsxd rbp, eax
call fcn.180128508
mov r11, qword [rbx]
mov rax, qword [r11 + 0x18]
movsxd rcx, dword [rax + 0x88]
cmp rbp, rcx
jle 0x1800048d6
mov dword [rbx + 0x24], 0x12
test byte [r11 + 0x14], 1
je 0x1800048bf
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.18003ac20
mov rcx, rdi
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.18012a154
mov qword [rsp + 0x48], rsi
test rbp, rbp
mov esi, 1
cmovne rsi, rbp
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180004983
test rsi, rsi
je 0x180004983
mov rcx, rsi
call fcn.18000af90
mov rsi, rax
test rax, rax
je 0x180004983
mov r9, rdi
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.180129938
cmp rbp, rax
jne 0x18000493c
lea r9, [sym.sqlite.dll_sqlite3_free]
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call sym.sqlite.dll_sqlite3_result_blob64
jmp 0x18000498b
mov rax, qword [rbx]
mov dword [rbx + 0x24], 0xa
test byte [rax + 0x14], 1
je 0x180004979
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.18003ac20
mov rcx, rsi
call sym.sqlite.dll_sqlite3_free
jmp 0x18000498b
mov rcx, rbx
call sym.sqlite.dll_sqlite3_result_error_nomem
mov rcx, rdi
call fcn.18012a154
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000e130
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 0x18000e324
cmp byte [0x180171924], al
mov qword [rsp + 0x40], rsi
jne 0x18000e15e
xor esi, esi
jmp 0x18000e17a
mov ecx, 5
call qword [0x180171990]
mov rsi, rax
test rax, rax
je 0x18000e17a
mov rcx, rax
call qword [0x1801719a0]
test edi, edi
jle 0x18000e307
test r12, r12
je 0x18000e307
cmp dword [0x180180de0], 0
mov qword [rsp + 0x30], rbx
jne 0x18000e288
mov qword [rsp + 0x38], rbp
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x18000e1af
xor ebp, ebp
jmp 0x18000e1ed
cmp byte [0x180171924], 0
jne 0x18000e1bc
xor ebx, ebx
jmp 0x18000e1d8
mov ecx, 2
call qword [0x180171990]
mov rbx, rax
test rax, rax
je 0x18000e1d8
mov rcx, rax
call qword [0x1801719a0]
mov rbp, qword [0x1801810e8]
test rbx, rbx
je 0x18000e1ed
mov rcx, rbx
call qword [0x1801719b0]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x180180de0], xmm0
test rbp, rbp
jne 0x18000e214
lea r8d, [rbp + 0x2c]
lea rcx, [0x180180df0]
xor edx, edx
call fcn.18012d640
jmp 0x18000e263
mov eax, dword [0x180171ad0]
test eax, eax
je 0x18000e251
xor ecx, ecx
mov qword [0x180180df0], rcx
mov dword [0x180180df0], eax
mov qword [0x180180df8], rcx
mov qword [0x180180e00], rcx
mov qword [0x180180e08], rcx
mov qword [0x180180e10], rcx
mov dword [0x180180e18], ecx
jmp 0x18000e263
lea r8, [0x180180df0]
mov edx, 0x2c
mov rcx, rbp
call qword [rbp + 0x68]
mov eax, dword [0x180180e10]
mov rbp, qword [rsp + 0x38]
xor cl, cl
mov dword [0x180180e10], 0
mov byte [0x180180e60], cl
mov dword [0x180180e1c], eax
jmp 0x18000e28f
movzx ecx, byte [0x180180e60]
movzx eax, cl
lea rbx, [0x180180e20]
cmp edi, eax
jle 0x18000e2e3
nop dword [rax]
test cl, cl
je 0x18000e2c1
movzx r8d, cl
mov rdx, rbx
mov rcx, r12
call fcn.1801278d0
movzx r11d, byte [0x180180e60]
sub edi, r11d
add r12, r11
inc dword [0x180180e10]
lea rdx, [0x180180de0]
mov rcx, rbx
call fcn.18000de30
mov cl, 0x40
mov byte [0x180180e60], cl
cmp edi, 0x40
jg 0x18000e2a0
movzx eax, cl
movsxd r8, edi
mov rcx, r12
sub eax, edi
movsxd rdx, eax
add rdx, rbx
call fcn.1801278d0
sub byte [0x180180e60], dil
mov rbx, qword [rsp + 0x30]
jmp 0x18000e311
mov dword [0x180180de0], 0
test rsi, rsi
je 0x18000e31f
mov rcx, rsi
call qword [0x1801719b0]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret