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

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140045e22
xor eax, eax
jmp 0x140045f08
cmp qword [rcx + 0x68], 0
je 0x140045e33
call fcn.140045f24
jmp 0x140045f08
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140045e4a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140045e4c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140045e7e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14004b180
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140045f02
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140045eb5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140045ede
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140054ff8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140045f02
cmp rsi, rbx
ja 0x140045ebc
test rsi, rsi
je 0x140045f02
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140054ff8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14004aae4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004ab2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004ab2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004ab2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004ab2e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004ab2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004ab30
xor al, al
add rsp, 0x28
ret
Function at 0x140050df8
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 0x140050c63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140050c63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050c63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140050c63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140050c63
cmp dword [rcx + 0x84], 0xe
jbe 0x140050c63
cmp dword [rcx + 0xf8], 0
je 0x140050c63
mov ecx, ebx
call fcn.140050d14
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.140050af0
nop
cmp dword [rbp + 0x20], 0
je 0x140050cb1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140050cbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140050bf4
Function at 0x140060fd0
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.14004a780
sub rsp, rax
mov rax, qword [0x140081248]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005d9ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006101f
mov rax, rbp
jmp 0x140061127
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x83690]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400620f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x83690]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140061123
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 0x140061123
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400620f0
test rax, rax
js 0x140061123
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140061123
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140061115
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140061115
cmp byte [rcx], 0xd
jne 0x1400610fb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006110a
cmp byte [rcx + 1], 0xa
jne 0x14006110a
inc rcx
jmp 0x14006110a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x81640]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400610dd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140061127
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004a750
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 0x140061348
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006135e
mov al, 1
jmp 0x1400613be
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006136f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400613bc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400649ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400613bc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400613bc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400613bc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400613be
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140061490
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, [0x140083690]
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 0x1400614e7
cmp word [rdx], r13w
jne 0x1400614e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400614ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140061611
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140061632
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140061525
mov rdx, r9
mov word [rbx], cx
jmp 0x14006154c
cmp r9, r8
jae 0x14006155c
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 0x140061506
jmp 0x140061611
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 0x140061606
cmp dword [rsp + 0x80], esi
je 0x140061606
lea r8, [0x140083690]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400615de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400615ae
mov word [rbx], r13w
jmp 0x14006160e
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 0x1400615bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006160e
cmp word [rsp + 0x70], r13w
jne 0x1400615eb
cmp rbx, r14
je 0x1400615a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400620f8
cmp word [rsp + 0x70], r13w
je 0x140061611
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, [0x140083690]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006160b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140061611
Function at 0x140063f70
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 0x140063fa0
xor eax, eax
jmp 0x140064063
mov rbp, rbx
cmp word [rax], si
je 0x140063fc5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140063fac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140063fa8
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.1400626a8
movsxd r14, eax
test eax, eax
jne 0x140064003
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140063f99
mov rcx, r14
call fcn.14005c750
mov rdi, rax
test rax, rax
jne 0x14006401c
xor ecx, ecx
call fcn.14005b8c8
jmp 0x140063ff8
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.1400626a8
test eax, eax
jne 0x14006404d
mov rcx, rdi
call fcn.14005b8c8
jmp 0x140064057
xor ecx, ecx
call fcn.14005b8c8
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 0x140066f40
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.14005aa04
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 0x140066fe1
cmp ebx, dword [rsp + 0x30]
je 0x140066fda
test esi, esi
je 0x140066fda
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140066fb5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140066fc2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140066f9f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140066fc6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140066fe3
mov eax, 1
jmp 0x140066fe3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006a54c
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.140055bec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006a5d6
cmp byte [rbp - 0x21], r15b
je 0x14006a5d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006a60c
call fcn.14005e07c
test eax, eax
jne 0x14006a5f8
cmp byte [rbp - 0x21], r15b
je 0x14006a5f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006a60c
cmp byte [rbp - 0x21], r15b
je 0x14006a609
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.140056224
test eax, eax
jne 0x14006a6ac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055bec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006a64b
cmp byte [rbp - 0x21], r15b
je 0x14006a680
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006a680
call fcn.14005e07c
test eax, eax
jne 0x14006a66c
cmp byte [rbp - 0x21], r15b
je 0x14006a665
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006a680
cmp byte [rbp - 0x21], r15b
je 0x14006a67d
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.140056224
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006a6ac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006a6af
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006a6bd
mov rcx, rdi
call fcn.14005b8c8
cmp byte [rbp + 0x3f], r15b
je 0x14006a6cc
mov rcx, qword [rbp + 0x27]
call fcn.14005b8c8
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 0x140006f20
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400070fa
push rdi
sub rsp, 0x60
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, DispGetParam
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x1400070f5
mov eax, 0x5a4d
mov qword [rsp + 0x50], r15
mov r15d, dword [rsp + 0x38]
cmp word [rdi], ax
jne 0x1400070f0
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x1400070f0
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0x80], rbp
lea rbp, [rcx + rdi]
jne 0x1400070e8
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0x88], rsi
xor esi, esi
mov qword [rsp + 0x58], r14
cmp cx, ax
jne 0x140006fcc
xor r14d, r14d
jmp 0x140006ffe
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x140006ff0
mov ecx, 0x8664
cmp cx, ax
je 0x140006ff0
cmp r8w, ax
jne 0x1400070db
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0x78], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x1400070d6
cmp rbx, rdi
jbe 0x1400070d6
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x1400070d6
mov rcx, rbx
call fcn.140007c90
test eax, eax
je 0x1400070d6
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.140007d00
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
mov dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400070d6
test r14d, r14d
jne 0x140007086
mov eax, dword [0x1400611c0]
mov dword [rbx], eax
movzx eax, byte [0x1400611c4]
mov byte [rbx + 4], al
jmp 0x1400070aa
test esi, esi
je 0x140007096
mov rax, qword [0x1400611b8]
mov qword [rbx], rax
jmp 0x1400070aa
movzx eax, word [0x1400611b4]
mov word [rbx], ax
movzx eax, byte [0x1400611b6]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x70]
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x80]
mov r15, qword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
Function at 0x14000ad00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp qword [rcx + 0x38], 0
mov rbx, rcx
je 0x14000ad5d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ad84
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000ad5d
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
xor edi, edi
mov qword [rbx + 0x38], rdi
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400325f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor edi, edi
test eax, eax
je 0x14000adf0
mov rcx, qword [rbx + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
test rcx, rcx
je 0x14000ae1c
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test eax, eax
je 0x14000adf0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000adb2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000ae12
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], rdi
mov eax, 1
jmp 0x14000ad5f
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
Function at 0x14000b730
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov qword [0x14006c0e8], r15
xorps xmm0, xmm0
movdqu xmmword [0x14006c0f8], xmm0
movdqa xmm0, xmmword [0x140048950]
movdqu xmmword [0x14006c0f8], xmm0
mov word [0x14006c0e8], r15w
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140044e40]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbp, [r15 - 1]
test eax, eax
js 0x14000b7cc
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000b7e1
mov r8, rbp
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000b7b5
lea rcx, [0x14006c0e8]
call fcn.140008a30
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000b7e1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], r15
mov rdi, qword [0x14006c0f8]
test rdi, rdi
je 0x14000b934
lea rcx, [0x14006c0e8]
call fcn.14000c830
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14000b934
cmp cx, 0x2f
je 0x14000b934
mov rsi, qword [0x14006c100]
cmp rdi, rsi
jae 0x14000b84a
lea rax, [rdi + 1]
mov qword [0x14006c0f8], rax
lea rax, [0x14006c0e8]
cmp rsi, 8
cmovae rax, qword [0x14006c0e8]
mov dword [rax + rdi*2], 0x5c
jmp 0x14000b934
movabs rbx, 0x7ffffffffffffffe
mov rax, rbx
sub rax, rdi
cmp rax, 1
jb 0x14000b961
lea r14, [rdi + 1]
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x14000b893
mov rdx, rsi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rsi, rax
ja 0x14000b893
lea rax, [rdx + rsi]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
mov rdx, rbx
add rdx, 1
cmovb rdx, rbp
lea rcx, [0x14006c0e8]
call fcn.140008b60
mov rbp, rax
mov qword [0x14006c0f8], r14
mov qword [0x14006c100], rbx
add rdi, rdi
mov r8, rdi
mov rcx, rax
cmp rsi, 8
jb 0x14000b91a
mov rbx, qword [0x14006c0e8]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + rbp], 0x5c
lea rdx, [rsi*2 + 2]
cmp rdx, 0x1000
jb 0x14000b909
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14000b913
mov rbx, rcx
mov rcx, rbx
call fcn.1400324d4
jmp 0x14000b92d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [0x14006c0e8]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + rbp], 0x5c
mov qword [0x14006c0e8], rbp
lea rax, [0x14006c0e8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400325f0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call fcn.140004550
int3
Function at 0x14000b970
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov qword [0x14006c090], r15
xorps xmm0, xmm0
movdqu xmmword [0x14006c0a0], xmm0
movdqa xmm0, xmmword [0x140048950]
movdqu xmmword [0x14006c0a0], xmm0
mov word [0x14006c090], r15w
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140044e50]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbp, [r15 - 1]
test eax, eax
js 0x14000ba0c
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14000ba21
mov r8, rbp
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000b9f5
lea rcx, [0x14006c090]
call fcn.140008a30
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000ba21
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], r15
mov rdi, qword [0x14006c0a0]
test rdi, rdi
je 0x14000bb74
lea rcx, [0x14006c090]
call fcn.14000c830
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14000bb74
cmp cx, 0x2f
je 0x14000bb74
mov rsi, qword [0x14006c0a8]
cmp rdi, rsi
jae 0x14000ba8a
lea rax, [rdi + 1]
mov qword [0x14006c0a0], rax
lea rax, [0x14006c090]
cmp rsi, 8
cmovae rax, qword [0x14006c090]
mov dword [rax + rdi*2], 0x5c
jmp 0x14000bb74
movabs rbx, 0x7ffffffffffffffe
mov rax, rbx
sub rax, rdi
cmp rax, 1
jb 0x14000bba1
lea r14, [rdi + 1]
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x14000bad3
mov rdx, rsi
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp rsi, rax
ja 0x14000bad3
lea rax, [rdx + rsi]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
mov rdx, rbx
add rdx, 1
cmovb rdx, rbp
lea rcx, [0x14006c090]
call fcn.140008b60
mov rbp, rax
mov qword [0x14006c0a0], r14
mov qword [0x14006c0a8], rbx
add rdi, rdi
mov r8, rdi
mov rcx, rax
cmp rsi, 8
jb 0x14000bb5a
mov rbx, qword [0x14006c090]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + rbp], 0x5c
lea rdx, [rsi*2 + 2]
cmp rdx, 0x1000
jb 0x14000bb49
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14000bb53
mov rbx, rcx
mov rcx, rbx
call fcn.1400324d4
jmp 0x14000bb6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, [0x14006c090]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + rbp], 0x5c
mov qword [0x14006c090], rbp
lea rax, [0x14006c090]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400325f0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call fcn.140004550
int3
Function at 0x140015bc0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140015c79
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140015c45
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140015c5d
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140015c5d
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [case.0x140025138.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x140015c5d
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x14006b5f8], 0
jne 0x140015cc4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015cb4
lea rdx, [0x1400396a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b5f0], rax
mov byte [0x14006b5f8], 1
jmp 0x140015ccb
mov rax, qword [0x14006b5f0]
mov byte [0x14006b5f8], 1
jmp 0x140015ccb
mov rax, qword [0x14006b5f0]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x140015c4e
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x140025138.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
invalid