joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1806b60ce
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg qword [rsp + r11*4 - 0x6c], r11
jmp 0x1806b78cc
push 0xffffffff843c13bb
mov rsp, qword [rbp + riz - 0x10]
mov r9d, 0x3a0d781b
movsx r11d, r9b
push r9
mov rbp, qword [r11 + rbp - 0x23]
mov qword [rsp + r11*2 - 0x36], r11
mov qword [rbp + r9 - 0x3a0d781b], rax
jmp 0x180696430
mov cl, byte [r10 + 0x10]
push 0x65b4ac3f
jae 0x1806b1560
mov edx, 0x570a802a
mov ecx, edx
mov ecx, dword [rdx + rbx - 0x570a802a]
ror dl, 0xc2
lea rbx, [rbx + rdx - 0x570a8086]
lea rdx, [rdx + rdx*8 + 0x6e06ddbd]
sub r11, 2
ror rdx, 0xf1
movzx edx, word [r11]
jae 0x1806966b4
adc r10, 0xa
shld r8, r9, cl
jmp 0x1806cde84
pop r9
movzx r8d, r11w
pop r8
pop r11
call fcn.18069f25b
mov ecx, 0x37344bbe
not ecx
lea r8, [rcx + rcx*4 - 0x2d7793e4]
mov r8, qword [r11]
push rcx
call fcn.180696b29
mov ecx, 0x32ac1ba
movzx r9d, cl
not rcx
mov r8, qword [rcx + r10 + 0x32ac1bb]
sub rcx, 0x65101687
mov r9, qword [r9 + r10 - 0xb2]
and ecx, 0xd73135bf
or ecx, ecx
jae 0x18069d393
mov edx, 0x57ae952a
add edx, edx
sar edx, 0x7f
rdtsc
sbb rbp, 8
push 0xffffffffc093be87
mov dword [rbp + 4], eax
call fcn.1806a2ae6
xor r10b, cl
mov qword [rsp + 8], 0x680f6008
sub rbx, 2
mov word [rbx], cx
lea rsp, [rsp + 0x18]
jmp 0x1806bf290
mov rdi, rbp
pop r9
jmp 0x1806b60a7
mov qword [r10], r8
lea rsp, [rsp + 8]
jmp 0x18069b9d2

Function at 0x1806bf3d9
Capabilities:
Encode data using xor

Disassembly:
xor ebp, ebp
test rcx, rcx
jmp 0x1806ae44f

Function at 0x1806c6df2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword ss:[r10], rbx
call fcn.18068fe36

Function at 0x1806c6dfb
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
xor dx, r9w
call fcn.1806c1820

Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov edx, 0x58
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov rcx, rax
mov rbp, rax
lea r8d, [rdx + 0x58]
call fcn.140002f80
or byte [rsi + 0xc2], 2
lea r9, [0x1400010b0]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov byte [rsp + 0x30], 1
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov rcx, rbp
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeApc]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_KeInsertQueueApc]
test al, al
jne 0x140001091
lea rcx, [0x140003360]
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sahf
push rsi
wait
invalid
in eax, dx
mov ebx, 0x6bb0b7ec
fcmovnu st(0), st(0)
loope 0x14003f5b3
fcom qword [rdi - 0x62]
xor byte [rcx - 0x37de67ca], bl
invalid
pop rbx
add dword [rcx + 0x71a926ec], ebx
mov ecx, 0x3d7f38d1
jge 0x14003f5f0
shr dword [rdi], 1
cmp dword [rax + 0x44568be2], 0x71
ret 0x637c
jmp 0x14003f651
push rdx
in al, dx
push rbp
sbb ecx, edi
mov dh, 3
or ecx, ebx
movabs al, byte [0xbae7dd5bb5b933e8]
call 0x19bb9af96
fucom st(7)
invalid
invalid
call 0x19bb9af96
fucom st(7)
mov edx, 0xbb1aef17
jns 0x14003f64b
setb byte [rdx + 0x10]
int 0x8b
scasd eax, dword [rdi]
shrd dword ss:[rdx], eax, cl
add cl, byte [rax + 0x4d]
movabs dword [0x86f05d3c56e40249], eax
add cl, byte [rax + 0x4d]
movabs dword [0x86f05d3c56e40249], eax
cld
xor al, 0x4a
loop 0x14003f60f
mov bh, ah
mov ah, 0x1d
bt ebx, eax
out 0xbd, eax
push rdi
jmp 0x18186d57d
out 0xde, eax
invalid
invalid
out 0xde, eax
invalid
xchg edi, eax
int 0xb9
out 0x2a, eax
invalid
invalid
and bh, ch
invalid
mov byte [rcx + 0x3c020dbc], ch
adc ebx, dword [rsi + 0x27c36eb8]
jo case.0x140007272.2
fprem1
in al, dx
invalid
fdiv st(2)
invalid
in eax, dx
invalid

Function at 0x14000727c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140007342
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007306
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007303
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020630]
mov rdx, rsi
call fcn.1400123b8
jmp 0x140007306
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072d3
mov rdx, qword [0x14001f110]
lea rcx, [0x140020630]
mov rdi, rdx
inc rdx
mov qword [0x14001f110], rdx
lea edx, [rbx + 0x20]
call fcn.140012400
lea rcx, [0x140021200]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140001aea
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [fcn.140013fd0]
xor ebx, ebx
mov rdi, rcx
mov rbp, rdx
cmp rbx, rbp
jl 0x140001b42
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x14001611c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x1400145c0
mov r12, qword [rdi + rbx*8]
mov ecx, 1
inc rbx
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.140001a4a
jmp 0x140001b03

Function at 0x140001e6b
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001e8a
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x1400145c0
jmp qword [sym.imp.msvcrt.dll_fflush]
Function at 0x14000c2ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
xor eax, eax
xor r15d, r15d
mov qword [rsp + 0xc0], rcx
lea rcx, [0x140036e40]
mov qword [rsp + 0xc8], rdx
mov edx, 0x41f3ff2d
mov dword [rsp + 0x6c], eax
call fcn.14000bfb0
mov rcx, rax
call fcn.1400061c0
xor edx, edx
xor r9d, r9d
mov r8d, 1
mov rcx, rax
mov rax, qword [0x140037780]
mov qword [rsp + 0x30], rdx
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [rax]
xor edx, edx
mov rcx, rax
mov rdi, rax
mov rax, qword [0x140037790]
call qword [rax]
mov ebp, eax
mov rax, qword [0x1400377d0]
call qword [rax]
movsxd r8, ebp
xor edx, edx
mov rcx, rax
mov rax, qword [0x1400377c0]
call qword [rax]
xor ecx, ecx
mov r8d, ebp
lea r9, [rsp + 0x6c]
mov rbx, rax
mov rdx, rax
mov rax, qword [0x1400377a0]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [rax]
movsxd r8, dword [rbx + 0x3c]
lea r14, [rbx + r8]
movzx ebp, word [r14 + 0x14]
lea r12, [r14 + 0x18]
mov esi, dword [r14 + 0x88]
add rbp, r12
mov r13, rbp
cmp r15w, word [r14 + 6]
jb 0x14000c3d1
movsxd rcx, dword [r13 + 0xc]
movsxd r8, esi
movsxd rdx, dword [r13 + 0x14]
xor r12d, r12d
add r8, rbx
sub r8, rcx
lea r15, [r8 + rdx]
movsxd rax, dword [r15 + 0x20]
add rax, rbx
sub rax, rcx
add rax, rdx
mov qword [rsp + 0x50], rax
movsxd rax, dword [r15 + 0x1c]
add rax, rbx
sub rax, rcx
add rax, rdx
mov qword [rsp + 0x48], rax
jmp 0x14000c421
imul eax, r15d, 0x28
movzx edi, word [r14 + 0x14]
mov edx, 8
add rdi, r12
movzx eax, ax
add rdi, rax
mov rcx, rdi
call fcn.14000c275
mov edx, 0x1ab3d7
lea rcx, [0x140036e10]
mov qword [rsp + 0x48], rax
call fcn.14000bfb0
mov rcx, qword [rsp + 0x48]
mov rdx, rax
call fcn.140006164
test al, al
cmovne r13, rdi
inc r15d
jmp 0x14000c38c
cmp dword [r15 + 0x18], r12d
jle 0x14000c4ab
mov rcx, qword [rsp + 0x50]
mov rdx, r12
inc r12
call fcn.14000bcb5
movsxd rdx, dword [r13 + 0xc]
mov rcx, qword [rsp + 0x48]
movsxd rax, dword [rax]
add rax, rbx
sub rax, rdx
movsxd rdx, dword [r13 + 0x14]
add rax, rdx
mov rdx, r12
mov qword [rsp + 0x58], rax
call fcn.14000bcb5
movsxd r14, dword [rbp + 0xc]
movsxd rdi, dword [rbp + 0x14]
movsxd rsi, dword [rax]
mov rax, qword [0x1400378a0]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x58]
call qword [rax]
test eax, eax
jne 0x14000c421
add rsi, rbx
mov rcx, qword [0x140015070]
mov eax, 1
mov rbx, rsi
sub rbx, r14
lea rsi, [rbx + rdi]
mov rdi, qword [rsp + 0xc8]
rep movsb byte [rdi], byte [rsi]
jmp 0x14000c4ad
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000e250
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140013fd0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140013fd0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000e2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004fb54]
mov rbx, rcx
test esi, esi
jle 0x14000e3f0
mov rax, qword [0x14004fb58]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e30b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e395
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e2f0
mov rcx, rbx
call fcn.14000ed10
mov rdi, rax
test rax, rax
je 0x14000e412
mov rax, qword [0x14004fb58]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ee50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004fb58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e3f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e38e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e3a0
add dword [0x14004fb54], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14004fb58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e38e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e250
nop dword [rax]
xor esi, esi
jmp 0x14000e318
mov rax, qword [0x14004fb58]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e250
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e250
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e980
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004fbc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004fba0]
test rbx, rbx
je 0x14000e9dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000e9d3
test rsi, rsi
je 0x14000e9d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e9b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000ed10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140037ac0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ed30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ed38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ed30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000ed8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000ed84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ed30
add rax, 0x28
cmp rax, r9
jne 0x14000ed70
xor eax, eax
ret

Function at 0x14000ed90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140037ac0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000edaf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000edb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000edaf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000ee50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140037ac0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000ee6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000ee78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400011d0
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 r14
sub rsp, 0x60
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea r14, [0x14000d910]
mov eax, dword [rcx + rax]
cmp dword [0x14000d900], eax
jle 0x140001297
lea rcx, [0x14000d900]
call fcn.140006bec
cmp dword [0x14000d900], 0xffffffff
jne 0x140001297
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rdx, rax
mov dword [0x14000ec94], 0xffffffff
mov dword [0x14000d914], eax
lea r8d, [rdi + 1]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
mov dword [r14 + r8*4 + 4], edx
inc r8
cmp r8, 0x270
jb 0x140001260
mov dword [0x14000d910], 0x270
lea rcx, [0x14000d900]
call fcn.140006b80
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8d, 0x34
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
lea rcx, [rsp + 0x30]
call fcn.140001460
nop
mov rcx, r14
call fcn.1400016c0
mov ecx, eax
lea rax, [rcx + rcx*2]
test eax, eax
jne 0x1400012e6
mov rcx, r14
call fcn.1400016c0
mov ecx, eax
lea rax, [rcx + rcx*2]
cmp eax, 1
jb 0x1400012d3
shr rax, 0x20
add eax, 4
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov edi, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x30]
mov rcx, r14
call fcn.1400016c0
mov ecx, eax
imul rax, rcx, 0x34
cmp eax, 0x2f
ja 0x140001343
nop dword [rax]
mov rcx, r14
call fcn.1400016c0
mov ecx, eax
imul rax, rcx, 0x34
cmp eax, 0x30
jb 0x140001330
shr rax, 0x20
lea rdx, [rsp + 0x30]
cmp rbp, 0x10
cmovae rdx, rsi
movsxd rcx, eax
movzx r9d, byte [rcx + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140001388
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000137d
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001390
mov rcx, rbx
call fcn.140001560
sub rdi, 1
jne 0x140001316
cmp rbp, 0x10
jb 0x1400013d0
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400013c8
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140006ca0
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140006b60
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400016c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140001721
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
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 0x1400016e0
mov ecx, dword [r9]
jmp 0x140001808
cmp ecx, 0x4e0
jb 0x140001808
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
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 rbx, 1
jne 0x140001740
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
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 rbx, 1
jne 0x140001790
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
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 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
add rsp, 8
ret
Function at 0x140004820
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 0x140004848
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 0x14000486e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004870
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400048c9
test ecx, ecx
jle 0x1400048a9
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 0x1400048c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400048c9
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 0x1400048f0
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 0x140004912
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004928
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 0x140004944
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004946
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004982
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 0x140004a1e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400049bd
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 0x1400049fe
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 0x140004a1e
cmp rbx, rax
ja 0x1400049d0
test rbx, rbx
je 0x140004a1e
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