joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e8c0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.140015b50
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x140058b60]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000e95c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140013fa0
add rsp, 0xf8
ret
Function at 0x14000e978
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, ecx
lea r8, [0x14005a3d0]
mov edi, 0x432
mov edx, edi
lea rsi, [0x14005b440]
mov rcx, rsi
call fcn.14001ba60
lea r8, [0x14003b7c0]
mov edx, edi
mov rcx, rsi
call fcn.14001b9e8
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000e9e7
mov rcx, rsi
call fcn.14001f3a4
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000ebf5
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call fcn.140015b50
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000b40c
nop
lea rdx, str._echo_off
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rdi, [0x14003b994]
cmp ebx, 1
jne 0x14000ea8d
lea rdx, str.sc_stop_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rdx, str.sc_delete_igfxCUIService1.0.0.0
jmp 0x14000eb5d
cmp ebx, 2
jne 0x14000eb6f
lea rdx, str.sc_stop_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rdx, str.TIMEOUT_1__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rdx, str.sc_delete_igfxCUIService2.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rdx, str.TIMEOUT_5__NOBREAK
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
lea rdx, [0x1400593d0]
call fcn.14000aa60
mov rcx, rax
lea rdx, [0x14003b1e0]
call fcn.14000aa60
mov rcx, rax
lea rdx, [0x14003b998]
call fcn.14000aa60
mov rcx, rax
mov rdx, rdi
call fcn.14000aa60
mov rcx, rax
lea rdx, str.__service
call fcn.14000a724
mov rcx, rax
call fcn.14000b124
lea rdx, str.sc_start_igfxCUIService1.0.0.0
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rdx, [0x14003ba58]
lea rcx, [rsp + 0x30]
call fcn.14000aa60
mov rcx, rax
mov rdx, rdi
call fcn.14000aa60
mov rcx, rax
lea rdx, [0x14005a3d0]
call fcn.14000aa60
mov rcx, rax
lea rdx, [0x14003b1e0]
call fcn.14000aa60
mov rcx, rax
lea rdx, str.8A694AF2_286D_429D_867A_3F95898EE308.bat
call fcn.14000aa60
mov rcx, rax
mov rdx, rdi
call fcn.14000aa60
mov rcx, rax
call fcn.14000b124
lea rcx, [rsp + 0x30]
call fcn.14000fbe4
nop
lea rcx, [rbp - 0x28]
call fcn.14000be24
nop
lea rcx, vtable.std::ios_base.0
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x28]
call fcn.1400156a8
nop
mov al, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140013fa0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000f0b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x8a0
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rbx, rcx
lea r8, [0x140059bd0]
lea rcx, [rsp + 0x20]
mov edx, 0x432
xor edi, edi
call fcn.14001ba60
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x432
call fcn.14001b9e8
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000f11b
lea rcx, [rsp + 0x20]
call fcn.14001f3a4
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140013fa0
mov rbx, qword [rsp + 0x8b8]
add rsp, 0x8a0
pop rdi
ret

Function at 0x14000f140
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
lea rcx, [0x14003d880]
call fcn.14000f0b0
lea rcx, [0x14003d4c0]
call fcn.14000f0b0
lea rcx, [0x14003d820]
call fcn.14000f0b0
lea rcx, [0x14003d8e0]
call fcn.14000f0b0
lea rcx, [0x14003d940]
call fcn.14000f0b0
lea rcx, [0x14003b7c0]
call fcn.14000f0b0
lea rcx, [0x14003d730]
add rsp, 0x28
jmp fcn.14000f0b0

Function at 0x14000f264
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.140015b50
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005abd0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000f300
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140013fa0
add rsp, 0xf8
ret

Function at 0x14000f31c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rdi, rdx
mov qword [r11 - 0x28], rax
mov rdx, rcx
mov rbx, r8
mov rcx, 0xffffffff80000002
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f3aa
cmp qword [rsp + 0x30], 0
je 0x14000f3aa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013fa0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140013640
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, r8d
lea rdx, str.Received_Post_Shell_Event__ld_n
lea rcx, [0x140057010]
call fcn.140006a7c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], eax
and qword [rsp + 0x40], rax
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
lea ecx, [rax + 1]
call fcn.140005054
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400136e7
mov dword [rsp + 0x48], 2
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
and dword [rsp + 0x38], ebx
call fcn.14000e1a8
xor edx, edx
mov ecx, edi
call fcn.14000e3f0
mov byte [0x14005c548], 1
test rbx, rbx
je 0x14001370a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140013fa0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14001472c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014776
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014776
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014776
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014776
cmp dword [rcx + 0x84], 0xe
jbe 0x140014776
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014778
xor al, al
add rsp, 0x28
ret

Function at 0x14001eaf4
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 0x14001e967
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e967
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e967
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e967
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e967
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e967
cmp dword [rcx + 0xf8], 0
je 0x14001e967
mov ecx, ebx
call fcn.14001ea18
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.14001e7fc
nop
cmp dword [rbp + 0x20], 0
je 0x14001e9b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e9c0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001e8f8
Function at 0x14001f3a4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f3c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b8ac
or eax, 0xffffffff
jmp 0x14001f3c6
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002987c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140029892
mov al, 1
jmp 0x1400298fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400298a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400298fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002d7d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400298fc
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400298fc
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400298fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400298fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002b064
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.140014400
sub rsp, rax
mov rax, qword [0x140055118]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002902c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002b0b3
mov rax, rbp
jmp 0x14002b1bf
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 + 0x5d670]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002b554
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5d670]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002b1bb
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002b1bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002b554
test rax, rax
js 0x14002b1bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002b1bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002b1ad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002b1ad
cmp byte [rcx], 0xd
jne 0x14002b193
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002b1a2
cmp byte [rcx + 1], 0xa
jne 0x14002b1a2
inc rcx
jmp 0x14002b1a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x55c60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002b175
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002b1bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140013fa0
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 0x14002d288
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 0x14002d30f
mov rsi, rbx
cmp word [rax], bp
je 0x14002d2ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002d2b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002d2b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140027a84
mov rdi, rax
test rax, rax
je 0x14002d2fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016c70
mov rbp, rdi
xor ecx, ecx
call fcn.14002736c
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 0x14002fe48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x14002febb
cmp word [rcx], si
je 0x14002febb
lea rdx, [0x140046178]
call fcn.14001eb00
test eax, eax
je 0x14002febb
lea rdx, [0x140046190]
mov rcx, rbx
call fcn.14001eb00
test eax, eax
jne 0x14002feb1
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002fed8
mov eax, dword [rsp + 0x30]
jmp 0x14002feea
mov rcx, rbx
call fcn.140027284
jmp 0x14002feea
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14002fedc
xor eax, eax
jmp 0x14002feea
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14002feea
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002fefc
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140027720
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002ff9f
cmp edi, dword [rsp + 0x30]
je 0x14002ff98
test ebp, ebp
je 0x14002ff98
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14002ff74
sub dx, 0x61
cmp dx, 0x19
ja 0x14002ff80
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14002ff61
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14002ff84
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14002ffa1
mov eax, 1
jmp 0x14002ffa1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140033b74
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, [0x14005d670]
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 0x140033bcb
cmp word [rdx], r13w
jne 0x140033bcb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140033bd0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140033d01
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140033d22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140033c09
mov rdx, r9
mov word [rbx], cx
jmp 0x140033c30
cmp r9, r8
jae 0x140033c40
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 0x140033bea
jmp 0x140033d01
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], si
mov r8d, r12d
mov dword [rsp + 0x80], esi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033cf6
cmp dword [rsp + 0x80], esi
je 0x140033cf6
lea r8, [0x14005d670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140033cce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140033c9e
mov word [rbx], r13w
jmp 0x140033cfe
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 0x140033cab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140033cfe
cmp word [rsp + 0x70], r13w
jne 0x140033cdb
cmp rbx, r14
je 0x140033c98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002b55c
cmp word [rsp + 0x70], r13w
je 0x140033d01
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, [0x14005d670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140033cfb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140033d01
Function at 0x140036e88
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.14002b55c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002b55c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140036fd8
cmp rax, 0xffffffffffffffff
je 0x140036fd8
xor edi, edi
test rbp, rbp
jle 0x140036f83
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b600
mov rbx, rax
test rax, rax
jne 0x140036f10
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140036f79
mov edx, 0x8000
mov ecx, r14d
call fcn.1400211d0
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.14002aa40
cmp eax, 0xffffffff
je 0x140036f59
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140036f20
mov edx, r15d
mov ecx, r14d
call fcn.1400211d0
jmp 0x140036f79
cmp byte [rsi + 0x38], dil
je 0x140036f70
cmp dword [rsi + 0x34], 5
jne 0x140036f70
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140036f79
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002736c
jmp 0x140036fec
jns 0x140036fec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002b55c
cmp rax, 0xffffffffffffffff
jne 0x140036fa4
cmp byte [rsi + 0x30], dil
je 0x140036fec
mov edi, dword [rsi + 0x2c]
jmp 0x140036fec
mov ecx, r14d
call fcn.14002d7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140036fec
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 0x140036fec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140036fe5
mov eax, dword [rsi + 0x2c]
jmp 0x140036fea
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002b55c
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 0x1400014b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x72]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x140010040]
mov r10, rax
sub rbx, rax
movabs rdi, 0x1485f0e0acd3b68d
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
lea r9, [r9 + 2]
mov rax, rdi
mov rcx, r8
mul r8
mov rax, r8
add r11d, 2
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 0x7a
jb 0x140001500
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001590
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x140010040]
mov r10, rax
sub rbx, rax
movabs rdi, 0x1485f0e0acd3b68d
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rax, r8
mov rcx, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 1]
mov byte [r9 - 1], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [rbx + r9]
mov byte [r9], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 + 1]
mov byte [r9 + 1], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 + 2]
mov byte [r9 + 2], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 + 3]
mov byte [r9 + 3], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [rbx + r9 + 4]
mov byte [r9 + 4], al
mov rax, rdi
mul rcx
mov rax, rcx
lea r9, [r9 + 0xb]
sub rax, rdx
add r11d, 0xb
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 7]
xor al, byte [rbx + r9 - 6]
mov byte [r9 - 6], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 8]
xor al, byte [rbx + r9 - 5]
mov byte [r9 - 5], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 9]
xor al, byte [rbx + r9 - 4]
mov byte [r9 - 4], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xa]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x1da
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 0xb
jb 0x1400015e0
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret