joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065b10
Capabilities:
Hash data using fnv

Disassembly:
mov r9, qword [rcx + 0xf8]
mov r10, rdx
movsxd rax, r8d
imul rdx, rax, 0x1000193
imul rax, r10, 0x100011b
xor rdx, rax
and rdx, qword [rcx + 0x110]
mov rcx, qword [rcx + 0xe8]
mov rax, rdx
add rax, rax
add rdx, rdx
mov rax, qword [r9 + rax*8]
mov r11, qword [r9 + rdx*8]
lea r9, [r9 + rdx*8]
cmp r11, rcx
jne 0x140065b5b
mov rdx, rcx
jmp 0x140065b62
mov rdx, qword [r9 + 8]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x140065b7e
cmp qword [rax + 0x10], r10
jne 0x140065b73
cmp r8d, dword [rax + 0x18]
je 0x140065b78
mov rax, qword [rax]
jmp 0x140065b51
cmovne rax, rcx
jmp 0x140065b81
mov rax, rcx
cmp rax, rcx
jne 0x140065b89
xor eax, eax
ret
mov rax, qword [rax + 0x20]
ret

Function at 0x140065dd0
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
cmp qword [r9 + 0x18], 0x10
mov r10, r9
mov rbx, r8
mov rbp, rdx
jb 0x140065df7
mov r10, qword [r9]
movzx eax, byte [r10]
xor r9d, r9d
mov r11, r10
test al, al
je 0x140065e27
nop word [rax + rax]
movsx rax, al
lea r9, [r9 + r9*4]
add r9, rax
lea r11, [r11 + 1]
movzx eax, byte [r11]
test al, al
jne 0x140065e10
mov r8, qword [rcx + 0x18]
imul rdx, rbx, 0x1000193
xor rdx, r9
and rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 8]
mov rax, rdx
add rax, rax
add rdx, rdx
mov rax, qword [r8 + rax*8]
mov rdi, qword [r8 + rdx*8]
lea rsi, [r8 + rdx*8]
cmp rdi, rcx
jne 0x140065e5c
mov rdx, rcx
jmp 0x140065e63
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x140065eca
cmp qword [rax + 0x10], rbx
jne 0x140065e9b
mov rdx, qword [rax + 0x18]
mov r11, r10
sub r11, rdx
nop dword [rax + rax]
movzx r9d, byte [rdx]
movzx r8d, byte [rdx + r11]
sub r9d, r8d
jne 0x140065e96
inc rdx
test r8d, r8d
jne 0x140065e80
test r9d, r9d
je 0x140065ea0
mov rax, qword [rax]
jmp 0x140065e52
cmp rbx, qword [rax + 0x10]
jne 0x140065eca
mov r9, qword [rax + 0x18]
sub r9, r10
nop dword [rax]
movzx r8d, byte [r10]
movzx edx, byte [r10 + r9]
sub r8d, edx
jne 0x140065ec5
inc r10
test edx, edx
jne 0x140065eb0
test r8d, r8d
je 0x140065ecd
mov rax, rcx
movups xmm2, xmmword [0x14015f508]
cmp rax, rcx
je 0x140065ee4
add rax, 0x20
je 0x140065ee4
movups xmm1, xmmword [rax]
jmp 0x140065ee7
movups xmm1, xmm2
movd eax, xmm1
cmp eax, dword [rsp + 0x28]
mov rax, rbp
je 0x140065efa
movups xmmword [rbp], xmm2
jmp 0x140065efe
movups xmmword [rbp], xmm1
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x140066470
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx + 0x10]
mov r10, rcx
movsxd r9, edx
imul rdx, r9, 0x1000193
mov rcx, qword [rax + 0x90]
imul rax, r10, 0x100011b
mov r8, qword [rcx + 0x138]
xor rdx, rax
and rdx, qword [rcx + 0x150]
mov rcx, qword [rcx + 0x128]
mov rax, rdx
add rax, rax
add rdx, rdx
mov rax, qword [r8 + rax*8]
mov r11, qword [r8 + rdx*8]
lea r8, [r8 + rdx*8]
nop dword [rax]
cmp r11, rcx
jne 0x1400664ca
mov rdx, rcx
jmp 0x1400664d1
mov rdx, qword [r8 + 8]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x1400664ed
cmp qword [rax + 0x10], r10
jne 0x1400664e2
cmp r9d, dword [rax + 0x18]
je 0x1400664e7
mov rax, qword [rax]
jmp 0x1400664c0
cmovne rax, rcx
jmp 0x1400664f0
mov rax, rcx
cmp rax, rcx
jne 0x1400664f8
xor eax, eax
ret
mov rax, qword [rax + 0x20]
ret

Function at 0x140074a20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, qword [r8 + 0x18]
mov r14, r8
mov rbp, qword [r8 + 0x10]
mov r12, rdx
mov rdi, rcx
mov r10, r8
cmp r13, 0x10
jb 0x140074a51
mov r10, qword [r8]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test rbp, rbp
je 0x140074a84
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, rbp
jb 0x140074a70
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x30]
mov rdi, qword [rdi + 8]
and rax, r9
mov rbx, rax
mov qword [rsp + 0x70], rsi
add rax, rax
add rbx, rbx
mov r15, qword [rcx + rax*8]
inc rax
mov rbx, qword [rcx + rbx*8]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x60], rax
cmp r15, rdi
jne 0x140074abf
mov rax, rdi
jmp 0x140074ac5
mov rax, qword [rax]
mov rax, qword [rax]
cmp rbx, rax
je 0x140074b6d
mov rdx, r14
cmp r13, 0x10
jb 0x140074ada
mov rdx, qword [r14]
cmp qword [rbx + 0x28], 0x10
lea rcx, [rbx + 0x10]
jb 0x140074ae9
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
cmp r8, rbp
jne 0x140074afb
call fcn.1400d6580
test eax, eax
je 0x140074b05
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x60]
jmp 0x140074ab5
mov r12, qword [rsp + 0x60]
mov rsi, rbx
nop dword [rax]
cmp r15, rdi
jne 0x140074b1a
mov rax, rdi
jmp 0x140074b21
mov rax, qword [r12]
mov rax, qword [rax]
cmp rbx, rax
je 0x140074b58
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x140074b35
mov rdx, qword [rbx + 0x10]
mov rcx, r14
cmp r13, 0x10
jb 0x140074b41
mov rcx, qword [r14]
cmp rbp, qword [rbx + 0x20]
jne 0x140074b58
mov r8, rbp
call fcn.1400d6580
test eax, eax
jne 0x140074b58
mov rbx, qword [rbx]
jmp 0x140074b10
mov r12, qword [rsp + 0x68]
cmp rsi, rbx
je 0x140074b6d
mov qword [r12], rsi
mov qword [r12 + 8], rbx
jmp 0x140074b76
mov qword [r12], rdi
mov qword [r12 + 8], rdi
mov rax, r12
mov rsi, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140074f70
Capabilities:
Encode data using xor
Hash data using fnv

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
sub rsp, 0x20
mov r15, qword [r8 + 0x18]
mov rdi, r8
mov rbp, qword [r8 + 0x10]
mov r14, rdx
mov rsi, rcx
mov r10, r8
cmp r15, 0x10
jb 0x140074fa9
mov r10, qword [r8]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test rbp, rbp
je 0x140074fe4
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, rbp
jb 0x140074fd0
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, r9
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r12, qword [rcx + rax*8]
lea r13, [rcx + rax*8]
cmp r12, rsi
jne 0x140075012
mov rax, rsi
jmp 0x140075019
mov rax, qword [r13 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x140075085
mov rdx, rdi
cmp r15, 0x10
jb 0x14007502a
mov rdx, qword [rdi]
cmp qword [rbx + 0x28], 0x10
lea rcx, [rbx + 0x10]
jb 0x140075039
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
cmp r8, rbp
jne 0x14007504b
call fcn.1400d6580
test eax, eax
je 0x140075050
mov rbx, qword [rbx]
jmp 0x140075008
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x14007505f
mov rdx, qword [rbx + 0x10]
cmp r15, 0x10
jb 0x140075068
mov rdi, qword [rdi]
cmp rbp, qword [rbx + 0x20]
jne 0x14007507d
mov r8, rbp
mov rcx, rdi
call fcn.1400d6580
test eax, eax
je 0x140075080
mov rbx, rsi
mov qword [r14], rbx
jmp 0x140075088
mov qword [r14], rsi
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400aa560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov rsi, rdx
mov r13, qword [rcx]
mov rbx, qword [r13 + 8]
mov r14, r13
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x1400aa5eb
mov r14, rbx
test r15b, r15b
je 0x1400aa5c0
lea rcx, [rbx + 0x20]
mov rdx, r12
call fcn.140037aa0
mov edi, eax
shr edi, 0x1f
xor dil, 1
jmp 0x1400aa5d2
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.140037aa0
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x1400aa5dc
mov rbx, qword [rbx]
jmp 0x1400aa5e0
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x1400aa5a1
mov rcx, qword [rsp + 0x70]
mov rbx, r14
test dil, dil
je 0x1400aa68a
cmp r14, qword [r13]
jne 0x1400aa630
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8b, 1
lea rdx, [rsp + 0x70]
call fcn.1400a9e00
mov rax, qword [rax]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x1400aa6dd
cmp byte [r14 + 0x19], 0
je 0x1400aa63d
mov rbx, qword [r14 + 0x10]
jmp 0x1400aa68a
mov rax, qword [r14]
cmp byte [rax + 0x19], 0
jne 0x1400aa662
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400aa68a
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400aa653
jmp 0x1400aa68a
mov rax, qword [r14 + 8]
cmp byte [rax + 0x19], 0
jne 0x1400aa682
nop dword [rax]
cmp rbx, qword [rax]
jne 0x1400aa682
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400aa670
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, r12
call fcn.140037aa0
shr eax, 0x1f
test al, al
je 0x1400aa6d3
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, r14
movzx r8d, dil
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1400a9e00
mov rax, qword [rax]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x1400aa6dd
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400af288
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400af30c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140120b30]
cmp byte [rcx + rax], 0
je 0x1400af30c
dec r8
sub rdx, 1
jne 0x1400af2f2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400c96f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400b3e36
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400b3e19
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400b3e04

Function at 0x1400d4924
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140161580]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400e6e32
cmp word [rdx], r12w
jne 0x1400e6e32
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400e6e38
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400e6f93
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400e6f6e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400e6e71
mov rcx, r9
jmp 0x1400e6e94
cmp r9, rdx
jae 0x1400e6eab
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400e6e55
jmp 0x1400e6f93
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e6f68
cmp dword [rsp + 0x80], edi
je 0x1400e6f68
mov rdx, r14
lea r11, [0x140161580]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400e6f41
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400e6f14
mov word [rbx], r12w
jmp 0x1400e6f8f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400e6f1d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400e6f8f
cmp word [rsp + 0x70], r12w
jne 0x1400e6f4e
cmp rbx, rsi
je 0x1400e6f0e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400f6328
cmp word [rsp + 0x70], r12w
je 0x1400e6f93
mov word [rbx], r13w
jmp 0x1400e6f8f
lea r11, [0x140161580]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400e6f8b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400e6f93
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ee960
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400ee750

Function at 0x1400f4c5c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400f4c8e
call fcn.1400e4738
mov dword [rax], 0x16
call fcn.1400dabf4
jmp 0x1400f4dad
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400f4dad
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400f4dad
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400f4cbd
lock or dword [rcx + 0x14], 0x10
jmp 0x1400f4dad
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400f4cd1
call fcn.1400f385c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400f1c14
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400e7280
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400f4d9b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400f4d66
mov rcx, rsi
call fcn.1400f1c14
cmp eax, edi
je 0x1400f4d51
mov rcx, rsi
call fcn.1400f1c14
cmp eax, 0xfffffffe
je 0x1400f4d51
mov rcx, rsi
call fcn.1400f1c14
movsxd rbx, eax
lea r14, [0x140161580]
mov rcx, rsi
sar rbx, 6
call fcn.1400f1c14
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400f4d58
lea rdx, [0x14015ac50]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400f4d66
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400f4d8a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400f4d8a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400f4d8a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400f4db0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400f4dc8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400f4aea
call fcn.1400e4738
mov dword [rax], 0x16
call fcn.1400dabf4
jmp 0x1400f4c3a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400f4c3a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400f4c3a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400f4b19
lock or dword [rcx + 0x14], 0x10
jmp 0x1400f4c3a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400f4b2d
call fcn.1400f385c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400f4b3d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400f4b40
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400f1c14
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400e7280
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400f4c28
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400f4bd3
mov rcx, rbx
call fcn.1400f1c14
cmp eax, 0xffffffff
je 0x1400f4bbe
mov rcx, rbx
call fcn.1400f1c14
cmp eax, 0xfffffffe
je 0x1400f4bbe
mov rcx, rbx
call fcn.1400f1c14
movsxd rdi, eax
lea rsi, [0x140161580]
mov rcx, rbx
sar rdi, 6
call fcn.1400f1c14
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400f4bc5
lea rdx, [0x14015ac50]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400f4bd3
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400f4bf7
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400f4bf7
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400f4bf7
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1400f4c15
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1400f4c20
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400f4c3f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400f4ab4
Function at 0x1400f5194
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400d42b0
sub rsp, rax
mov rax, qword [0x14015a7a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400f1c14
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400f51e3
mov rax, rbp
jmp 0x1400f52eb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x161580]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400f6320
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x161580]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400f52e7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f52e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400f6320
test rax, rax
js 0x1400f52e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400f52e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400f52d9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400f52d9
cmp byte [rcx], 0xd
jne 0x1400f52bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400f52ce
cmp byte [rcx + 1], 0xa
jne 0x1400f52ce
inc rcx
jmp 0x1400f52ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15a9a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400f52a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400f52eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400d38c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f6edc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400dbd2c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400f6f66
cmp byte [rbp - 0x21], r15b
je 0x1400f6f61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400f6f9c
call fcn.1400f2dec
test eax, eax
jne 0x1400f6f88
cmp byte [rbp - 0x21], r15b
je 0x1400f6f80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400f6f9c
cmp byte [rbp - 0x21], r15b
je 0x1400f6f99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400e5e68
test eax, eax
jne 0x1400f703c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400dbd2c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400f6fdb
cmp byte [rbp - 0x21], r15b
je 0x1400f7010
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400f7010
call fcn.1400f2dec
test eax, eax
jne 0x1400f6ffc
cmp byte [rbp - 0x21], r15b
je 0x1400f6ff5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400f7010
cmp byte [rbp - 0x21], r15b
je 0x1400f700d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400e5e68
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400f703c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400f703f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400f704d
mov rcx, rdi
call fcn.1400f26a0
cmp byte [rbp + 0x3f], r15b
je 0x1400f705c
mov rcx, qword [rbp + 0x27]
call fcn.1400f26a0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400f7744
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400f6328
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f6328
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f7894
cmp rax, 0xffffffffffffffff
je 0x1400f7894
xor edi, edi
test rbp, rbp
jle 0x1400f783f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400f22a8
mov rbx, rax
test rax, rax
jne 0x1400f77cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f7835
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e7858
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400e8314
cmp eax, 0xffffffff
je 0x1400f7815
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f77dc
mov edx, r15d
mov ecx, r14d
call fcn.1400e7858
jmp 0x1400f7835
cmp byte [rsi + 0x38], dil
je 0x1400f782c
cmp dword [rsi + 0x34], 5
jne 0x1400f782c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400f7835
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400f26a0
jmp 0x1400f78a8
jns 0x1400f78a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f6328
cmp rax, 0xffffffffffffffff
jne 0x1400f7860
cmp byte [rsi + 0x30], dil
je 0x1400f78a8
mov edi, dword [rsi + 0x2c]
jmp 0x1400f78a8
mov ecx, r14d
call fcn.1400f7634
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f78a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400f78a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f78a1
mov eax, dword [rsi + 0x2c]
jmp 0x1400f78a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f6328
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret