joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052020
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x80
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx r14d, dl
mov rsi, rcx
call fcn.140054240
test eax, eax
jne 0x140052057
mov eax, 0x80004005
jmp 0x1400521d9
mov rcx, qword [0x1401cb258]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0xa0], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rdi, str.E8492D05_6F1D_4389_944B_CB95FA083F24
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.1400549c0
test eax, eax
js 0x1400521d1
mov qword [rsp + 0x98], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov r9d, 0x20006
mov qword [rsp + 0x48], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
call fcn.140013200
test eax, eax
je 0x1400520eb
mov ecx, eax
call fcn.14004e670
mov ebx, eax
jmp 0x1400521b4
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
call fcn.140012c90
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x140052139
mov ecx, eax
call fcn.14004e670
mov ebx, eax
jmp 0x1400521a6
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x1400521a6
lea r8, [rsi + 0x48]
test r8, r8
je 0x140052195
mov rax, 0xffffffffffffffff
nop
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140052160
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], r8
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.14004edd0
test eax, eax
jne 0x1400521a6
mov ebx, 0x80004005
test rdi, rdi
je 0x1400521b4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x1400521c7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140142180
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop r14
ret
Function at 0x1400526e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.140144890
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140052777
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140052777
call fcn.14001e030
mov ebx, eax
jmp 0x14005289c
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140052798
call fcn.14001e030
jmp 0x14005288b
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400527bb
call fcn.14001e030
jmp 0x14005288b
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400527dd
mov ebx, 0x8007000e
jmp 0x14005288d
mov ecx, eax
test eax, eax
je 0x140052812
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400528d4
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140052812
lea rcx, [rsp + 0x60]
call fcn.14004e4e0
jmp 0x14005281c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14005282f
cmp qword [rsp + 0x60], 0
jne 0x14005283e
mov ebx, 0x8007000e
jmp 0x14005288d
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140052868
call fcn.14001e030
jmp 0x14005288b
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140052200
mov ebx, eax
test rdi, rdi
je 0x14005289c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x1400528b3
lea rcx, [rsp + 0x60]
call fcn.14004ea70
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140142180
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.14001e060
int3
Function at 0x140053ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r12d, r12d
lea r8, str.AppID
mov r15d, edx
mov qword [rsp + 0x50], r12
mov rbx, rcx
mov qword [rsp + 0x48], r12
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x48]
mov r9d, 0x20019
call fcn.140013200
mov edi, eax
test eax, eax
je 0x140053d56
mov dword [rbx + 0x25c], eax
jmp 0x140053e69
mov rdx, qword [rsp + 0x48]
lea r8, str.E8492D05_6F1D_4389_944B_CB95FA083F24
mov r9d, 0x20019
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
call fcn.140013200
mov edi, eax
test eax, eax
je 0x140053d92
mov dword [rbx + 0x25c], eax
jmp 0x140053e57
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x60], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140053ded
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x140053ded
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140053e09
test al, 1
jne 0x140053ded
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r12w
je 0x140053e0e
mov edx, r15d
mov dword [rbx + 0x26c], r12d
mov rcx, rbx
call fcn.140053590
mov edi, eax
mov dword [rbx + 0x25c], eax
jmp 0x140053e57
mov word [rbp - 0x70], r12w
lea rax, [rbx + 0x48]
mov dword [rbx + 0x26c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x140055110]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r12
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140053e51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x25c], eax
mov edi, dword [rbx + 0x25c]
cmp qword [rsp + 0x30], r12
je 0x140053e69
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x48], r12
je 0x140053e7b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140142180
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
push rbx
sub rsp, 0x30
cmp byte [0x1401cb261], 0
mov ebx, r9d
je 0x14005516d
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x1401c8990]
call fcn.140051920
cmp al, 1
jne 0x1400551a6
mov edx, ebx
lea rcx, [0x1401c8990]
add rsp, 0x30
pop rbx
jmp 0x140053ce0
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x140054600
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.140054240
test eax, eax
jne 0x140054639
mov eax, 0x80004005
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140142180
add rsp, 0x88
ret
mov qword [rsp + 0x80], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov qword [rsp + 0x40], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbx
call fcn.140013200
test eax, eax
je 0x140054682
mov ecx, eax
call fcn.14004e670
mov ebx, eax
jmp 0x140054716
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rbx
mov r9d, 0x20006
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
lea rbx, str.E8492D05_6F1D_4389_944B_CB95FA083F24
mov r8, rbx
call fcn.140013200
test eax, eax
je 0x1400546bd
mov ecx, eax
call fcn.14004e670
jmp 0x140054701
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x1401cb258]
lea rax, str.APPID
xor r8d, r8d
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
mov qword [rsp + 0x58], rbx
lea r9, [rsp + 0x50]
movdqu xmmword [rsp + 0x60], xmm0
lea edx, [r8 + 0x65]
call fcn.1400549c0
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x140054716
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x140054729
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140142180
add rsp, 0x88
ret
Function at 0x140055150
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r12d, r12d
lea r8, str.AppID
mov r15d, edx
mov qword [rsp + 0x50], r12
mov rbx, rcx
mov qword [rsp + 0x48], r12
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x48]
mov r9d, 0x20019
call fcn.140013200
mov edi, eax
test eax, eax
je 0x140053d56
mov dword [rbx + 0x25c], eax
jmp 0x140053e69
mov rdx, qword [rsp + 0x48]
lea r8, str.E8492D05_6F1D_4389_944B_CB95FA083F24
mov r9d, 0x20019
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
call fcn.140013200
mov edi, eax
test eax, eax
je 0x140053d92
mov dword [rbx + 0x25c], eax
jmp 0x140053e57
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x60], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140053ded
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x140053ded
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140053e09
test al, 1
jne 0x140053ded
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r12w
je 0x140053e0e
mov edx, r15d
mov dword [rbx + 0x26c], r12d
mov rcx, rbx
call fcn.140053590
mov edi, eax
mov dword [rbx + 0x25c], eax
jmp 0x140053e57
mov word [rbp - 0x70], r12w
lea rax, [rbx + 0x48]
mov dword [rbx + 0x26c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x140055110]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r12
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140053e51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x25c], eax
mov edi, dword [rbx + 0x25c]
cmp qword [rsp + 0x30], r12
je 0x140053e69
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x48], r12
je 0x140053e7b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140142180
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
push rbx
sub rsp, 0x30
cmp byte [0x1401cb261], 0
mov ebx, r9d
je 0x14005516d
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x1401c8990]
call fcn.140051920
cmp al, 1
jne 0x1400551a6
mov edx, ebx
lea rcx, [0x1401c8990]
add rsp, 0x30
pop rbx
jmp 0x140053ce0
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x1400551b0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
xor r9d, r9d
lea r8d, [r9 + 0x55]
lea rdx, [rsp + 0xe0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x140055259
mov r9d, 0x55
lea r8, [rsp + 0x30]
lea edx, [r9 + 5]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x140055259
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140055241
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140012600
mov rax, rbx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140142180
add rsp, 0x1a0
pop rbx
ret
Function at 0x140073d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0x98]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x140073f4f
mov qword [rsp + 0x68], rbp
xor r9d, r9d
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r14
nop dword [rax]
nop word [rax + rax]
movsxd rbp, dword [rsi + 0x10]
lea r12, [rdi + 0x88]
mov r15d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x140073da8
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x140073db8
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0xd0]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x140073de5
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.14008db80
jmp 0x140073e10
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x63
mov r9, qword [r9 + 0x68]
call fcn.1400ca880
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x140073e54
mov edx, 5
mov rcx, rdi
call fcn.14008dbf0
test eax, eax
jne 0x140073f36
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r9d
add eax, 2
mov dword [rdx + 8], eax
mov byte [rdx + 1], r9b
mov qword [rdx + 0x10], r9
mov word [rdx + 2], r9w
mov qword [rdx + 0x18], 0x7b
mov qword [rdx + 0x20], r9
mov qword [rdx + 0x28], r9
mov qword [rdx + 0x30], 0x5d
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r9
mov qword [rdx + 0x48], 0x7c
mov qword [rdx + 0x50], r9
mov qword [rdx + 0x58], r9
mov qword [rdx + 0x60], 0x76
mov qword [rdx + 0x68], r9
mov qword [rdx + 0x70], r9
add dword [rdi + 0x90], 5
test rdx, rdx
je 0x140073f36
mov dword [rdx + 0x3c], r14d
lea ecx, [r15 + 1]
mov dword [rdx + 4], ecx
lea eax, [r15 - 1]
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x54], ecx
mov ecx, 8
mov word [rdx + 0x4a], cx
mov dword [rdx + 0x34], eax
mov dword [rdx + 0x50], r14d
test r14d, r14d
je 0x140073f25
movzx eax, byte [rbx + 0x1f]
cmp al, cl
jae 0x140073f25
mov dword [rbx + rax*4 + 0xd0], r14d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
mov rax, qword [rsp + 0x60]
test rsi, rsi
jne 0x140073d80
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400848d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r15
sub rsp, 0x38
movzx eax, byte [rdx]
mov r15, rdx
mov rdi, rcx
cmp al, 0xaf
jne 0x1400848e9
movzx eax, byte [rdx + 2]
cmp al, 0xb0
jne 0x1400848f3
mov rax, qword [rdx + 0x20]
jmp 0x140084903
cmp al, 0x89
jne 0x140084a25
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x20]
movsxd rcx, dword [rax]
cmp ecx, 1
je 0x140084a25
mov dword [r8], 0
cmp byte [rdx], 0x89
jne 0x14008492a
mov rcx, rdi
add rsp, 0x38
pop r15
pop rdi
jmp fcn.1400af3e0
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x30], r12
mov r12, rcx
mov qword [rsp + 0x28], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x140084a10
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov esi, r13d
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov qword [rsp + 0x58], rbp
nop word [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r15 + 0x20]
mov rbx, qword [r14 + rax + 8]
je 0x14008499b
mov rcx, rbx
call fcn.1400bb690
test eax, eax
je 0x14008499b
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400b8c20
jmp 0x1400849db
mov rbp, qword [rdi]
test rbx, rbx
je 0x1400849b7
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call fcn.140084d10
mov rbx, rax
cmp byte [rbp + 0x63], 0
jne 0x1400849cb
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400b7180
test rbx, rbx
je 0x1400849db
mov rdx, rbx
mov rcx, rbp
call fcn.1400ba7e0
inc esi
add r14, 0x20
sub r12, 1
jne 0x140084970
mov r14, qword [rsp + 0x20]
mov eax, r13d
mov r13, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop rdi
ret
mov r12, qword [rsp + 0x30]
mov eax, r13d
mov r13, qword [rsp + 0x28]
add rsp, 0x38
pop r15
pop rdi
ret
mov rcx, rdi
add rsp, 0x38
pop r15
pop rdi
jmp fcn.1400ba080
Function at 0x14009e4d0
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 dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
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
call fcn.1400ca4c0
test ebx, ebx
jne 0x14009e539
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
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 rcx, rsi
call fcn.1400ca4c0
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 0x1400bd360
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 ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1400bd469
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x140184d70]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1400bd3e1
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x1400bd41c
test ecx, ecx
jne 0x1400bd42a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.140086ba0
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x1400bd400
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1400bd3a0
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
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 0x1400bd42f
inc r8
jmp 0x1400bd3d0
test r10d, r10d
jne 0x1400bd3f9
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 0x1400bd455
test edx, edx
je 0x1400bd3e1
inc rax
jmp 0x1400bd440
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x1400bd3f9
inc rax
jmp 0x1400bd440
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14014315c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401431a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401431a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401431a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401431a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1401431a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401431a8
xor al, al
add rsp, 0x28
ret

Function at 0x1401546b8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401546ef
call fcn.14014dcfc
mov dword [rax], 0x16
call fcn.140149024
xor eax, eax
jmp 0x14015477d
mov rdx, r9
mov rcx, r8
call fcn.140154654
mov rbx, rax
test rax, rax
je 0x14015477a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140154580]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140154767
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14014dc70
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14015474e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14015475d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14015e1e4
jmp 0x14015477a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140154777
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140162980
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140162996
mov al, 1
jmp 0x1401629f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401629a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401629f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401661b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401629f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401629f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401629f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401629f6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401658b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14016593f
mov rsi, rbx
cmp word [rax], bp
je 0x1401658fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401658e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401658e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14015e220
mov rdi, rax
test rax, rax
je 0x14016592c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401441e0
mov rbp, rdi
xor ecx, ecx
call fcn.14015e1e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret