joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ca80
Capabilities:
Encrypt data using rc4 prga

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 rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x14005cae4
test byte [rbx + 6], 0xf
jne 0x14005cad4
xor edi, edi
cmp word [rbx + 4], di
jne 0x14005cad4
cmp word [rbx + 2], di
jne 0x14005cad4
cmp word [rbx], di
jne 0x14005cad4
lea esi, [rdi + 1]
jmp 0x14005cadc
mov eax, 2
movzx esi, ax
movzx eax, si
jmp 0x14005ccf0
xor edi, edi
test cx, cx
jne 0x14005caff
mov rcx, rbx
call fcn.14005d1e8
movzx ecx, ax
cmp di, ax
jl 0x14005cced
movsx edx, cx
test esi, esi
jle 0x14005cb2f
sub ebp, edx
cmp ebp, esi
jg 0x14005cb2f
movsd xmm0, qword [0x1400744c8]
cmp word [rbx + 6], di
jge 0x14005cb21
xorps xmm0, xmmword [0x140067c40]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x14005ccf0
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x14005cb5c
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x14005ccf0
movzx r15d, r11w
lea eax, [rdx + rsi]
and r11w, 0xf
lea ebp, [rax - 1]
mov r13d, 0x8000
mov r12d, 0x10
or r11w, r12w
and r15w, r13w
mov word [rbx + 6], r11w
cmp eax, 0xffffffcb
jle 0x14005cce2
test ebp, ebp
jns 0x14005cce2
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x14005cc01
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x14005cbce
mov word [rbx + 6], di
movzx r11d, di
mov word [rbx + 4], cx
mov word [rbx + 2], dx
neg bp
je 0x14005cc85
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
shr r11w, cl
mov word [rbx + 6], r11w
mov word [rbx + 4], ax
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x14005cc9b
jne 0x14005ccba
test byte [rbx], sil
je 0x14005ccba
add word [rbx], si
jne 0x14005ccba
add word [rbx + 2], si
jne 0x14005ccba
add word [rbx + 4], si
jne 0x14005ccba
add r11w, si
mov word [rbx + 6], r11w
jmp 0x14005cb54
cmp r11w, r15w
jne 0x14005cb54
cmp word [rbx + 4], di
jne 0x14005cb54
cmp word [rbx + 2], di
jne 0x14005cb54
cmp word [rbx], di
je 0x14005cced
jmp 0x14005cb54
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
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 0x14005d6f8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14005e424
add rsp, 0x28
jmp 0x14005d6f8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140078e88], rbx
je 0x14005d742
cmp rax, rbx
jne 0x14005d757
mov edi, 1
mov eax, dword [0x140078e90]
cmp eax, 1
jne 0x14005d764
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14005d7d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005d72b
mov eax, dword [0x140078e90]
test eax, eax
jne 0x14005d7c7
mov dword [0x140078e90], 1
lea r14, [0x140062ad0]
lea rbx, [0x140062ab8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14005d7b9
test eax, eax
jne 0x14005d7bd
cmp qword [rbx], 0
je 0x14005d7ae
mov rax, qword [rbx]
mov rcx, qword [case.0x14003a69c.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14005d78f
test eax, eax
je 0x14005d7d1
mov eax, 0xff
jmp 0x14005d926
mov dword [0x14007748c], 1
mov eax, dword [0x140078e90]
cmp eax, 1
jne 0x14005d7f9
lea rdx, [0x140062ab0]
lea rcx, [0x1400629e0]
call sub.msvcrt.dll__initterm
mov dword [0x140078e90], 2
test edi, edi
jne 0x14005d806
xor eax, eax
xchg qword [0x140078e88], rax
cmp qword [0x140078ea8], 0
je 0x14005d83a
lea rcx, [0x140078ea8]
call fcn.14005e390
test eax, eax
je 0x14005d83a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140078ea8]
mov r9, qword [case.0x14003a69c.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x14005d8c5
test cl, cl
je 0x14005d85c
test edi, edi
jne 0x14005d8c5
dec cl
cmp cl, 0x1f
ja 0x14005d86f
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14005d85c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14001dd68
mov dword [0x140077488], eax
cmp dword [0x1400774a8], 0
jne 0x14005d8ae
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14007748c], 0
jne 0x14005d8c3
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140077488]
jmp 0x14005d926
cmp cl, 0x22
jne 0x14005d8d7
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14005d8ec
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14005d84d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14005dd7c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14005dd88
push rbx
sub rsp, 0x540
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14005de05
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14005de25
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14005d960
add rsp, 0x540
pop rbx
ret

Function at 0x14005dd88
Capabilities:
Print debug messages

Disassembly:
jmp 0x14005dd88
push rbx
sub rsp, 0x540
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14005de05
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14005de25
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14005d960
add rsp, 0x540
pop rbx
ret

Function at 0x14005e28c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005e2d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005e2d0
cmp dword [rcx + 0x3c], edx
jl 0x14005e2d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14005e2d0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14005e2d8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003f10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003f32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140003fac
mov rdi, r14
mov rcx, rbx
call fcn.140006720
test rax, rax
jle 0x140003f84
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140060e10
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140003f9c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003fa4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003f46
sub r14, rdi
jmp 0x140004099
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003fc3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003fc5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003ffa
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140060e10
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004096
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140004035
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140004071
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14006a968
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1400040af
cmp rbp, rax
ja 0x140004041
mov r8, rdi
test rdi, rdi
je 0x140004096
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14006a968
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140004099
Function at 0x140068b38
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400689a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400689a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400689a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400689a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400689a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400689a3
cmp dword [rcx + 0xf8], 0
je 0x1400689a3
mov ecx, ebx
call fcn.140068a54
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140068830
nop
cmp dword [rbp + 0x20], 0
je 0x1400689f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400689fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140068934

Function at 0x14006b774
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400c4238]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400ad178]
mov rbp, rcx
call fcn.140082658
xor edi, edi
test rax, rax
je 0x14006b85a
mov ebx, edi
call fcn.14006d970
mov r14d, dword [rax]
call fcn.14006d970
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400825a4
mov rsi, rax
test rax, rax
je 0x14006b7eb
call fcn.14006d970
mov dword [rax], r14d
jmp 0x14006b815
call fcn.14006d970
cmp dword [rax], 0x22
jne 0x14006b852
call fcn.14006d970
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400825a4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14006b852
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14006b819
cmp rax, 3
je 0x14006b834
mov rcx, rsi
call fcn.14006b6d0
test al, al
je 0x14006b845
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14006b845
mov dil, 1
mov rcx, rbx
call fcn.14006a44c
mov al, dil
jmp 0x14006b85c
mov rcx, rbx
call fcn.14006a44c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14005d730
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14007e770
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007e786
mov al, 1
jmp 0x14007e7e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007e797
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007e7e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140082d84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007e7e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007e7e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007e7e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007e7e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007ff24
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.1400904f0
sub rsp, rax
mov rax, qword [0x1400c4238]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14007da94
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14007ff73
mov rax, rbp
jmp 0x14008007b
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 + 0xf9cb0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140081ad0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf9cb0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140080077
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 0x140080077
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140081ad0
test rax, rax
js 0x140080077
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140080077
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140080069
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140080069
cmp byte [rcx], 0xd
jne 0x14008004f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008005e
cmp byte [rcx + 1], 0xa
jne 0x14008005e
inc rcx
jmp 0x14008005e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc46d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140080031
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008007b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005d730
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 0x140080e70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f9cb0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140080ec7
cmp word [rdx], r13w
jne 0x140080ec7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140080ecc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140080ff1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140081012
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140080f05
mov rdx, r9
mov word [rbx], cx
jmp 0x140080f2c
cmp r9, r8
jae 0x140080f3c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140080ee6
jmp 0x140080ff1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140080fe6
cmp dword [rsp + 0x80], esi
je 0x140080fe6
lea r8, [0x1400f9cb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140080fbe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140080f8e
mov word [rbx], r13w
jmp 0x140080fee
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140080f9b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140080fee
cmp word [rsp + 0x70], r13w
jne 0x140080fcb
cmp rbx, r14
je 0x140080f88
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140081ad8
cmp word [rsp + 0x70], r13w
je 0x140080ff1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f9cb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140080feb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140080ff1
Function at 0x140085e14
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140085e9b
mov rsi, rbx
cmp word [rax], bp
je 0x140085e5a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140085e44
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140085e40
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007c794
mov rdi, rax
test rax, rax
je 0x140085e88
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140060e10
mov rbp, rdi
xor ecx, ecx
call fcn.14007b82c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140088944
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14007dfa0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400889e5
cmp ebx, dword [rsp + 0x30]
je 0x1400889de
test esi, esi
je 0x1400889de
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400889b9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400889c6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400889a3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400889ca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400889e7
mov eax, 1
jmp 0x1400889e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14008c1d8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c4238]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14008c222
call fcn.14006d950
mov dword [rax], 0xf
call fcn.14006d970
mov dword [rax], 0xd
call fcn.140069140
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005d730
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14008c22d
lea eax, [rbx + 1]
jmp 0x14008c20f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14008c20d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14008c20f
Function at 0x14008dfbc
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.140081ad8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140081ad8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008e10c
cmp rax, 0xffffffffffffffff
je 0x14008e10c
xor edi, edi
test rbp, rbp
jle 0x14008e0b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007b7b4
mov rbx, rax
test rax, rax
jne 0x14008e044
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008e0ad
mov edx, 0x8000
mov ecx, r14d
call fcn.140076fac
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.14007f398
cmp eax, 0xffffffff
je 0x14008e08d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008e054
mov edx, r15d
mov ecx, r14d
call fcn.140076fac
jmp 0x14008e0ad
cmp byte [rsi + 0x38], dil
je 0x14008e0a4
cmp dword [rsi + 0x34], 5
jne 0x14008e0a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14008e0ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007b82c
jmp 0x14008e120
jns 0x14008e120
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140081ad8
cmp rax, 0xffffffffffffffff
jne 0x14008e0d8
cmp byte [rsi + 0x30], dil
je 0x14008e120
mov edi, dword [rsi + 0x2c]
jmp 0x14008e120
mov ecx, r14d
call fcn.140082d84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008e120
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 0x14008e120
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008e119
mov eax, dword [rsi + 0x2c]
jmp 0x14008e11e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140081ad8
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
Function at 0x140032c40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor edi, edi
call qword [0x140143578]
cmp rax, 8
jl 0x140032c9c
mov qword [rsp + 0x50], rbp
lea ebp, [rdi + 4]
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rsi
call qword [0x140142e28]
lea rdx, [rdi + 4]
mov rcx, rsi
movzx ebx, byte [rax]
call qword [0x140142e28]
inc rdi
xor byte [rax], bl
sub rbp, 1
jne 0x140032c70
mov rbp, qword [rsp + 0x50]
mov rcx, rsi
call qword [0x140143440]
mov rcx, rsi
mov rbx, rax
call qword [0x140143128]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rax
call qword [0x140143120]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [0x140143450]
lea rcx, [rsp + 0x20]
call qword [0x140143740]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret