joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800016b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov dword [r11 + 0x20], r9d
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov rdi, r8
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1800016f6
xor eax, eax
jmp 0x180001760
mov rbx, qword [rsp + 0x68]
lea r9, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov rdx, rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x18000172d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800016f2
mov rax, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x180001725
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18000176c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rcx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18000179f
mov eax, 0xfffffffd
jmp 0x1800017b3
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x180001940
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rsi, r9
mov qword [r11 - 0x28], rax
mov rdi, r8
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180001985
xor eax, eax
jmp 0x1800019ea
mov rbx, qword [rsp + 0x70]
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov rdx, rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x1800019bc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180001981
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x1800019b4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1800019fc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 8]
mov edi, r9d
mov qword [r11 + 8], rbx
mov rsi, r8
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180001a41
lea eax, [rbx - 3]
jmp 0x180001a8a
mov eax, dword [rsp + 0x68]
mov r9d, edi
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x180001a72
mov ebx, 0xfffffffd
jmp 0x180001a7d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180001b14
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and dword [rbp + 0x30], 0
lea rax, [rbp - 0x10]
and dword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
and qword [rbp - 8], 0
mov r14, rcx
mov qword [r11 - 0x38], rax
xor r8d, r8d
lea rax, [rbp + 0x30]
xor ecx, ecx
mov qword [r11 - 0x40], rax
mov rsi, rdx
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x180001c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180001c5c
mov edx, dword [rbp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180001c5c
mov edx, dword [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180001c45
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x180001c45
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 8]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001c45
mov rcx, qword [rbp - 8]
lea rdx, [0x180001008]
mov esi, 1
mov r8d, esi
call fcn.180001a9c
test eax, eax
je 0x180001c45
mov rcx, qword [rbp - 8]
lea rdx, [0x180001020]
mov r8d, esi
call fcn.180001a9c
test eax, eax
je 0x180001c45
and qword [rsp + 0x30], 0
mov r9, rdi
and qword [rsp + 0x28], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov edx, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x180001c5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x180001c6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x180001f70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r11, rcx
sub rdx, rcx
mov r8d, 0x10
mov eax, dword [rdx + rcx]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x180001f86
lea ebx, [r8 + 0xa]
xor edi, edi
mov r8, rdi
mov rdx, rdi
shr rdx, 2
and r8d, 3
mov r9, rdi
sub r9, rdx
and r9d, 3
lea r10, [rdx + rdi]
and r10d, 3
mov eax, dword [r11 + r10*4 + 0x10]
add dword [r11 + r8*4], eax
lea rax, [rdx + rdx]
mov ecx, dword [r11 + r9*4 + 0x30]
mov rdx, rdi
xor ecx, dword [r11 + r8*4]
sub rdx, rax
and edx, 3
rol ecx, 0x10
mov dword [r11 + r9*4 + 0x30], ecx
inc rdi
add dword [r11 + rdx*4 + 0x20], ecx
mov eax, dword [r11 + rdx*4 + 0x20]
xor eax, dword [r11 + r10*4 + 0x10]
rol eax, 0xc
mov dword [r11 + r10*4 + 0x10], eax
add dword [r11 + r8*4], eax
mov eax, dword [r11 + r8*4]
xor eax, dword [r11 + r9*4 + 0x30]
rol eax, 8
mov dword [r11 + r9*4 + 0x30], eax
add dword [r11 + rdx*4 + 0x20], eax
mov eax, dword [r11 + rdx*4 + 0x20]
xor eax, dword [r11 + r10*4 + 0x10]
rol eax, 7
mov dword [r11 + r10*4 + 0x10], eax
cmp rdi, 8
jb 0x180001f9b
sub rbx, 1
jne 0x180001f99
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180002094
Capabilities:
Contain obfuscated stackstrings
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
movups xmm0, xmmword [rdx]
mov rbx, rcx
lea rcx, [rbp - 0x79]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rbp - 0x39]
mov dword [rbp - 0x39], 0x61707865
movups xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x35], 0x3320646e
movups xmm0, xmmword [r8]
mov dword [rbp - 0x31], 0x79622d32
mov dword [rbp - 0x2d], 0x6b206574
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp - 0x19], xmm1
call fcn.180001f70
xor edx, edx
lea rax, [rbp - 0x79]
mov r8, rbx
sub r8, rax
mov eax, dword [rbp + rdx*4 - 0x79]
lea rcx, [r8 + rdx*4]
mov dword [rbx + rdx*4], eax
mov eax, dword [rbp + rdx*4 - 0x49]
inc rdx
mov dword [rbp + rcx - 0x69], eax
cmp rdx, 4
jb 0x1800020f5
xor eax, eax
mov byte [rbp + rax - 0x39], 0
inc rax
cmp rax, 0x88
jb 0x180002113
xor eax, eax
mov byte [rbp + rax - 0x79], 0
inc rax
cmp rax, 0x40
jb 0x180002125
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rbp
ret

Function at 0x1800021ec
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r8
lea rcx, [rsp + 0x20]
call fcn.180002094
movups xmm0, xmmword [rsp + 0x20]
mov dword [rbx], 0x61707865
xor ecx, ecx
movups xmm1, xmmword [rsp + 0x30]
mov dword [rbx + 4], 0x3320646e
mov dword [rbx + 8], 0x79622d32
mov dword [rbx + 0xc], 0x6b206574
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm1
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x80], 0x40
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x38], eax
mov eax, dword [rdi + 0x14]
mov dword [rbx + 0x3c], eax
mov eax, ecx
mov byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0x20
jb 0x180002252
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18000226c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x80]
mov rbx, r9
not rax
mov r15, r9
inc rax
mov rdi, r8
and eax, 0x3f
mov r14, rdx
cmp rax, r9
mov rbp, rcx
cmovbe rbx, rax
mov r9, rbx
call fcn.180002144
test rdi, rdi
lea rsi, [rbx + rdi]
cmove rsi, rdi
sub r15, rbx
mov rdi, r15
add r14, rbx
shr rdi, 6
test rdi, rdi
je 0x180002324
mov rcx, rbp
call fcn.180002048
lea rcx, [rbp + 0x40]
mov edx, 0x10
test rsi, rsi
je 0x180002300
mov eax, dword [rcx]
lea rcx, [rcx + 4]
xor eax, dword [rsi]
add rsi, 4
mov dword [r14], eax
add r14, 4
sub rdx, 1
jne 0x1800022e5
jmp 0x180002313
mov eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [r14], eax
add r14, 4
sub rdx, 1
jne 0x180002300
mov qword [rbp + 0x80], 0x40
sub rdi, 1
jne 0x1800022cf
and r15d, 0x3f
mov r8, rsi
mov r9d, r15d
mov rdx, r14
mov rcx, rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
jmp fcn.180002144
Function at 0x1800027b8
Capabilities:
Encode data using xor
Hash data using sha512

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov r8, rcx
movsxd r9, edx
lea rax, [rbp - 0x80]
mov rbx, rcx
sub r8, rax
xor ecx, ecx
lea rdx, [rbp - 0x80]
add rdx, rcx
mov rax, qword [r8 + rdx]
mov qword [rdx], rax
lea rax, [0x180001140]
mov rax, qword [rcx + rax]
mov qword [rbp + rcx - 0x40], rax
add rcx, 8
cmp rcx, 0x40
jb 0x1800027e8
xor ecx, ecx
mov rax, qword [rbx + rcx*8 + 0x40]
xor qword [rbp + rcx*8 - 0x20], rax
inc rcx
cmp rcx, 2
jl 0x180002812
xor qword [rbp - 0x10], r9
lea rdi, [0x180001181]
mov esi, 0xc
xor r14d, r14d
movzx eax, byte [rdi - 1]
mov r10, r14
and r10d, 3
mov rdx, r14
shr rdx, 2
mov r9, r14
sub r9, rdx
mov r8, r14
mov rcx, qword [rbx + rax*8 + 0x50]
and r9d, 3
lea r11, [rdx + r14]
inc r14
and r11d, 3
lea rax, [rdx + rdx]
sub r8, rax
movzx eax, byte [rdi]
and r8d, 3
add rdi, 2
add rcx, qword [rbp + r11*8 - 0x60]
add qword [rbp + r10*8 - 0x80], rcx
mov rcx, qword [rbp + r10*8 - 0x80]
xor rcx, qword [rbp + r9*8 - 0x20]
ror rcx, 0x20
mov qword [rbp + r9*8 - 0x20], rcx
add qword [rbp + r8*8 - 0x40], rcx
mov rcx, qword [rbx + rax*8 + 0x50]
mov rdx, qword [rbp + r8*8 - 0x40]
xor rdx, qword [rbp + r11*8 - 0x60]
ror rdx, 0x18
mov qword [rbp + r11*8 - 0x60], rdx
add rcx, rdx
add qword [rbp + r10*8 - 0x80], rcx
mov rax, qword [rbp + r10*8 - 0x80]
xor rax, qword [rbp + r9*8 - 0x20]
ror rax, 0x10
mov qword [rbp + r9*8 - 0x20], rax
add qword [rbp + r8*8 - 0x40], rax
mov rax, qword [rbp + r8*8 - 0x40]
xor rax, qword [rbp + r11*8 - 0x60]
rol rax, 1
mov qword [rbp + r11*8 - 0x60], rax
cmp r14, 8
jb 0x180002838
sub rsi, 1
jne 0x180002835
lea rax, [rbp - 0x80]
sub rax, rbx
lea ecx, [rsi + 4]
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [rax + rbx + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
lea rbx, [rbx + 0x10]
sub rcx, 1
jne 0x180002903
xor eax, eax
mov byte [rbp + rax - 0x80], 0
inc rax
cmp rax, 0x80
jb 0x18000292a
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x180002c20
Capabilities:
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x100
mov rbx, rcx
lea rdx, [0x180001140]
lea rcx, [rsp + 0x20]
mov r8d, 0x40
call fcn.1800076a8
mov r8, qword [rsp + 0x138]
lea rcx, [rsp + 0x20]
mov rdx, qword [rsp + 0x130]
xor eax, eax
xor qword [rsp + 0x20], 0x1010040
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 0x40
call fcn.180002a54
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180002b38
add rsp, 0x100
pop rbx
ret
Function at 0x180003aac
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, r8d
mov r11, rdx
mov rbx, rcx
call fcn.180002cb4
lea rdx, [r11 + 0x28]
mov r8d, edi
lea rcx, [rbx + 0x28]
call fcn.180002cb4
lea rdx, [r11 + 0x50]
mov r8d, edi
lea rcx, [rbx + 0x50]
call fcn.180002cb4
lea rdx, [r11 + 0x78]
mov r8d, edi
lea rcx, [rbx + 0x78]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180002cb4

Function at 0x180003f88
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
sub rsp, 0x110
mov rbx, rcx
mov qword [rsp + 0x28], 0x20
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
call fcn.180002c20
mov al, byte [rsp + 0x4f]
lea rdx, [rsp + 0x30]
and byte [rsp + 0x30], 0xf8
lea rcx, [rsp + 0x70]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
call fcn.180003eec
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1800037c4
xor eax, eax
mov byte [rsp + rax + 0x30], 0
inc rax
cmp rax, 0x40
jb 0x180003fdb
xor eax, eax
mov byte [rsp + rax + 0x70], 0
inc rax
cmp rax, 0xa0
jb 0x180003feb
add rsp, 0x110
pop rbx
ret
Function at 0x180004290
Capabilities:
Hash data using sha512

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x380
mov rdi, rdx
mov r14, r8
mov rdx, rcx
mov rbx, rcx
mov r15d, 0x40
lea rcx, [rbp + 0x40]
mov r8d, r15d
mov rsi, r9
call fcn.1800076a8
movups xmm0, xmmword [rdi]
mov r8d, r15d
lea rdx, [0x180001140]
movups xmm1, xmmword [rdi + 0x10]
lea rcx, [rsp + 0x60]
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm1
call fcn.1800076a8
xor qword [rsp + 0x60], 0x1010040
lea rcx, [rsp + 0x60]
and qword [rbp - 0x60], 0
mov rdx, rbx
and qword [rbp - 0x58], 0
and qword [rbp + 0x30], 0
mov qword [rbp + 0x38], r15
mov r15d, 0x20
mov r8d, r15d
call fcn.180002a54
mov r8d, r15d
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.180002a54
mov r8, rsi
lea rcx, [rsp + 0x60]
mov rdx, r14
call fcn.180002a54
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.180003894
test eax, eax
jne 0x180004385
xor ecx, ecx
lea rax, [0x1800010df]
mov al, byte [rcx + rax]
cmp byte [rbp + rcx + 0x7f], al
ja 0x180004385
jb 0x1800043a5
dec rcx
lea rax, [rcx + 0x1f]
test rax, rax
jns 0x180004367
or eax, 0xffffffff
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180002b38
lea rcx, [rsp + 0x20]
call fcn.180003750
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x140]
call fcn.180003d5c
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xa0]
call fcn.180003eec
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x1e0]
call fcn.180003b00
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x20]
call fcn.1800037c4
mov rdx, qword [rsp + 0x38]
xor rdx, qword [rbp + 0x58]
mov rax, qword [rsp + 0x30]
xor rax, qword [rbp + 0x50]
or rdx, rax
mov rax, qword [rbp + 0x40]
xor rax, qword [rsp + 0x20]
or rdx, rax
mov rax, qword [rbp + 0x48]
xor rax, qword [rsp + 0x28]
or rdx, rax
mov rcx, rdx
mov eax, edx
shr rcx, 0x20
or rax, rcx
dec rax
shr rax, 0x20
and eax, 1
dec eax
jmp 0x180004388
Function at 0x180004aa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
call fcn.180001e78
mov rbx, rax
test rax, rax
je 0x180004b2f
mov rcx, qword [rax]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov esi, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, esi
test esi, esi
jne 0x180004b04
xor eax, eax
jmp 0x180004b0c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
mov rdi, qword [rbx]
test rax, rax
jne 0x180004b41
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rdi, 0xffffffffffffffff
je 0x180004b2f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdi, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rdi, 0xffffffffffffffff
je 0x180004b76
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x180004b31

Function at 0x180004b7c
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
mov qword [rdx + 0x10], rcx
cmp word [rcx], ax
jne 0x180004bc8
mov eax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rdx + 8], rax
cmp dword [rax], 0x4550
jne 0x180004bc8
mov ecx, 0x10b
cmp word [rax + 0x18], cx
jne 0x180004bab
xor ecx, ecx
jmp 0x180004bbb
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x180004bc8
mov ecx, 1
add rax, 0x18
mov dword [rdx], ecx
mov qword [rdx + 0x18], rax
xor eax, eax
ret
mov eax, 0xfffffffe
ret

Function at 0x1800060c4
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov dil, r8b
mov esi, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000610f
or r8d, 0xffffffff
movzx edx, si
mov rcx, rbx
call fcn.180004e7c
test eax, eax
jne 0x18000610f
test dil, dil
je 0x180006106
mov rcx, rbx
call fcn.18000601c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180006120
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
mov rbx, rdx
mov rdi, rcx
mov esi, 0x68
lea rcx, [rsp + 0x70]
mov r8d, esi
xor edx, edx
call fcn.1800076f4
xor eax, eax
mov dword [rsp + 0x70], esi
xor esi, esi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov word [rsp + 0xb0], si
mov qword [rsp + 0x48], rax
mov rdx, rbx
lea rax, [rsp + 0x70]
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1800061c1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1800061d8
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rbx
sub rsp, 0x550
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000624b
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [rsp + 0x130]
lea rdx, [0x180001460]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9, rbx
lea r8, [rsp + 0x20]
lea rdx, [0x180001470]
lea rcx, [rsp + 0x240]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x20]
call fcn.180006120
add rsp, 0x550
pop rbx
ret
Function at 0x180006254
Capabilities:
Copy file
Delete file
Delete service
Get common file path
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rcx, qword [0x1800080b8]
lea rdx, [rbp + 0x350]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rbp + 0x350]
call fcn.180001db4
mov r10, rax
add r10, 1
je 0x18000646e
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp byte [r10 + rax], 0
jne 0x1800062ad
cmp rax, 9
jb 0x18000646e
inc rcx
cmp byte [r10 + rcx], 0
jne 0x1800062c1
lea rdx, [rbp + 0x30]
sub rcx, 7
je 0x180006303
lea rax, [rbp + 0x30]
mov r8d, 0x100
sub r10, rax
test rcx, rcx
je 0x1800062ff
mov al, byte [r10 + rdx]
dec rcx
mov byte [rdx], al
dec r8
inc rdx
test al, al
je 0x180006303
test r8, r8
jne 0x1800062e2
mov byte [rdx - 1], 0
mov r8d, 0xf003f
lea rdx, [0x180001478]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x18000646e
mov r8d, 0x10010
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x180006465
mov edx, 0x104
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x240]
lea rdx, [0x180001488]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x240]
lea rdx, [0x180001498]
lea rcx, [rbp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rbp + 0x350]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800063f4
jmp 0x1800063b6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1800063ab
lea rcx, [rsp + 0x20]
call fcn.180001c80
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x18000645c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1800063e9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
lea r8, [rbp + 0x240]
lea rdx, [0x1800014a8]
lea rcx, [rbp + 0x460]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rbp + 0x350]
lea r8, [rbp + 0x460]
lea rdx, [0x1800014b8]
lea rcx, [rbp + 0x570]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rbp + 0x570]
lea rcx, [rbp + 0x460]
call fcn.180006120
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret