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

Disassembly:
jmp 0x1801f5f10
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1801f5890
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1801f5f4f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x18037d020]
jmp 0x1801f5f59
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1800f2e44
Capabilities:
Query environment variable

Disassembly:
jmp 0x1802b7c90
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1802b7ac0
lea rcx, [rsp + 0x40]
call fcn.1802b7c40
movzx eax, al
test eax, eax
jne 0x1802b7cd8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1802b7af0
mov rax, qword [rsp + 0x70]
jmp 0x1802b7ea9
lea rcx, [rsp + 0x40]
call fcn.1802b7c10
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1802b7bb0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1802b7c10
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1800f464a
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1802b7d7e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1802b7af0
mov rax, qword [rsp + 0x80]
jmp 0x1802b7ea9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1800f288b
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800f25ac
lea rcx, [rsp + 0x48]
call fcn.1800f1d5a
movzx eax, al
test eax, eax
jne 0x1802b7de5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1800f019e
lea rcx, [rsp + 0x40]
call fcn.1802b7af0
mov rax, qword [rsp + 0x88]
jmp 0x1802b7ea9
lea rcx, [rsp + 0x48]
call fcn.1800f356a
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1802b7c10
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1800f464a
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1802b7e7b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1800f019e
lea rcx, [rsp + 0x40]
call fcn.1802b7af0
mov rax, qword [rsp + 0xa0]
jmp 0x1802b7ea9
lea rcx, [rsp + 0x48]
call fcn.1800f2552
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1800f019e
lea rcx, [rsp + 0x40]
call fcn.1802b7af0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1800f2e6c
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1801f5e40
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1801f5810
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1801f5e81
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x18037d020]
jmp 0x1801f5e87
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1800f2f8e
Capabilities:
Get geographical location

Disassembly:
jmp 0x18029fe50
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.18029ecf0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18029feac
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call fcn.1800f6e86
jmp 0x18029fece
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1800f1c88
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1800f2fb6
Capabilities:
Terminate process

Disassembly:
jmp 0x1801d2f80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1800f34c0
Capabilities:
Print debug messages

Disassembly:
jmp 0x1802c0850
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x18034f880]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1802c0879
jmp 0x1802c08fe
mov rcx, qword [rbp + 0x30]
call fcn.1800f2354
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1802c0892
jmp 0x1802c08fe
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1802c08af
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1800f04a0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1800f0cfc
test eax, eax
jne 0x1802c08fe
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1800f2755
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1800f3aab
Capabilities:
Set environment variable

Disassembly:
jmp 0x1802b9df0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1800f49f6
Capabilities:
Terminate process

Disassembly:
jmp 0x1801f6f10
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1801f6f3e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1800f5a90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1800f5b2b
Capabilities:
Print debug messages

Disassembly:
jmp 0x18028ba30
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1800f5d06
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1801f5f80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1801f58d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1801f5fc9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x18037d020]
jmp 0x1801f5fd8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x18025b8c0
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x18025b8e8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.18025ba60
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1802a3700
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1800f04a0
sub rsp, rax
mov rax, qword [0x18034f880]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x18035cc40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1802a38fa
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1802a3846
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1802a3846
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1802a382b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1802a37c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1802a38ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1802a3919
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x1802a38f5
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1802a3919
jmp 0x1802a379e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1800f2755
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1802a39c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1800f04a0
sub rsp, rax
mov rax, qword [0x18034f880]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x18035cc40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1802a3bd5
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1802a3b19
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1802a3b19
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1802a3af9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1802a3a88
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1802a3b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1802a3bf4
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x1802a3bd0
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1802a3bf4
jmp 0x1802a3a5e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1800f2755
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1802a7c60
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.1800f11c5
movzx eax, al
test eax, eax
je 0x1802a7c87
mov al, 1
jmp 0x1802a7d7c
lea rcx, [rsp + 0x60]
call fcn.1800f67d3
movzx eax, al
test eax, eax
je 0x1802a7cc6
lea rcx, [rsp + 0x60]
call fcn.1800f5009
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.1800f5009
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x1802a7cc6
xor al, al
jmp 0x1802a7d7c
lea rcx, [rsp + 0x60]
call fcn.1800f52b1
mov ecx, eax
call fcn.1800f6738
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1802a7ceb
xor al, al
jmp 0x1802a7d7c
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1802a7d30
xor al, al
jmp 0x1802a7d7c
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1802a7d59
xor al, al
jmp 0x1802a7d7c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x1802a7d6f
mov dword [rsp + 0x20], 1
jmp 0x1802a7d77
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x1802bffc0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x1802bffff
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x1802bffff
lea rdx, [0x180321370]
mov rcx, qword [rsp + 0x40]
call fcn.1800f2813
test eax, eax
jne 0x1802c0036
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20001004
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1802c0025
xor eax, eax
jmp 0x1802c0085
cmp dword [rsp + 0x20], 0
jne 0x1802c0034
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x1802c0085
jmp 0x1802c0081
lea rdx, [0x180321390]
mov rcx, qword [rsp + 0x40]
call fcn.1800f2813
test eax, eax
jne 0x1802c0073
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x2000000b
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1802c0071
xor eax, eax
jmp 0x1802c0085
jmp 0x1802c0081
mov rcx, qword [rsp + 0x40]
call fcn.1800ef122
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1802c0140
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
movzx eax, ax
bts eax, 0xa
movzx eax, ax
mov dword [rsp + 0x24], eax
call fcn.1800f08c4
add rax, 0x98
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20000001
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1802c01a3
xor eax, eax
jmp 0x1802c01e3
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x1802c01de
cmp dword [rsp + 0x58], 0
je 0x1802c01de
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.1802bf710
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.1800ef730
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x1802c01de
xor eax, eax
jmp 0x1802c01e3
mov eax, 1
add rsp, 0x48
ret
Function at 0x1800016d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd rax, dword [rcx + 0x3c]
mov esi, edx
xor edx, edx
mov r8d, dword [rax + rcx + 0x88]
mov r9, rcx
add r8, rcx
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x1c]
mov ebx, dword [r8 + 0x24]
mov edi, dword [r8 + 0x18]
add r10, rcx
add r11, rcx
add rbx, rcx
test edi, edi
je 0x180001746

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r8d, r8d
movabs r9, 0x18014d1ae
mov dword [rax + 8], 0x62756373
mov r9, qword [r9]
mov byte [rax + 0xc], r8b
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x180001132
lea rax, [r9 + rcx]
mov r10d, r8d
mov esi, dword [rax + 0x18]
test esi, esi
jle 0x180001132
mov r11d, dword [rax + 0x20]
mov ebx, dword [rax + 0x24]
mov r14d, dword [rax + 0x1c]
add r11, r9
add rbx, r9
movzx eax, word [rbx]
lea rdi, [rsp + 0x40]
lea rcx, [r14 + rax*4]
mov eax, dword [r11]
mov ebp, dword [rcx + r9]
add rax, r9
jmp 0x180001100
cmp cl, byte [rdi]
jne 0x180001106
inc rax
inc rdi
mov cl, byte [rax]
test cl, cl
jne 0x1800010f6
mov cl, byte [rax]
mov edx, r8d
mov eax, r8d
cmp cl, byte [rdi]
seta dl
cmp byte [rdi], cl
seta al
cmp edx, eax
je 0x18000112e
inc r10d
add rbx, 2
add r11, 4
cmp r10d, esi
jl 0x1800010de
jmp 0x180001132
lea r8, [r9 + rbp]
call r8
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
jmp 0x180001081
Function at 0x18000d1d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov ecx, 5
call fcn.180008780
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.1800087e0
cmp dword [rsp + 0x50], 0
jle 0x18000d20f
cmp qword [rsp + 0x58], 0
jne 0x18000d228
mov dword [0x1801577b0], 0
mov rcx, qword [rsp + 0x20]
call fcn.180008850
jmp 0x18000d39b
cmp dword [0x1801577b0], 0
jne 0x18000d2b9
xor ecx, ecx
call fcn.180008410
mov qword [rsp + 0x30], rax
mov r8d, 0x10
lea rdx, str.expand_32_byte_k
lea rcx, [0x1801577b0]
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
jne 0x18000d27f
lea rax, [0x1801577b0]
add rax, 0x10
mov r8d, 0x2c
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x18000d29c
lea rax, [0x1801577b0]
add rax, 0x10
mov r8, rax
mov edx, 0x2c
mov rcx, qword [rsp + 0x30]
call fcn.18000d3b0
mov eax, dword [0x1801577e0]
mov dword [0x1801577ec], eax
mov dword [0x1801577e0], 0
mov byte [0x180157830], 0
xor eax, eax
cmp eax, 1
je 0x18000d391
movzx eax, byte [0x180157830]
cmp dword [rsp + 0x50], eax
jg 0x18000d314
movsxd rax, dword [rsp + 0x50]
movzx ecx, byte [0x180157830]
sub ecx, dword [rsp + 0x50]
movsxd rcx, ecx
lea rdx, [0x1801577f0]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x180157830]
sub eax, dword [rsp + 0x50]
mov byte [0x180157830], al
jmp 0x18000d391
movzx eax, byte [0x180157830]
test eax, eax
jle 0x18000d364
movzx eax, byte [0x180157830]
mov r8, rax
lea rdx, [0x1801577f0]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x180157830]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
movzx eax, byte [0x180157830]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [0x1801577e0]
inc eax
mov dword [0x1801577e0], eax
lea rdx, [0x1801577b0]
lea rcx, [0x1801577f0]
call fcn.18000d430
mov byte [0x180157830], 0x40
jmp 0x18000d2b9
mov rcx, qword [rsp + 0x20]
call fcn.180008850
add rsp, 0x48
ret
Function at 0x180058f80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.180008e00
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180058fc0
mov eax, 7
jmp 0x180059095
movzx eax, byte [0x18014b414]
test eax, eax
je 0x180058fd9
mov ecx, 0xc8
call fcn.18001aaf0
test eax, eax
je 0x180058fed
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_memset
jmp 0x18005905a
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x1800590a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x18005905a
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x180059086
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret
Function at 0x180088f00
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1c], 1
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x58]
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 rcx, qword [rsp + 0x50]
call fcn.180094b50
cmp dword [rsp + 0x60], 0
jne 0x180088f80
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
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, qword [rsp + 0x50]
call fcn.180094b50
add rsp, 0x48
ret