joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067c72
Capabilities:
Get file attributes

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x160], rcx
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x10], 0xfffffffffffffffe
lea rax, [rbp + 0x88]
lea rdx, str.sFixupUtil::checkDirectoryExistence
mov rcx, rax
call fcn.1400528a8
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0xa8]
lea rdx, str.Checking_existence_of_directory
mov rcx, qword [rbp + 0x160]
mov qword [rbp + 0x70], rcx
mov rcx, rax
mov rax, qword [rbp + 0x70]
mov r8, rax
call fcn.140057784
jmp 0x140067d2a
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x88]
lea rdx, [rbp + 0xa8]
mov rcx, rax
call fcn.14005efc0
jmp 0x140067d28
lea rax, [rbp + 0xa8]
mov rcx, rax
call fcn.140052e6c
nop
lea rax, [rbp + 0x88]
mov rcx, rax
call fcn.140052e6c
jmp 0x140067d30
jmp 0x140067d07
mov qword [rbp + 0x28], rax
jmp 0x140067ce7
mov rax, qword [rbp + 0x160]
mov rcx, rax
call fcn.140053408
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov rdx, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rax
call rdx
mov dword [rbp], eax
mov eax, dword [rbp]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
test al, 0x10
je 0x140067e25
lea rax, [rbp + 0xc8]
lea rdx, str.sFixupUtil::checkDirectoryExistence
mov rcx, rax
call fcn.1400528a8
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0xe8]
mov rdx, qword [rbp + 0x160]
lea rcx, str._exists
mov qword [rbp + 0x78], rcx
mov rcx, rax
mov rax, qword [rbp + 0x78]
mov r8, rax
call fcn.14006b3c0
jmp 0x140067dee
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0xc8]
lea rdx, [rbp + 0xe8]
mov rcx, rax
call fcn.14005efc0
jmp 0x140067dec
lea rax, [rbp + 0xe8]
mov rcx, rax
call fcn.140052e6c
nop
lea rax, [rbp + 0xc8]
mov rcx, rax
call fcn.140052e6c
jmp 0x140067df4
jmp 0x140067dcb
mov qword [rbp + 0x50], rax
jmp 0x140067dab
mov eax, 1
mov dword [rbp + 8], eax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x148], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 8]
lea rsp, [rbp + 0x150]
pop rbp
ret
lea rax, [rbp + 0x108]
lea rdx, str.sFixupUtil::checkDirectoryExistence
mov rcx, rax
call fcn.1400528a8
mov qword [rbp + 0x48], rax
lea rax, [rbp + 0x128]
mov rdx, qword [rbp + 0x160]
lea rcx, str._does_not_exist
mov qword [rbp + 0x80], rcx
mov rcx, rax
mov rax, qword [rbp + 0x80]
mov r8, rax
call fcn.14006b3c0
jmp 0x140067eb2
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 0x108]
lea rdx, [rbp + 0x128]
mov rcx, rax
call fcn.14005efc0
jmp 0x140067eb0
lea rax, [rbp + 0x128]
mov rcx, rax
call fcn.140052e6c
nop
lea rax, [rbp + 0x108]
mov rcx, rax
call fcn.140052e6c
jmp 0x140067eb8
jmp 0x140067e8f
mov qword [rbp + 0x58], rax
jmp 0x140067e6f
mov eax, 0
mov dword [rbp + 0xc], eax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x148], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0xc]
lea rsp, [rbp + 0x150]
pop rbp
ret
Function at 0x14007c324
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x88], rdi
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x78], rbx
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], r9
mov qword [rbp + 0x1b0], rcx
mov qword [rbp + 0x1b8], rdx
mov qword [rbp + 0x1c0], r8
mov qword [rbp + 0x1c8], r9
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x1d0]
test rax, rax
je 0x14007c56b
mov rax, qword [rbp + 0x1c0]
mov rdx, qword [rbp + 0x1b8]
cmp rax, rdx
jae 0x14007c56b
mov eax, 0
cmp eax, 1
je 0x14007c56b
lea rax, [rbp + 0x90]
lea rdx, [0x1400c4860]
mov ecx, 0x100
mov rdi, rax
mov rsi, rdx
mov eax, ecx
shr rcx, 2
rep movsd dword [rdi], dword [rsi]
mov ecx, eax
and ecx, 3
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x90]
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
add rcx, qword [rbp + 0x1c8]
mov qword [rbp + 0x68], rcx
mov rcx, rax
mov rax, qword [rbp + 0x68]
mov r8, rax
call fcn.14006e9e4
mov byte [rbp], al
movzx eax, byte [rbp]
movzx eax, al
test eax, eax
jne 0x14007c4ac
mov rax, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1c0]
mov rbx, qword [rbp + 0x1c8]
mov rsi, qword [rbp + 0x1d0]
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x70], rcx
mov rcx, rax
mov rax, qword [rbp + 0x70]
mov r8, rax
mov r9, rbx
call fcn.14007c5b4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x190], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x50]
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
lea rsp, [rbp + 0x1a0]
pop rbp
ret
mov rax, qword [rbp + 0x1b8]
add rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x1c0]
add rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
cmp rax, rdx
jb 0x14007c4f1
jmp 0x14007c56b
mov eax, 1
add rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
jmp 0x14007c4d0
lea rax, [rbp + 0x90]
mov rdx, qword [rbp + 0x38]
movsx edx, byte [rdx]
mov rcx, rax
call fcn.14006ea44
mov byte [rbp + 1], al
movzx eax, byte [rbp + 1]
movzx eax, al
test eax, eax
je 0x14007c4e2
mov rax, qword [rbp + 0x1b0]
neg rax
add rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x190], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x58]
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
lea rsp, [rbp + 0x1a0]
pop rbp
ret
mov rax, 0xffffffffffffffff
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x190], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x60]
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
lea rsp, [rbp + 0x1a0]
pop rbp
ret
Function at 0x14007c698
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x88], rdi
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x78], rbx
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], r9
mov qword [rbp + 0x1b0], rcx
mov qword [rbp + 0x1b8], rdx
mov qword [rbp + 0x1c0], r8
mov qword [rbp + 0x1c8], r9
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x1c0]
mov rdx, qword [rbp + 0x1b8]
cmp rax, rdx
jae 0x14007c8cf
mov eax, 0
cmp eax, 1
je 0x14007c8cf
lea rax, [rbp + 0x90]
lea rdx, [0x1400c4960]
mov ecx, 0x100
mov rdi, rax
mov rsi, rdx
mov eax, ecx
shr rcx, 2
rep movsd dword [rdi], dword [rsi]
mov ecx, eax
and ecx, 3
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x90]
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
add rcx, qword [rbp + 0x1c8]
mov qword [rbp + 0x68], rcx
mov rcx, rax
mov rax, qword [rbp + 0x68]
mov r8, rax
call fcn.14006e9e4
mov byte [rbp], al
movzx eax, byte [rbp]
movzx eax, al
test eax, eax
jne 0x14007c810
mov rax, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1c0]
mov rbx, qword [rbp + 0x1c8]
mov rsi, qword [rbp + 0x1d0]
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x70], rcx
mov rcx, rax
mov rax, qword [rbp + 0x70]
mov r8, rax
mov r9, rbx
call fcn.14007c918
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x190], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x50]
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
lea rsp, [rbp + 0x1a0]
pop rbp
ret
mov rax, qword [rbp + 0x1b8]
add rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x1c0]
add rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
cmp rax, rdx
jb 0x14007c855
jmp 0x14007c8cf
mov eax, 1
add rax, qword [rbp + 0x38]
mov qword [rbp + 0x38], rax
jmp 0x14007c834
lea rax, [rbp + 0x90]
mov rdx, qword [rbp + 0x38]
movsx edx, byte [rdx]
mov rcx, rax
call fcn.14006ea44
mov byte [rbp + 1], al
movzx eax, byte [rbp + 1]
movzx eax, al
test eax, eax
jne 0x14007c846
mov rax, qword [rbp + 0x1b0]
neg rax
add rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x190], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x58]
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
lea rsp, [rbp + 0x1a0]
pop rbp
ret
mov rax, 0xffffffffffffffff
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x190], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x60]
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
lea rsp, [rbp + 0x1a0]
pop rbp
ret
Function at 0x1400aa5f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400aa668
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400aa668
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400aa668
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400aa65c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400aa67a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400aa64a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400aa66a

Function at 0x1400ab55c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ab5a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ab5a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ab5a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ab5a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ab5a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ab5a8
xor al, al
add rsp, 0x28
ret
Function at 0x100040318
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r13, rdx
mov rsi, rcx
mov r15d, 7
mov qword [rsp + 0x40], r15
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
lea r8d, [r15 + 0xe]
lea rdx, [0x100004968]
lea rcx, [rsp + 0x20]
call fcn.10002cf94
nop
lea r8, [rsp + 0x20]
lea edx, [r15 - 3]
lea rcx, [rsp + 0x50]
call fcn.1000a11f0
nop
cmp qword [rsp + 0x40], 8
jb 0x1000403ac
mov rcx, qword [rsp + 0x28]
cmp rcx, r14
je 0x1000403ac
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
mov bl, r14b
mov word [rsp + 0x80], r14w
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x82]
call sub.msvcrt.dll_memset
cmp qword [rsi + 0x20], 8
jb 0x1000403ed
lea rdi, [rsi + 8]
mov rcx, qword [rdi]
jmp 0x1000403f4
lea rdi, [rsi + 8]
mov rcx, rdi
mov r12d, 0x104
mov r8d, r12d
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
cmp eax, r12d
jbe 0x1000404d3
lea edx, [rax + 1]
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
cmp rax, r14
je 0x100040556
cmp qword [rsi + 0x20], 8
jb 0x10004043d
mov rdi, qword [rdi]
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, r14d
je 0x1000404c5
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea ebx, [rax + 1]
sub rcx, rbx
mov r8, rcx
mov rdx, r12
lea rcx, [rsp + 0x20]
call fcn.10002cf94
nop
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.10002cd2c
nop
cmp qword [rsp + 0x40], 8
jb 0x1000404b5
mov rcx, qword [rsp + 0x28]
cmp rcx, r14
je 0x1000404b5
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100040556
cmp eax, r14d
je 0x100040556
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
lea ebx, [rax + 1]
sub rcx, rbx
mov r8, rcx
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.10002cf94
nop
mov r9, rbp
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.10002cd2c
nop
cmp qword [rsp + 0x40], 8
jb 0x100040546
mov rcx, qword [rsp + 0x28]
cmp rcx, r14
je 0x100040546
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
lea rcx, [rsp + 0x50]
call fcn.1000a1360
mov al, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100048e38
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov r12, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x100147738]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1001475d4]
test eax, eax
je 0x100048e7f
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x100048e8c
call fcn.100049184
test eax, eax
je 0x100048ea8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x100048eb0
xor eax, eax
jmp 0x100048f0d
test rbx, rbx
jne 0x100048ed0
lea rcx, [0x100004f70]
call fcn.100048f3c
mov rbx, rax
test rax, rax
je 0x100048edb
mov qword [0x100147738], rax
mov rcx, r12
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x100048ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100048ef2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x100048f0b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x100048ff0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov r12, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x100147610]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1001475d4]
test eax, eax
je 0x100049037
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x100049044
call fcn.100049184
test eax, eax
je 0x100049060
lea rdx, [rsp + 0x48]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x100049068
xor eax, eax
jmp 0x1000490c5
test rbx, rbx
jne 0x100049088
lea rcx, [0x100004f58]
call fcn.100048f3c
mov rbx, rax
test rax, rax
je 0x100049093
mov qword [0x100147610], rax
mov rcx, r12
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1000490a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000490aa
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1000490c3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x10004b7d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x18], 0
and dword [rsp + 0x50], 0
mov rax, rdx
mov rdi, rcx
mov dword [rsp + 0x60], 4
test rcx, rcx
je 0x10004b8a9
test rax, rax
je 0x10004b8a9
lea rcx, [r11 - 0x18]
lea rdx, [0x100005000]
mov r9d, 0x20019
mov qword [r11 - 0x28], rcx
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10004b895
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x100005058]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x10004b86c
cmp dword [rsp + 0x68], 4
je 0x10004b873
cmp eax, 2
jne 0x10004b895
xor ebx, ebx
mov ecx, dword [rsp + 0x50]
mov edx, 0xff
mov eax, ecx
shr eax, 8
and ax, dx
and cx, dx
mov word [rdi + 0x116], cx
mov word [rdi + 0x114], ax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10004b8a5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10004b8ae
mov eax, 0xd
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x10004cdf8
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x18], 0
mov rbx, rdx
je 0x10004ce50
cmp qword [rcx + 0x20], 8
jb 0x10004ce15
mov r9, qword [rcx + 8]
jmp 0x10004ce19
lea r9, [rcx + 8]
lea r8, [0x100005220]
lea rdx, [0x100005240]
mov rcx, rbx
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
ja 0x10004ce50
mov r8, rbx
xor edx, edx
mov ecx, eax
call fcn.10004a060
add rsp, 0x30
pop rbx
ret

Function at 0x10004d380
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbx + 0x98], rax
test rax, rax
je 0x10004d3bc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov qword [rbx + 0xa0], rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetCapture]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov edx, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x10004dd58]
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x10004d425
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10004d427
xor eax, eax
mov dword [rbx + 0x90], eax
test eax, eax
jns 0x10004d481
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x10004d453
call qword [sym.imp.USER32.dll_SetCursor]
and qword [rbx + 0x98], 0
and qword [rbx + 0xa0], 0
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
xor r9d, r9d
mov edx, 0x471
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x10004d481
call fcn.1000a2290
add rsp, 0x30
pop rbx
ret
Function at 0x10006cb90
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], esi
mov qword [r11 - 0x58], 7
mov qword [r11 - 0x60], rsi
mov word [rsp + 0x68], si
lea r8d, [rsi + 0x20]
lea rdx, [0x1000087b0]
lea rcx, [r11 - 0x78]
call fcn.10002cf94
nop
lea r8, [rsp + 0x60]
lea edx, [rsi + 4]
lea rcx, [rsp + 0x90]
call fcn.1000a11f0
nop
cmp qword [rsp + 0x80], 8
jb 0x10006cc28
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x10006cc28
call sub.msvcrt.dll_free
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
cmp qword [rbx + 0x18], rsi
je 0x10006cd04
lea rcx, [rdi + 0x220]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
call fcn.10002cd2c
lea r11, [rsp + 0x58]
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x10000a4a0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp eax, esi
jne 0x10006cce2
mov rax, qword [rbx + 0x18]
cmp qword [rbx + 0x20], 8
jb 0x10006ccb4
mov rbx, qword [rbx + 8]
jmp 0x10006ccb8
add rbx, 8
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x10000a480]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10006ccf3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x90]
call fcn.1000a1360
mov eax, edi
jmp 0x10006cd16
lea rcx, [rsp + 0x90]
call fcn.1000a1360
mov eax, 0xd
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000c8b30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret