joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b8b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r14d, r14d
mov r12, rdx
movsxd rdx, dword [rdx + 0x3c]
mov qword [rsp + 0xa0], rcx
add rdx, r12
mov esi, dword [rdx + 0x88]
add rsi, r12
mov r15d, dword [rsi + 0x20]
mov edi, dword [rsi + 0x24]
mov ebp, dword [rsi + 0x1c]
add r15, r12
cmp dword [rsi + 0x18], r14d
jbe 0x1000b99c
mov ebx, r14d
mov qword [rsp + 0x28], rdx
mov r13d, dword [r15 + rbx*4]
add r13, r12
mov rcx, r13
call fcn.10015a70
cmp eax, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x28]
jne 0x1000b994
add rbx, rbx
mov ecx, dword [rdx + 0x88]
add rbx, r12
movzx eax, word [rbx + rdi]
lea rax, [r12 + rax*4]
mov eax, dword [rax + rbp]
cmp eax, ecx
jbe 0x1000b98f
add ecx, dword [rdx + 0x8c]
cmp eax, ecx
jae 0x1000b98f
mov rcx, r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
call fcn.1002ca70
mov rcx, r13
mov word [rsp + 0x40], ax
call fcn.1002ca70
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, r12
inc eax
lea r9, [rsp + 0x38]
mov word [rsp + 0x42], ax
call qword [0x10045b18]
mov rax, qword [rsp + 0x38]
jmp 0x1000b99e
add rax, r12
jmp 0x1000b99e
inc r14d
jmp 0x1000b8eb
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1000b9b0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor ebp, ebp
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
mov r12d, ecx
mov rsi, rdx
mov r13, r8
mov r14d, r9d
lea r15, [rsp + 0x2c]
test rbx, rbx
je 0x1000bacc
mov r10, qword [rbx + 0x30]
test r10, r10
je 0x1000bacf
test r12d, r12d
je 0x1000ba55
mov r11, qword [rbx + 0x60]
mov r9d, dword [rbx + 0x58]
xor r8d, r8d
xor eax, eax
imul rcx, rax, 0x801
movzx eax, byte [r11 + r8]
or rcx, 0x2800000
cmp al, 0x60
jbe 0x1000ba35
movzx edx, al
sub edx, 0x20
movsxd rdx, edx
lea rax, [rdx + rcx]
jmp 0x1000ba38
add rax, rcx
inc r8
cmp r9w, r8w
jne 0x1000ba0f
cmp r12d, eax
jne 0x1000ba55
test r14d, r14d
je 0x1000bacf
mov r10, qword [rbx + 0x50]
jmp 0x1000bacf
cmp r10, rsi
jne 0x1000ba60
mov r10, qword [rbx + 0x60]
jmp 0x1000bacf
test r13, r13
je 0x1000bac4
mov r10, qword [rbx + 0x60]
test r10, r10
je 0x1000bacf
lea rdi, [rsp + 0x3c]
mov ecx, 0x15
mov eax, ebp
mov r8d, dword [rbx + 0x58]
rep stosd dword [rdi], eax
xor edx, edx
mov qword [rsp + 0x2c], 0
mov qword [rsp + 0x34], 0
lea eax, [rdx + rdx]
cmp r8w, ax
jbe 0x1000baaf
movzx eax, ax
mov cl, byte [r10 + rax]
movzx eax, dx
inc edx
mov byte [rsp + rax + 0x2c], cl
jmp 0x1000ba94
mov rdx, r15
mov rcx, r13
call fcn.100128d0
test eax, eax
je 0x1000bac4
mov r10, qword [rbx + 0x30]
jmp 0x1000bacf
mov rbx, qword [rbx]
jmp 0x1000b9e7
xor r10d, r10d
mov rax, r10
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1000bb50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
cmp word [rax], 0x5a4d
jne 0x1000bb7e
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x1000bb7e
cmp dword [rax + rdx], 0x4550
je 0x1000bb83
dec rax
jmp 0x1000bb5d
ret

Function at 0x10014f90
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [rcx - 1], 0xcc
je 0x10014fee
test r8d, r8d
jne 0x10014f9f
sub rcx, 0x20
mov r9b, byte [rcx]
cmp r9b, 0xe9
je 0x10014fb2
mov r8b, byte [rcx + 3]
cmp r8b, 0xe9
jne 0x10014fb9
inc edx
xor r8d, r8d
jmp fcn.10014f90
xor eax, eax
cmp r9b, 0x4c
jne 0x10014ff0
cmp byte [rcx + 1], 0x8b
jne 0x10014ff0
cmp byte [rcx + 2], 0xd1
jne 0x10014fee
cmp r8b, 0xb8
jne 0x10014fee
cmp byte [rcx + 6], 0
jne 0x10014ff0
movzx eax, byte [rcx + 5]
shl eax, 8
mov r8d, eax
movzx eax, byte [rcx + 4]
or eax, r8d
add eax, edx
jmp 0x10014ff0
xor eax, eax
ret

Function at 0x10015a70
Capabilities:
Resolve function by brute ratel badger hash

Disassembly:
xor eax, eax
movsx edx, byte [rcx]
test dl, dl
je 0x10015a8b
imul eax, eax, 0x801
inc rcx
or eax, 0x2800000
add eax, edx
jmp 0x10015a72
ret

Function at 0x1001bd70
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
cmp rdx, 0x3ff
jbe 0x1001be22
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
movzx edx, word [rax + 0x14]
cmp word [rax + 4], 0x14c
lea r9, [rax + 0xe8]
movzx ebx, word [rax + 6]
lea rdx, [rax + rdx + 0x18]
je 0x1001bda9
lea r9, [rax + 0xf8]
mov eax, dword [r9]
xor r10d, r10d
mov r9, rdx
cmp r10d, ebx
jae 0x1001bddd
mov r11d, dword [r9 + 0xc]
cmp eax, r11d
jb 0x1001bdd4
mov esi, dword [r9 + 0x10]
add esi, r11d
cmp eax, esi
jae 0x1001bdd4
add eax, dword [r9 + 0x14]
sub eax, r11d
jmp 0x1001bddf
inc r10d
add r9, 0x28
jmp 0x1001bdb2
xor eax, eax
mov eax, dword [rcx + rax + 8]
xor r9d, r9d
cmp r9d, ebx
jae 0x1001be11
mov r10d, dword [rdx + 0xc]
cmp eax, r10d
jb 0x1001be08
mov r11d, dword [rdx + 0x10]
add r11d, r10d
cmp eax, r11d
jae 0x1001be08
add eax, dword [rdx + 0x14]
sub eax, r10d
jmp 0x1001be13
inc r9d
add rdx, 0x28
jmp 0x1001bde6
xor eax, eax
lea rdx, [rcx + rax + 0x10]
mov rcx, r8
pop rbx
pop rsi
jmp fcn.10018910
pop rbx
pop rsi
ret

Function at 0x10021a60
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov r9d, 0x40
mov qword [rsp + 0x20], 0
mov rbx, r8
lea r8, [rsp + 0x30]
mov rsi, rdx
mov qword [rsp + 0x90], rcx
call fcn.10030360
movsxd rdx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, rbx
mov qword [rsp + 0x20], 0
mov r9d, 0x108
mov edi, eax
add rdx, rsi
call fcn.10030360
cmp word [rsp + 0x30], 0x5a4d
jne 0x10021ad1
or edi, eax
jne 0x10021ad1
xor eax, eax
cmp dword [rbx], 0x4550
sete al
jmp 0x10021ad3
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
Function at 0x1002f1c0
Capabilities:
Inspect section memory permissions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 2
mov rsi, qword [rcx + 0x38]
mov edi, dword [rcx + 0x40]
lea rbp, [rsp + 0x34]
lea rdx, [rcx + 0x28]
mov rbx, rcx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x38]
lea r12, [rsp + 0x48]
mov dword [rsp + 0x34], 0
lea r13, [rsp + 0x40]
mov qword [rsp + 0x38], 0x1000
call fcn.1002fe60
dec edi
cmp edi, 0xffffffff
je 0x1002f2ce
mov eax, dword [rsi + 0xc]
add rax, qword [rbx + 0x28]
mov qword [rsp + 0x40], rax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x48], rax
mov eax, dword [rsi + 0x24]
mov edx, eax
mov ecx, eax
shr edx, 0x1f
shl edx, 3
mov dword [rsp + 0x34], edx
and ecx, 0x40000000
je 0x1002f25e
cdq
and edx, 2
add edx, 2
mov dword [rsp + 0x34], edx
mov r8d, eax
and r8d, 0x20000000
je 0x1002f275
cdq
and edx, 0x70
add edx, 0x10
mov dword [rsp + 0x34], edx
mov edx, eax
and edx, 0x60000000
cmp edx, 0x60000000
jne 0x1002f28d
mov dword [rsp + 0x34], 0x20
test r8d, r8d
setne dl
shr eax, 0x1f
test dl, al
je 0x1002f2a6
test ecx, ecx
je 0x1002f2a6
mov dword [rsp + 0x34], 0x40
mov r9d, dword [rsp + 0x34]
cmp r9d, 0x20
je 0x1002f2c5
mov qword [rsp + 0x20], rbp
mov r8, r12
mov rdx, r13
or rcx, 0xffffffffffffffff
call fcn.1002fe60
add rsi, 0x28
jmp 0x1002f213
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400044e0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x818
mov rax, qword [0x1400670c0]
xor rax, rsp
mov qword [rsp + 0x800], rax
call fcn.140007cd0
test al, al
jne 0x14000450f
call fcn.140007d70
test al, al
jne 0x140004674
mov qword [rsp + 0x810], rbx
call fcn.140008170
call fcn.140004850
xorps xmm0, xmm0
lea rcx, [rsp + 0xe0]
xor eax, eax
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0xd0], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.14002bd30
mov r8d, 0x104
lea rdx, [rsp + 0x1e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.140004100
mov rcx, rax
call fcn.1400043e0
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400045a4
call fcn.1400041f0
mov rcx, rax
call fcn.1400042e0
lea r8, [rbx + 1]
mov qword [rsp + 0x20], rbx
mov r9, rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x68]
call fcn.140014fe0
lea r9, [rsp + 0x1e0]
mov edx, 0x208
lea r8, [rsp + 0xe0]
lea rcx, [rsp + 0x3f0]
call fcn.140004030
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x3f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x810]
xor eax, eax
mov rcx, qword [rsp + 0x800]
xor rcx, rsp
call fcn.14000aad0
add rsp, 0x818
ret
xor ecx, ecx
call fcn.1400118f8
int3
Function at 0x140005a60
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 0x140005a82
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 0x140005afc
mov rdi, r14
mov rcx, rbx
call fcn.140003000
test rax, rax
jle 0x140005ad4
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.14002b690
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 0x140005aec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005af4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140005a96
sub r14, rdi
jmp 0x140005bdf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005b13
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005b15
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005b47
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14002b690
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140005bdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005b82
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140005bbd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400168ac
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140005bdc
cmp rbp, rax
ja 0x140005b90
test rbp, rbp
je 0x140005bdc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400168ac
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1400068d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x6f], 0
mov rbp, rcx
je 0x140006ace
mov qword [rsp + 0x58], rbx
lea rax, [rcx + 2]
mov qword [rsp + 0x28], rsi
mov rdx, 0xfffffffffffffffb
mov qword [rsp + 0x20], rdi
sub rdx, rcx
mov qword [rsp + 0x18], r12
mov r8, 0xfffffffffffffffc
mov qword [rsp + 0x10], r13
sub r8, rcx
mov qword [rsp + 8], r14
mov r13, 0xfffffffffffffffa
sub r13, rcx
mov qword [rsp], r15
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r12d, 1
mov qword [rsp + 0x50], r8
sub r12, rcx
mov r14, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffd
not r15
sub rcx, rbp
movabs r9, 0x33936bbb8fbf972b
mov qword [rsp + 0x40], rcx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
lea ecx, [r14 + rax]
mov rsi, r9
and cl, 7
mov rdi, r9
shl cl, 3
mov rbx, r9
shr rsi, cl
mov r11, r9
xor byte [rax - 2], sil
lea ecx, [rax + r15]
xor byte [rax + 6], sil
and cl, 7
xor byte [rax + 0xe], sil
mov r10, r9
xor byte [rax + 0x16], sil
xor byte [rax + 0x1e], sil
shl cl, 3
shr rdi, cl
movzx ecx, al
xor byte [rax - 1], dil
sub cl, bpl
xor byte [rax + 7], dil
and cl, 7
xor byte [rax + 0xf], dil
xor byte [rax + 0x17], dil
xor byte [rax + 0x1f], dil
shl cl, 3
shr rbx, cl
lea ecx, [rax + r12]
xor byte [rax], bl
and cl, 7
xor byte [rax + 8], bl
xor byte [rax + 0x10], bl
xor byte [rax + 0x18], bl
xor byte [rax + 0x20], bl
shl cl, 3
shr r11, cl
lea ecx, [rax + r13]
xor byte [rax + 1], r11b
and cl, 7
xor byte [rax + 9], r11b
xor byte [rax + 0x11], r11b
xor byte [rax + 0x19], r11b
xor byte [rax + 0x21], r11b
shl cl, 3
shr r10, cl
lea ecx, [rax + rdx]
xor byte [rax + 2], r10b
and cl, 7
xor byte [rax + 0xa], r10b
movabs rdx, 0x33936bbb8fbf972b
xor byte [rax + 0x12], r10b
xor byte [rax + 0x1a], r10b
xor byte [rax + 0x22], r10b
shl cl, 3
shr r9, cl
lea ecx, [rax + r8]
xor byte [rax + 3], r9b
and cl, 7
xor byte [rax + 0xb], r9b
mov r8, rdx
xor byte [rax + 0x13], r9b
xor byte [rax + 0x1b], r9b
shl cl, 3
shr r8, cl
movzx ecx, byte [rsp + 0x40]
xor byte [rax + 4], r8b
add cl, al
xor byte [rax + 0xc], r8b
and cl, 7
xor byte [rax + 0x14], r8b
xor byte [rax + 0x1c], r8b
shl cl, 3
shr rdx, cl
xor byte [rax + 5], dl
xor byte [rax + 0xd], dl
xor byte [rax + 0x15], dl
xor byte [rax + 0x1d], dl
add rax, 0x25
lea rcx, [rax + r14]
cmp rcx, 0x6f
mov rdx, qword [rsp + 0x48]
movabs r9, 0x33936bbb8fbf972b
mov r8, qword [rsp + 0x50]
jb 0x140006970
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x6f], 0
add rsp, 0x30
pop rbp
ret
Function at 0x140006cf0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x6f], 0
mov rbp, rcx
je 0x140006eee
mov qword [rsp + 0x58], rbx
lea rax, [rcx + 2]
mov qword [rsp + 0x28], rsi
mov rdx, 0xfffffffffffffffb
mov qword [rsp + 0x20], rdi
sub rdx, rcx
mov qword [rsp + 0x18], r12
mov r8, 0xfffffffffffffffc
mov qword [rsp + 0x10], r13
sub r8, rcx
mov qword [rsp + 8], r14
mov r13, 0xfffffffffffffffa
sub r13, rcx
mov qword [rsp], r15
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r12d, 1
mov qword [rsp + 0x50], r8
sub r12, rcx
mov r14, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffd
not r15
sub rcx, rbp
movabs r9, 0x918db9e1398751e3
mov qword [rsp + 0x40], rcx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
lea ecx, [r14 + rax]
mov rsi, r9
and cl, 7
mov rdi, r9
shl cl, 3
mov rbx, r9
shr rsi, cl
mov r11, r9
xor byte [rax - 2], sil
lea ecx, [rax + r15]
xor byte [rax + 6], sil
and cl, 7
xor byte [rax + 0xe], sil
mov r10, r9
xor byte [rax + 0x16], sil
xor byte [rax + 0x1e], sil
shl cl, 3
shr rdi, cl
movzx ecx, al
xor byte [rax - 1], dil
sub cl, bpl
xor byte [rax + 7], dil
and cl, 7
xor byte [rax + 0xf], dil
xor byte [rax + 0x17], dil
xor byte [rax + 0x1f], dil
shl cl, 3
shr rbx, cl
lea ecx, [rax + r12]
xor byte [rax], bl
and cl, 7
xor byte [rax + 8], bl
xor byte [rax + 0x10], bl
xor byte [rax + 0x18], bl
xor byte [rax + 0x20], bl
shl cl, 3
shr r11, cl
lea ecx, [rax + r13]
xor byte [rax + 1], r11b
and cl, 7
xor byte [rax + 9], r11b
xor byte [rax + 0x11], r11b
xor byte [rax + 0x19], r11b
xor byte [rax + 0x21], r11b
shl cl, 3
shr r10, cl
lea ecx, [rax + rdx]
xor byte [rax + 2], r10b
and cl, 7
xor byte [rax + 0xa], r10b
movabs rdx, 0x918db9e1398751e3
xor byte [rax + 0x12], r10b
xor byte [rax + 0x1a], r10b
xor byte [rax + 0x22], r10b
shl cl, 3
shr r9, cl
lea ecx, [rax + r8]
xor byte [rax + 3], r9b
and cl, 7
xor byte [rax + 0xb], r9b
mov r8, rdx
xor byte [rax + 0x13], r9b
xor byte [rax + 0x1b], r9b
shl cl, 3
shr r8, cl
movzx ecx, byte [rsp + 0x40]
xor byte [rax + 4], r8b
add cl, al
xor byte [rax + 0xc], r8b
and cl, 7
xor byte [rax + 0x14], r8b
xor byte [rax + 0x1c], r8b
shl cl, 3
shr rdx, cl
xor byte [rax + 5], dl
xor byte [rax + 0xd], dl
xor byte [rax + 0x15], dl
xor byte [rax + 0x1d], dl
add rax, 0x25
lea rcx, [rax + r14]
cmp rcx, 0x6f
mov rdx, qword [rsp + 0x48]
movabs r9, 0x918db9e1398751e3
mov r8, qword [rsp + 0x50]
jb 0x140006d90
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x6f], 0
add rsp, 0x30
pop rbp
ret
Function at 0x14000b94c
Capabilities:
Parse pe header

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

Function at 0x1400118f8
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 0x140011763
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011763
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011763
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011763
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011763
cmp dword [rcx + 0x84], 0xe
jbe 0x140011763
cmp dword [rcx + 0xf8], 0
je 0x140011763
mov ecx, ebx
call fcn.140011814
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.1400115f0
nop
cmp dword [rbp + 0x20], 0
je 0x1400117b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400117bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400116f4

Function at 0x14001d860
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d876
mov al, 1
jmp 0x14001d8d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d887
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d8d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023d58
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d8d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d8d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d8d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d8d6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001f538
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f558
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014bfc
or eax, 0xffffffff
jmp 0x14001f55a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001fa94
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.14000b410
sub rsp, rax
mov rax, qword [0x1400670c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ccb8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001fae3
mov rax, rbp
jmp 0x14001fbeb
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 + 0x694b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400209e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x694b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001fbe7
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 0x14001fbe7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400209e0
test rax, rax
js 0x14001fbe7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001fbe7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001fbd9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001fbd9
cmp byte [rcx], 0xd
jne 0x14001fbbf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001fbce
cmp byte [rcx + 1], 0xa
jne 0x14001fbce
inc rcx
jmp 0x14001fbce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x67500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001fba1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001fbeb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000aad0
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 0x14001fd80
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, [0x1400694b0]
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 0x14001fdd7
cmp word [rdx], r13w
jne 0x14001fdd7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fddc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ff01
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ff22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fe15
mov rdx, r9
mov word [rbx], cx
jmp 0x14001fe3c
cmp r9, r8
jae 0x14001fe4c
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 0x14001fdf6
jmp 0x14001ff01
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 0x14001fef6
cmp dword [rsp + 0x80], esi
je 0x14001fef6
lea r8, [0x1400694b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001fece
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001fe9e
mov word [rbx], r13w
jmp 0x14001fefe
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 0x14001feab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001fefe
cmp word [rsp + 0x70], r13w
jne 0x14001fedb
cmp rbx, r14
je 0x14001fe98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400209e8
cmp word [rsp + 0x70], r13w
je 0x14001ff01
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, [0x1400694b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001fefb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ff01