joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f440
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rcx
mov r13, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040db60
test rax, rax
mov rbx, rax
je 0x40f5c8
test rbp, rbp
je 0x40f47b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x40f4f0
test rsi, rsi
je 0x40f4e0
mov ecx, 0x14
call r14
cmp esi, 4
je 0x40f4f0
add rsi, 1
jmp 0x40f4af
xor ecx, ecx
call r12
jmp 0x40f4d9
lea rsi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rsi
call fcn.0040dc20
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x40f5ad
xor edx, edx
test r13, r13
je 0x40f54d
mov eax, dword [r13]
mov edx, dword [r13 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x40f680
mov eax, dword [r13 + 0x18]
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x0040e220]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rdi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x40f5e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x40f58c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.0040d4d0
mov rcx, rsi
call fcn.0040dc20
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test rbp, rbp
je 0x40f5ba
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x40f670
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x40f610
add edx, 0xd
cmp eax, 0xffffffff
jl 0x40f610
cmp eax, 0xe
mov edx, 0xf
jle 0x40f6a0
nop word cs:[rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x40f650
mov qword [rbx + 0x28], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rdi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f636
mov rcx, rbx
call fcn.0040d920
jmp 0x40f5c8
mov dword [rsp + 0x3c], edx
call fcn.0040dd70
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [rbx + 0xc0], eax
jmp 0x40f54d
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x40f610
Function at 0x41ba70
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0040cfc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0040cfc0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140002780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1c8], rbx
mov rax, qword [0x140077088]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r15, r9
mov rbx, r8
mov rdi, rcx
mov qword [rsp + 0x38], rbx
mov edx, 0x6c
lea r8d, [rdx - 0x62]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140002917
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002917
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test r14, r14
je 0x140002917
test eax, eax
je 0x140002917
xor ecx, ecx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rcx
mov r8d, eax
add r8, r14
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140007f90
nop
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov r8, r15
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400026e0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.14002ed20
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003fa0
nop
cmp qword [rbp - 8], 0
je 0x1400028e2
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
lea rcx, [rsp + 0x70]
call fcn.140004b50
lea rcx, [rsp + 0x78]
call fcn.140006980
test rax, rax
jne 0x1400028e2
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0x70]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
xor r8d, r8d
call fcn.140002350
nop
lea rcx, [rbp + 0x18]
call fcn.140003f20
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.14000db0c
nop
lea rcx, [rsp + 0x58]
call fcn.140003be0
nop
lea rcx, [rsp + 0x40]
call fcn.140003be0
nop
mov rcx, rbx
call fcn.140003df0
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14002b8b0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003de70
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 0x14003dedf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003dedf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003dedf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003dedf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003dedf
cmp dword [rcx + 0x84], 0xe
jbe 0x14003dedf
cmp dword [rcx + 0xf8], 0
je 0x14003dedf
mov ecx, ebx
call fcn.14003df90
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.14003dd6c
nop
cmp dword [rbp + 0x20], 0
je 0x14003df2d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003df38
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003de70

Function at 0x14003e074
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 0x14003dedf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003dedf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003dedf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003dedf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003dedf
cmp dword [rcx + 0x84], 0xe
jbe 0x14003dedf
cmp dword [rcx + 0xf8], 0
je 0x14003dedf
mov ecx, ebx
call fcn.14003df90
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.14003dd6c
nop
cmp dword [rbp + 0x20], 0
je 0x14003df2d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003df38
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003de70

Function at 0x1400414ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140041502
mov al, 1
jmp 0x140041562
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140041513
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140041560
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004b388
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140041560
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140041560
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140041560
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140041562
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400443f8
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.14002c280
sub rsp, rax
mov rax, qword [0x140077088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400413cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140044447
mov rax, rbp
jmp 0x14004454f
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 + 0x7a070]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004494c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7a070]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004454b
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 0x14004454b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004494c
test rax, rax
js 0x14004454b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004454b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004453d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004453d
cmp byte [rcx], 0xd
jne 0x140044523
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140044532
cmp byte [rcx + 1], 0xa
jne 0x140044532
inc rcx
jmp 0x140044532
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x77b80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140044505
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004454f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002b8b0
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 0x14004a5ec
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004a61c
xor eax, eax
jmp 0x14004a6df
mov rbp, rbx
cmp word [rax], si
je 0x14004a641
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004a628
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004a624
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400482d0
movsxd r14, eax
test eax, eax
jne 0x14004a67f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004a615
mov rcx, r14
call fcn.140031824
mov rdi, rax
test rax, rax
jne 0x14004a698
xor ecx, ecx
call fcn.14003d804
jmp 0x14004a674
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400482d0
test eax, eax
jne 0x14004a6c9
mov rcx, rdi
call fcn.14003d804
jmp 0x14004a6d3
xor ecx, ecx
call fcn.14003d804
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004a6fc
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 0x14004a783
mov rsi, rbx
cmp word [rax], bp
je 0x14004a742
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004a72c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004a728
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140031824
mov rdi, rax
test rax, rax
je 0x14004a770
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002cc60
mov rbp, rdi
xor ecx, ecx
call fcn.14003d804
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 0x14004d908
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.1400419ac
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 0x14004d9a9
cmp ebx, dword [rsp + 0x30]
je 0x14004d9a2
test esi, esi
je 0x14004d9a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004d97d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004d98a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004d967
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004d98e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004d9ab
mov eax, 1
jmp 0x14004d9ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004df40
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, [0x14007a070]
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 0x14004df97
cmp word [rdx], r13w
jne 0x14004df97
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004df9c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004e0c1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004e0e2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004dfd5
mov rdx, r9
mov word [rbx], cx
jmp 0x14004dffc
cmp r9, r8
jae 0x14004e00c
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 0x14004dfb6
jmp 0x14004e0c1
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 0x14004e0b6
cmp dword [rsp + 0x80], esi
je 0x14004e0b6
lea r8, [0x14007a070]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004e08e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004e05e
mov word [rbx], r13w
jmp 0x14004e0be
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 0x14004e06b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004e0be
cmp word [rsp + 0x70], r13w
jne 0x14004e09b
cmp rbx, r14
je 0x14004e058
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140044954
cmp word [rsp + 0x70], r13w
je 0x14004e0c1
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, [0x14007a070]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004e0bb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004e0c1
Function at 0x140053474
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.140044954
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140044954
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400535c4
cmp rax, 0xffffffffffffffff
je 0x1400535c4
xor edi, edi
test rbp, rbp
jle 0x14005356f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003a24c
mov rbx, rax
test rax, rax
jne 0x1400534fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140053565
mov edx, 0x8000
mov ecx, r14d
call fcn.14003f0e4
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.140042a60
cmp eax, 0xffffffff
je 0x140053545
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005350c
mov edx, r15d
mov ecx, r14d
call fcn.14003f0e4
jmp 0x140053565
cmp byte [rsi + 0x38], dil
je 0x14005355c
cmp dword [rsi + 0x34], 5
jne 0x14005355c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140053565
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003d804
jmp 0x1400535d8
jns 0x1400535d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140044954
cmp rax, 0xffffffffffffffff
jne 0x140053590
cmp byte [rsi + 0x30], dil
je 0x1400535d8
mov edi, dword [rsi + 0x2c]
jmp 0x1400535d8
mov ecx, r14d
call fcn.14004b388
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400535d8
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 0x1400535d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400535d1
mov eax, dword [rsi + 0x2c]
jmp 0x1400535d6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140044954
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 0x7c0017e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0x50b4
mov dword [rbp - 4], 0x796b
mov qword [rbp - 0x28], 0x76f3
mov qword [rbp - 0x48], rcx
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rdx
mov dword [rbp - 8], r8d
mov rdx, qword [rbp - 0x48]
mov qword [rbp - 0x58], rdx
mov eax, dword [rbp - 0x4c]
mov rdx, qword [rbp - 0x18]
mov dword [rbp - 0x4c], eax
mov qword [rbp - 0x38], rdx
mov r9d, dword [rbp - 4]
add r9d, 0xffff8695
mov dword [rbp - 0x2c], r9d
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x64], r8d
mov dword [rbp - 0x68], eax
mov rcx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x60]
shr rax, cl
mov qword [rbp - 0x20], rax
mov edx, dword [rbp - 0x2c]
mov rax, qword [rbp - 0x28]
mov r8, qword [rbp]
xor r8, 0x55db
mov dword [rbp - 0xc], edx
mov edx, dword [rbp - 0x64]
sub edx, 0x70d0
mov dword [rbp - 0x4c], edx
mov edx, dword [rbp - 0x64]
add edx, 0x6b0
mov dword [rbp - 0x4c], edx
cmp r8, rax
je 0x7c001841
mov eax, 0x4858
mov ecx, eax
mov rdx, qword [rbp - 0x28]
mov dword [rbp - 0x4c], 0x57c3
cmp rcx, rdx
jae 0x7c0018b1
mov eax, dword [rbp - 8]
mov ecx, dword [rbp - 0x68]
and ecx, 0x1843
mov dword [rbp - 0x4c], ecx
cmp dword [rbp - 0xc], eax
je 0x7c001962
mov rax, qword [rbp - 0x38]
mov rcx, rax
add rcx, 1
mov qword [rbp - 0x38], rcx
mov rcx, qword [rbp - 0x58]
mov rdx, rcx
add rdx, 1
mov r8b, byte [rax]
mov r9d, dword [rbp - 0x68]
mov dword [rbp - 0x4c], r9d
mov qword [rbp - 0x58], rdx
mov byte [rcx], r8b
mov rax, qword [rbp]
xor rax, 0x4e3e
mov ecx, dword [rbp - 0x2c]
mov dword [rbp - 0x3c], ecx
mov ecx, dword [rbp - 0x64]
imul ecx, ecx
mov edx, dword [rbp - 0x64]
shl edx, 1
mov dword [rbp - 0x6c], ecx
mov rcx, rax
mov rax, qword [rbp - 0x60]
shr rax, cl
mov qword [rbp - 0x20], rax
mov r8d, dword [rbp - 0xc]
mov r9d, dword [rbp - 0xc]
mov r10d, dword [rbp - 0x64]
add r10d, dword [rbp - 0xc]
imul r10d, r10d
imul edx, r8d
imul r9d, r9d
add edx, r9d
mov r8d, dword [rbp - 0x6c]
add edx, r8d
cmp edx, r10d
ja 0x7c0018b1
mov eax, 0x216d
mov ecx, dword [rbp - 0x68]
mov edx, dword [rbp - 0x64]
xor ecx, edx
mov r8d, dword [rbp - 0x3c]
mov dword [rbp - 0x4c], ecx
add r8d, 1
mov ecx, dword [rbp - 0x68]
shr eax, cl
mov dword [rbp - 0x4c], eax
mov dword [rbp - 0x2c], r8d
jmp 0x7c001841
mov eax, dword [rbp - 0x68]
or eax, 0x105d
mov rcx, qword [rbp - 0x48]
mov dword [rbp - 0x4c], eax
mov rax, rcx
add rsp, 0x78
pop rbp
ret
Function at 0x7c004080
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x200
lea rbp, [rsp + 0x80]
mov word [rbp + 0x17e], 0x632
mov qword [rbp + 0x170], 0x604d
mov dword [rbp + 0x16c], 0x2e59
mov dword [rbp + 0x2c], 0x1bc6
mov eax, dword [rbp + 0x2c]
cmp eax, 0x769f
mov qword [rbp - 0x20], rdx
mov dword [rbp - 0x24], r8d
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x34], eax
je 0x7c004235
lea rcx, [rbp + 0x60]
lea rax, [0x7c047fe9]
mov qword [rbp - 0x10], 0x5a55
mov rdx, qword [rbp - 0x30]
mov qword [rbp + 8], rdx
mov r8, qword [rbp - 0x20]
mov qword [rbp + 0x50], r8
mov r9d, dword [rbp - 0x24]
mov dword [rbp - 4], r9d
mov r10, qword [rbp + 0x170]
xor r10, 0x283e
mov qword [rbp - 0x18], 0
mov r11, qword [rbp + 0x38]
imul r11, qword [rbp + 0x38]
mov qword [rbp + 0x38], r11
mov qword [rbp + 0x18], rax
mov r8d, dword [rbp - 4]
mov rax, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x50]
and rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
mov qword [rbp - 0x40], r10
call fcn.7c0017e0
lea rcx, [rbp + 0x60]
mov edx, dword [rbp - 4]
mov qword [rbp - 0x48], rax
call fcn.7c003ea0
lea rcx, [rbp + 0x60]
mov edx, dword [rbp - 4]
mov r10, qword [rbp + 0x38]
and r10, qword [rbp + 0x38]
mov qword [rbp + 0x38], r10
mov edx, edx
mov r10d, edx
mov edx, dword [rbp + 0x16c]
xor edx, 0x2e59
mov r8d, dword [rbp - 0x34]
and r8d, 0x1080
mov dword [rbp + 0x5c], r8d
mov byte [rbp + r10 + 0x60], 0
mov qword [rbp + 0x48], rcx
mov rcx, qword [rbp + 0x48]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x54], edx
call fcn.7c001ca0
mov si, 0x632
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x34]
shl edx, cl
mov di, ax
mov dword [rbp + 0x5c], edx
mov word [rbp + 0x40], di
mov eax, dword [rbp - 0x24]
or eax, 0x5a9b
mov dword [rbp + 0x5c], eax
sub si, word [rbp + 0x17e]
mov word [rbp + 0x42], di
mov word [rbp - 0x56], si
call fcn.7c003da0
lea rdx, [rbp + 0x40]
lea r9, [rbp - 0x18]
mov r10, qword [rbp + 0x38]
mov qword [rbp + 0x38], r10
mov qword [rbp], rax
mov rax, qword [rbp - 0x40]
imul rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
mov rcx, qword [rbp + 8]
mov si, word [rbp - 0x56]
movzx r8d, si
call qword [rbp]
mov r8d, dword [rbp - 0x54]
cmp eax, r8d
je 0x7c004235
mov rax, qword [rbp + 0x38]
xor rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
mov ecx, dword [rbp + 0x2c]
or ecx, 0x9ab
cmp ecx, 0x17aa
jb 0x7c00420e
mov qword [rbp + 0x20], 0
jmp 0x7c004294
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x170]
xor rcx, 0x6e2c
mov rdx, qword [rbp - 0x10]
mov qword [rbp + 0x10], rax
cmp rdx, rcx
je 0x7c004235
mov eax, dword [rbp - 0x24]
sub eax, eax
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x34]
or ecx, edx
mov dword [rbp + 0x5c], ecx
mov r8, qword [rbp + 0x10]
mov ecx, dword [rbp - 0x24]
add ecx, ecx
mov r9d, dword [rbp - 0x24]
imul r9d, r9d
mov r10d, dword [rbp - 0x24]
imul r10d, r10d
sub r10d, r9d
imul ecx, eax
mov qword [rbp + 0x30], r8
cmp ecx, r10d
jb 0x7c00420e
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x38], 0
mov rax, qword [rbp + 0x20]
add rsp, 0x200
pop rdi
pop rsi
pop rbp
ret