joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4338e0
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x433b66
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
lea rsi, [rax + 0x1298]
mov rcx, qword [rax + 0x1288]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x433b5a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1288], 0
cmp byte [0x00adb292], 0
jne 0x43393a
xor edx, edx
xor ebx, ebx
jmp 0x433980
xor edx, edx
jmp 0x433965
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1298]
mov rax, rcx
call fcn.00421d20
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x43393e
add rax, 0x1288
call fcn.00433860
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x433af4
mov rsi, qword [rax + rdx*8 + 0x1298]
cmp rsi, 0x1000
jb 0x43397b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.004155e0
test rax, rax
jne 0x4339cc
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x43397b
mov rsi, qword [rbx + 0x48]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x433a0c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x43397b
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x433b4d
lea r10, [0x00a6d398]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x1040]
lea r8, [r8 + r10]
lea r8, [r8 + 0x1040]
test r11b, r9b
jne 0x433a8f
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x433ac5
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1270]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1270], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x43397b
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x433b45
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1298], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x43397b
cmp rbx, 0x200
ja 0x433b34
lea rdx, [rax + 0x1298]
lea rsi, [rax + 0x1260]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00428800
mov rax, qword [rsp + 0x48]
add rax, 0x1288
call fcn.00433860
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.0046d180
mov rax, r8
call fcn.0046d100
mov rax, r8
mov ecx, 0x40
call fcn.0046d120
mov edx, 0x200
nop
call fcn.0046d160
nop
mov qword [rsp + 8], rax
call fcn.00471a00
mov rax, qword [rsp + 8]
jmp fcn.004338e0
Function at 0x4499a0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x449b07
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x4499b2
cmp edx, ecx
jne 0x449af5
nop word [rax + rax]
test rsi, rsi
jne 0x449af5
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x449a14
nop
call fcn.0046ea40
xorps xmm15, xmm15
mov r14, qword [0x00adb550]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.004498c0
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x449af0
mov rdx, qword [0x00a53778]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x449ae5
mov rcx, qword [0x00a53770]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00a57890]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00a57890], rax
nop
mov edx, 1
lea rsi, [0x00a57898]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1248]
shr rdx, 0x3d
test dl, dl
jne 0x449ad3
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1248], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x0079b8af]
mov ebx, 0x28
nop
call fcn.00439900
mov rax, rsi
mov rcx, rdx
call fcn.0046d100
call fcn.00438180
lea rax, [0x00798d8f]
mov ebx, 0x23
call fcn.00439900
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046ae20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004499a0
Function at 0x457220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x457397
movzx edx, byte [rax]
test edx, edx
jne 0x457254
nop dword [rax]
test r8b, r8b
jne 0x457254
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x457267
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x457357
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x457345
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x457337
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x4572bd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x457300
mov eax, 1
cmp rax, rbx
ja 0x4572eb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046d1c0
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45732f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x4572f3
mov rcx, r11
mov eax, r12d
jmp 0x4572c2
mov rcx, rbx
call fcn.0046d100
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046d100
mov eax, r8d
mov rcx, rbx
call fcn.0046d1c0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45738d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x457350
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45726d
mov eax, edx
mov rcx, rbx
call fcn.0046d100
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046d100
nop
int3

Function at 0x45d3a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45d455
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.0045b020
nop
test bl, bl
je 0x45d44f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x0045d4a0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0046ad00
xorps xmm15, xmm15
mov r14, qword [0x00adb550]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046ae20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045d3a0
Function at 0x4603c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46046f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x004604c0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046ad00
xorps xmm15, xmm15
mov r14, qword [0x00adb550]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046ae20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.004603c0
Function at 0x140004850
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000489a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000489a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000489a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000489a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000489a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000489c
xor al, al
add rsp, 0x28
ret
Function at 0x140015a60
Capabilities:
Write file on windows

Disassembly:
push r13
push r14
push r15
push rbp
sub rsp, 0x68
mov r14, r8
mov rbp, rcx
mov r13, rdx
mov r10, qword [0x14018b5c0]
xor r10, rsp
mov r15, qword [r14]
add r15, qword [r14 + 8]
mov qword [rsp + 0x60], r10
mov rcx, qword [rbp + 0x80]
mov qword [rsp + 0x38], r15
test rcx, rcx
je 0x140015b65
cmp qword [rbp + 0x68], 0
je 0x140015b56
cmp byte [rbp + 0x71], 0
je 0x140015b56
mov r8, qword [rbp]
mov rcx, rbp
mov edx, 0xffffffff
call qword [r8 + 0x18]
cmp eax, 0xffffffff
je 0x140015b65
mov rcx, qword [rbp + 0x68]
mov r15, rsp
lea rdx, [rbp + 0x74]
lea r8, [rsp + 0x40]
mov r10, qword [rcx]
lea r9, [rsp + 0x60]
lea r11, [rsp + 0x30]
mov qword [r15 + 0x20], r11
call qword [r10 + 0x40]
test eax, eax
je 0x140015b12
cmp eax, 1
je 0x140015b16
cmp eax, 3
jne 0x140015b65
mov byte [rbp + 0x71], 0
mov r15, qword [rsp + 0x38]
mov rcx, qword [rbp + 0x80]
jmp 0x140015b56
mov byte [rbp + 0x71], 0
mov r15, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
sub r15, rdx
je 0x140015b44
mov r9, qword [rbp + 0x80]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x140015b65
cmp byte [rbp + 0x71], 0
jne 0x140015b65
mov r15, qword [rsp + 0x38]
mov rcx, qword [rbp + 0x80]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fsetpos]
test eax, eax
je 0x140015ba0
xor edx, edx
mov qword [r13], 0xffffffffffffffff
mov qword [r13 + 8], rdx
mov qword [r13 + 0x10], rdx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], 0
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
jne 0x140015bdd
mov rax, r13
add rsp, 0x68
pop rbp
pop r15
pop r14
pop r13
ret
mov rdx, qword [r14 + 0x10]
lea r8, [rbp + 0x70]
mov qword [rbp + 0x74], rdx
mov rdx, qword [rbp + 0x18]
cmp r8, qword [rdx]
je 0x140015be2
mov rdx, qword [rbp + 0x74]
xor ebp, ebp
mov qword [r13], r15
mov qword [r13 + 8], rbp
mov qword [r13 + 0x10], rdx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbp
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
je 0x140015b91
call fcn.14013ad30
mov r8, qword [rbp + 0x88]
mov r9, qword [rbp + 0x90]
mov qword [rdx], r8
sub r9, r8
mov rdx, qword [rbp + 0x38]
mov qword [rdx], r8
mov r10, qword [rbp + 0x50]
mov dword [r10], r9d
jmp 0x140015bb5
Function at 0x140015c10
Capabilities:
Write file on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x68
mov rdi, rcx
mov r10, qword [0x14018b5c0]
mov r14d, r9d
xor r10, rsp
mov r13, r8
mov qword [rsp + 0x60], r10
mov r12, rdx
mov r11, qword [rdi + 0x38]
lea rbp, [rdi + 0x70]
cmp rbp, qword [r11]
je 0x140015dd8
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x140015d37
cmp qword [rdi + 0x68], 0
je 0x140015d06
cmp byte [rdi + 0x71], 0
je 0x140015d06
mov r9, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [r9 + 0x18]
cmp eax, 0xffffffff
je 0x140015d37
mov rcx, qword [rdi + 0x68]
mov r15, rsp
lea rdx, [rdi + 0x74]
lea r8, [rsp + 0x40]
mov r10, qword [rcx]
lea r9, [rsp + 0x60]
lea r11, [rsp + 0x30]
mov qword [r15 + 0x20], r11
call qword [r10 + 0x40]
test eax, eax
je 0x140015cc7
cmp eax, 1
je 0x140015ccb
cmp eax, 3
jne 0x140015d37
mov byte [rdi + 0x71], 0
mov rcx, qword [rdi + 0x80]
jmp 0x140015d06
mov byte [rdi + 0x71], 0
mov r15, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
sub r15, r9
je 0x140015cf9
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x140015d37
cmp byte [rdi + 0x71], 0
jne 0x140015d37
mov rcx, qword [rdi + 0x80]
test r13, r13
jne 0x140015d11
cmp r14d, 1
je 0x140015d28
mov rdx, r13
mov r8d, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x140015d37
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
je 0x140015d77
xor edx, edx
mov qword [r12], 0xffffffffffffffff
mov qword [r12 + 8], rdx
mov qword [r12 + 0x10], rdx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], 0
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
jne 0x140015daf
mov rax, r12
add rsp, 0x68
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rdx, qword [rdi + 0x18]
cmp rbp, qword [rdx]
je 0x140015db4
mov rcx, qword [rdi + 0x74]
xor ebp, ebp
mov rdx, qword [rsp + 0x38]
mov qword [r12], rdx
mov qword [r12 + 8], rbp
mov qword [r12 + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbp
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
je 0x140015d65
call fcn.14013ad30
mov rbp, qword [rdi + 0x88]
mov r8, qword [rdi + 0x90]
mov qword [rdx], rbp
sub r8, rbp
mov rdx, qword [rdi + 0x38]
mov qword [rdx], rbp
mov r9, qword [rdi + 0x50]
mov dword [r9], r8d
jmp 0x140015d80
cmp r14d, 1
jne 0x140015c4a
cmp qword [rdi + 0x68], 1
sbb r13, 0
jmp 0x140015c4a
Function at 0x140015df0
Capabilities:
Write file on windows

Disassembly:
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x20
mov r13, rcx
mov rbp, r8
mov r12, rdx
cmp qword [r13 + 0x68], 0
je 0x140015e95
mov r15, rbp
test rbp, rbp
jle 0x140015e81
mov r9, qword [r13 + 0x40]
mov rcx, qword [r9]
test rcx, rcx
je 0x140015e2e
mov r9, qword [r13 + 0x58]
movsxd r14, dword [r9]
jmp 0x140015e31
xor r14d, r14d
test r14, r14
jle 0x140015e61
cmp r15, r14
mov rdx, r12
cmovl r14, r15
mov r8, r14
call fcn.1400fa8d0
mov r9, qword [r13 + 0x58]
add r12, r14
sub r15, r14
movsxd r10, r14d
sub dword [r9], r14d
mov r11, qword [r13 + 0x40]
add qword [r11], r10
jmp 0x140015e7c
mov r9, qword [r13]
mov rcx, r13
movzx edx, byte [r12]
call qword [r9 + 0x18]
cmp eax, 0xffffffff
je 0x140015e81
inc r12
dec r15
test r15, r15
jg 0x140015e19
sub rbp, r15
mov rax, rbp
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
mov r9, qword [r13 + 0x40]
mov r15, rbp
mov rcx, qword [r9]
test rcx, rcx
je 0x140015ead
mov r9, qword [r13 + 0x58]
movsxd r14, dword [r9]
jmp 0x140015eb0
xor r14d, r14d
test rbp, rbp
jle 0x140015f08
test r14, r14
jle 0x140015ee8
cmp rbp, r14
mov rdx, r12
cmovl r14, rbp
mov r8, r14
call fcn.1400fa8d0
mov r9, qword [r13 + 0x58]
add r12, r14
movsxd r10, r14d
sub rbp, r14
sub dword [r9], r14d
mov r11, qword [r13 + 0x40]
add qword [r11], r10
test rbp, rbp
jle 0x140015f08
mov r9, qword [r13 + 0x80]
test r9, r9
je 0x140015f08
mov rcx, r12
mov edx, 1
mov r8, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbp, rax
sub r15, rbp
mov rax, r15
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140015f20
Capabilities:
Read file on windows

Disassembly:
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x20
mov r12, r8
mov rbp, rdx
mov r13, rcx
test r12, r12
jle 0x1400160cc
cmp qword [r13 + 0x68], 0
jne 0x140015ff8
mov rdx, qword [r13 + 0x38]
mov r15, r12
mov rdx, qword [rdx]
test rdx, rdx
je 0x140015f62
mov r9, qword [r13 + 0x50]
movsxd r14, dword [r9]
jmp 0x140015f65
xor r14d, r14d
test r14, r14
ja 0x14001609b
cmp qword [r13 + 0x80], 0
je 0x140015fe4
mov r9, qword [r13 + 0x18]
lea rdx, [r13 + 0x70]
cmp rdx, qword [r9]
je 0x140016074
cmp r15, 0xfff
jbe 0x140015fc4
mov r9, qword [r13 + 0x80]
mov rcx, rbp
mov edx, 1
mov r8d, 0xfff
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add rbp, rax
sub r15, rax
cmp rax, 0xfff
jne 0x140015fe4
cmp r15, 0xfff
ja 0x140015f92
test r15, r15
jbe 0x140015fe4
mov r9, qword [r13 + 0x80]
mov rcx, rbp
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r15, rax
sub r12, r15
mov rax, r12
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
mov r15, r12
mov rdx, qword [r13 + 0x38]
mov rdx, qword [rdx]
test rdx, rdx
je 0x140016010
mov r8, qword [r13 + 0x50]
movsxd r14, dword [r8]
jmp 0x140016013
xor r14d, r14d
test r14, r14
jle 0x140016043
cmp r15, r14
mov rcx, rbp
cmovl r14, r15
mov r8, r14
call fcn.1400fa8d0
mov rdx, qword [r13 + 0x50]
add rbp, r14
sub r15, r14
movsxd r8, r14d
sub dword [rdx], r14d
mov r9, qword [r13 + 0x38]
add qword [r9], r8
jmp 0x14001605b
mov rdx, qword [r13]
mov rcx, r13
call qword [rdx + 0x38]
cmp eax, 0xffffffff
je 0x140016060
mov byte [rbp], al
inc rbp
dec r15
test r15, r15
jg 0x140015ffb
sub r12, r15
mov rax, r12
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
mov rdx, qword [r13 + 0x88]
mov r10, qword [r13 + 0x90]
mov qword [r9], rdx
sub r10, rdx
mov r9, qword [r13 + 0x38]
mov qword [r9], rdx
mov r11, qword [r13 + 0x50]
mov dword [r11], r10d
jmp 0x140015f89
cmp r14, r12
mov rcx, rbp
cmovae r14, r12
mov r8, r14
call fcn.1400fa8d0
mov rdx, qword [r13 + 0x50]
mov r15, r12
add rbp, r14
sub r15, r14
movsxd r9, r14d
sub dword [rdx], r14d
mov r10, qword [r13 + 0x38]
add qword [r10], r9
jmp 0x140015f6e
xor eax, eax
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140016af0
Capabilities:
Write file on windows

Disassembly:
push rbx
push r15
push rbp
sub rsp, 0x60
lea r9, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov rbx, rcx
mov rbp, rdx
mov r8, qword [0x14018b5c0]
xor r8, rsp
mov qword [rsp + 0x58], r8
mov qword [rbx], r9
cmp qword [rbx + 0x80], 0
je 0x140016b32
mov r8, qword [rbx + 0x18]
lea rdx, [rbx + 0x70]
cmp rdx, qword [r8]
je 0x140016cf8
cmp byte [rbx + 0x7c], 0
je 0x140016c4e
cmp qword [rbx + 0x80], 0
je 0x140016bf0
mov r8, qword [rbx + 0x18]
lea rdx, [rbx + 0x70]
cmp rdx, qword [r8]
je 0x140016ccc
cmp qword [rbx + 0x68], 0
je 0x140016be3
cmp byte [rbx + 0x71], 0
je 0x140016be3
mov r8, qword [rbx]
mov rcx, rbx
mov edx, 0xffffffff
call qword [r8 + 0x18]
cmp eax, 0xffffffff
je 0x140016be3
mov rcx, qword [rbx + 0x68]
mov r15, rsp
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x38]
mov r10, qword [rcx]
lea r9, [rsp + 0x58]
lea r11, [rsp + 0x30]
mov qword [r15 + 0x20], r11
call qword [r10 + 0x40]
test eax, eax
je 0x140016bb9
cmp eax, 1
je 0x140016bbd
cmp eax, 3
jne 0x140016be3
mov byte [rbx + 0x71], 0
jmp 0x140016be3
mov byte [rbx + 0x71], 0
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
sub r8, rdx
je 0x140016be3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
lea r11, [rbx + 8]
mov byte [rbx + 0x7c], al
lea r8, [rbx + 0x10]
mov byte [rbx + 0x71], al
lea r15, [rbx + 0x28]
mov qword [rbx + 0x18], r11
lea r9, [rbx + 0x30]
mov qword [rbx + 0x20], r8
lea rcx, [rbx + 0x48]
mov qword [rbx + 0x38], r15
lea r10, [rbx + 0x4c]
mov qword [rbx + 0x40], r9
xor edx, edx
mov qword [r8], rdx
mov qword [r9], rdx
mov dword [r10], eax
mov qword [r11], rdx
mov qword [r15], rdx
mov dword [rcx], eax
mov r8, qword [0x140190b80]
mov qword [rbx + 0x50], rcx
mov qword [rbx + 0x58], r10
mov qword [rcx + 0x38], rdx
mov qword [rbx + 0x74], r8
mov qword [rbx + 0x68], rdx
mov rdx, qword [sym.imp.MSVCP140.dll_const_std::basic_streambuf_char__struct_std::char_traits_char__::vftable]
mov r15, qword [rbx + 0x60]
mov qword [rbx], rdx
test r15, r15
je 0x140016c90
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x140016c83
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140016c83
mov r8, qword [rax]
mov rcx, rax
mov edx, 1
call qword [r8]
mov rcx, r15
mov edx, 0x10
call fcn.14013ad50
test rbp, 1
je 0x140016ca6
mov rcx, rbx
mov edx, 0x98
call fcn.14013ad50
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], 0
xor rcx, rsp
cmp rcx, qword [0x14018b5c0]
jne 0x140016cf3
mov rax, rbx
add rsp, 0x60
pop rbp
pop r15
pop rbx
ret
mov rdx, qword [rbx + 0x88]
mov r9, qword [rbx + 0x90]
mov qword [r8], rdx
sub r9, rdx
mov r8, qword [rbx + 0x38]
mov qword [r8], rdx
mov r10, qword [rbx + 0x50]
mov dword [r10], r9d
jmp 0x140016b5b
call fcn.14013ad30
mov rdx, qword [rbx + 0x88]
mov r9, qword [rbx + 0x90]
mov qword [r8], rdx
sub r9, rdx
mov r8, qword [rbx + 0x38]
mov qword [r8], rdx
mov r10, qword [rbx + 0x50]
mov dword [r10], r9d
jmp 0x140016b32
Function at 0x1400a37c0
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rcx + 8]
mov rax, qword [rcx]
sub r8, rax
sar r8, 3
je 0x1400a38c1
lea rdx, [rax + r8*8]
cmp rax, rdx
je 0x1400a38c1
lea r9, [r8*8 + 7]
shr r9, 3
cmp r9, 8
jb 0x1400a38c2
mov r8, rax
and r8, 0xf
je 0x1400a3813
test r8, 7
jne 0x1400a38c2
mov r8d, 1
lea rdx, [r8 + 8]
cmp r9, rdx
jb 0x1400a38c2
mov rdx, r9
xor ecx, ecx
sub rdx, r8
and rdx, 7
neg rdx
add rdx, r9
test r8, r8
jbe 0x1400a3850
movsd xmm0, qword [rax + rcx*8]
xorps xmm0, xmmword [0x140145e70]
movsd qword [rax + rcx*8], xmm0
inc rcx
cmp rcx, r8
jb 0x1400a3837
movups xmm0, xmmword [rax + r8*8]
movups xmm1, xmmword [rax + r8*8 + 0x10]
movups xmm2, xmmword [rax + r8*8 + 0x20]
movups xmm3, xmmword [rax + r8*8 + 0x30]
xorps xmm0, xmmword [0x140146410]
xorps xmm1, xmmword [0x140146410]
xorps xmm2, xmmword [0x140146410]
xorps xmm3, xmmword [0x140146410]
movups xmmword [rax + r8*8], xmm0
movups xmmword [rax + r8*8 + 0x10], xmm1
movups xmmword [rax + r8*8 + 0x20], xmm2
movups xmmword [rax + r8*8 + 0x30], xmm3
add r8, 8
cmp r8, rdx
jb 0x1400a3850
cmp rdx, r9
jae 0x1400a38c1
movsd xmm0, qword [rax + rdx*8]
xorps xmm0, xmmword [0x140145e70]
movsd qword [rax + rdx*8], xmm0
inc rdx
cmp rdx, r9
jb 0x1400a38a8
ret
xor edx, edx
jmp 0x1400a38a3