joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c58
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140003c91
xor eax, eax
jmp 0x140003db1
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140003ccb
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140003ccb
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140003db1
cmp qword [rbx + 0x80], 0
je 0x140003daf
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003d06
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003d27
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x140003dac
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003d75
sub eax, 1
je 0x140003d75
cmp eax, 2
jne 0x140003daf
movsx ecx, byte [rbp - 0x30]
jmp 0x140003d13
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140003da0
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140003daf
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140008290
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140004120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000414f
call fcn.140004804
jmp 0x1400041c7
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004166
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004168
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400041c1
test ecx, ecx
jle 0x1400041a1
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400041c1
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400041c1
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400041e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004200
xor eax, eax
jmp 0x1400042e8
cmp qword [rcx + 0x68], 0
je 0x140004211
call fcn.1400048c8
jmp 0x1400042e8
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004228
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000422a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000425c
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400042e2
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004293
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400042bd
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x1400042e2
cmp rdi, rbx
ja 0x14000429a
test rdi, rdi
je 0x1400042e2
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400045a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rbp + 0x27], rax
or edi, 0xffffffff
mov r14d, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400045e2
xor eax, eax
jmp 0x14000471b
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000461d
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000461d
lea ecx, [r8 - 1]
mov eax, r14d
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r14b
jmp 0x14000471b
cmp qword [rbx + 0x80], 0
je 0x140004719
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004658
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000468c
mov byte [rbp - 1], r14b
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 1]
mov esi, 1
mov r8d, esi
mov edx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rsi
cmove edi, r14d
jmp 0x140004719
lea r8, [rbp - 0x19]
mov byte [rbp - 9], r14b
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 8]
lea r8, [rbp + 0x27]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 7]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x11]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 9]
call qword [rax + 0x38]
test eax, eax
je 0x1400046dc
sub eax, 1
je 0x1400046dc
cmp eax, 2
jne 0x140004719
mov al, byte [rbp - 9]
mov byte [rbp - 1], al
jmp 0x140004665
mov r15, qword [rbp - 0x19]
lea rax, [rbp + 7]
mov esi, 1
sub r15, rax
je 0x140004709
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 7]
mov r8, r15
mov edx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x140004719
lea rax, [rbp - 9]
mov byte [rbx + 0x71], sil
cmp qword [rbp - 0x11], rax
cmovne edi, r14d
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140008290
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005754
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400057c3
cmp byte [rcx + 0x71], 0
je 0x1400057c3
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005818
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400057dd
sub eax, 1
je 0x1400057e1
cmp eax, 2
jne 0x140005818
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008290
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000580f
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005818
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400057c5
xor al, al
jmp 0x1400057c5

Function at 0x140005984
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400059f3
cmp byte [rcx + 0x71], 0
je 0x1400059f3
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005a48
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140005a0d
sub eax, 1
je 0x140005a11
cmp eax, 2
jne 0x140005a48
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008290
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005a3f
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005a48
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400059f5
xor al, al
jmp 0x1400059f5
Function at 0x140007880
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140007904
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a580]
cmp byte [rcx + rax], 0
je 0x140007904
dec r8
sub rdx, 1
jne 0x1400078ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140008c94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008cde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008cde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008cde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008cde
cmp dword [rcx + 0x84], 0xe
jbe 0x140008cde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008ce0
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1400120a8]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov esi, r9d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x140001059
cmp dword [rsp + 0x20], 2
jge 0x140001061
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
or eax, 0xffffffff
jmp 0x1400010e3
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
call fcn.140001180
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140001490
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jns 0x1400010a1
lea rcx, [rsp + 0x30]
call fcn.1400012f0
or eax, 0xffffffff
jmp 0x1400010e3
mov rcx, qword [rsp + 0x28]
xor edx, edx
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x1400010d7
lea rdx, str.WinMainRun
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, esi
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x30]
call fcn.1400012f0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140004510
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000538f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400120a8]
jne 0x14000452a
rol rcx, 0x10
test cx, 0xffff
jne 0x140004526
repz ret
ror rcx, 0x10
jmp 0x1400052e8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140013100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400131f8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000536d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140013100]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000538f
mov rax, qword [rsp + 0x88]
mov qword [0x1400131f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140013198], rax
mov rax, qword [0x1400131f8]
mov qword [0x140013070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140013180], rax
mov dword [0x140013060], 0xc0000409
mov dword [0x140013064], 1
mov rax, qword [0x1400120a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400120b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400130f8], eax
mov ecx, 1
call fcn.140008200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d3e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400130f8], 0
jne 0x140005416
mov ecx, 1
call fcn.140008200
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140007148
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140006fb8
Function at 0x1400098b4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400120a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400064e8
xor ebx, ebx
cmp qword [0x1400140a8], rbx
mov rdi, rax
jne 0x1400099c7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140009a9e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140009a9e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400140a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400140b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400140b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400140c8], rax
test rax, rax
je 0x1400099be
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400140c0], rax
jmp 0x1400099ce
mov rax, qword [0x1400140c0]
jmp 0x1400099d5
mov rax, qword [0x1400140c0]
mov r11, qword [0x1400140c8]
cmp rax, rdi
je 0x140009a3c
cmp r11, rdi
je 0x140009a3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400140c8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140009a3c
test rax, rax
je 0x140009a3c
call rsi
test rax, rax
je 0x140009a36
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140009a36
test byte [rsp + 0x40], 1
jne 0x140009a3c
bts ebp, 0x15
jmp 0x140009a7c
mov rcx, qword [0x1400140b0]
cmp rcx, rdi
je 0x140009a7c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140009a7c
call rax
mov rbx, rax
test rax, rax
je 0x140009a7c
mov rcx, qword [0x1400140b8]
cmp rcx, rdi
je 0x140009a7c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140009a7c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400140a8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140009a9e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140009aa0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004510
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006030
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000607a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000607a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000607a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000607a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000607a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000607c
xor al, al
add rsp, 0x28
ret
Function at 0x140088ce0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
movdqa xmm0, xmmword [rdx]
aeskeygenassist xmm0, xmm0, 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14009cbd0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
sub rsp, 0x108
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r8
mov eax, 0xffffffff
mov eax, eax
mov r9d, eax
lea rcx, [rsp + 0x58]
lea rax, [0x140128ab0]
mov qword [rsp + 0x20], rax
call fcn.14009c020
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14009c160
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
call fcn.14009c180
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14009cc81
mov dword [rsp + 0x3c], 0
jmp 0x14009cd1e
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe0], 0
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xd8], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rax
mov r8d, eax
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0xb8], eax
shr eax, 0x1e
cmp eax, 3
je 0x14009cd2a
jmp 0x14009cc3d
mov eax, dword [rsp + 0x3c]
add rsp, 0x108
ret
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rax
mov edx, eax
call qword [sym.imp.advapi32.dll_SystemFunction036]
mov byte [rsp + 0xbf], al
cmp al, 0
jne 0x14009cc3d
mov ecx, dword [rsp + 0x38]
xor ecx, 0x80000000
mov dword [rsp + 0xc0], ecx
call fcn.14009bec0
mov ecx, eax
mov dword [rsp + 0xc4], ecx
call fcn.14009c9e0
mov dword [rsp + 0x3c], eax
jmp 0x14009cd1e
Function at 0x14009d1b0
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rbp - 0x50], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov byte [rbp + 0x3b], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp - 0x38], rax
xor edx, edx
xor eax, eax
mov r8d, eax
lea r9, [rbp - 0x38]
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov dword [rbp + 0x3c], eax
cmp eax, 0
jne 0x14009d26c
mov rcx, qword [rbp - 0x38]
mov rax, qword [sym.imp.kernel32.dll_lstrlenW]
call rax
movsxd rdx, eax
mov qword [rbp + 0x40], rdx
mov rcx, qword [rbp - 0x38]
call fcn.14009ceb0
mov qword [rbp - 0x58], rax
mov r8, rdx
mov rdx, qword [rbp - 0x58]
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], r8
mov byte [rbp + 0x3b], 1
lea rcx, [rbp - 0x30]
call fcn.1400a55e0
mov rcx, qword [rbp - 0x38]
mov rax, qword [sym.imp.ole32.dll_CoTaskMemFree]
call rax
jmp 0x14009d280
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x48]
mov byte [rax + 0x18], 2
jmp 0x14009d2ca
mov byte [rbp + 0x3b], 0
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x10], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.14009d180
jmp 0x14009d2a3
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x10]
mov qword [rax], rcx
mov rcx, qword [rbp - 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 8]
mov qword [rax + 0x18], rcx
mov byte [rbp + 0x3b], 0
mov rax, qword [rbp - 0x40]
add rsp, 0x100
pop rbp
ret

Function at 0x14009d350
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x118
mov byte [rsp + 0x5f], 0
mov qword [rsp + 0x60], 1
mov byte [rsp + 0x6f], 0
mov qword [rsp + 0x70], 1
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0xa8]
xor edx, edx
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0xa8]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0x78]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0xd8]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x28]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x48]
add rsp, 0x118
ret