joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002489c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400248cc
xor eax, eax
jmp 0x14002498f
mov rbp, rbx
cmp word [rax], si
je 0x1400248f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400248d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400248d4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400247bc
movsxd r14, eax
test eax, eax
jne 0x14002492f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400248c5
mov rcx, r14
call fcn.14001d0d4
mov rdi, rax
test rax, rax
jne 0x140024948
xor ecx, ecx
call fcn.14001cd2c
jmp 0x140024924
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400247bc
test eax, eax
jne 0x140024979
mov rcx, rdi
call fcn.14001cd2c
jmp 0x140024983
xor ecx, ecx
call fcn.14001cd2c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400279e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001e83c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140027a89
cmp ebx, dword [rsp + 0x30]
je 0x140027a82
test esi, esi
je 0x140027a82
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140027a5d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140027a6a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140027a47
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140027a6e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140027a8b
mov eax, 1
jmp 0x140027a8b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002bde4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140015dac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002be6e
cmp byte [rbp - 0x21], r15b
je 0x14002be69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002bea4
call fcn.140021184
test eax, eax
jne 0x14002be90
cmp byte [rbp - 0x21], r15b
je 0x14002be88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002bea4
cmp byte [rbp - 0x21], r15b
je 0x14002bea1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001bd74
test eax, eax
jne 0x14002bf44
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015dac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002bee3
cmp byte [rbp - 0x21], r15b
je 0x14002bf18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002bf18
call fcn.140021184
test eax, eax
jne 0x14002bf04
cmp byte [rbp - 0x21], r15b
je 0x14002befd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002bf18
cmp byte [rbp - 0x21], r15b
je 0x14002bf15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001bd74
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002bf44
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002bf47
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002bf55
mov rcx, rdi
call fcn.14001cd2c
cmp byte [rbp + 0x3f], r15b
je 0x14002bf64
mov rcx, qword [rbp + 0x27]
call fcn.14001cd2c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002e250
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.140022c28
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140022c28
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e3a0
cmp rax, 0xffffffffffffffff
je 0x14002e3a0
xor edi, edi
test rbp, rbp
jle 0x14002e34b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001cd68
mov rbx, rax
test rax, rax
jne 0x14002e2d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e341
mov edx, 0x8000
mov ecx, r14d
call fcn.1400188fc
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.140020604
cmp eax, 0xffffffff
je 0x14002e321
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e2e8
mov edx, r15d
mov ecx, r14d
call fcn.1400188fc
jmp 0x14002e341
cmp byte [rsi + 0x38], dil
je 0x14002e338
cmp dword [rsi + 0x34], 5
jne 0x14002e338
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002e341
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001cd2c
jmp 0x14002e3b4
jns 0x14002e3b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140022c28
cmp rax, 0xffffffffffffffff
jne 0x14002e36c
cmp byte [rsi + 0x30], dil
je 0x14002e3b4
mov edi, dword [rsi + 0x2c]
jmp 0x14002e3b4
mov ecx, r14d
call fcn.140025304
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e3b4
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 0x14002e3b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e3ad
mov eax, dword [rsi + 0x2c]
jmp 0x14002e3b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140022c28
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 0x14002ea90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002eab8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002eab8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400039f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x48], rdx
cmp rcx, rdx
je 0x140003a31
cmp qword [rdx + 0x18], 0x10
jb 0x140003a28
mov rdx, qword [rdx]
mov r8, qword [rbx + 0x10]
call fcn.140002420
mov rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.140002350
mov rdi, rax
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140003a4e
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003b22
test al, 0x10
jne 0x140003b22
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140003a9f
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003a9a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003b74
mov rcx, r8
call fcn.14000dad4
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov byte [rbp + 0x20], 1
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003af0
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003aeb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003b7a
mov rcx, r8
call fcn.14000dad4
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000dab0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140003b58
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003b53
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003b74
mov rcx, r8
call fcn.14000dad4
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov byte [rbp + 0x20], 0
jmp 0x140003ab6
call fcn.140014248
nop
call fcn.140014248
int3
Function at 0x140003b88
Capabilities:
Allocate or change rwx memory

Disassembly:
test edx, edx
je 0x140003da6
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
je 0x140003d90
mov r8d, edx
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 0x140003d88
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 0x140003c03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003d88
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 0x140003d80
cmp rbx, 0xffffffffffffffff
je 0x140003d80
cmp qword [rdi + 0x18], 0x10
mov r8, rdi
jb 0x140003c82
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 0x140003d5f
lea rcx, [0x140046bf0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140003d5f
lea rdx, [0x140046c00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003d5f
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.1400097c0
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140003d33
test eax, eax
jne 0x140003d33
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 0x140003d80
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.14000dab0
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140003db0
Capabilities:
Enumerate process modules

Disassembly:
test edx, edx
je 0x140003efe
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x14c0
call fcn.14000e120
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.140010260
cmp byte [rdi + 0x20], 0
je 0x140003ede
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 0x140003ed6
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140003ecd
nop
lea rax, [rsp + 0x2a0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140003e50
inc r8
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0x2a0]
xor ecx, ecx
lea rdx, [rsp + 0x4b0]
call fcn.140016da4
cmp qword [rdi + 0x18], 0x10
mov r8, rdi
jb 0x140003e8b
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 0x140003eb3
inc rax
test ecx, ecx
jne 0x140003ea0
mov rcx, rbx
test edx, edx
je 0x140003eff
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003e40
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.14000dab0
mov rsi, qword [rsp + 0x14e0]
add rsp, 0x14c0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x60], 0
je 0x140003ed6
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140003ed6
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140003ecd
lea rdx, [0x140046c30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
test rax, rax
je 0x140003fbd
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.1400097c0
mov rcx, qword [rsp + 0x68]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140003ecd
test eax, eax
jne 0x140003ecd
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 0x140003ed6
Function at 0x140003db8
Capabilities:
Enumerate process modules

Disassembly:
test edx, edx
je 0x140003efe
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x14c0
call fcn.14000e120
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.140010260
cmp byte [rdi + 0x20], 0
je 0x140003ede
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 0x140003ed6
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140003ecd
nop
lea rax, [rsp + 0x2a0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140003e50
inc r8
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0x2a0]
xor ecx, ecx
lea rdx, [rsp + 0x4b0]
call fcn.140016da4
cmp qword [rdi + 0x18], 0x10
mov r8, rdi
jb 0x140003e8b
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 0x140003eb3
inc rax
test ecx, ecx
jne 0x140003ea0
mov rcx, rbx
test edx, edx
je 0x140003eff
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003e40
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.14000dab0
mov rsi, qword [rsp + 0x14e0]
add rsp, 0x14c0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x60], 0
je 0x140003ed6
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140003ed6
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140003ecd
lea rdx, [0x140046c30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
test rax, rax
je 0x140003fbd
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.1400097c0
mov rcx, qword [rsp + 0x68]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140003ecd
test eax, eax
jne 0x140003ecd
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 0x140003ed6
Function at 0x140004280
Capabilities:
Enumerate threads
Inject apc

Disassembly:
test edx, edx
je 0x1400044e2
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 0x1400044cf
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 0x1400044c7
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 0x140004300
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400044c7
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 0x1400044bf
cmp rsi, 0xffffffffffffffff
je 0x1400044bf
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x140004381
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 0x140004499
lea rcx, [0x140046bf0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140004499
lea rdx, [0x140046c00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140004499
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 0x140004499
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140004473
cmp dword [rsp + 0x3c], edi
je 0x14000443c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140004422
jmp 0x140004473
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 0x140004473
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 0x1400044b4
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.14000dab0
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x140004288
Capabilities:
Allocate or change rwx memory
Enumerate threads
Inject apc

Disassembly:
test edx, edx
je 0x1400044e2
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 0x1400044cf
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 0x1400044c7
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 0x140004300
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400044c7
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 0x1400044bf
cmp rsi, 0xffffffffffffffff
je 0x1400044bf
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x140004381
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 0x140004499
lea rcx, [0x140046bf0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140004499
lea rdx, [0x140046c00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140004499
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 0x140004499
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140004473
cmp dword [rsp + 0x3c], edi
je 0x14000443c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140004422
jmp 0x140004473
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 0x140004473
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 0x1400044b4
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.14000dab0
add rsp, 0x68
pop rdi
pop rbx
ret