joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429b70
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movzx eax, byte [rdx]
test al, al
mov rbx, rdx
mov esi, r8d
je 0x429d71
mov r9, rdx
xor r8d, r8d
movsx edx, al
add r9, 1
lea eax, [rdx + r8]
mov edx, eax
shl edx, 0xa
add eax, edx
mov r8d, eax
shr r8d, 6
xor r8d, eax
movzx eax, byte [r9]
test al, al
jne 0x429b93
lea edx, [r8 + r8*8]
mov eax, edx
shr eax, 0xb
xor eax, edx
and eax, 0x3f
lea r12, [rcx + rax*8]
mov rbp, qword [r12]
test rbp, rbp
jne 0x429bdd
jmp 0x429c10
mov rbp, qword [rbp + 8]
test rbp, rbp
je 0x429c10
mov rcx, rbp
call fcn.00424840
mov rdx, rbx
mov rcx, rax
call fcn.00411160
test al, al
je 0x429bd4
cmp esi, dword [rbp]
jne 0x429c80
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp esi, 2
je 0x429cd0
jbe 0x429d10
cmp esi, 3
je 0x429c92
cmp esi, 4
jne 0x429c80
mov rcx, rbx
call fcn.004110c0
test rax, rax
mov rdi, rax
je 0x429c80
lea rcx, [rax + 0x18]
call qword [0x00453088]
test rax, rax
mov rbp, rax
je 0x429c80
mov byte [rax + 0x10], 0
lea rcx, [rax + 0x11]
mov rdx, rbx
lea r8, [rdi + 1]
call fcn.00447310
mov rax, qword [r12]
mov dword [rbp], esi
mov qword [rbp + 8], rax
mov rax, rbp
mov qword [r12], rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor ebp, ebp
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, rbx
call fcn.004110c0
test rax, rax
mov rdi, rax
je 0x429c80
lea rcx, [rax + 0x20]
call qword [0x00453088]
test rax, rax
mov rbp, rax
je 0x429c80
lea rcx, [rax + 0x18]
mov rdx, rbx
mov qword [rax + 0x10], 0
lea r8, [rdi + 1]
call fcn.00447310
jmp 0x429c5f
mov rcx, rbx
call fcn.004110c0
test rax, rax
mov rdi, rax
je 0x429c80
lea rcx, [rax + 0x20]
call qword [0x00453088]
test rax, rax
mov rbp, rax
je 0x429c80
lea rcx, [rax + 0x18]
mov rdx, rbx
mov qword [rax + 0x10], 0
lea r8, [rdi + 1]
call fcn.00447310
jmp 0x429c5f
cmp esi, 1
jne 0x429c80
mov rcx, rbx
call fcn.004110c0
test rax, rax
mov r13, rax
je 0x429c80
lea rcx, [rax + 0x40]
call qword [0x00453088]
test rax, rax
mov rbp, rax
je 0x429c80
xor eax, eax
mov rdi, rbp
mov ecx, 8
rep stosq qword [rdi], rax
lea rax, [rbp + 0x18]
mov rdx, rbx
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x30], rax
lea r8, [r13 + 1]
call fcn.00447310
jmp 0x429c5f
xor eax, eax
jmp 0x429bc5

Function at 0x43e6e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004af070]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x43e74d
mov rcx, r8
call fcn.0043e5c0
test eax, eax
je 0x43e74d
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 0x43e74d
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 0x43e744
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x43e74f
add rax, 0x28
cmp rax, r9
jne 0x43e730
xor eax, eax
add rsp, 0x28
ret
Function at 0x6bb02320
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6bb105e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6bb024a8
mov rax, qword [0x6bb105e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6bb0236c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6bb023f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6bb02350
mov rcx, rbx
call fcn.6bb02fc0
test rax, rax
mov r12, rax
je 0x6bb024dd
mov rax, qword [0x6bb105e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.6bb030f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6bb105e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6bb024c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6bb023ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6bb02450
add dword [0x6bb105e4], 1
cmp edi, 8
jae 0x6bb02423
test dil, 4
jne 0x6bb02494
test edi, edi
je 0x6bb02418
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6bb024af
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 0x6bb02418
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 0x6bb0243c
jmp 0x6bb02418
add rsi, qword [0x6bb105e8]
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 0x6bb023ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6bb035b0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6bb02418
xor esi, esi
jmp 0x6bb02377
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6bb02418
mov rax, qword [0x6bb105e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.6bb035b0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.6bb035b0
nop
nop dword [rax]

Function at 0x6bb02c30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6bb108c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6bb108a0]
test rbx, rbx
je 0x6bb02c84
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 0x6bb02c7b
test rsi, rsi
je 0x6bb02c7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6bb02c60
lea rcx, [0x6bb108c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6bb02fc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6bb0d510]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6bb0302d
mov rcx, r8
call fcn.6bb02ea0
test eax, eax
je 0x6bb0302d
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 0x6bb0302d
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 0x6bb03024
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6bb0302f
add rax, 0x28
cmp rax, r9
jne 0x6bb03010
xor eax, eax
add rsp, 0x28
ret

Function at 0x6bb035b0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x6bb013a0]
jmp 0x6bb01380
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.6bb034b0
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.6bb034b0
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 0x6bb01390
Function at 0x1400010d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0
mov r14, r8
mov rsi, rdx
test r8, r8
je 0x14000129d
test rdx, rdx
je 0x14000129d
mov qword [rsp + 0x30], 0
lea rcx, str.mimikatz.exe
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001162
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileA_Failed_With_Error:__ld__n
call fcn.140001010
jmp 0x14000129d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140001196
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetFileSize_Failed_With_Error:__ld__n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000129d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlAllocateHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005660], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [0x140005660]
mov rbp, rax
test rax, rax
jne 0x1400011fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error:__ld__n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000129d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000122a
cmp edi, dword [rsp + 0x40]
jne 0x14000122a
mov qword [rsi], rbp
mov dword [r14], edi
jmp 0x140001246
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x40]
lea rcx, str.____ReadFile_Failed_With_Error:__ld__n_i__Read__d_Of__d_Bytes__n
mov edx, eax
mov r9d, edi
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi], 0
jne 0x1400012a3
mov r8, rdi
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlFreeHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005668], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [0x140005668]
cmp qword [rsi], 0
je 0x1400012b0
cmp dword [r14], 0
je 0x1400012b0
mov eax, 1
jmp 0x1400012b2
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001a70
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000237a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000237a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_SetUnhandledExceptionFilter
jne 0x14000237a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000237a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000237a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000237c
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1404643cf
Capabilities:
Encode data using xor

Disassembly:
call fcn.140452906
add byte [rax], al
add byte [rax], al
xor byte [rsi], al
add dword [rax], eax
add byte [rax], al
cmp byte [rax + 0x14045], dl
add byte [rax], al
fsubr dword [rsi + rax*2 + 0x40]
add dword [rax], eax
add byte [rax], al
xchg esi, eax
add dword cs:[rax], eax
add byte [rax], al
pop rsp
outsb dx, byte [rsi]
add dword [rax], eax
add byte [rax], al
sbb eax, 0x1404529
add byte [rax], al
add byte [rdx + rbp*8 + 0x14047], bl
add byte [rax], al
out 0xa2, eax
add dword [rax], eax
add byte [rax], al
xor byte [rsi + 0x47], bl
add dword [rax], eax
add byte [rax], al
mov ch, 0xb8
add dword [rax], eax
add byte [rax], al
mov ch, 0x1a
add dword [rax], eax
add byte [rax], al
rol byte [rsi + 0x48], 1
add dword [rax], eax
add byte [rax], al
jae 0x14046440e
add dword [rax], eax
add byte [rax], al
cmpsd dword es:[rsi], dword [rdi]
add dword [rax], eax
add byte [rax], al
pop rdx
fiadd word [rsi + 0x40]
add dword [rax], eax
add byte [rax], al
push rcx
jp 0x14046449b
add dword [rax], eax
add byte [rax], al
in al, 0x56
add dword [rax], eax
add byte [rax], al
cmp dword [rcx + 0x14047], ebx
add byte [rax], al
add al, 0xad
add dword [rax], eax
add byte [rax], al
mov al, 0x9c
add dword [rax], eax
add byte [rax], al
or ebx, dword [rax + 0x47]
add dword [rax], eax
add byte [rax], al
mov edx, 0x14044
add byte [rax], al
cmp al, 0x51
add dword [rax], eax
add byte [rax], al
retf
add dword [rax], eax
add byte [rax], al
in al, dx
test byte [rax + 0x40], cl
add dword [rax], eax
add byte [rax], al
invalid

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140029bbc
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.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
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.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
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 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
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 0x14002ae10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001b20
Capabilities:
Parse pe header

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

Function at 0x14046b9ce
Capabilities:
Encode data using xor

Disassembly:
call fcn.14044f7e5
pop rcx
xor al, 1
jmp 0x140481e4d
mov ecx, 0x3a99369a
dec al
inc ecx
neg ecx
ror al, 1
jmp 0x1404654fc
Function at 0x417f60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4180eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00436800
xorps xmm15, xmm15
mov r14, qword [0x009298c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x417fc5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x417fd4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x417ff3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x418003
cmp rbx, 0x1000
jae 0x417fcb
jmp 0x41806d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x418015
xor edx, edx
jmp 0x418064
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00436800
xorps xmm15, xmm15
mov r14, qword [0x009298c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x417ff9
jmp 0x417fe8
call fcn.0046d640
xorps xmm15, xmm15
mov r14, qword [0x009298c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.0043ad40
lea rax, [0x006a02bd]
mov ebx, 0x18
nop dword [rax]
call fcn.0043b5c0
mov rax, qword [rsp + 0x38]
call fcn.0043b300
lea rax, [0x006a0aa3]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.0043b5c0
mov rax, qword [rsp + 0x30]
call fcn.0043b300
call fcn.0043af80
call fcn.0043ada0
lea rax, [0x006a4595]
mov ebx, 0x21
call fcn.004392a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469ee0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417f60
Function at 0x418120
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x418346
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00436880
xorps xmm15, xmm15
mov r14, qword [0x009298c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x418193
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4181a2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4181c5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4181d5
cmp rbx, 0x1000
jae 0x418199
nop
jmp 0x418258
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x4181ed
xor esi, esi
jmp 0x41824a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00436880
xorps xmm15, xmm15
mov r14, qword [0x009298c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x4181cb
jmp 0x4181b6
call fcn.0046d640
xorps xmm15, xmm15
mov r14, qword [0x009298c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4182e0
nop dword [rax + rax]
call fcn.0043ad40
lea rax, [0x006a0abc]
mov ebx, 0x19
call fcn.0043b5c0
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.0043b300
lea rax, [0x006a0aa3]
mov ebx, 0x19
call fcn.0043b5c0
mov eax, dword [rsp + 0x34]
call fcn.0043b300
nop
call fcn.0043af80
call fcn.0043ada0
lea rax, [0x0069b871]
mov ebx, 0xd
call fcn.004392a0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x418280
call fcn.0043ad40
lea rax, [0x006a0abc]
mov ebx, 0x19
call fcn.0043b5c0
mov rax, qword [rsp + 0x38]
call fcn.0043b300
lea rax, [0x006a0aa3]
mov ebx, 0x19
call fcn.0043b5c0
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.0043b300
call fcn.0043af80
call fcn.0043ada0
lea rax, [0x006a37c8]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.004392a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469ee0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00418120