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

Disassembly:
push rbx
push rdi
push r12
push r13
mov eax, 0x48
call fcn.18014c9d0
sub rsp, rax
mov r12, r9
mov rdi, r8
mov r13, rdx
mov rbx, rcx
call fcn.1801ab010
cmp eax, 0x72
jne 0x1802348ae
mov rbx, rdi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], r14
and edi, 1
shr rbx, 1
mov qword [rsp + 0x40], r15
lea r14, [rdi + rbx]
call fcn.1801c59b0
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x30], rsi
mov rcx, rax
mov r9, r12
mov r8, r14
mov rdx, r13
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
call fcn.1802344c0
test eax, eax
je 0x18023484b
lea rdx, str.cryptokdf_tls1_prf.c
mov r8d, 0xf8
mov rcx, rsi
mov qword [rsp + 0x70], rbp
call fcn.1801a04c0
mov rbp, rax
test rax, rax
je 0x180234844
add rbx, r13
call fcn.1801bb390
mov qword [rsp + 0x30], rsi
mov r9, r12
mov r8, r14
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r15
call fcn.1802344c0
test eax, eax
jne 0x180234868
lea r8, str.cryptokdf_tls1_prf.c
mov r9d, 0xfd
mov rdx, rsi
mov rcx, rbp
call fcn.1801a05d0
xor eax, eax
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rbx
ret
test rsi, rsi
je 0x18023488f
mov rdx, rbp
mov rcx, rsi
sub rdx, rdi
nop word [rax + rax]
movzx eax, byte [rdx + rdi]
inc rdi
xor byte [rdi - 1], al
dec rcx
jne 0x180234880
lea r8, str.cryptokdf_tls1_prf.c
mov r9d, 0x102
mov rdx, rsi
mov rcx, rbp
call fcn.1801a05d0
mov eax, 1
jmp 0x180234846
mov rax, qword [rsp + 0xa0]
mov r9, r12
mov r8, rdi
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1802344c0
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x18024a3d0
Capabilities:
Encode data using base64

Disassembly:
mov eax, 8
call fcn.18014c9d0
sub rsp, rax
xor r11d, r11d
mov r9, rcx
test r8d, r8d
jle 0x18024a4dd
mov qword [rsp], rbx
lea r10, [rdx + 1]
lea rbx, [0x180348d50]
nop dword [rax + rax]
movzx ecx, byte [r10 - 1]
cmp r8d, 3
jl 0x18024a45f
movzx eax, byte [r10]
shl ecx, 8
or ecx, eax
movzx eax, byte [r10 + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov edx, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 2], al
movzx eax, byte [rdx + rbx]
mov byte [r9 + 3], al
jmp 0x18024a4b4
shl ecx, 0x10
cmp r8d, 2
jne 0x18024a471
movzx eax, byte [r10]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
cmp r8d, 1
jne 0x18024a4a0
lea eax, [r8 + 0x3c]
jmp 0x18024a4ab
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
sub r8d, 3
add r9, 4
add r11d, 4
add r10, 3
test r8d, r8d
jg 0x18024a400
mov rbx, qword [rsp]
mov byte [r9], 0
mov eax, r11d
add rsp, 8
ret
mov byte [rcx], r11b
mov eax, r11d
add rsp, 8
ret
Function at 0x18025b150
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push r12
push r13
mov eax, gethostbyname
call fcn.18014c9d0
sub rsp, rax
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x28], r14
mov r12, rdx
mov qword [rsp + 0x20], r15
mov r13, r9
shl r12, 5
mov r14, rdx
mov rbx, rcx
mov r15, r8
test r12, r12
je 0x18025b1c3
mov r10, r12
movzx eax, byte [rcx]
add rdi, 4
add rcx, 4
mov dword [rdi - 4], eax
movzx eax, byte [rcx - 3]
shl eax, 8
or dword [rdi - 4], eax
movzx eax, byte [rcx - 2]
shl eax, 0x10
or dword [rdi - 4], eax
movzx eax, byte [rcx - 1]
shl eax, 0x18
or dword [rdi - 4], eax
dec r10
jne 0x18025b192
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
cmp r8, 1
jbe 0x18025b1f9
mov rsi, rdx
lea rbp, [r8 - 1]
shl rsi, 7
nop
mov rdx, rdi
mov r8, r14
mov rcx, rdi
sub rdx, rsi
call fcn.18025ad40
add rdi, rsi
dec rbp
jne 0x18025b1e0
lea rdx, [r15 - 1]
mov r8, r14
mov rcx, r13
imul rdx, r14
shl rdx, 7
add rdx, qword [rsp + 0x78]
call fcn.18025ad40
test r15, r15
je 0x18025b28b
mov rdi, qword [rsp + 0x70]
mov rbp, r14
mov rsi, r15
shl rbp, 7
nop dword [rax]
mov eax, dword [r13 + rbp - 0x40]
xor edx, edx
div r15
mov r8d, edx
imul r8, r14
shl r8, 7
add r8, qword [rsp + 0x78]
test r12, r12
je 0x18025b278
mov r9, r13
mov rcx, rdi
mov rdx, r12
sub r9, rdi
nop dword [rax + rax]
mov eax, dword [r9 + rcx]
add rcx, 4
add r8, 4
xor eax, dword [r8 - 4]
dec rdx
mov dword [rcx - 4], eax
jne 0x18025b260
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.18025ad40
dec rsi
jne 0x18025b230
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
xor edx, edx
test r12, r12
je 0x18025b2da
nop dword [rax + rax]
mov ecx, dword [r13 + rdx*4]
inc rdx
add rbx, 4
mov byte [rbx - 4], cl
mov eax, ecx
shr eax, 8
mov byte [rbx - 3], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rbx - 2], al
mov byte [rbx - 1], cl
cmp rdx, r12
jb 0x18025b2b0
add rsp, 0x30
pop r13
pop r12
pop rbx
ret
Function at 0x18025b5f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
mov eax, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call fcn.18014c9d0
sub rsp, rax
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x110]
xor esi, esi
mov rbp, r9
movsxd rbx, r8d
mov r13, rdx
mov rdi, rcx
mov eax, esi
test r9, r9
je 0x18025b656
cmp r9, qword [rcx]
je 0x18025b64c
test rdx, rdx
je 0x18025b827
test r8d, r8d
js 0x18025b827
mov eax, 1
mov qword [rcx], r9
jmp 0x18025b662
mov rbp, qword [rcx]
test rbp, rbp
je 0x18025b827
mov qword [rsp + 0xb0], r12
test rdx, rdx
je 0x18025b735
mov rcx, rbp
call fcn.180194c20
mov r12d, eax
cmp eax, 0x80
jle 0x18025b69e
lea rdx, str.cryptohmachmac.c
lea rcx, str.assertion_failed:_j____int_sizeof_ctx__key_
mov r8d, 0x28
call fcn.1801a4d90
cmp r12d, ebx
jge 0x18025b6ef
mov rcx, qword [rdi + 8]
mov r8, r14
mov rdx, rbp
call fcn.1801bab70
test eax, eax
je 0x18025b816
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, r13
call fcn.1801bade0
test eax, eax
je 0x18025b816
mov rcx, qword [rdi + 8]
lea r12, [rdi + 0x20]
lea rdx, [rdi + 0x24]
mov r8, r12
call fcn.1801bae00
test eax, eax
je 0x18025b816
jmp 0x18025b712
cmp ebx, 0x80
ja 0x18025b816
lea rcx, [rdi + 0x24]
mov r8, rbx
mov rdx, r13
call fcn.180147850
lea r12, [rdi + 0x20]
mov dword [r12], ebx
mov ecx, dword [r12]
cmp ecx, 0x80
je 0x18025b73d
mov r8d, 0x80
xor edx, edx
sub r8d, ecx
lea rcx, [rcx + rdi + 0x24]
call fcn.18014af80
jmp 0x18025b73d
test eax, eax
je 0x18025b805
lea rax, [rsp + 0x20]
mov rbx, rdi
mov rdx, rsi
sub rbx, rax
nop dword [rax + rax]
lea rcx, [rsp + rdx + 0x20]
add rdx, 2
movzx eax, byte [rbx + rcx + 0x24]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [rbx + rcx + 0x25]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x18025b750
mov rcx, qword [rdi + 0x10]
mov r8, r14
mov rdx, rbp
call fcn.1801bab70
test eax, eax
je 0x18025b816
mov rcx, rbp
call fcn.180194c20
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1801bade0
test eax, eax
je 0x18025b816
nop dword [rax]
lea rcx, [rsp + rsi + 0x20]
add rsi, 2
movzx eax, byte [rbx + rcx + 0x24]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [rbx + rcx + 0x25]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rsi, 0x80
jl 0x18025b7b0
mov rcx, qword [rdi + 0x18]
mov r8, r14
mov rdx, rbp
call fcn.1801bab70
test eax, eax
je 0x18025b816
mov rcx, rbp
call fcn.180194c20
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1801bade0
test eax, eax
je 0x18025b816
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call fcn.1801baea0
test eax, eax
jne 0x18025b81a
xor eax, eax
jmp 0x18025b81f
mov eax, 1
mov r12, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180146c80
add rsp, 0xb8
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18025fa20
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
mov eax, 0x170
call fcn.18014c9d0
sub rsp, rax
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rax, qword [rdx]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
mov qword [rbp + 0x40], rax
mov rax, qword [rdx + 8]
and byte [rbp + 0x40], 0xf8
mov qword [rbp + 0x48], rax
mov rax, qword [rdx + 0x10]
mov qword [rbp + 0x50], rax
mov rax, qword [rdx + 0x18]
lea rdx, [rbp + 0x40]
mov qword [rbp + 0x58], rax
shr rax, 0x38
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x5f], al
call fcn.18025eb60
mov r15d, dword [rbp - 0x80]
mov eax, dword [rsp + 0x78]
mov r13d, dword [rbp - 0x7c]
mov edx, dword [rbp - 0x64]
add eax, dword [rbp - 0x60]
mov esi, dword [rbp - 0x78]
mov r14d, dword [rbp - 0x4c]
mov ebx, dword [rbp - 0x74]
mov r12d, dword [rbp - 0x48]
mov r10d, dword [rbp - 0x70]
mov edi, dword [rbp - 0x44]
mov ecx, dword [rbp - 0x6c]
mov r11d, dword [rbp - 0x40]
mov r8d, dword [rbp - 0x68]
mov r9d, dword [rbp - 0x3c]
mov dword [rbp - 0x10], eax
mov eax, dword [rsp + 0x7c]
add eax, dword [rbp - 0x5c]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0x58]
add eax, r15d
mov dword [rbp - 8], eax
mov eax, dword [rbp - 0x54]
add eax, r13d
mov dword [rbp - 4], eax
mov eax, dword [rbp - 0x50]
add eax, esi
mov dword [rbp], eax
lea eax, [r14 + rbx]
sub r14d, ebx
mov dword [rbp + 4], eax
lea eax, [r12 + r10]
sub r12d, r10d
mov dword [rbp + 8], eax
lea eax, [rdi + rcx]
sub edi, ecx
mov dword [rbp + 0xc], eax
lea eax, [r11 + r8]
sub r11d, r8d
mov dword [rbp + 0x10], eax
lea eax, [r9 + rdx]
mov dword [rbp + 0x2c], r14d
mov dword [rbp + 0x14], eax
mov eax, dword [rbp - 0x60]
mov dword [rbp + 0x30], r12d
sub eax, dword [rsp + 0x78]
mov dword [rbp + 0x34], edi
mov dword [rbp + 0x38], r11d
mov dword [rbp + 0x18], eax
mov eax, dword [rbp - 0x5c]
sub eax, dword [rsp + 0x7c]
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp - 0x58]
sub eax, r15d
mov dword [rbp + 0x20], eax
mov eax, dword [rbp - 0x54]
sub eax, r13d
mov dword [rbp + 0x24], eax
mov eax, dword [rbp - 0x50]
sub eax, esi
sub r9d, edx
lea rdx, [rbp + 0x18]
mov dword [rbp + 0x3c], r9d
mov dword [rbp + 0x28], eax
lea rcx, [rsp + 0x28]
call fcn.18025d870
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.18025c960
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x10]
call fcn.18025c6c0
lea rcx, [rbp + 0x40]
mov edx, 0x20
call fcn.18019f300
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.180146c80
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1802620f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movzx r9d, byte [rdx]
lea eax, [r8 - 1]
xor edi, edi
movzx r11d, r9b
mov esi, r8d
mov rbx, rcx
shr r11b, 7
test eax, eax
jle 0x180262152
mov r10, rcx
sub rdx, rcx
mov edi, eax
mov r8d, eax
nop word [rax + rax]
movzx ecx, byte [rdx + r10 + 1]
add r9b, r9b
inc r10
movzx eax, cl
shr al, 7
or al, r9b
dec r8
movzx r9d, cl
mov byte [r10 - 1], al
jne 0x180262130
mov eax, 0x87
cmp esi, 0x10
mov rsi, qword [rsp + 0x10]
mov ecx, 0x1b
cmove ecx, eax
movsxd rax, edi
mov rdi, qword [rsp + 0x18]
neg r11b
add r9b, r9b
and cl, r11b
xor cl, r9b
mov byte [rax + rbx], cl
mov rbx, qword [rsp + 8]
ret
Function at 0x180274220
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x20
call fcn.18014c9d0
sub rsp, rax
mov eax, dword [r8 + 8]
mov rsi, rdx
mov rdi, rcx
cmp dword [rdx + 8], eax
jge 0x18027424c
mov rbx, r8
jmp 0x180274252
mov rbx, rdx
mov rsi, r8
mov edx, dword [rbx + 8]
call fcn.1801b8b70
test rax, rax
jne 0x18027426f
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
cmp dword [rsi + 8], r8d
jle 0x1802742a4
mov r9d, r8d
nop dword [rax + rax]
mov rax, qword [rsi]
mov rcx, qword [rbx]
inc r8d
mov rdx, qword [rcx + r9]
add r9, 8
xor rdx, qword [rax + r9 - 8]
mov rax, qword [rdi]
mov qword [r9 + rax - 8], rdx
cmp r8d, dword [rsi + 8]
jl 0x180274280
movsxd rdx, r8d
cmp r8d, dword [rbx + 8]
jge 0x1802742cd
shl rdx, 3
mov rax, qword [rbx]
mov rcx, qword [rdi]
inc r8d
mov rax, qword [rdx + rax]
add rdx, 8
mov qword [rdx + rcx - 8], rax
cmp r8d, dword [rbx + 8]
jl 0x1802742b1
mov eax, dword [rbx + 8]
mov rcx, rdi
mov dword [rdi + 8], eax
call fcn.1801b85f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1412912e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1412912ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1412912fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1412912e5
lea eax, [rcx + 1]
jmp 0x14129130b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14129131e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141291304
sub eax, 3
jb 0x14129133e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14129138d
sar eax, 1
movsxd rbp, eax
jb 0x141291374
jmp 0x14129134c
add ebx, ebx
jne 0x14129134a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141291374
inc ecx
add ebx, ebx
jne 0x14129135a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141291374
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14129136d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14129135c
add ecx, 2
jmp 0x141291379
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1412912a2
jmp 0x1412912ed
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x128d000]
mov eax, dword [rdi]
or eax, eax
je 0x1412913e9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1291784]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x141291399
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1412913e3
mov qword [rbx], rax
add rbx, 8
jmp 0x1412913b9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14129142d
cmp al, 0xef
ja 0x141291415
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1412913f5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x141291404
mov eax, dword [rdi]
add rdi, 4
jmp 0x141291404
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1412914ac], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1412914ac
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14129149c
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6
Function at 0x180003c80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180073028]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rbx, [rcx + 0x58]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x18005e7d0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x180003d8c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.180010830
mov rdi, rax
cmp rbx, rax
je 0x180003d3c
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003d0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180003d09
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003d75
mov rcx, r8
call fcn.18005ac24
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x180003d81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003d7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003d7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005ac24
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.18005a24c
lea rcx, str.R3nzSkin
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 8
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.180003570
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1800037a0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x180003e0a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003e04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003e04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005ac24
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18005a840
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180007180
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.0x1800071a1
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 0x1800071ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800071d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180007229
test ecx, ecx
jle 0x180007209
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 0x180007229
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180007229
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
ret
Function at 0x180007250
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 0x180007272
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180007281
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 0x1800072a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800072a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800072e2
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 0x18000737e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000731d
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 0x18000735e
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 0x18000737e
cmp rbx, rax
ja 0x180007330
test rbx, rbx
je 0x18000737e
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
cld
std
invalid
Function at 0x1800077b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180073028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800077dd
xor eax, eax
jmp 0x18000793a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180007808
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180007808
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x18000793a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000792d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18000784b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x180007876
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 0x180007932
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 0x1800078e5
sub eax, 1
je 0x1800078e5
cmp eax, 2
jne 0x18000792d
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 0x180007932
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180007913
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 0x18000792d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180007932
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18005a840
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret