joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400286c7
Capabilities:
Get common file path

Disassembly:
jmp 0x14005c3a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x1400a0040]
xor rax, rbp
mov qword [rbp + 0x410], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x1400ad6e6]
call fcn.140029752
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x14005c42d
cmp dword [rbp + 0x234], 0x105
jbe 0x14005c486
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140028c26
mov qword [rbp + 0x408], rax
lea rdx, [0x140028b90]
mov rcx, qword [rbp + 0x408]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x14008d4ec]
mov rcx, qword [rbp + 0x440]
call fcn.1400287f8
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x440]
jmp 0x14005c4f8
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x14005c4d2
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x14005c4bf
jmp 0x14005c4c4
call fcn.1400290d6
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x440]
call fcn.1400287f8
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x440]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140094390]
call fcn.140029333
mov rax, rdi
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.140028b7c
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x1400287fd
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14005c220
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400ad6e6]
call fcn.140029752
mov rcx, qword [rbp + 0x180]
call fcn.140028aa0
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x188]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x14005c29b
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jae 0x14005c343
mov eax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
call fcn.1400288f2
test eax, eax
jne 0x14005c33e
mov rax, qword [rbp + 0x88]
mov rcx, rax
call fcn.140028aa0
cmp qword [rbp + 8], rax
jne 0x14005c33e
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0xc], 0
jne 0x14005c308
xor eax, eax
jmp 0x14005c345
cmp qword [rbp + 0x190], 0
je 0x14005c325
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
jmp 0x14005c345
jmp 0x14005c293
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140028d43
Capabilities:
Terminate process

Disassembly:
jmp 0x140072bf0
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]
add rsp, 0x28
ret
Function at 0x140028f37
Capabilities:
Get geographical location

Disassembly:
jmp 0x14006ed00
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14006ed3d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140029734
add rsp, 0x58
ret
Function at 0x140029036
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400758f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140075910
xor al, al
jmp 0x140075991
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140075923
xor al, al
jmp 0x140075991
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007594d
xor al, al
jmp 0x140075991
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140075961
xor al, al
jmp 0x140075991
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140075973
xor al, al
jmp 0x140075991
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007598f
xor al, al
jmp 0x140075991
mov al, 1
add rsp, 0x38
ret
Function at 0x14002948c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140057de0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400ad489]
call fcn.140029752
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140057e1c
xor eax, eax
jmp 0x140057e49
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x140057e45
xor eax, eax
jmp 0x140057e49
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400296e4
Capabilities:
Write file on windows

Disassembly:
jmp 0x14003fcc0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1400a0040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1400ad0fa]
call fcn.140029752
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14003fd26
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14003fd2d
mov al, 1
jmp 0x14003fe9d
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.1400286db
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.1400286db
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.14002925c
movzx eax, al
test eax, eax
je 0x14003fd90
xor al, al
jmp 0x14003fe9d
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14003fe03
cmp dword [rbp + 0x160], 1
je 0x14003fe0e
cmp dword [rbp + 0x160], 3
je 0x14003fe8c
jmp 0x14003fe9b
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14003fe5e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14003fe5e
xor al, al
jmp 0x14003fe9d
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14003fe79
mov dword [rbp + 0x154], 1
jmp 0x14003fe83
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14003fe9d
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14003fe9d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14008bd20]
call fcn.140029333
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140028b7c
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14002934c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14073e508
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14073e512
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14073e53b
pop rbp
sub rbp, 0x33
sub rbp, 0x73e508
sub rsp, 0x20
jmp 0x14073e55a
mov rax, 0x73e508
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x605603db
xor byte [rax], dl
inc rax
dec rcx
jne 0x14073e579
jmp 0x14073e590
xchg ebx, eax
push rdx
xor dl, byte [rax + 0x52]
out 0xdb, eax
fcmovnu st(0), st(3)
xchg ebx, eax
pop rdx
sbb dl, bl
fcmovu st(0), st(3)
fist dword [rbx + 0x1c9332da]
sbb ebx, eax
fcmovnu st(0), st(3)
fist dword [rbx - 0x240ce6e4]
fcmovnu st(0), st(3)
xchg ebx, eax
sub al, 0x39
xchg ebx, eax
ficomp dword [rdx]
push rax
pop rdx
xlatb
fcmovnu st(0), st(3)
fist dword [rbx - 0x7474cc26]
xchg ebx, eax
invalid
Function at 0x1400025c0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
call fcn.140019610
test eax, eax
je 0x14000269b
mov r8d, eax
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000269b
lea rcx, str.ntdll.dll
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000268e
lea rdx, str.NtSetInformationProcess
mov qword [rsp + 0x48], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 4
lea r8, [rsp + 0x20]
mov rcx, rdi
lea edx, [r9 + 0x19]
call rax
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
jne 0x14000268e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140002676
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x30
pop rdi
ret
Function at 0x140012ee0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
lea rax, [rbp - 0x28]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x30], ebx
mov r9d, 0xf003f
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012f5e
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov r9d, 0xffff
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rbx
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140012f65
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14001303d
mov eax, dword [rbp - 0x30]
test eax, eax
jne 0x140012f75
mov rcx, qword [rbp - 0x28]
jmp 0x140013032
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140012f54
lea rcx, [rbp - 0x30]
mov r9d, 0xffff
mov qword [rsp + 0x30], rcx
mov r8, rdi
mov rcx, qword [rbp - 0x28]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140012fcf
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x14001303d
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x140013000
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x140012fec
dec eax
or eax, 0xffffff00
inc eax
mov rcx, qword [rbp - 0x20]
mov r8d, ebx
inc ebx
mov byte [r8 + rcx], al
mov eax, dword [rbp - 0x30]
cmp ebx, eax
jb 0x140012fd6
mov r9d, dword [rbp - 0x18]
xor r8d, r8d
mov rcx, qword [rbp - 0x28]
mov rdx, rdi
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140012fb7
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001a080
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013060
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
xor r14d, r14d
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov ebx, r14d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400130ac
xor eax, eax
jmp 0x14001316e
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x90], rdi
call fcn.140012ee0
mov ecx, 0x8000
mov dword [rsp + 0x40], 0x4000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r14
mov r8, rax
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov rdi, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001314d
nop word [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140012ee0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r14
inc ebx
mov qword [rsp + 0x30], r14
mov edx, ebx
mov qword [rsp + 0x28], r14
mov r8, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140013110
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x90]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001a080
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rsi
pop rbp
ret
Function at 0x140013fc0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140014017
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14001402c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rsp + 0x30]
mov r8, rbx
mov edx, 6
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14001406e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
xor esi, esi
mov qword [rsp + 0x70], rdi
mov ebp, esi
movaps xmmword [rsp + 0x40], xmm6
mov edi, esi
movsd xmm6, qword [0x14001d710]
movd xmm1, ebp
movaps xmm0, xmm6
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movzx ecx, byte [rdi + rbx]
inc ebp
cvttsd2si eax, xmm0
inc rdi
movsxd rdx, eax
imul rdx, rcx
add rsi, rdx
cmp rdi, 6
jl 0x140014090
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movaps xmm6, xmmword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001a080
add rsp, 0x50
pop rbx
ret
Function at 0x1400147b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
xor esi, esi
xor edx, edx
mov qword [rsp + 0x30], rsi
mov r8d, 0xb0
mov qword [rsp + 0x38], rsi
mov rdi, rcx
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rsi
movups xmm1, xmmword [rbx + 0x10]
mov qword [rdi + 0x30], rax
lea ecx, [rsi + 0x38]
movups xmmword [rdi], xmm0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x40], 1
movsd xmm0, qword [rbx + 0x20]
mov qword [rdi + 0x70], rax
lea rax, [rsp + 0x48]
mov qword [rdi + 0x78], rax
lea rax, [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm1
mov qword [rdi + 0x80], rax
movsd qword [rdi + 0x20], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
mov qword [rdi + 0xa0], rax
lea r8, [0x140014660]
movups xmmword [rdi + 0x38], xmm0
xor eax, eax
mov r9, rdi
movups xmmword [rdi + 0x48], xmm0
xor edx, edx
xor ecx, ecx
movups xmmword [rdi + 0x58], xmm0
mov qword [rdi + 0x68], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x90], rax
mov rax, rdi
mov dword [rdi + 0xa8], esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001a080
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400148f0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2150
call fcn.14001ae30
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2140], rax
mov rsi, rdx
lea r9, [rsp + 0x20]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov r8d, 0x2000
mov dword [rsp + 0x20], ebx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140014999
mov eax, dword [rsp + 0x20]
test rax, 0xfffffffffffffff8
jbe 0x140014999
lea rdi, [rsp + 0x30]
nop
mov rdx, qword [rdi]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x140014983
mov rdx, rsi
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400149be
mov ecx, dword [rsp + 0x20]
inc ebx
shr rcx, 3
add rdi, 8
movsxd rax, ebx
cmp rax, rcx
jb 0x140014950
xor eax, eax
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.14001a080
mov rbx, qword [rsp + 0x2180]
add rsp, 0x2150
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
jmp 0x14001499b