joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004360]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
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 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

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

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004360]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002680
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push rdi
push rsi
sub rsp, 0x38
lea rsi, section..data
call fcn.140001500
mov dword [rsp + 0x2c], 0x79656b
xor ecx, ecx
movabs rax, 0x6472616879726576
mov qword [rsp + 0x24], rax
mov r8d, 0xb
mov eax, ecx
cdq
idiv r8d
movsxd rdx, edx
mov al, byte [rsp + rdx + 0x24]
xor byte [rsi + rcx], al
inc rcx
cmp rcx, 0x1fe
jne 0x1400026b1
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 0x1ff
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
call rax
xor eax, eax
add rsp, 0x38
pop rsi
pop rdi
ret
Function at 0x140002e60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002e8d
xor eax, eax
jmp 0x140002ff9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002ec7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002ec7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002ff9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002fec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002f0a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002f35
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002ff1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002fa4
sub eax, 1
je 0x140002fa4
cmp eax, 2
jne 0x140002fec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002ff1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002fd2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002fec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002ff1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004420
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003340
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003413
cmp byte [rcx + 0x71], 0
je 0x140003413
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000340f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400033d4
sub eax, 1
je 0x1400033d8
cmp eax, 2
jne 0x14000340f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004420
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003406
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000340f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400033bc
xor al, al
jmp 0x1400033bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004420
add rsp, 0x60
pop rbx
ret

Function at 0x140004fc8
Capabilities:
Parse pe header

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

Disassembly:
call 0x1410431df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141043089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14104306f
add dl, dl
jne 0x141043096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410430f6
xor eax, eax
add dl, dl
jne 0x1410430a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410431ad
add dl, dl
jne 0x1410430b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410430c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410430d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410430dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410430ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14104307e
mov eax, 1
add dl, dl
jne 0x141043106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141043113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410430fb
sub eax, ebx
mov ebx, 1
jne 0x14104314c
mov ecx, 1
add dl, dl
jne 0x14104312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14104313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141043123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14104307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141043168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141043175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14104315d
cmp eax, 0x7d00
jae 0x14104319b
cmp eax, 0x500
jb 0x141043196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14104307e
cmp eax, 0x7f
ja 0x14104319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14104307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410431d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14104307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000219c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov rsi, r8
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140058880
nop
test rbx, rbx
je 0x1400021f2
add rbx, 0xc
mov rdx, rbx
jmp 0x1400021f4
xor edx, edx
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x88], rdx
mov r8, rsi
mov qword [rbp - 0x90], r8
mov r9, rdi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.1400d29d0
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.1400d2a20
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x14000227d
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400588c0
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140003e24
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
xor ecx, ecx
mov dword [r9], ecx
mov qword [rbp - 0x40], r9
mov r14, r9
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x74], rcx
mov rdx, rsi
mov qword [rbp - 0x7c], rdx
mov r8d, edi
mov dword [rbp - 0x6c], r8d
mov r9, r14
mov qword [rbp - 0x84], r9
lea rcx, [rbp - 0x68]
call fcn.1400d29d0
mov rcx, qword [rbp - 0x74]
mov rdx, qword [rbp - 0x7c]
mov r8d, dword [rbp - 0x6c]
mov r9, qword [rbp - 0x84]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.1400d2a20
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401efa84]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140003ef0
mov dword [rdi + 0x90], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14005e84c]
call rax
mov rdi, rax
jmp 0x140003ed7
Function at 0x14000580c
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbx], edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140058880
nop
mov qword [rbp - 0x50], rbx
lea r14, [rsi + 0x10]
xor ecx, ecx
test rsi, rsi
cmove r14, rcx
mov qword [rbp - 0x58], r14
mov rcx, qword [rbp - 0x48]
mov rsi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, rsi
mov qword [rbp - 0x8c], rcx
mov rdx, r14
mov qword [rbp - 0x94], rdx
mov r8d, edi
mov dword [rbp - 0x84], r8d
mov r9, rbx
mov qword [rbp - 0x9c], r9
lea rcx, [rbp - 0x80]
call fcn.1400d29d0
mov rcx, qword [rbp - 0x8c]
mov rdx, qword [rbp - 0x94]
mov r8d, dword [rbp - 0x84]
mov r9, qword [rbp - 0x9c]
call sub.KERNEL32.dll_K32EnumProcessModulesEx
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400d2a20
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
test ebx, ebx
setne bl
movzx ebx, bl
cmp byte [rbp - 0x40], 0
je 0x140005914
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400588c0
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401efa84]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140005951
mov dword [rdi + 0x90], esi
movzx eax, bl
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14005e84c]
call rax
mov rdi, rax
jmp 0x140005934
Function at 0x1400060b8
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x110]
xor eax, eax
mov qword [rbp - 0x68], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
mov qword [rbp - 0x50], rax
mov rbx, rdx
mov r14, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x58]
cmp byte [rbp + 0x30], 0
setne r15b
movzx r15d, r15b
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rsi
test r14, r14
je 0x140006112
add r14, 0xc
jmp 0x140006115
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x58], r9
mov r13, r9
mov qword [rbp - 0x60], r8
mov r12, r8
test rcx, rcx
je 0x140006135
add rcx, 0xc
mov rax, rcx
jmp 0x140006137
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x98], rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov dword [rsp + 0x20], r15d
mov r15d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r15d
mov r15, qword [rbp + 0x40]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov rcx, qword [rbp - 0x98]
mov qword [rbp - 0xa0], rcx
mov rdx, rbx
mov qword [rbp - 0xa8], rdx
mov r8, r12
mov qword [rbp - 0xb0], r8
mov r9, r13
mov qword [rbp - 0xb8], r9
lea rcx, [rbp - 0x90]
call fcn.1400d29d0
mov rcx, qword [rbp - 0xa0]
mov rdx, qword [rbp - 0xa8]
mov r8, qword [rbp - 0xb0]
mov r9, qword [rbp - 0xb8]
call sub.KERNEL32.dll_CreateProcessW
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400d2a20
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401efa84]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140006239
mov dword [rdi + 0x90], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14005e84c]
call rax
mov rdi, rax
jmp 0x140006217
Function at 0x140006dd0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r14d, r9d
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp + 0x10], rbx
mov qword [rbx], rcx
mov qword [rbp + 0x18], rsi
mov qword [rsi], rcx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x50], rcx
mov byte [rbp - 0x84], 0
lea rcx, [0x140131e38]
call fcn.1400caec8
mov qword [rbp - 0x90], rax
mov byte [rbp - 0x88], 0
lea rcx, [0x140131e38]
call fcn.1400caec8
mov qword [rbp - 0x98], rax
mov qword [rbp - 0x58], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rcx, [rbp - 0x48]
mov qword [rbp - 0xa4], rcx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0xac], rdx
mov r8, rdi
mov qword [rbp - 0xb4], r8
mov r9d, r14d
mov dword [rbp - 0x9c], r9d
lea rcx, [rbp - 0x80]
call fcn.1400d29d0
mov rcx, qword [rbp - 0xa4]
mov rdx, qword [rbp - 0xac]
mov r8, qword [rbp - 0xb4]
mov r9d, dword [rbp - 0x9c]
call sub.KERNEL32.dll_CreatePipe
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400d2a20
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x3c], 1
mov rcx, qword [rbp - 0x50]
mov byte [rbp - 0x84], 1
mov rax, qword [rbp - 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rbp - 0x48]
mov byte [rbp - 0x88], 1
mov r8, qword [rbp - 0x98]
mov qword [r8 + 8], rcx
test ebx, ebx
setne bl
movzx ebx, bl
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call fcn.1400d0fc0
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x98]
call fcn.1400d0fc0
nop
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401efa84]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140006f58
mov dword [rdi + 0x90], esi
movzx eax, bl
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14005e84c]
call rax
mov rdi, rax
jmp 0x140006f3b
Function at 0x14000b6f4
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140132788]
cmp qword [rcx - 8], 0
jne 0x14000b732
mov rcx, rbx
call fcn.14000b4b4
test eax, eax
jne 0x14000b720
add rsp, 0x20
pop rbx
jmp fcn.14000ca20
mov rcx, rbx
mov edx, 1
add rsp, 0x20
pop rbx
jmp fcn.14000c9a0
call fcn.1400cd3c5
jmp 0x14000b70a

Function at 0x14000ca20
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
lea rcx, [0x140132bd8]
cmp qword [rcx - 8], 0
jne 0x14000cbc2
mov rbx, qword [0x1401e29a8]
mov qword [rbp - 0x80], rbx
mov rcx, qword [rbx + 8]
mov edx, 0x100
cmp dword [rcx], ecx
call fcn.14009ee80
mov rsi, rax
mov rcx, qword gs:[0x58]
mov eax, dword [0x1401efa84]
mov edx, 0x10
add rdx, qword [rcx + rax*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x14000cbcc
mov qword [rbp - 0x88], rdi
jmp 0x14000cac8
add r14d, r14d
mov rbx, qword [rbp - 0x80]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp - 0x78]
xor r8d, r8d
cmp dword [rcx], ecx
call fcn.14009f0e0
mov rcx, qword [rbx + 8]
mov edx, r14d
cmp dword [rcx], ecx
call fcn.14009ee80
mov rsi, rax
mov r14d, dword [rsi + 8]
lea r15d, [r14*4]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
lea r13, [rbp - 0x3c]
mov qword [rbp - 0x78], rsi
lea r12, [rsi + 0x10]
mov qword [rbp - 0x48], r12
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov qword [rbp - 0x94], rcx
mov edx, r15d
mov dword [rbp - 0x8c], edx
mov r8, r13
mov qword [rbp - 0x9c], r8
lea rcx, [rbp - 0x70]
call fcn.1400d29d0
mov rcx, qword [rbp - 0x94]
mov edx, dword [rbp - 0x8c]
mov r8, qword [rbp - 0x9c]
call sub.KERNEL32.dll_K32EnumProcesses
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1400d2a20
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
mov qword [rbp - 0x48], rcx
mov rdi, qword [rbp - 0x88]
mov dword [rdi + 0x90], eax
test ebx, ebx
je 0x14000cbe0
cmp dword [rbp - 0x3c], r15d
je 0x14000ca9e
mov rsi, qword [rbp - 0x78]
mov edx, dword [rbp - 0x3c]
sar edx, 0x1f
and edx, 3
add edx, dword [rbp - 0x3c]
sar edx, 2
movsxd rdx, edx
lea rcx, [0x14015a980]
call fcn.1400d0e60
mov rdi, rax
mov r8d, dword [rdi + 8]
mov rcx, rsi
mov rdx, rdi
call fcn.14001a328
mov rbx, qword [rbp - 0x80]
mov rcx, qword [rbx + 8]
mov rdx, rsi
xor r8d, r8d
cmp dword [rcx], ecx
call fcn.14009f0e0
mov rax, rdi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1400cde23
jmp 0x14000ca53
mov rcx, rdx
lea rax, [0x14005e84c]
call rax
mov rdi, rax
jmp 0x14000ca95
lea rcx, [0x140139ba0]
call fcn.1400d0d40
mov rbx, rax
mov rcx, rbx
call fcn.140033974
mov rcx, rbx
call fcn.1400d12b0
int3
Function at 0x140010a08
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x64], r8d
mov rdx, rcx
mov qword [rbp - 0x70], rdx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov r9d, 2
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0x60]
call fcn.1400d29d0
mov r8d, dword [rbp - 0x64]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x68]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.1400d2a20
test ebx, ebx
jne 0x140010a7c
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
je 0x140010aa4
lea rcx, [0x140138030]
call fcn.1400d0d40
mov rbx, rax
mov rcx, rbx
call fcn.140021d98
mov rcx, rbx
call fcn.1400d12b0
int3
lea rcx, [0x140138738]
call fcn.1400d0d40
mov rbx, rax
mov rcx, rbx
call fcn.1400256f4
mov rcx, rbx
call fcn.1400d12b0
int3

Function at 0x140010f2c
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x140010f49
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.140064c48
mov ecx, eax
test ecx, ecx
jne 0x140010fd6
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.140064bec
mov ecx, eax
lea rdx, [0x140119af8]
xor r8d, r8d
call fcn.1400501d0
mov rcx, rax
call fcn.1400d12b0
int3

Function at 0x140013e1c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140013e2e
add rsp, 0x28
jmp fcn.140014a00
lea rcx, [0x14012ed08]
call fcn.1400034b8
int3

Function at 0x140013e64
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140013e84
cmp dword [rcx + 8], 0
jne 0x140013e7b
mov rax, rcx
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140014520
lea rcx, [0x14012db80]
call fcn.1400034b8
int3