joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014c00
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140014db1
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400148b0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140014d76
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140014cf0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140014d65
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140014d2d
mov r10, qword [rdx]
cmp r10, rax
je 0x140014d27
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140014d65
cmp r9, rdx
je 0x140014d41
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140014d8b
cmp r9, rdx
jne 0x140014d32
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140014ca0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140014d65
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140018950
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov ebp, edx
mov rsi, rcx
xor r12d, r12d
mov word [rcx], r12w
add rcx, 8
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
lea rcx, [rsi + 0x50]
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
lea rbx, [rsi + 0x98]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rsp + 0x80], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x20], r12
lea ecx, [r12 + 0x10]
call fcn.14003c8d0
mov qword [rax + 8], r12
mov qword [rbx], rax
mov qword [rax], rbx
mov qword [rsi + 0xc0], r12
lea rcx, [rsi + 0xc8]
lea edx, [r12 + 2]
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
lea rdi, [rsi + 0x118]
lea ebx, [r12 + 1]
test ebp, ebp
je 0x1400189f8
mov dword [rdi], ebp
jmp 0x140018a23
call sub.MSVCP140.dll__Thrd_hardware_concurrency
test eax, eax
je 0x140018a08
call sub.MSVCP140.dll__Thrd_hardware_concurrency
jmp 0x140018a0a
mov eax, ebx
mov rcx, rdi
mov dword [rcx], eax
call sub.MSVCP140.dll__Thrd_hardware_concurrency
test eax, eax
je 0x140018a21
call sub.MSVCP140.dll__Thrd_hardware_concurrency
mov ebp, eax
jmp 0x140018a23
mov ebp, ebx
lea r14, [rsi + 0x120]
mov qword [rsp + 0x80], r14
mov r15d, ebp
mov eax, 0x10
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call fcn.14003cd8c
test rax, rax
je 0x140018a89
mov qword [rax], r15
lea rbp, [rax + 8]
lea rax, [0x140019180]
mov qword [rsp + 0x20], rax
lea r9, [0x140018940]
mov r8d, r15d
mov edx, 0x10
mov rcx, rbp
call fcn.14003cd1c
jmp 0x140018a8c
mov rbp, r12
mov qword [r14], rbp
mov byte [rsi + 0x128], 0
xchg byte [rsi + 1], bl
mov ebx, r12d
cmp dword [rdi], r12d
jbe 0x140018b2d
lea rbp, [0x14001c5d0]
nop dword [rax]
mov ecx, 0x10
call fcn.14003c8d0
test rax, rax
je 0x140018ac8
mov qword [rax], rsi
mov qword [rax + 8], rbp
jmp 0x140018acb
mov rax, r12
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140017740]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140018b51
mov eax, ebx
shl rax, 4
add rax, qword [r14]
cmp dword [rax + 8], 0
jne 0x140018b4a
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rax], xmm1
cmp dword [rsp + 0x38], 0
jne 0x140018b4a
inc ebx
cmp ebx, dword [rdi]
jb 0x140018ab0
mov rax, rsi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], r12d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14001dba0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140054358]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001dc73
cmp byte [rcx + 0x71], 0
je 0x14001dc73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001dc6f
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 0x14001dc34
sub eax, 1
je 0x14001dc38
cmp eax, 2
jne 0x14001dc6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003ccd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001dc66
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 0x14001dc6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001dc1c
xor al, al
jmp 0x14001dc1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003ccd0
add rsp, 0x60
pop rbx
ret
Function at 0x14001df40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140054358]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001df6d
xor eax, eax
jmp 0x14001e0ca
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14001df98
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14001df98
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14001e0ca
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001e0bd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001dfdb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14001e006
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001e0c2
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x14001e075
sub eax, 1
je 0x14001e075
cmp eax, 2
jne 0x14001e0bd
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001e0c2
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001e0a3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001e0bd
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001e0c2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003ccd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001e7d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001e801
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14001e81f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001e83b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001e83d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001e879
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001e90e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001e8b4
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
cmp rbx, 0xfff
jbe 0x14001e8ee
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001e90e
cmp rbx, rax
ja 0x14001e8c0
test rbx, rbx
je 0x14001e90e
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]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001e930
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14001e958
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001e97e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001e980
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001e9d9
test ecx, ecx
jle 0x14001e9b9
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 0x14001e9d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001e9d9
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
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140022150
Capabilities:
Hash data using djb2

Disassembly:
lea rdx, [rcx + 0x2c]
mov eax, 0x1505
lea r8, [rcx + 0x234]
cmp rdx, r8
je 0x14002217a
movzx ecx, word [rdx]
add rdx, 2
test ecx, ecx
je 0x14002217a
imul eax, eax, 0x21
add eax, ecx
cmp rdx, r8
jne 0x140022165
btr eax, 0x1f
ret
Function at 0x140023d00
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r9d, dword [rcx + 0x20]
mov rbp, rdx
shr r9, 3
mov rbx, rcx
and r9d, 0x3f
mov edx, 0
cmp r9d, 0x38
jae 0x140023d74
mov r10d, 0x38
sub r10d, r9d
je 0x140023d67
lea r8, [0x140043de0]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8]
lea ecx, [rdx + r9]
inc edx
mov byte [rcx + rbx + 0x28], al
lea r8, [r8 + 1]
cmp edx, r10d
jb 0x140023d50
lea rsi, [rbp + 0x100]
lea rdi, [rbx + 0x28]
jmp 0x140023dd7
mov r10d, 0x40
sub r10d, r9d
je 0x140023da7
lea r8, [0x140043de0]
nop word [rax + rax]
movzx eax, byte [r8]
lea ecx, [rdx + r9]
inc edx
mov byte [rcx + rbx + 0x28], al
lea r8, [r8 + 1]
cmp edx, r10d
jb 0x140023d90
lea rsi, [rbp + 0x100]
mov r8, rbp
lea rdi, [rbx + 0x28]
mov r9, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.140023e40
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rdi], xmm2
movups xmmword [rdi + 0x10], xmm2
movups xmmword [rdi + 0x20], xmm2
mov qword [rdi + 0x30], rax
mov rax, qword [rbx + 0x20]
mov r9, rsi
mov byte [rbx + 0x67], al
mov r8, rbp
shr rax, 8
mov rdx, rdi
mov byte [rbx + 0x66], al
mov rcx, rbx
shr rax, 8
mov byte [rbx + 0x65], al
shr rax, 8
mov byte [rbx + 0x64], al
shr rax, 8
mov byte [rbx + 0x63], al
shr rax, 8
mov byte [rbx + 0x62], al
shr rax, 8
mov byte [rbx + 0x61], al
shr rax, 8
mov byte [rbx + 0x60], al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140023e40
Function at 0x140025450
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x140054200], rax
cmp rax, 0x10
jae 0x140025475
call fcn.140023cd0
mov edx, 0x10
lea rcx, [0x140056408]
call fcn.1400255e0
xor eax, eax
add rsp, 0x58
ret

Function at 0x140025500
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rcx
xor r9d, r9d
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], 0
test r8, r8
je 0x140025549
nop word [rax + rax]
mov rax, qword [rsp + 0x10]
movzx edx, byte [rax + r9]
mov rax, qword [rsp + 0x18]
movzx ecx, byte [rax + r9]
inc r9
movzx eax, byte [rsp + 8]
xor dl, cl
or dl, al
mov byte [rsp + 8], dl
cmp r9, r8
jb 0x140025520
movzx eax, byte [rsp + 8]
dec eax
sar eax, 8
and eax, 1
dec eax
ret
Function at 0x140025b60
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x18
test r9, r9
jne 0x140025b93
mov ebp, 0x61707865
mov r14d, 0x3320646e
mov r15d, 0x79622d32
mov r12d, 0x6b206574
jmp 0x140025ba2
mov ebp, dword [r9]
mov r14d, dword [r9 + 4]
mov r15d, dword [r9 + 8]
mov r12d, dword [r9 + 0xc]
mov eax, dword [r8 + 4]
mov ecx, dword [r8 + 8]
mov r10d, dword [r8]
mov r13d, dword [r8 + 0x10]
mov r9d, dword [r8 + 0x18]
mov r11d, dword [rdx]
mov ebx, dword [rdx + 4]
mov edi, dword [rdx + 8]
mov esi, dword [rdx + 0xc]
mov dword [rsp], eax
mov eax, dword [r8 + 0xc]
mov dword [rsp + 0x68], ecx
mov ecx, dword [r8 + 0x14]
mov dword [rsp + 0x78], eax
mov eax, dword [r8 + 0x1c]
mov r8d, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov qword [rsp + 8], 0xa
nop word [rax + rax]
add r14d, dword [rsp]
add ebp, r10d
add r12d, dword [rsp + 0x78]
xor r11d, ebp
xor esi, r12d
rol r11d, 0x10
add r13d, r11d
rol esi, 0x10
xor ebx, r14d
add r15d, r8d
xor edi, r15d
rol ebx, 0x10
add ecx, ebx
rol edi, 0x10
add r9d, edi
mov eax, r13d
xor eax, r10d
rol eax, 0xc
add ebp, eax
xor r11d, ebp
rol r11d, 8
add r13d, r11d
mov r10d, r13d
xor r10d, eax
mov eax, ecx
xor eax, dword [rsp]
rol eax, 0xc
add r14d, eax
rol r10d, 7
xor ebx, r14d
rol ebx, 8
add ecx, ebx
mov edx, ecx
xor edx, eax
mov eax, r9d
xor eax, r8d
rol edx, 7
rol eax, 0xc
add ebp, edx
add r15d, eax
xor edi, r15d
rol edi, 8
add r9d, edi
mov dword [rsp + 0x68], r9d
mov r8d, r9d
mov r9d, dword [rsp + 0x70]
xor r8d, eax
add r9d, esi
rol r8d, 7
mov eax, r9d
add r14d, r8d
xor eax, dword [rsp + 0x78]
xor r11d, r14d
rol eax, 0xc
add r12d, eax
rol r11d, 0x10
xor esi, r12d
rol esi, 8
add r9d, esi
xor esi, ebp
rol esi, 0x10
mov dword [rsp + 0x70], r9d
xor r9d, eax
mov eax, dword [rsp + 0x68]
add eax, esi
rol r9d, 7
mov dword [rsp + 0x68], eax
xor eax, edx
mov edx, dword [rsp + 0x68]
rol eax, 0xc
add ebp, eax
xor esi, ebp
rol esi, 8
add edx, esi
mov dword [rsp + 0x68], edx
xor edx, eax
rol edx, 7
mov dword [rsp], edx
mov edx, dword [rsp + 0x70]
add edx, r11d
mov eax, edx
xor eax, r8d
add r12d, r10d
rol eax, 0xc
xor edi, r12d
add r14d, eax
rol edi, 0x10
add ecx, edi
add r15d, r9d
xor ebx, r15d
xor r11d, r14d
rol ebx, 0x10
add r13d, ebx
rol r11d, 8
add edx, r11d
mov r8d, edx
mov dword [rsp + 0x70], edx
xor r8d, eax
mov eax, r13d
xor eax, r9d
rol r8d, 7
mov r9d, dword [rsp + 0x68]
rol eax, 0xc
add r15d, eax
xor ebx, r15d
rol ebx, 8
add r13d, ebx
mov edx, r13d
xor edx, eax
mov eax, ecx
xor eax, r10d
rol edx, 7
rol eax, 0xc
add r12d, eax
mov dword [rsp + 0x78], edx
xor edi, r12d
rol edi, 8
add ecx, edi
mov r10d, ecx
xor r10d, eax
rol r10d, 7
sub qword [rsp + 8], 1
jne 0x140025bf0
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov dword [rcx], ebp
mov dword [rcx + 4], r14d
mov dword [rcx + 8], r15d
mov dword [rcx + 0xc], r12d
mov dword [rcx + 0x10], r11d
mov dword [rcx + 0x14], ebx
mov dword [rcx + 0x18], edi
mov dword [rcx + 0x1c], esi
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140025df0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140025e70
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x140025e14
call fcn.140023cd0
mov edx, ebx
mov rcx, rdi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140025e27
call fcn.140023cd0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002c210
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x10
mov rax, qword [0x140054358]
xor rax, rsp
mov qword [rsp + 8], rax
xor edx, edx
lea r15, [0x140043ec0]
mov dword [rsp], edx
mov r8, rcx
movzx edi, byte [rsp + 3]
xor eax, eax
movzx esi, byte [rsp + 2]
movzx ebx, dl
movzx ebp, byte [rsp + 1]
movzx r14d, dl
mov word [rsp + 4], dx
movzx r11d, byte [rsp + 5]
nop dword [rax]
movzx r10d, byte [r8 + rax]
movzx ecx, r10b
xor cl, byte [rax + r15]
or cl, r14b
movzx r14d, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x20]
or cl, bpl
movzx ebp, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x40]
or cl, sil
movzx esi, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x60]
or cl, dil
movzx edi, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x80]
or cl, bl
movzx ebx, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0xa0]
xor r10b, byte [rax + r15 + 0xc0]
or cl, r11b
or r10b, dl
movzx r11d, cl
inc rax
movzx edx, r10b
cmp rax, 0x1f
jb 0x14002c270
movzx ecx, byte [rax + r8]
movzx r9d, byte [rax + r15]
and cl, 0x7f
movzx edx, byte [rax + r15 + 0xa0]
movzx r8d, cl
xor edx, r8d
movzx ecx, r10b
or edx, r11d
xor r9d, r8d
dec edx
or r9d, r14d
dec r9d
or r9d, edx
movzx edx, byte [rax + r15 + 0x80]
xor edx, r8d
or edx, ebx
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x60]
xor edx, r8d
or edx, edi
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x20]
xor edx, r8d
or edx, ebp
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x40]
movzx eax, byte [rax + r15 + 0xc0]
xor edx, r8d
xor eax, r8d
or edx, esi
or eax, ecx
dec edx
dec eax
or r9d, edx
or eax, r9d
shr eax, 8
and eax, 1
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.14003ccd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x10
pop r15
pop r14
pop rdi
ret
Function at 0x14002cc10
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
ret
Function at 0x140031220
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x3c], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x30], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x38], eax
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
ret
Function at 0x1400399f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx edx, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, edx
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x10
jl 0x140039a00
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret
Function at 0x14003be08
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 0x14003be8c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004c0c0]
cmp byte [rcx + rax], 0
je 0x14003be8c
dec r8
sub rdx, 1
jne 0x14003be72
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003d618
Capabilities:
Parse pe header

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