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

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
cmp dword [rcx + 0x244], 0x10
ja 0x653fefc0
mov rbx, rcx
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov edi, r8d
call fcn.6539d620
test eax, eax
mov r14d, eax
jne 0x653fefc6
mov eax, dword [rbx + 0x240]
test eax, eax
jne 0x653fefb1
movsxd rcx, dword [rbx + 0x244]
test ecx, ecx
jne 0x653fefe0
cmp qword [rbx + 0x248], 0
je 0x653ff1d0
lea r13, [rbx + 0x228]
lea r12, [rbx + 0x1f8]
jmp 0x653ff05a
cmp eax, 1
je 0x653ff1e0
nop word [rax + rax]
mov r14d, 0x10
lea rsp, [rbp - 0x38]
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rbx + 0x23c]
lea r13, [rbx + 0x228]
test eax, eax
jne 0x653ff020
cmp ecx, 0xc
jne 0x653ff020
mov rax, qword [rbx + 0x228]
mov qword [rbx + 0x208], rax
mov eax, dword [r13 + 8]
mov dword [rbx + 0x214], 0x1000000
mov dword [rbx + 0x210], eax
jmp 0x653ff0c5
lea eax, [rcx - 1]
lea r12, [rbx + 0x1f8]
lea r8, [rbx + rax + 0x1f9]
mov rdx, r12
movzx eax, byte [rdx + 0x30]
xor byte [rdx], al
add rdx, 1
cmp rdx, r8
jne 0x653ff035
shl rcx, 3
add qword [rbx + 0x248], rcx
mov rdx, r12
mov rcx, rbx
call fcn.65397740
mov edx, 8
mov rcx, r13
call fcn.6539e120
mov rax, qword [rbx + 0x248]
mov rdx, r12
bswap rax
mov qword [rbx + 0x230], rax
lea rax, [rbx + 0x208]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rax, rdx
jne 0x653ff082
mov rdx, r12
mov rcx, rbx
call fcn.65397740
mov rdx, qword [rbx + 0x200]
mov rax, qword [rbx + 0x1f8]
mov rcx, r12
mov qword [rbx + 0x210], rdx
mov qword [rbx + 0x208], rax
mov edx, 0x10
call fcn.6539e120
mov rdx, qword [rbx + 0x210]
mov rax, qword [rbx + 0x208]
mov rcx, r13
mov qword [rbx + 0x220], rdx
mov qword [rbx + 0x218], rax
mov edx, 0x10
call fcn.6539e120
mov qword [rbx + 0x240], 1
mov qword [rbx + 0x248], 0
mov r13d, edi
and r13d, 0xfffffff0
je 0x653ff200
lea r15, [rbx + 0x1f8]
xor r12d, r12d
nop dword [rax + rax]
mov eax, r12d
mov rdx, r15
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [r12 + 8]
add r12d, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.65397740
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12d, r13d
jb 0x653ff120
mov eax, r12d
add rsi, rax
cmp edi, r12d
jbe 0x653fefc6
sub edi, 1
sub edi, r12d
lea r12, [rsi + rdi + 1]
lea rdi, [rbx + 0x1f8]
jmp 0x653ff189
cmp rsi, r12
je 0x653fefc6
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
movzx ecx, byte [rsi - 1]
lea eax, [rdx + 1]
mov dword [rbx + 0x244], eax
xor byte [rbx + rdx + 0x1f8], cl
cmp eax, 0x10
jne 0x653ff180
mov rdx, rdi
mov rcx, rbx
call fcn.65397740
mov dword [rbx + 0x244], 0
sub qword [rbx + 0x248], 0xffffffffffffff80
jmp 0x653ff180
mov r14d, 1
jmp 0x653fefc6
mov eax, dword [rbx + 0x244]
cmp eax, 0xf
jg 0x653fefc0
xor r12d, r12d
test eax, eax
jne 0x653ff160
jmp 0x653ff104
xor r12d, r12d
jmp 0x653ff160
Function at 0x653ff630
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
mov ebp, 0x10
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x240]
test eax, eax
jne 0x653ff771
cmp dword [rcx + 0x244], 0xf
mov rbx, rcx
ja 0x653ff771
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov r12d, r8d
call fcn.6539d620
test eax, eax
mov ebp, eax
jne 0x653ff771
mov eax, dword [rbx + 0x244]
lea edx, [rax + r12]
cmp edx, 0xc
jbe 0x653ff692
or dword [rbx + 0x23c], 1
xor edi, edi
test eax, eax
jne 0x653ff6eb
mov r13d, r12d
and r13d, 0xfffffff0
je 0x653ff782
lea r14, [rbx + 0x1f8]
nop dword [rax]
mov eax, edi
mov rdx, r14
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [rdi + 8]
add edi, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.65397740
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp edi, r13d
jb 0x653ff6b0
mov eax, edi
add rsi, rax
cmp r12d, edi
jbe 0x653ff771
sub r12d, 1
lea r13, [rbx + 0x1f8]
sub r12d, edi
lea rdi, [rbx + 0x208]
lea r12, [rsi + r12 + 1]
jmp 0x653ff715
cmp r12, rsi
je 0x653ff771
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
lea ecx, [rdx + 1]
mov dword [rbx + 0x244], ecx
movzx eax, byte [rsi - 1]
cmp ecx, 0x10
mov byte [rbx + rdx + 0x228], al
jne 0x653ff710
mov rdx, r13
nop dword [rax]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rdi, rdx
jne 0x653ff740
mov rdx, r13
mov rcx, rbx
call fcn.65397740
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12, rsi
mov dword [rbx + 0x244], 0
jne 0x653ff715
add rsp, 0x20
mov eax, ebp
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, eax
jmp 0x653ff6eb
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140080d80]
mov dword [rax], 1
mov rax, qword [0x140080d90]
mov dword [rax], 1
mov rax, qword [0x140080da0]
mov dword [rax], 1
mov rax, qword [0x140080d30]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140048940
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140063bf0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14005a470
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140048999
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x1400628d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140074050
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140074050
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400635a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14008ad48]
test eax, eax
je 0x14006363a
lea rax, [0x14008ad20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14008ad50]
mov qword [rbp - 8], rax
jmp 0x14006361e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140063612
cmp qword [rbp - 0x10], 0
je 0x140063612
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400635d8
lea rax, [0x14008ad20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14006363b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140063740
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140063768
mov eax, 0
jmp 0x1400637b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140063791
mov eax, 0
jmp 0x1400637b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400637b1
mov eax, 0
jmp 0x1400637b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400637bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14006383a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140063831
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140063831
mov rax, qword [rbp - 8]
jmp 0x14006384f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140063804
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001f30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x438
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002172
xor edi, edi
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r9d, [rdi + 0x30]
call qword [0x140026ed0]
lea r9d, [rdi + 8]
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002172
mov rdx, qword [rsp + 0x30]
lea r9d, [rdi + 8]
add rdx, 0x18
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002172
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.explorer.exe
mov edx, 0x105
lea rcx, [rbp - 0x80]
call fcn.14000701c
mov ecx, 0x104
call fcn.14000b4fc
lea r8, [rbp - 0x80]
mov edx, 0x104
mov rcx, rax
mov r14, rax
call fcn.140006fb4
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call qword [0x140026eb0]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
mov rcx, qword [rcx + 0x20]
add rcx, 0x60
call qword [0x140026ed8]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
mov rcx, qword [rcx + 0x20]
add rcx, 0x70
call qword [0x140026ed8]
mov r8d, 0x104
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x48]
mov rsi, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x40], rcx
nop dword [rax]
mov r9d, 8
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x38]
mov rcx, rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002172
mov rdx, qword [rsp + 0x38]
lea r8, [rbp + 0x190]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
movzx r9d, word [rdx + 0x4a]
mov rdx, qword [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140002172
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.140006e38
test eax, eax
je 0x14000211c
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
cmp rcx, rsi
jne 0x1400020a0
jmp 0x140002140
mov rcx, qword [rsp + 0x38]
mov rdx, r14
add rcx, 0x48
call qword [0x140026ed8]
mov rcx, qword [rsp + 0x38]
mov rdx, r14
add rcx, 0x58
call qword [0x140026ed8]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
call qword [0x140026eb8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call fcn.140006e38
test eax, eax
setne dil
mov eax, edi
jmp 0x140002174
xor eax, eax
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140002980
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002310
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140021cc0]
mov edx, 0x66
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov rbx, rax
call fcn.140004280
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140021cc8]
lea rcx, str.C:windows_temp_
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, str.___MSI_file:__ls_n
call fcn.1400013e0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0x40040000
mov dword [rsp + 0x20], 2
mov rdi, rax
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, esi
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rdx, str.ACTIONINSTALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rdx, str.REMOVEALL
lea rcx, [rsp + 0x40]
call qword [sym.imp.msi.dll_MsiOpenDatabaseW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002980
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003438
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140006a13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006a13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006a13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006a13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006a13
cmp dword [rcx + 0x84], 0xe
jbe 0x140006a13
cmp dword [rcx + 0xf8], 0
je 0x140006a13
mov ecx, ebx
call fcn.140006ac4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400068a0
nop
cmp dword [rbp + 0x20], 0
je 0x140006a61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006a6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400069a4
Function at 0x140010cdc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140010d63
mov rsi, rbx
cmp word [rax], bp
je 0x140010d22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140010d0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140010d08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000e350
mov rdi, rax
test rax, rax
je 0x140010d50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140006230
mov rbp, rdi
xor ecx, ecx
call fcn.14000ce78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140014fac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014fc2
mov al, 1
jmp 0x140015022
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014fd3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015020
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011480
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015020
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015020
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015020
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015022
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140017bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1416308e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1416308ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1416308fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1416308e5
lea eax, [rcx + 1]
jmp 0x14163090b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14163091e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141630904
sub eax, 3
jb 0x14163093e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14163098d
sar eax, 1
movsxd rbp, eax
jb 0x141630974
jmp 0x14163094c
add ebx, ebx
jne 0x14163094a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141630974
inc ecx
add ebx, ebx
jne 0x14163095a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141630974
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14163096d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14163095c
add ecx, 2
jmp 0x141630979
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1416308a2
jmp 0x1416308ed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x1618000]
mov eax, dword [rdi]
or eax, eax
je 0x1416309ed
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x16485a8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14163099d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1416309e7
mov qword [rbx], rax
add rbx, 8
jmp 0x1416309bd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x141630a31
cmp al, 0xef
ja 0x141630a19
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1416309f9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x141630a08
mov eax, dword [rdi]
add rdi, 4
jmp 0x141630a08
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.141630ab0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.141630ab0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x141630aa0
sub rsp, 0xffffffffffffff80
jmp 0x1400014c0
Function at 0x140008ff0
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov qword [0x1400175f0], rcx
call fcn.140009d6c
lea rdx, str.Devicepohunwb
lea rcx, [0x140017690]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, str.DosDevicespohunwb
lea rcx, [0x140017680]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x1400176a0]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [0x140017690]
mov byte [rsp + 0x28], 0
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
lea rdx, [0x140017690]
lea rcx, [0x140017680]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
lea rax, [0x140008f50]
mov qword [rbx + 0x70], rax
lea rax, [0x140008f50]
mov qword [rbx + 0x80], rax
lea rax, [0x140009210]
mov qword [rbx + 0xe0], rax
lea rax, [0x140009c10]
mov qword [rbx + 0x68], rax
call fcn.1400090e4
lea rcx, [0x140017600]
call fcn.14000a294
mov rcx, rbx
call fcn.14000ab0c
mov rcx, rbx
call fcn.14000ac70
mov rax, qword [0x1400176a0]
or dword [rax + 0x30], 0x10
mov rax, qword [0x1400176a0]
btr dword [rax + 0x30], 7
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140009848
Capabilities:
Attach user process memory

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140013640]
xor rax, rsp
mov qword [rbp + 0x37], rax
and dword [rbp - 0x19], 0
mov rdi, rdx
and dword [rbp - 0x15], 0
lea rdx, [rbp + 7]
mov rbx, rcx
mov qword [rbp - 9], r8
mov qword [rbp - 0x11], r9
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x19]
mov r9d, 4
lea r8, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 9]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x1400098e7
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbp - 9]
mov rdx, rdi
mov r8, rax
mov rcx, rbx
lea rax, [rbp - 1]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x11]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov ebx, eax
sar ebx, 0x1f
and ebx, 0xc0000022
jmp 0x1400098ec
mov ebx, 0xc0000022
mov r9d, dword [rbp - 0x19]
lea rax, [rbp - 0x15]
lea r8, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 9]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14000ddb0
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret