joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ea40
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
xor eax, eax
lea rdi, [rcx + 8]
mov rbx, rdx
mov rdx, qword [rcx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003ebf7
cmp qword [rbx], 0
je 0x14003ebee
mov qword [rsp + 0x78], rbp
add rbx, 0x10
lea rbp, [0x140000000]
nop word [rax + rax]
movsxd rax, dword [rbx - 8]
cmp eax, 7
ja case.default.0x14003eac7
mov ecx, dword [rbp + rax*4 + 0x3ec00]
add rcx, rbp
jmp rcx
mov rax, qword [rbx]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov ecx, dword [rax]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], ecx
jmp 0x14003ebc5
mov rax, qword [rbx]
mov dword [rsp + 0x28], 4
mov r9d, 4
movzx ecx, byte [rax]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x80], ecx
jmp 0x14003ebc5
mov rax, qword [rbx]
mov dword [rsp + 0x28], 8
movsd xmm0, qword [rax]
lea rax, [rsp + 0x88]
movsd qword [rsp + 0x88], xmm0
jmp 0x14003ebbf
mov rax, qword [rbx]
mov rdx, qword [rbx - 0x10]
mov rcx, rsi
movzx r8d, word [rax]
call fcn.14003ed20
jmp case.default.0x14003eac7
mov rcx, qword [rbx]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14003eb60
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
jmp 0x14003ebca
mov r8d, dword [rbx - 4]
mov r9, qword [rbx]
mov rdx, qword [rbx - 0x10]
shr r8d, 2
mov rcx, rsi
call fcn.14003ec20
jmp case.default.0x14003eac7
mov r8d, dword [rbx - 4]
mov r9, qword [rbx]
mov rdx, qword [rbx - 0x10]
shr r8d, 1
mov rcx, rsi
call fcn.14003ed80
jmp case.default.0x14003eac7
mov eax, dword [rbx - 4]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx]
mov r9d, 3
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx - 0x10]
mov rcx, qword [rdi]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rbx, 0x20
cmp qword [rbx - 0x10], 0
jne 0x14003eab0
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003ec20
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x80
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rcx + 8]
xor ebx, ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov r14, r9
mov esi, r8d
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003ecff
test esi, esi
je 0x14003ecf4
mov qword [rsp + 0xb0], rdi
mov rdi, r14
nop word [rax + rax]
lea rdx, [0x1400daec8]
lea rcx, [rsp + 0x58]
mov r8d, ebx
call fcn.140038630
cmp dword [rdi], 0
lea rdx, [rsp + 0x58]
je 0x14003ecd7
mov eax, ebx
mov dword [rsp + 0x28], 4
mov r9d, 4
lea rcx, [r14 + rax*4]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14003ece2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
add rdi, 4
cmp ebx, esi
jb 0x14003ec90
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x80
pop r14
pop rsi
pop rbx
ret

Function at 0x14003ed20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
movsx ecx, r8w
mov r8d, dword [0x140126408]
mov rbx, rdx
mov edx, 0x60
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov rcx, qword [rdi + 8]
mov r9d, 4
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14003ed80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [rcx + 8]
xor ebx, ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov rdi, r9
mov esi, r8d
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003ee5c
test esi, esi
je 0x14003ee51
lea rdx, [0x1400daec8]
lea rcx, [rsp + 0x60]
mov r8d, ebx
call fcn.140038630
movzx ecx, word [rdi]
mov r8d, dword [0x140126408]
mov edx, 0x60
call qword [sym.imp.KERNEL32.dll_MulDiv]
cmp word [rdi], 0
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rdx, [rsp + 0x60]
je 0x14003ee41
lea rax, [rsp + 0x58]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14003ee47
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
add rdi, 2
cmp ebx, esi
jb 0x14003ede1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003f930
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
xor eax, eax
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003f9bc
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea rdx, str.EulaAccepted
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x40]
jne 0x14003f9bc
cmp dword [rsp + 0x60], 0
je 0x14003f9bc
mov eax, 1
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x14003f9d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x268
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r9, rcx
lea r8, str.SoftwareSysinternals
lea rdx, [0x1400d7708]
lea rcx, [rsp + 0x40]
call fcn.1400aa864
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000002
call fcn.14003f930
test eax, eax
jne 0x14003fae4
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000001
call fcn.14003f930
test eax, eax
jne 0x14003fae4
xor eax, eax
lea rdx, [rsp + 0x40]
mov r9d, 0x101
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003faca
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.EulaAccepted
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x260], rbx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x260]
jne 0x14003faca
cmp dword [rsp + 0x30], 0
jne 0x14003fae4
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x268
ret
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x268
ret
Function at 0x14003fb10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
lea r8, [rsp + 0x38]
lea rdx, str.SoftwareMicrosoftwindows_ntcurrentversion
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14003fbb3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x1400e1cd0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003fba8
lea rdx, [rsp + 0x50]
lea rcx, str.iotuap
call fcn.1400a9bbc
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x270
pop rbx
ret

Function at 0x14003fbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, [rsp + 0x58]
lea rdx, [0x1400d77e0]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14003fc5a
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, str.NanoServer
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003fc4f
cmp dword [rsp + 0x40], 4
jne 0x14003fc4f
mov eax, 1
cmp dword [rsp + 0x48], eax
cmove ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14003ff30
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
mov r15d, ebp
test rdx, rdx
je 0x14004001e
test r8, r8
je 0x14004001e
mov qword [rsp + 0x50], rbx
mov ebx, ebp
mov qword [rsp + 0x60], r13
lea r13d, [rbp + 1]
cmp dword [rdx], ebx
jle 0x14003ffed
mov qword [rsp + 0x58], rsi
mov esi, ebp
nop dword [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400e1c40]
call fcn.1400a9bbc
test eax, eax
je 0x14003ffb3
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.1400a9bbc
test eax, eax
je 0x14003ffb3
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x14003ff80
jmp 0x14003ffe8
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x14003ffe6
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x14003ffd0
dec dword [rdi]
mov rsi, qword [rsp + 0x58]
mov edx, r15d
mov rcx, r12
call fcn.140040100
mov rbx, qword [rsp + 0x50]
test eax, eax
cmovne r15d, r13d
mov r13, qword [rsp + 0x60]
test r15d, r15d
setne bpl
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r8d, r8d
xor edx, edx
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
jmp 0x140040530
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
lea r13d, [rbp + 1]
mov r15d, ebp
test rdx, rdx
je 0x140040563
test r8, r8
jne 0x1400405a4
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CommandLineToArgvW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14004062d
lea rdi, [0x140126434]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rdi
mov rcx, rax
call rbx
mov r14, rax
mov ebx, ebp
cmp dword [rdi], ebx
jle 0x14004062d
mov qword [rsp + 0x50], rsi
mov rsi, rbp
nop word [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400e1c40]
call fcn.1400a9bbc
test eax, eax
je 0x1400405f3
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.1400a9bbc
test eax, eax
je 0x1400405f3
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x1400405c0
jmp 0x140040628
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x140040626
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x140040610
dec dword [rdi]
mov rsi, qword [rsp + 0x50]
mov edx, r15d
mov rcx, r12
call fcn.140040100
mov rbx, qword [rsp + 0x58]
test eax, eax
cmovne r15d, r13d
test r15d, r15d
setne bpl
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140040530
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
mov r15d, ebp
test rdx, rdx
je 0x14004001e
test r8, r8
je 0x14004001e
mov qword [rsp + 0x50], rbx
mov ebx, ebp
mov qword [rsp + 0x60], r13
lea r13d, [rbp + 1]
cmp dword [rdx], ebx
jle 0x14003ffed
mov qword [rsp + 0x58], rsi
mov esi, ebp
nop dword [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400e1c40]
call fcn.1400a9bbc
test eax, eax
je 0x14003ffb3
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.1400a9bbc
test eax, eax
je 0x14003ffb3
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x14003ff80
jmp 0x14003ffe8
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x14003ffe6
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x14003ffd0
dec dword [rdi]
mov rsi, qword [rsp + 0x58]
mov edx, r15d
mov rcx, r12
call fcn.140040100
mov rbx, qword [rsp + 0x50]
test eax, eax
cmovne r15d, r13d
mov r13, qword [rsp + 0x60]
test r15d, r15d
setne bpl
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r8d, r8d
xor edx, edx
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
jmp 0x140040530
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
lea r13d, [rbp + 1]
mov r15d, ebp
test rdx, rdx
je 0x140040563
test r8, r8
jne 0x1400405a4
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CommandLineToArgvW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14004062d
lea rdi, [0x140126434]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rdi
mov rcx, rax
call rbx
mov r14, rax
mov ebx, ebp
cmp dword [rdi], ebx
jle 0x14004062d
mov qword [rsp + 0x50], rsi
mov rsi, rbp
nop word [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400e1c40]
call fcn.1400a9bbc
test eax, eax
je 0x1400405f3
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.1400a9bbc
test eax, eax
je 0x1400405f3
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x1400405c0
jmp 0x140040628
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x140040626
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x140040610
dec dword [rdi]
mov rsi, qword [rsp + 0x50]
mov edx, r15d
mov rcx, r12
call fcn.140040100
mov rbx, qword [rsp + 0x58]
test eax, eax
cmovne r15d, r13d
test r15d, r15d
setne bpl
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140045ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140045bd3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140045c19
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140045c14
nop
cmp rbx, rcx
jae 0x140045c19
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140045c00
cmp rbx, rcx
jb 0x140045c1d
xor eax, eax
jmp 0x140045c29
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400475d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x60]
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea r8, [0x1400475a0]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.1400ab1f0
mov edx, 0x3a98
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
cmp eax, 0x102
jne 0x140047641
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x3c]
add rsp, 0x40
pop rbx
ret
Function at 0x140048370
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor r15d, r15d
mov r14, rdx
mov edi, ecx
mov ebx, r15d
mov dword [rdx], r15d
xor bpl, bpl
nop word [rax + rax]
mov edx, edi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp eax, 0x18
je 0x1400483b0
cmp rax, 0xffffffffffffffff
je 0x14004852a
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x438
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x140048410
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14004852c
movzx eax, ax
or eax, 0x80070000
jmp 0x14004852c
lea rdx, str.mscorlib
lea rcx, [rsp + 0x50]
call fcn.1400a99c0
test rax, rax
je 0x14004842e
mov bpl, 1
jmp 0x140048500
lea rdx, str.clr.dll
lea rcx, [rsp + 0x50]
call fcn.1400a9bbc
test eax, eax
je 0x140048471
lea rdx, str.mscorwks.dll
lea rcx, [rsp + 0x50]
call fcn.1400a9bbc
test eax, eax
je 0x140048471
lea rdx, str.mscorsvr.dll
lea rcx, [rsp + 0x50]
call fcn.1400a9bbc
test eax, eax
jne 0x140048500
lea rcx, [rsp + 0x250]
mov edx, 0x5c
call fcn.1400a9910
test rax, rax
je 0x140048500
lea rcx, [rsp + 0x250]
mov edx, 0x5c
mov word [rax], r15w
call fcn.1400a9910
mov rcx, rax
test rax, rax
je 0x140048500
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2 + 2], r15w
jne 0x1400484b0
cmp rax, 4
jb 0x140048500
movzx eax, word [rcx + 4]
cmp ax, 0x31
jne 0x1400484e8
cmp word [rcx + 8], 0x30
jne 0x1400484d7
or ebx, 1
jmp 0x140048500
cmp ax, 0x31
jne 0x1400484e8
cmp word [rcx + 8], ax
jne 0x1400484e8
or ebx, 2
jmp 0x140048500
cmp ax, 0x32
jne 0x1400484f3
or ebx, 4
jmp 0x140048500
sub ax, 0x34
cmp ax, 3
ja 0x140048500
or ebx, 8
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x140048410
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bpl, bpl
je 0x14004852a
test ebx, ebx
je 0x14004852a
mov dword [r14], ebx
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400ab140
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x470
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004cc90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rcx
mov dword [rcx], ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
test edx, edx
jne 0x14004ccbf
lea rbx, str.Counter_009
lea rsi, str.Last_Counter
jmp 0x14004ccd6
cmp edx, 1
jne 0x14004ce71
lea rbx, str.Explain_009
lea rsi, str.Last_Help
lea rax, [rsp + 0x60]
lea rdx, str.softwaremicrosoftwindows_ntcurrentversionperflib
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004ce71
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x14004cd54
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000004
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004ce71
mov ecx, dword [rsp + 0x58]
mov eax, 2
mov rsi, 0xffffffffffffffff
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400a6ff4
lea rdx, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rdx
xor r8d, r8d
mov rcx, 0xffffffff80000004
mov rdx, rbx
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004cdf7
mov ecx, dword [rdi]
mov eax, 8
inc ecx
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400a6ff4
mov rcx, rax
mov qword [rdi + 8], rax
test rax, rax
jne 0x14004ce10
mov rcx, qword [rdi + 0x10]
call fcn.1400aac28
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov r8d, dword [rdi]
xor edx, edx
inc r8d
shl r8, 3
call fcn.1400a8b00
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test eax, eax
je 0x14004ce71
mov rcx, rbx
call fcn.1400ab1a4
cmp eax, dword [rdi]
ja 0x14004ce71
lea ecx, [rsi + 1]
lea rbx, [rbx + rcx*2]
mov ecx, eax
mov rax, qword [rdi + 8]
mov qword [rax + rcx*8], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rbx, [rbx + rax*2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test eax, eax
jne 0x14004ce34
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdx, rcx
lea r8, str.BINRES
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14004d202
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea r8, [0x1400e45d8]
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov rbx, rax
call fcn.1400ab574
test eax, eax
je 0x14004d258
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rsp + 0x40]
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.1400acf80
mov rcx, qword [rsp + 0x40]
call fcn.1400ab724
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov al, 1
add rsp, 0x20
pop rdi
ret