joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140246180
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1402461a0
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0xa0]
call fcn.140246780
lea rcx, [rsp + 0x48]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x60]
call fcn.14001ddb0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140246248
xor eax, eax
jmp 0x1402462f9
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x70]
call fcn.14001ddb0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14024629d
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x80]
call fcn.140246720
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.140246720
mov eax, dword [rsp + 0x20]
add rsp, 0xb8
pop rdi
pop rsi
ret

Function at 0x140246540
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1402504a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp dword [rsp + 0x88], 0x200
jge 0x14025051b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx]
cmp dword [rax], ecx
jge 0x1402504e2
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
jmp 0x1402504ed
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x100
jge 0x14025051b
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140250a50
jmp 0x1402506be
mov edx, dword [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.140248210
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140250540
mov eax, dword [rsp + 0x30]
jmp 0x1402506be
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], 0
jmp 0x14025056a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x20], eax
jge 0x140250696
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
cmp dword [rcx], eax
jge 0x1402505a5
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
jmp 0x1402505b8
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x24], 0
jmp 0x1402505d4
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x24], eax
jge 0x140250662
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x10]
mov ecx, dword [rdx + rcx*4]
movsxd rdx, dword [rsp + 0x24]
mov r8, qword [rsp + 0x78]
mov r8, qword [r8 + 0x10]
mov edx, dword [r8 + rdx*4]
imul rcx, rdx
add rax, rcx
mov ecx, dword [rsp + 0x28]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
and rax, 0xfffffff
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x20]
add edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x58]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x40]
shr rax, 0x1c
mov dword [rsp + 0x28], eax
jmp 0x1402505ca
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x88]
jge 0x140250691
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
jmp 0x140250560
lea rcx, [rsp + 0x48]
call fcn.140248ed0
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.140248030
lea rcx, [rsp + 0x48]
call fcn.140247d80
xor eax, eax
add rsp, 0x68
ret
Function at 0x140254cc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140255140
movzx eax, al
test eax, eax
jne 0x140254ce0
mov ecx, 7
call fcn.1402556d0
nop
mov byte [rsp + 0x20], 0
call fcn.1402550d0
mov byte [rsp + 0x21], al
cmp dword [0x140316498], 1
jne 0x140254d04
mov ecx, 7
call fcn.1402556d0
nop
jmp 0x140254d5c
cmp dword [0x140316498], 0
jne 0x140254d57
mov dword [0x140316498], 1
lea rdx, [0x14025b2f8]
lea rcx, [0x14025b2e0]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x140254d38
mov eax, 0xff
jmp 0x140254e61
lea rdx, [0x14025b2d8]
lea rcx, [0x14025b150]
call sub.ucrtbased.dll__initterm
mov dword [0x140316498], 2
jmp 0x140254d5c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140255330
call fcn.1402556a0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140254db9
mov rcx, qword [rsp + 0x30]
call fcn.1402552a0
movzx eax, al
test eax, eax
je 0x140254db9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14025b128]
nop
call fcn.1402556b0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140254ded
mov rcx, qword [rsp + 0x38]
call fcn.1402552a0
movzx eax, al
test eax, eax
je 0x140254ded
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.140254ea0
mov dword [rsp + 0x28], eax
call fcn.140255880
movzx eax, al
test eax, eax
jne 0x140254e0c
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140254e1b
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.140255360
mov eax, dword [rsp + 0x28]
jmp 0x140254e61
add rsp, 0x68
ret
Function at 0x14001511c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001519a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015191
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015191
mov rax, qword [rbp - 8]
jmp 0x1400151af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015164
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x143170698
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1431706a2
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 0x1431706cb
pop rbp
sub rbp, 0x33
sub rbp, 0x3170698
sub rsp, 0x20
jmp 0x1431706ea
mov rax, 0x3170698
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffe8793cba
xor byte [rax], dl
inc rax
dec rcx
jne 0x143170709
jmp 0x143170720
xor edx, dword [rbx + 0x31]
xor eax, dword [rsi - 0xd454546]
cmp edi, dword [rbx - 0x4e]
mov ebx, 0xbbf2baba
push rbx
bnd jge 0x1431707b0
mov ebp, 0xf2bababa
jge 0x1431707b5
xchg edx, eax
mov edx, 0x4df2baba
pop rax
mov ebx, 0xb63b317b
mov edx, 0xbbf2baba
push rdx
invalid
mov edx, 0x3753baba
mov eax, 0x52e8baba
invalid
Function at 0x1800012b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x18000135e
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x18000135e
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x18000135e
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x180001357
cmp rax, 6
jne 0x180001330
mov eax, dword [rbx + r9 + 0x20]
mov ebx, dword [rbx + r9 + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x180001360
inc edx
cmp edx, r11d
jl 0x180001310
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x18000c0c4]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call fcn.1800011d0
test rax, rax
je 0x1800013a4
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x18000149b
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001401
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x180001429
mov r9d, 0xa
lea rdx, [0x18000c0b8]
mov r8, rsi
mov rcx, rbx
call fcn.1800011d0
test rax, rax
je 0x180001429
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x18000149b
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x18000c0b0]
mov rcx, rax
call fcn.1800011d0
mov rcx, rax
test rax, rax
jne 0x180001482
lea r9d, [rax + 7]
mov rcx, rbx
lea r8, [rbx + 0x80]
lea rdx, [0x18000c0a8]
call fcn.1800011d0
mov rcx, rax
test rcx, rcx
je 0x18000149b
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180004780
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 0x1800047a8
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 0x1800047ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800047d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180004829
test ecx, ecx
jle 0x180004809
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 0x180004829
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180004829
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 0x180004850
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 0x180004872
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180004888
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 0x1800048a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800048a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800048e2
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 0x18000497e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000491d
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 0x18000495e
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 0x18000497e
cmp rbx, rax
ja 0x180004930
test rbx, rbx
je 0x18000497e
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 0x180004de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18000c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180004e0d
xor eax, eax
jmp 0x180004f79
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180004e47
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180004e47
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 0x180004f79
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180004f6c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180004e8a
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 0x180004eb5
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 0x180004f71
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 0x180004f24
sub eax, 1
je 0x180004f24
cmp eax, 2
jne 0x180004f6c
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 0x180004f71
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180004f52
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 0x180004f6c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180004f71
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180005f60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800052c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18000c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180005393
cmp byte [rcx + 0x71], 0
je 0x180005393
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000538f
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 0x180005354
sub eax, 1
je 0x180005358
cmp eax, 2
jne 0x18000538f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005f60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180005386
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 0x18000538f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000533c
xor al, al
jmp 0x18000533c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005f60
add rsp, 0x60
pop rbx
ret
Function at 0x180002800
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002832
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002832
nop word cs:[rax + rax]
jmp 0x180002830
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002908
mov rsi, r10
test r8b, r8b
je 0x180002920
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800028a0
test r9b, r9b
je 0x180002930
sub rsi, rcx
je 0x180002904
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002900
test ebp, ebp
jne 0x180002900
add rbx, 1
cmp rsi, rbx
jne 0x1800028c0
jmp 0x180002904
test ebp, ebp
jne 0x18000288c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002920
jmp 0x180002930
Function at 0x140002ab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x13d0
call fcn.140008b80
sub rsp, rax
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov r8d, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, 1
nop dword [rax]
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, ecx
mov dword [rsp + rcx*4 + 0x34], r8d
inc rcx
cmp rcx, 0x270
jb 0x140002b10
mov dword [rsp + 0x30], 0x270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov dword [rsp + 0x20], 1
test edi, edi
jle 0x140002bc8
mov esi, 0x80000000
lea rbp, str.0123456789ABCDEF
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.1400079e0
mov eax, eax
shr rax, 0x1c
sub rax, rsi
xor rax, 0xffffffff80000000
movzx r9d, byte [rax + rbp]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140002bba
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140002baf
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002bc2
mov rcx, rbx
call fcn.1400071a0
sub rdi, 1
jne 0x140002b70
mov rax, rbx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140007c10
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003100
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x13f0
call fcn.140008b80
sub rsp, rax
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov ebp, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov r8d, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov esi, 1
mov ecx, esi
nop
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, ecx
mov dword [rsp + rcx*4 + 0x54], r8d
inc rcx
cmp rcx, 0x270
jb 0x140003160
mov dword [rsp + 0x50], 0x270
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov dword [rsp + 0x20], esi
test ebp, ebp
jle 0x14000325a
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.1400079e0
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 5
ja 0x1400031e8
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.1400079e0
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 6
jb 0x1400031d0
shr rax, 0x20
lea edx, [rax - 0x80000000]
xor edx, 0x80000000
lea rcx, [rsp + 0x30]
call fcn.140006b60
or esi, 2
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400063a0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140003250
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000324b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003286
call fcn.140007c6c
inc ebx
cmp ebx, ebp
jl 0x1400031b0
mov rax, rdi
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140007c10
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3