joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002790
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400027bd
xor eax, eax
jmp 0x14000291a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400027e8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400027e8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000291a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000290d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000282b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002856
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002912
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400028c5
sub eax, 1
je 0x1400028c5
cmp eax, 2
jne 0x14000290d
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002912
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400028f3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000290d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002912
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003550
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002b90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002c63
cmp byte [rcx + 0x71], 0
je 0x140002c63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002c5f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c24
sub eax, 1
je 0x140002c28
cmp eax, 2
jne 0x140002c5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003550
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002c56
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002c5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002c0c
xor al, al
jmp 0x140002c0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003550
add rsp, 0x60
pop rbx
ret

Function at 0x140003edc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003f26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003f26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003f26
cmp dword [rcx + 0x84], 0xe
jbe 0x140003f26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003f28
xor al, al
add rsp, 0x28
ret
Function at 0x6d7d5480
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f65e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d5608
mov rax, qword [0x6d7f65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d54cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d5555
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d54b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d563d
mov rax, qword [0x6d7f65e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f65e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d5620
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d554e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d55b0
add dword [0x6d7f65e4], 1
cmp edi, 8
jae 0x6d7d5583
test dil, 4
jne 0x6d7d55f4
test edi, edi
je 0x6d7d5578
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d560f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d5578
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d559c
jmp 0x6d7d5578
add rsi, qword [0x6d7f65e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d554e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d5578
xor esi, esi
jmp 0x6d7d54d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d5578
mov rax, qword [0x6d7f65e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d5d90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f68c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f68a0]
test rbx, rbx
je 0x6d7d5de4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d5ddb
test rsi, rsi
je 0x6d7d5ddb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d5dc0
lea rcx, [0x6d7f68c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d6020
Capabilities:
Parse pe header

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

Function at 0x6d7d6040
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 0x6d7d6081
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 0x6d7d6078
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d6083
add rax, 0x28
cmp rax, r9
jne 0x6d7d6064
xor eax, eax
ret

Function at 0x6d7d6120
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d618d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d618d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d618d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d6184
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d618f
add rax, 0x28
cmp rax, r9
jne 0x6d7d6170
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d6290
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d62b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d62a8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d630d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d6304
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d6314
add rax, 0x28
cmp rax, r9
jne 0x6d7d62f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d6330
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d639e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d639e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d639e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d639e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d6395
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d63a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d6380
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d63b8
jmp 0x6d7d639e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d63c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d639e
test r9d, r9d
jg 0x6d7d63b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d6700
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140d6b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d6b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140d6b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6b06f
add dl, dl
jne 0x140d6b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6b0f6
xor eax, eax
add dl, dl
jne 0x140d6b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6b1ad
add dl, dl
jne 0x140d6b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d6b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d6b07e
mov eax, 1
add dl, dl
jne 0x140d6b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6b0fb
sub eax, ebx
mov ebx, 1
jne 0x140d6b14c
mov ecx, 1
add dl, dl
jne 0x140d6b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d6b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d6b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d6b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6b15d
cmp eax, 0x7d00
jae 0x140d6b19b
cmp eax, 0x500
jb 0x140d6b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6b07e
cmp eax, 0x7f
ja 0x140d6b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d6b1d2
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 0x140d6b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100078c0
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
add r8, rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], rdx
mov word [rsp + 0x60], 0
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x50]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hae505aeb3b
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x38]
jne 0x1000790b
lea rcx, [rsp + 0x38]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h6dee6972b95043bf
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov word [rax + rdx*2], 0
inc qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1000796c
mov rcx, qword [rsp + 0x40]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
cmp rbx, 0xffffffffffffffff
je 0x10007a0d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingW
mov rdi, rax
mov rcx, rbx
call fcn.100d8de4
test rdi, rdi
je 0x10007a0d
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
test rax, rax
je 0x10007a33
mov rbx, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
mov r8d, 0x30
mov rcx, rax
call sub.KERNEL32.dll_VirtualQuery
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
mov qword [rsi], 0
jmp 0x10007a25
call sym.std::sys::windows::os::errno::h2cf8161a54ff713e
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
call sym.std::sys::windows::os::errno::h2cf8161a54ff713e
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rdi
call fcn.100d8de4
mov qword [rsi + 8], rbx
jmp 0x10007a1e
Function at 0x10008d20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov r9, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x10008d67
mov r15d, 8
sub r15, r11
cmp r8, r15
mov rax, r15
cmovb rax, r8
cmp rax, 3
jbe 0x10008d6f
mov r14d, dword [rdx]
mov r10d, 4
mov rcx, r10
or rcx, 1
cmp rcx, rax
jb 0x10008d81
jmp 0x10008d98
xor r15d, r15d
jmp 0x10008e23
xor r10d, r10d
xor r14d, r14d
mov rcx, r10
or rcx, 1
cmp rcx, rax
jae 0x10008d98
movzx edi, word [rdx + r10]
lea ecx, [r10*8]
shl rdi, cl
or r14, rdi
or r10, 2
cmp r10, rax
jae 0x10008daf
movzx eax, byte [rdx + r10]
shl r10d, 3
mov ecx, r10d
shl rax, cl
or r14, rax
lea ecx, [r11*8]
shl r14, cl
or r14, qword [r9 + 0x38]
mov qword [r9 + 0x38], r14
cmp r15, r8
jbe 0x10008dcf
add r11, r8
jmp 0x10008f09
mov rdi, qword [r9 + 0x18]
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9]
add rax, rcx
rol rcx, 0xd
xor rdi, r14
xor rcx, rax
rol rax, 0x20
mov rsi, qword [r9 + 8]
add rsi, rdi
rol rdi, 0x10
xor rdi, rsi
add rax, rdi
rol rdi, 0x15
xor rdi, rax
add rsi, rcx
rol rcx, 0x11
mov qword [r9 + 0x18], rdi
xor rcx, rsi
rol rsi, 0x20
mov qword [r9 + 0x10], rcx
mov qword [r9 + 8], rsi
xor rax, r14
mov qword [r9], rax
sub r8, r15
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r15, r8
jae 0x10008ea2
mov rax, qword [r9 + 0x18]
mov rsi, qword [r9]
mov rcx, qword [r9 + 8]
mov rdi, qword [r9 + 0x10]
nop word cs:[rax + rax]
add rsi, rdi
rol rdi, 0xd
mov rbx, qword [rdx + r15]
xor rdi, rsi
rol rsi, 0x20
xor rax, rbx
add rcx, rax
rol rax, 0x10
xor rax, rcx
add rsi, rax
rol rax, 0x15
add rcx, rdi
rol rdi, 0x11
xor rdi, rcx
rol rcx, 0x20
xor rax, rsi
xor rsi, rbx
add r15, 8
cmp r15, r8
jb 0x10008e50
mov qword [r9 + 0x18], rax
mov qword [r9], rsi
mov qword [r9 + 0x10], rdi
mov qword [r9 + 8], rcx
cmp r11d, 3
jbe 0x10008ec0
mov esi, dword [rdx + r15]
mov r8d, 4
mov rax, r8
or rax, 1
cmp rax, r11
jb 0x10008ed1
jmp 0x10008eeb
xor r8d, r8d
xor esi, esi
mov rax, r8
or rax, 1
cmp rax, r11
jae 0x10008eeb
lea rax, [r8 + r15]
movzx eax, word [rdx + rax]
lea ecx, [r8*8]
shl rax, cl
or rsi, rax
or r8, 2
cmp r8, r11
jae 0x10008f05
add r15, r8
movzx eax, byte [rdx + r15]
shl r8d, 3
mov ecx, r8d
shl rax, cl
or rsi, rax
mov qword [r9 + 0x38], rsi
mov qword [r9 + 0x40], r11
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1000aeb0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, rcx
test r9d, r9d
je 0x1000aede
mov rcx, qword [rsp + 0x68]
mov ebp, r9d
add rbp, rdx
dec rcx
test rcx, rbp
je 0x1000aee7
mov byte [rax + 8], 4
jmp 0x1000afae
mov byte [rax + 8], 0
jmp 0x1000afae
mov r10, qword [rsp + 0x60]
mov r11d, dword [rdx + 0x3c]
lea rcx, [rdx + r11]
movzx r14d, word [rdx + r11 + 0x14]
lea rdi, [r14 + rcx]
add rdi, 0x18
movzx ecx, word [rdx + r11 + 6]
shl rcx, 3
lea r15, [rcx + rcx*4]
xor esi, esi
nop word cs:[rax + rax]
cmp r15, rsi
je 0x1000af81
lea rbp, [rdi + 0x28]
mov ecx, dword [rdi + 8]
mov ebx, dword [rdi + 0x10]
cmp ecx, ebx
cmovbe ecx, ebx
mov r12d, dword [rdi + 0xc]
add rsi, 0x28
mov rdi, rbp
cmp r12d, r9d
ja 0x1000af20
add ecx, r12d
mov rdi, rbp
sub ecx, r9d
jbe 0x1000af20
add r11, r14
add r11, rdx
mov esi, dword [rsi + r11 + 4]
add ebx, esi
setb r11b
cmp rbx, r8
seta r8b
or r8b, r11b
sub rbx, rsi
mov edi, 8
test r8b, r8b
cmove rdi, rbx
je 0x1000af87
mov byte [rax + 8], dil
jmp 0x1000afae
mov byte [rax + 8], 1
jmp 0x1000afae
sub r9d, r12d
sub rdi, r9
jb 0x1000afa3
cmp rdi, r10
jb 0x1000afa3
add rdx, rsi
add rdx, r9
mov qword [rax], rdx
mov qword [rax + 8], rdi
jmp 0x1000afb5
cmp rcx, r10
mov cl, 2
sbb cl, 0
mov byte [rax + 8], cl
mov qword [rax], 0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1000b0e0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 1
mov r9d, 0x100
cmp rdx, 0x40
jae 0x1000b0fb
xor eax, eax
jmp 0x1000b1f1
test cl, 3
je 0x1000b10d
xor eax, eax
mov r9d, 0x400
jmp 0x1000b1f1
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x1000b1e9
mov r10d, dword [rcx + 0x3c]
test r10b, 3
jne 0x1000b100
cmp r10d, 0x1000000
jbe 0x1000b13b
xor eax, eax
mov r9d, 0x700
jmp 0x1000b1f1
lea r11, [r10 + 0x88]
cmp r11, rdx
ja 0x1000b0f4
cmp dword [rcx + r10], 0x4550
jne 0x1000b1e9
movzx esi, word [rcx + r10 + 0x18]
cmp esi, 0x20b
je 0x1000b16b
cmp esi, 0x10b
jne 0x1000b1e9
mov edi, dword [rcx + r10 + 0x54]
cmp rdi, rdx
ja 0x1000b0f4
mov eax, dword [rcx + r10 + 0x50]
cmp edi, eax
ja 0x1000b12e
movzx esi, si
cmp esi, 0x20b
jne 0x1000b1fa
mov esi, dword [rcx + r10 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x1000b0f4
movzx edi, word [rcx + r10 + 6]
cmp rdi, 0x60
ja 0x1000b12e
lea rdi, [rdi + rdi*4]
lea rdi, [r10 + rdi*8]
movzx ecx, word [rcx + r10 + 0x14]
add rcx, rdi
add rcx, 0x18
cmp rcx, rdx
ja 0x1000b0f4
shl rax, 0x20
xor r9d, r9d
xor r8d, r8d
jmp 0x1000b1f1
xor eax, eax
mov r9d, 0x500
or rax, r8
or rax, r9
pop rdi
pop rsi
ret
mov r9d, 0x600
xor eax, eax
jmp 0x1000b1f1
Function at 0x1000bf70
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, rcx
test r9d, r9d
je 0x1000bf9e
mov rcx, qword [rsp + 0x68]
mov ebp, r9d
add rbp, rdx
dec rcx
test rcx, rbp
je 0x1000bfa7
mov byte [rax + 8], 4
jmp 0x1000c06e
mov byte [rax + 8], 0
jmp 0x1000c06e
mov r10, qword [rsp + 0x60]
mov r11d, dword [rdx + 0x3c]
lea rcx, [rdx + r11]
movzx r14d, word [rdx + r11 + 0x14]
lea rdi, [r14 + rcx]
add rdi, 0x18
movzx ecx, word [rdx + r11 + 6]
shl rcx, 3
lea r15, [rcx + rcx*4]
xor esi, esi
nop word cs:[rax + rax]
cmp r15, rsi
je 0x1000c041
lea rbp, [rdi + 0x28]
mov ecx, dword [rdi + 8]
mov ebx, dword [rdi + 0x10]
cmp ecx, ebx
cmovbe ecx, ebx
mov r12d, dword [rdi + 0xc]
add rsi, 0x28
mov rdi, rbp
cmp r12d, r9d
ja 0x1000bfe0
add ecx, r12d
mov rdi, rbp
sub ecx, r9d
jbe 0x1000bfe0
add r11, r14
add r11, rdx
mov esi, dword [rsi + r11 + 4]
add ebx, esi
setb r11b
cmp rbx, r8
seta r8b
or r8b, r11b
sub rbx, rsi
mov edi, 8
test r8b, r8b
cmove rdi, rbx
je 0x1000c047
mov byte [rax + 8], dil
jmp 0x1000c06e
mov byte [rax + 8], 1
jmp 0x1000c06e
sub r9d, r12d
sub rdi, r9
jb 0x1000c063
cmp rdi, r10
jb 0x1000c063
add rdx, rsi
add rdx, r9
mov qword [rax], rdx
mov qword [rax + 8], rdi
jmp 0x1000c075
cmp rcx, r10
mov cl, 2
sbb cl, 0
mov byte [rax + 8], cl
mov qword [rax], 0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1000c1b0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbp
push rbx
mov r8d, 1
mov r9d, 0x100
cmp rdx, 0x40
jae 0x1000c1cd
xor eax, eax
jmp 0x1000c2cf
test cl, 3
je 0x1000c1df
xor eax, eax
mov r9d, 0x400
jmp 0x1000c2cf
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x1000c2c7
mov r10d, dword [rcx + 0x3c]
test r10b, 3
jne 0x1000c1d2
cmp r10d, 0x1000000
jbe 0x1000c20d
xor eax, eax
mov r9d, 0x700
jmp 0x1000c2cf
lea r11, [r10 + 0x78]
cmp r11, rdx
ja 0x1000c1c6
cmp dword [rcx + r10], 0x4550
jne 0x1000c2c7
movzx eax, word [rcx + r10 + 0x18]
cmp eax, 0x20b
je 0x1000c23c
cmp eax, 0x10b
jne 0x1000c2c7
mov edi, dword [rcx + r10 + 0x54]
cmp rdi, rdx
ja 0x1000c1c6
movzx ebp, ax
mov esi, dword [rcx + r10 + 0x50]
xor ebx, ebx
cmp edi, esi
seta bl
or rbx, 6
shl rbx, 8
xor eax, eax
cmp ebp, 0x10b
jne 0x1000c2da
cmp edi, esi
ja 0x1000c2da
mov eax, dword [rcx + r10 + 0x74]
cmp eax, 0x10
mov edi, 0x10
cmovb edi, eax
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x1000c1c6
movzx eax, word [rcx + r10 + 6]
cmp rax, 0x60
ja 0x1000c200
lea rax, [rax + rax*4]
lea rax, [r10 + rax*8]
movzx ecx, word [rcx + r10 + 0x14]
add rax, rcx
add rax, 0x18
cmp rax, rdx
ja 0x1000c1c6
shl rsi, 0x20
xor r9d, r9d
mov rax, rsi
xor r8d, r8d
jmp 0x1000c2cf
xor eax, eax
mov r9d, 0x500
or rax, r8
or rax, r9
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov r9, rbx
jmp 0x1000c2cf