joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1803bc1d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
lea rcx, [0x180609a06]
call fcn.180278fb0
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x1805b7ca0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1803bc262
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1803bc28b
mov eax, 0xa
jmp 0x1803bc3c7
cmp dword [rsp + 0x88], 0
je 0x1803bc2f9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1803bc2f7
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x1803bc347
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1803bc32a
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1803eb8f0
nop
jmp 0x1803bc347
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1803eb8f0
nop
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18051eed0]
call fcn.180278d80
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1803bd960
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x180609b5a]
call fcn.180278fb0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1803bd9c6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1803bd9c6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1803bd9c6
xor eax, eax
jmp 0x1803bda12
mov dword [rsp + 0x20], 1
jmp 0x1803bd9da
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x20], eax
jae 0x1803bda0d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1803bda0b
xor eax, eax
jmp 0x1803bda12
jmp 0x1803bd9d0
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1803c1330
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x180609c1a]
call fcn.180278fb0
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
mov eax, dword [rax]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
shr ecx, 8
mov rdx, qword [rsp + 0x48]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
imul eax, dword [rax + 4], 0x8088405
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
shr eax, 0x18
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + 8]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 8]
shr ecx, 8
mov rdx, qword [rsp + 0x48]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1803cc880
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x180609c65]
call fcn.180278fb0
mov rax, qword [rsp + 0x30]
lea rcx, [0x180520770]
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x70], 9
mov rax, qword [rsp + 0x30]
lea rcx, [0x180520f70]
mov qword [rax + 0x68], rcx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x74], 5
add rsp, 0x20
pop rdi
ret
Function at 0x1803d4bc0
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
lea rcx, [0x180609ca1]
call fcn.180278fb0
lea rax, [0x1805212c0]
add rsp, 0x20
pop rdi
ret

Function at 0x1803d4bf0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
lea rcx, [0x180609ca1]
call fcn.180278fb0
mov dword [rsp + 0x20], 0x80000000
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x40]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1803d4c4d
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x24]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov ecx, dword [rsp + 0x40]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x1803d4c4d
jmp 0x1803d4c87
mov eax, dword [rsp + 0x20]
shr eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
and eax, 1
test eax, eax
je 0x1803d4c73
mov eax, dword [rsp + 0x48]
shr eax, 1
xor eax, 0xedb88320
mov dword [rsp + 0x28], eax
jmp 0x1803d4c7d
mov eax, dword [rsp + 0x48]
shr eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x48], eax
jmp 0x1803d4c19
mov eax, dword [rsp + 0x24]
add rsp, 0x30
pop rdi
ret

Function at 0x1803d4d30
Capabilities:
Encrypt data using rc4 prga
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
lea rcx, [0x180609ca1]
call fcn.180278fb0
nop
mov dword [rsp + 0x20], 0
jmp 0x1803d4d5a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1803d4d84
mov eax, dword [rsp + 0x40]
shr eax, 8
mov ecx, dword [rsp + 0x40]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1805212c0]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x40], eax
jmp 0x1803d4d50
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1803d4da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
lea rcx, [0x180609ca1]
call fcn.180278fb0
nop
mov dword [rsp + 0x20], 0
jmp 0x1803d4dca
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1803d4df7
mov eax, dword [rsp + 0x40]
shl eax, 8
mov ecx, dword [rsp + 0x40]
shr ecx, 0x18
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1805216c0]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x40], eax
jmp 0x1803d4dc0
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1803ea200
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, [0x18060a53a]
call fcn.180278fb0
cmp qword [0x1805b7c88], 0
jne 0x1803ea2a3
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0xf0000020
mov r9d, 1
lea r8, [0x1805a2c70]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1803ea297
mov dword [rsp + 0x20], 0xf0000028
mov r9d, 1
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1803ea297
mov eax, 0xffffffff
jmp 0x1803ea2d4
mov rax, qword [rsp + 0x38]
mov qword [0x1805b7c88], rax
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
mov rcx, qword [0x1805b7c88]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
jne 0x1803ea2c8
mov dword [rsp + 0x44], 0
jmp 0x1803ea2d0
mov dword [rsp + 0x44], 0xffffffff
mov eax, dword [rsp + 0x44]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180527680]
call fcn.180278d80
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x180007510
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18000757f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000757f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000757f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000757f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000757f
cmp dword [rcx + 0x84], 0xe
jbe 0x18000757f
cmp dword [rcx + 0xf8], 0
je 0x18000757f
mov ecx, ebx
call fcn.180007630
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18000740c
nop
cmp dword [rbp + 0x20], 0
je 0x1800075cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800075d8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180007510
Function at 0x18000cf50
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000cf80
xor eax, eax
jmp 0x18000d043
mov rbp, rbx
cmp word [rax], si
je 0x18000cfa5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000cf8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000cf88
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000ce70
movsxd r14, eax
test eax, eax
jne 0x18000cfe3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000cf79
mov rcx, r14
call fcn.1800092e8
mov rdi, rax
test rax, rax
jne 0x18000cffc
xor ecx, ecx
call fcn.18000875c
jmp 0x18000cfd8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000ce70
test eax, eax
jne 0x18000d02d
mov rcx, rdi
call fcn.18000875c
jmp 0x18000d037
xor ecx, ecx
call fcn.18000875c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x180010824
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001083a
mov al, 1
jmp 0x18001089a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001084b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180010898
mov ecx, dword [rcx + 0x18]
nop
call fcn.18000e858
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010898
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180010898
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180010898
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001089a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180013c00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180013c28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180013c28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002126c
Capabilities:
Write file on windows

Disassembly:
jmp 0x140044510
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400882a1]
call fcn.140022617
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140044567
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140044673
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14004460c
cmp qword [rbp + 0x28], 0
jle 0x14004460c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400445ac
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400224af
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140044662
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140044662
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14002162c
Capabilities:
Get common file path

Disassembly:
jmp 0x140046ab0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14007c040]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x140088820]
call fcn.140022617
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140070f10]
call fcn.140021901
test eax, eax
jne 0x140046b4b
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x28]
call fcn.14002173a
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp + 0x140]
add rax, 0x10
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.140022432
nop
lea rcx, [rbp + 0x28]
call fcn.1400222f2
lea rcx, [rbp - 0x20]
lea rdx, [0x14006ed80]
call fcn.140022257
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140021ab9
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140021c8a
Capabilities:
Terminate process

Disassembly:
jmp 0x140060a20
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 0x140021e74
Capabilities:
Get geographical location

Disassembly:
jmp 0x14005a900
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 0x14005a93d
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.1400225f4
add rsp, 0x58
ret

Function at 0x140021f5a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140061600
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140061620
xor al, al
jmp 0x1400616a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140061633
xor al, al
jmp 0x1400616a1
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 0x14006165d
xor al, al
jmp 0x1400616a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140061671
xor al, al
jmp 0x1400616a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140061683
xor al, al
jmp 0x1400616a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14006169f
xor al, al
jmp 0x1400616a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140022365
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140044cf0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14007c040]
xor rax, rbp
mov qword [rbp + 0x160], rax
lea rcx, [0x1400885e7]
call fcn.140022617
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rbp + 0x28], rax
lea rax, str.DriverLoader
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x190]
mov rcx, rax
call fcn.140021596
mov qword [rbp + 0x68], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140044de7
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov dword [rbp + 0x154], eax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x158], rax
mov eax, dword [rbp + 0x154]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x30]
lea rdx, [0x14006e720]
call fcn.140022257
mov rcx, qword [rbp + 0x160]
xor rcx, rbp
call fcn.140021ab9
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400225c7
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400390f0
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 [0x14007c040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1400882a1]
call fcn.140022617
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140039156
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14003915d
mov al, 1
jmp 0x1400392cd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140021613
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.140021613
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140022162
movzx eax, al
test eax, eax
je 0x1400391c0
xor al, al
jmp 0x1400392cd
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 0x140039233
cmp dword [rbp + 0x160], 1
je 0x14003923e
cmp dword [rbp + 0x160], 3
je 0x1400392bc
jmp 0x1400392cb
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 0x14003928e
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 0x14003928e
xor al, al
jmp 0x1400392cd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400392a9
mov dword [rbp + 0x154], 1
jmp 0x1400392b3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400392cd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400392cd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14006bff0]
call fcn.140022257
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140021ab9
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x1400227a2
Capabilities:
Move file

Disassembly:
jmp 0x14005d640
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 3
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14005d66c
xor eax, eax
jmp 0x14005d672
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
ret