joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800499d0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x18004962f
mov r8d, r9d
or r8d, 0x2001f
call fcn.180048b10
mov rbx, rax
jmp 0x180049632
mov rbx, rcx
test rbx, rbx
je 0x1800496c9
mov rcx, rbx
test rbp, rbp
je 0x180049664
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1800496bc
cmp rbx, rdi
je 0x18004965d
mov rcx, rbx
call fcn.180048b90
mov eax, 1
jmp 0x1800496cb
mov edx, esi
call fcn.180049460
test eax, eax
je 0x1800496bc
cmp rbx, rdi
je 0x18004967c
mov rcx, rbx
call fcn.180048b90
mov rax, qword [0x1801526c0]
test rax, rax
je 0x1800496a5
test esi, esi
je 0x1800496a5
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x1800496cb
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x1800496cb
cmp rbx, rdi
je 0x1800496c9
mov rcx, rbx
call fcn.180048b90
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x1800495f0

Function at 0x1800499e0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.1800499d0

Function at 0x180049a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x180049aa3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.180048b10
mov rsi, rax
jmp 0x180049aa6
mov rsi, qword [rcx]
test rsi, rsi
je 0x180049b42
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180049b1f
test edi, edi
je 0x180049b1a
dec edi
je 0x180049b02
sub edi, 2
je 0x180049af8
dec edi
jne 0x180049b1f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x180049b1f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x180049b1f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x180049b1a
cmp eax, 2
je 0x180049b1a
cmp eax, 6
je 0x180049b1a
cmp eax, 7
jne 0x180049b1f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x180049b2d
mov rcx, rsi
call fcn.180048b90
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x180049a70
Function at 0x180049c10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rsp + 0x90]
mov r14, r8
mov rbx, rdx
mov r13, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
mov edi, r9d
call fcn.180043d20
test rbx, rbx
je 0x180049c60
or edi, 0x20019
mov rdx, rbx
mov rcx, r13
mov r8d, edi
call fcn.180048b10
mov rsi, rax
jmp 0x180049c63
mov rsi, r13
mov qword [rsp + 0x70], r12
test rsi, rsi
je 0x180049d67
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180049d5a
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x180049cbc
cmp eax, 2
je 0x180049cbc
cmp eax, 6
je 0x180049cbc
cmp eax, 7
jne 0x180049d5a
mov ecx, dword [rsp + 0x78]
add ecx, 2
call fcn.18006f3c0
mov r8d, dword [rsp + 0x78]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.18006f140
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180049d52
mov rbx, r12
cmp byte [r12], al
je 0x180049d36
nop dword [rax]
mov edx, dword [rbp + 8]
mov r8, rbx
mov rcx, rbp
call fcn.180043f20
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
mov eax, ecx
add rbx, rax
cmp byte [rbx], 0
jne 0x180049d10
cmp rsi, r13
je 0x180049d43
mov rcx, rsi
call fcn.180048b90
mov rcx, r12
call fcn.18006f310
mov eax, 1
jmp 0x180049d69
mov rcx, r12
call fcn.18006f310
cmp rsi, r13
je 0x180049d67
mov rcx, rsi
call fcn.180048b90
xor eax, eax
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004a230
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push r14
sub rsp, 0x58
mov r14, rcx
test rdx, rdx
je 0x18004a258
or r9d, 0x20006
mov r8d, r9d
call fcn.180048b40
mov rbx, rax
jmp 0x18004a25b
mov rbx, rcx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r15
test rbx, rbx
je 0x18004a3b4
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
mov r15d, 1
mov edi, r12d
cmp dword [rsi + 8], r12d
jle 0x18004a2cc
nop word [rax + rax]
lea rdx, [rsp + 0x78]
mov r8d, edi
mov rcx, rsi
call fcn.180049b80
mov rcx, qword [rax]
mov eax, dword [rcx - 8]
lea rcx, [rsp + 0x78]
lea r15d, [r15 + rax + 1]
call fcn.18003ecb0
inc edi
cmp edi, dword [rsi + 8]
jl 0x18004a2a0
mov ecx, r15d
mov edi, r15d
call fcn.18006f3c0
mov rbp, rax
test rax, rax
je 0x18004a3b4
mov r8d, edi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x38], r13
call fcn.18006f140
mov r13, rbp
cmp dword [rsi + 8], r12d
jle 0x18004a356
nop
lea rdx, [rsp + 0x78]
mov r8d, r12d
mov rcx, rsi
call fcn.180049b80
mov rdx, r13
mov rcx, qword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x18004a320
lea rcx, [rsp + 0x78]
call fcn.18003ecb0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
inc r12d
repne scasb al, byte [rdi]
not rcx
mov eax, ecx
add r13, rax
cmp r12d, dword [rsi + 8]
jl 0x18004a300
mov rdx, qword [rsp + 0x80]
mov r9d, 7
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r13, qword [rsp + 0x38]
test eax, eax
jne 0x18004a39f
cmp rbx, r14
je 0x18004a390
mov rcx, rbx
call fcn.180048b90
mov rcx, rbp
call fcn.18006f310
mov eax, 1
jmp 0x18004a3b6
mov rcx, rbp
call fcn.18006f310
cmp rbx, r14
je 0x18004a3b4
mov rcx, rbx
call fcn.180048b90
xor eax, eax
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x70]
add rsp, 0x58
pop r14
pop rbx
ret
Function at 0x18004a7b0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x18004a7d5
or r8d, 0x20019
call fcn.180048b10
mov rdi, rax
jmp 0x18004a7d8
mov rdi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbp
call fcn.180043d20
test rdi, rdi
je 0x18004a911
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x18004a904
cmp dword [rsp + 0x60], ebx
jbe 0x18004a904
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
call fcn.18006f3c0
mov rbp, rax
test rax, rax
je 0x18004a904
cmp dword [rsp + 0x60], ebx
jbe 0x18004a8e8
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.18006f140
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x18004a8e0
mov edx, dword [rsi + 8]
mov r8, rbp
mov rcx, rsi
call fcn.180043f20
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x18004a8a0
mov rcx, rbp
call fcn.18006f310
cmp rdi, r12
je 0x18004a8fd
mov rcx, rdi
call fcn.180048b90
mov eax, 1
jmp 0x18004a913
cmp rdi, r12
je 0x18004a911
mov rcx, rdi
call fcn.180048b90
xor eax, eax
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x18004a7b0
mov r8, rdx
xor edx, edx
jmp 0x18004b120
Function at 0x18004a930
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x18004a955
or r8d, 0x20019
call fcn.180048b10
mov rdi, rax
jmp 0x18004a958
mov rdi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], r13
call fcn.180043d20
test rdi, rdi
je 0x18004aac7
xor r13d, r13d
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x98], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x18004aaba
cmp dword [rsp + 0x60], r13d
jbe 0x18004aaba
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
add eax, eax
cmp eax, ecx
cmova ecx, eax
mov dword [rsp + 0x98], ecx
inc ecx
call fcn.18006f3c0
mov rbp, rax
test rax, rax
je 0x18004aaba
mov qword [rsp + 0x90], rbx
mov ebx, r13d
cmp dword [rsp + 0x60], ebx
jbe 0x18004aa96
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.18006f140
mov r11d, dword [rsp + 0x98]
mov qword [rsp + 0x38], r13
inc r11d
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x64]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x64], r11d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x18004aa8e
mov edx, dword [rsi + 8]
mov r8, rbp
mov rcx, rsi
call fcn.180043f20
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x18004aa30
mov rcx, rbp
call fcn.18006f310
mov rbx, qword [rsp + 0x90]
cmp rdi, r12
je 0x18004aab3
mov rcx, rdi
call fcn.180048b90
mov eax, 1
jmp 0x18004aac9
cmp rdi, r12
je 0x18004aac7
mov rcx, rdi
call fcn.180048b90
xor eax, eax
mov r13, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x18004a930
mov r8, rdx
xor edx, edx
jmp 0x18004b140
Function at 0x18004b130
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x18004a7d5
or r8d, 0x20019
call fcn.180048b10
mov rdi, rax
jmp 0x18004a7d8
mov rdi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbp
call fcn.180043d20
test rdi, rdi
je 0x18004a911
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x18004a904
cmp dword [rsp + 0x60], ebx
jbe 0x18004a904
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
call fcn.18006f3c0
mov rbp, rax
test rax, rax
je 0x18004a904
cmp dword [rsp + 0x60], ebx
jbe 0x18004a8e8
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.18006f140
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x18004a8e0
mov edx, dword [rsi + 8]
mov r8, rbp
mov rcx, rsi
call fcn.180043f20
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x18004a8a0
mov rcx, rbp
call fcn.18006f310
cmp rdi, r12
je 0x18004a8fd
mov rcx, rdi
call fcn.180048b90
mov eax, 1
jmp 0x18004a913
cmp rdi, r12
je 0x18004a911
mov rcx, rdi
call fcn.180048b90
xor eax, eax
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x18004a7b0
mov r8, rdx
xor edx, edx
jmp 0x18004b120
Function at 0x18004b150
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x18004a955
or r8d, 0x20019
call fcn.180048b10
mov rdi, rax
jmp 0x18004a958
mov rdi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], r13
call fcn.180043d20
test rdi, rdi
je 0x18004aac7
xor r13d, r13d
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x98], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x18004aaba
cmp dword [rsp + 0x60], r13d
jbe 0x18004aaba
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
add eax, eax
cmp eax, ecx
cmova ecx, eax
mov dword [rsp + 0x98], ecx
inc ecx
call fcn.18006f3c0
mov rbp, rax
test rax, rax
je 0x18004aaba
mov qword [rsp + 0x90], rbx
mov ebx, r13d
cmp dword [rsp + 0x60], ebx
jbe 0x18004aa96
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.18006f140
mov r11d, dword [rsp + 0x98]
mov qword [rsp + 0x38], r13
inc r11d
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x64]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x64], r11d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x18004aa8e
mov edx, dword [rsi + 8]
mov r8, rbp
mov rcx, rsi
call fcn.180043f20
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x18004aa30
mov rcx, rbp
call fcn.18006f310
mov rbx, qword [rsp + 0x90]
cmp rdi, r12
je 0x18004aab3
mov rcx, rdi
call fcn.180048b90
mov eax, 1
jmp 0x18004aac9
cmp rdi, r12
je 0x18004aac7
mov rcx, rdi
call fcn.180048b90
xor eax, eax
mov r13, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x18004a930
mov r8, rdx
xor edx, edx
jmp 0x18004b140
Function at 0x18004b160
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x180049aa3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.180048b10
mov rsi, rax
jmp 0x180049aa6
mov rsi, qword [rcx]
test rsi, rsi
je 0x180049b42
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180049b1f
test edi, edi
je 0x180049b1a
dec edi
je 0x180049b02
sub edi, 2
je 0x180049af8
dec edi
jne 0x180049b1f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x180049b1f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x180049b1f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x180049b1a
cmp eax, 2
je 0x180049b1a
cmp eax, 6
je 0x180049b1a
cmp eax, 7
jne 0x180049b1f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x180049b2d
mov rcx, rsi
call fcn.180048b90
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x180049a70

Function at 0x18004b330
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x18004b348
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x28]
mov r9d, dword [rbx + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18004b39a
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rbx + 0x18], 0
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18004b5e0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x18004b690
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, dword [rcx + 0x38]
mov esi, 4
test edi, edi
je 0x18004b62e
call fcn.18009ff80
test eax, eax
je 0x18004b62e
mov rcx, rbx
call fcn.18004b560
lea ecx, [rdi - 0x2000]
cmp eax, ecx
jbe 0x18004b627
add edi, eax
mov esi, 0x10004
jmp 0x18004b630
xor edi, edi
lea rax, [rbx + 8]
lea r8, [0x18004b4c0]
mov edx, edi
mov qword [rsp + 0x28], rax
mov r9, rbx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18004b690
mov edx, dword [rbx + 0x3c]
mov dword [rbx + 0x18], 1
test edx, edx
je 0x18004b67b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x18004ea60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x18004ea79
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x1800f6a50]
cmp r11d, 8
jb 0x18004eb71
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x18004eaa0
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18004eb9f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x18004eb80
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret
Function at 0x180052bf0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
call fcn.180051ab0
mov r11, qword [0x180152cf0]
mov rdx, rbx
mov rcx, rdi
test r11, r11
je 0x180052c3a
mov eax, dword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov dword [rsp + 0x20], eax
call r11
jmp 0x180052c40
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180052e20
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x180152f84]
test ecx, ecx
jne 0x180052f3f
mov eax, dword [0x180152f80]
cmp eax, 3
ja 0x180052f3f
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x180152f80], eax
call fcn.18009fed0
test eax, eax
je 0x180052e66
lea rcx, str.Userenv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x180052e73
lea rcx, [0x1800f85a8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x180052e85
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.CreateEnvironmentBlock
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DestroyEnvironmentBlock
mov rcx, rbx
mov qword [0x180152f48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserA
mov rcx, rbx
mov qword [0x180152f50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserW
mov rcx, rbx
mov qword [0x180152f58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileA
mov rcx, rbx
mov qword [0x180152f60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileW
mov rcx, rbx
mov qword [0x180152f68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnloadUserProfile
mov rcx, rbx
mov qword [0x180152f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov dword [0x180152f84], 1
mov qword [0x180152f78], rax
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180054f90
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x2f0
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, qword [rsp + 0x350]
mov rbp, rcx
mov r12, r8
mov r13, rdx
xor r14d, r14d
lea rcx, [rsp + 0xe1]
mov ebx, r14d
mov r8d, 0x1f3
xor edx, edx
mov byte [rsp + 0xe0], bl
mov rsi, r9
call fcn.18006f140
test r12, r12
je 0x180055015
lea r8, [rsp + 0xe0]
mov r9d, 0x1f3
or edx, 0xffffffff
mov rcx, r12
mov dword [rsp + 0x20], r14d
call fcn.1800453e0
lea rbx, [rsp + 0xe0]
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], 0x68
lea r8d, [rdx + 0x60]
call fcn.18006f140
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov rdx, rbx
mov rcx, r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test eax, eax
je 0x1800550b6
test rsi, rsi
je 0x180055089
mov ecx, dword [rsp + 0x60]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x1800550a3
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800550bf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800550bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 8], eax
mov eax, ebx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.18006f110
add rsp, 0x2f0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret