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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xa1790]
mov eax, 0xa1890
call fcn.14000c950
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa1780], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x5622
mov dword [rsp + 0x70], 0x5622
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xa17fc
call fcn.140003d90
mov eax, ebx
lea r9, [rbp - 0x80]
nop
mov r8d, eax
lea r9, [r9 + 1]
shr r8d, 8
movzx ecx, al
shl cl, 4
mov edx, eax
and r8b, cl
shr edx, 4
movzx ecx, al
shl cl, 2
xor r8b, cl
movzx ecx, al
add cl, cl
xor r8b, dl
and cl, dl
inc eax
or r8b, cl
mov byte [r9 - 1], r8b
cmp eax, 0xa17fc
jb 0x140002170
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0xa17fc
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0xa1780]
xor rcx, rsp
call fcn.140002b70
mov rbx, qword [rsp + 0xa18a0]
add rsp, 0xa1890
pop rbp
ret
Function at 0x140002240
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50b90]
mov eax, 0x50c90
call fcn.14000c950
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x50b80], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x2b11
mov dword [rsp + 0x70], 0x2b11
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x50bfe
call fcn.140003d90
mov eax, ebx
lea r8, [rbp - 0x80]
nop
movzx ecx, al
lea r8, [r8 + 1]
add cl, cl
movzx edx, al
shl dl, 4
and dl, al
xor dl, cl
mov ecx, eax
shr ecx, 4
and dl, cl
movzx ecx, al
shl cl, 2
inc eax
xor dl, cl
xor dl, 7
mov byte [r8 - 1], dl
cmp eax, 0x50bfe
jb 0x1400022d0
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x50bfe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x50b80]
xor rcx, rsp
call fcn.140002b70
mov rbx, qword [rsp + 0x50ca0]
add rsp, 0x50c90
pop rbp
ret
Function at 0x140002660
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50b90]
mov eax, 0x50c90
call fcn.14000c950
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x50b80], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x2b11
mov dword [rsp + 0x70], 0x2b11
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x50bfe
call fcn.140003d90
mov eax, ebx
lea r8, [rbp - 0x80]
nop
mov edx, eax
lea r8, [r8 + 1]
shr edx, 8
mov ecx, eax
shr ecx, 1
and dl, cl
mov ecx, eax
shr ecx, 3
and cl, 0x17
xor dl, cl
movsx ecx, al
movsx edx, dl
inc eax
imul edx, ecx
mov byte [r8 - 1], dl
cmp eax, 0x50bfe
jb 0x1400026f0
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x50bfe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x50b80]
xor rcx, rsp
call fcn.140002b70
mov rbx, qword [rsp + 0x50ca0]
add rsp, 0x50c90
pop rbp
ret
Function at 0x140005418
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400051ec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400051ec
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400051ec
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400051ec
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400051ec
cmp dword [rcx + 0x84], 0xe
jbe 0x1400051ec
cmp dword [rcx + 0xf8], esi
je 0x1400051ec
mov ecx, r14d
call fcn.140005334
mov ecx, 2
call fcn.140007d30
nop
cmp byte [0x140019238], 0
jne 0x1400052b6
mov r15d, 1
mov eax, r15d
xchg dword [0x14001922c], eax
test ebx, ebx
jne 0x14000525f
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140019230]
cmp rcx, rax
je 0x140005256
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003450]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140019250]
jmp 0x14000526b
cmp ebx, r15d
jne 0x140005271
lea rcx, [0x140019268]
call fcn.1400059ac
nop
test ebx, ebx
jne 0x140005288
lea rdx, [0x14000e3a0]
lea rcx, [0x14000e380]
call fcn.1400050ac
lea rdx, [0x14000e3b0]
lea rcx, [0x14000e3a8]
call fcn.1400050ac
movzx eax, byte [0x140019238]
test esi, esi
cmove eax, r15d
mov byte [0x140019238], al
jmp 0x1400052b6
mov ecx, 2
call fcn.140007d84
test esi, esi
jne 0x1400052cd
mov ecx, r14d
call fcn.1400052e8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000517c
Function at 0x140003ed0
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx eax, byte [0x14010bbb0]
mov rsi, rcx
test al, al
jne 0x140003f28
movsxd rax, dword [rcx]
lea rcx, [0x1400724b0]
mov rcx, qword [rcx + rax*8]
call fcn.140053000
test al, al
je 0x1400040cb
mov byte [0x14010bbb0], 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006b720
add rsp, 0x60
pop rsi
ret
cmp al, 1
jne 0x1400040cb
mov qword [rsp + 0x78], rbx
lea rcx, [0x14007150c]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r14
vmovaps xmmword [rsp + 0x40], xmm6
call fcn.140053000
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140003f77
imul rax, rax, 0x64
jmp 0x140003f95
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffffbd3e27f
lea rdi, [rax + 0x42c1d80]
cmp rax, rcx
jl 0x140003fb5
movabs rdi, 0x7fffffffffffffff
vmovsd xmm6, qword [0x14007a6d8]
movabs rbp, 0x311cdad160000
movabs r14, 0x112e0be826d694b3
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140003fef
imul rbx, rax, 0x64
jmp 0x140004010
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
cmp rbx, rdi
jge 0x14000407f
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rdx, rax, 0x64
mov rax, rdi
sub rax, rbx
vxorps xmm0, xmm0, xmm0
vcvtsi2sd xmm0, xmm0, rax
vcomisd xmm0, xmm6
lea rcx, [rdx + rbp]
ja 0x14000403c
lea rcx, [rax + rdx]
add rax, rdx
add rdx, rbp
vcomisd xmm0, xmm6
cmovbe rdx, rax
mov rax, r14
imul rdx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
mov qword [rsp + 0x20], rdx
sub ecx, eax
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x140003fd1
vmovaps xmm6, xmmword [rsp + 0x40]
lea rbx, [0x140072210]
mov r14, qword [rsp + 0x50]
lea rdi, [0x1400724a8]
mov rbp, qword [rsp + 0x80]
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400040b8
mov eax, dword [rbx]
mov dword [rsi], eax
mov byte [0x14010bbb0], 0
add rbx, 4
cmp rbx, rdi
jne 0x1400040a0
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006b720
add rsp, 0x60
pop rsi
ret
Function at 0x1400040e0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x20]
call fcn.140016880
nop
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x140004171
lea rdx, [0x140070da6]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000e570
lea rdx, [0x14000e740]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdi, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae r9, qword [rsp + 0x20]
mov rax, qword [0x14010a320]
cmp rdi, rax
ja 0x1400041c1
lea rbx, [0x14010a308]
cmp rax, 0x10
cmovae rbx, qword [0x14010a308]
mov qword [0x14010a318], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1400041d1
mov rdx, rdi
lea rcx, [0x14010a308]
call fcn.14000e9f0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140004211
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000420c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000420c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006bab0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14006b720
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140005160
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x38
call fcn.140004f30
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov dword [rsp + 0x28], 1
lea r8, str.del.bat
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14000cfd0
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 case.default.0x14000cff1
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 0x14000d01e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000d020
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000d079
test ecx, ecx
jle 0x14000d059
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 0x14000d079
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000d079
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
add dword [rcx + 0x2c001500], esp
add byte [rdi], ch
add byte [rax], dl
add byte [rdi], dh
invalid
Function at 0x14000d0a0
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 0x14000d0c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000d0d1
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 0x14000d0f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d0f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000d132
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 0x14000d1ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000d16d
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 0x14000d1ae
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 0x14000d1ce
cmp rbx, rax
ja 0x14000d180
test rbx, rbx
je 0x14000d1ce
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
adc eax, 0xa7899fe
mov word [rcx + 0x72], es
adc ebp, dword [rdx + 5]
adc dword [eax + 0x17], esp
or edx, dword [rsi + 0x1160170b]
adc byte [ebx], cl
push 0x13
and byte [rax], ah
or al, byte [rsi]
and byte [rdi], al
or dword [rdx], ecx
invalid
Function at 0x14000d600
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000d62d
xor eax, eax
jmp 0x14000d799
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d667
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000d667
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 0x14000d799
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000d78c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d6aa
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 0x14000d6d5
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 0x14000d791
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 0x14000d744
sub eax, 1
je 0x14000d744
cmp eax, 2
jne 0x14000d78c
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 0x14000d791
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000d772
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 0x14000d78c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d791
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006b720
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000e020
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000e0f3
cmp byte [rcx + 0x71], 0
je 0x14000e0f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000e0ef
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 0x14000e0b4
sub eax, 1
je 0x14000e0b8
cmp eax, 2
jne 0x14000e0ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006b720
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000e0e6
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 0x14000e0ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000e09c
xor al, al
jmp 0x14000e09c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006b720
add rsp, 0x60
pop rbx
ret
Function at 0x140011120
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.14006c790
sub rsp, rax
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r8d, [rdi + 0x3e]
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x30]
call fcn.1400141d0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [rdi + 1]
nop dword [rax]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x1400111b0
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
lea rcx, [rsp + 0x50]
call fcn.140014cd0
mov ecx, eax
imul rax, rcx, 0x17d
cmp eax, 0xf
ja 0x14001120d
lea rcx, [rsp + 0x50]
call fcn.140014cd0
mov ecx, eax
imul rax, rcx, 0x17d
cmp eax, 0x10
jb 0x1400111f5
shr rax, 0x20
add eax, 0x154
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
je 0x1400112ff
mov r14d, eax
nop dword [rax + rax]
mov eax, ebp
cmp ebp, 0x80000000
jb 0x14001126d
cmp ebp, 0xffffffff
jne 0x14001126d
lea rcx, [rsp + 0x50]
call fcn.140014cd0
mov ecx, eax
jmp 0x1400112ac
lea edi, [rax + 1]
lea rcx, [rsp + 0x50]
call fcn.140014cd0
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x1400112a8
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x1400112a8
lea rcx, [rsp + 0x50]
call fcn.140014cd0
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140011294
shr rcx, 0x20
lea rdx, [rsp + 0x30]
cmp r13, 0x10
cmovae rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400112ed
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400112e2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400112f5
mov rcx, rbx
call fcn.14000e890
sub r14, 1
jne 0x140011250
cmp r13, 0x10
jb 0x140011339
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140011331
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011331
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14006bab0
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14006b720
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret