joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c60
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x5c], ecx
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x60], 0
je 0x140003cf3
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, 0
jne 0x140003d24
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x20]
call fcn.140003d60
mov qword [rsp + 0x28], rax
cmp rax, 0
je 0x140003d1f
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
jmp 0x140003d4a
jmp 0x140003d24
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x48]
jne 0x140003c9f
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x140003d60
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x98
mov dword [rsp + 0x8c], edx
mov qword [rsp + 0x80], rcx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140003da7
mov qword [rsp + 0x90], 0
jmp 0x140003f89
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0x4550
je 0x140003de2
mov qword [rsp + 0x90], 0
jmp 0x140003f89
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x14]
cmp eax, 0x60
jl 0x140003e06
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x84], 0
jne 0x140003e17
mov qword [rsp + 0x90], 0
jmp 0x140003f89
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x88]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
jne 0x140003e42
mov qword [rsp + 0x90], 0
jmp 0x140003f89
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x6c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
cmp eax, dword [rcx + 0x18]
jae 0x140003f7d
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x44]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x40]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140003fa0
cmp eax, dword [rsp + 0x8c]
je 0x140003ef8
jmp 0x140003f6d
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x44]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x10]
movzx ecx, cx
add eax, ecx
mov word [rsp + 0x36], ax
movzx eax, word [rsp + 0x36]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x10]
movzx ecx, cx
sub eax, ecx
mov word [rsp + 0x34], ax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x48]
movzx ecx, word [rsp + 0x34]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x90], rax
jmp 0x140003f89
mov eax, dword [rsp + 0x44]
add eax, 1
mov dword [rsp + 0x44], eax
jmp 0x140003ea6
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
add rsp, 0x98
ret
Function at 0x140004560
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [0x140007ff0]
call fcn.1400044d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140736318
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14073649f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140736349
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073632f
add dl, dl
jne 0x140736356
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407363b6
xor eax, eax
add dl, dl
jne 0x140736365
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073646d
add dl, dl
jne 0x140736376
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140736383
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140736390
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073639d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407363aa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073633e
mov eax, 1
add dl, dl
jne 0x1407363c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407363d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407363bb
sub eax, ebx
mov ebx, 1
jne 0x14073640c
mov ecx, 1
add dl, dl
jne 0x1407363ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407363fb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407363e3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073633e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140736428
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140736435
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073641d
cmp eax, 0x7d00
jae 0x14073645b
cmp eax, 0x500
jb 0x140736456
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073633e
cmp eax, 0x7f
ja 0x14073645e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073633e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140736492
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14073633e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002930
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov dword [rcx + 8], 0x80004005
mov rbx, rcx
mov qword [rcx], rdi
xor ecx, ecx
lea edx, [rdi + 6]
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbx + 8], eax
test eax, eax
js 0x1400029fa
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea r9, [0x1400c6640]
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x40], rdi
lea r8d, [rdi + 1]
mov qword [rbx], rdi
lea rcx, [0x1400c6630]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14000299d
lea rcx, str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x1400029d3
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jns 0x1400029ba
lea rcx, str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x1400029d3
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jns 0x1400029da
lea rcx, str.get_CurrentProfile_failed:_0x_08lx_n
mov edx, eax
call fcn.14000be20
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400029ea
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400029fa
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e0b0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
cmp r8d, 1
jne 0x14000e180
mov eax, r8d
lock xadd dword [rcx + 0x60], eax
inc eax
cmp eax, r8d
jne 0x14000e19a
mov qword [rcx + 8], rdx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov esi, 0xffffffff
mov r9d, esi
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rdi + 0x18]
lea rdx, [rsp + 0x40]
call fcn.14002f610
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14000e158
mov eax, dword [rdx + 0x10]
cmp eax, esi
je 0x14000e14e
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000e158
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
test al, al
jne 0x14000e19a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
test r8d, r8d
jne 0x14000e19a
mov esi, 0xffffffff
lock xadd dword [rcx + 0x60], esi
cmp esi, 1
jne 0x14000e19a
mov rax, qword [rcx]
call qword [rax + 0x28]
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140013090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rsp + 0x18], r8b
push rbx
push rsi
push r12
push r13
sub rsp, 0x48
mov r13, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400132a1
movzx eax, word [rcx]
test ax, ax
je 0x1400132a1
mov rsi, rcx
nop dword [rax]
cmp ax, 0x20
je 0x1400130cc
cmp ax, 0x2b
jne 0x1400130e9
add rbx, 2
mov rax, rbx
sub rax, rsi
sar rax, 1
cmp eax, 0x7fffffff
jge 0x1400132a1
movzx eax, word [rbx]
jmp 0x1400130c0
xor r12b, r12b
cmp ax, 0x2d
je 0x1400130fc
mov ecx, 0xe2
cmp ax, cx
jne 0x140013117
add rbx, 2
mov r12b, 1
mov rax, rbx
sub rax, rsi
sar rax, 1
cmp eax, 0x7fffffff
jge 0x1400132a1
movzx ecx, word [rbx]
xor r8b, r8b
mov qword [rsp + 0x70], rbp
xor ebp, ebp
mov qword [rsp + 0x78], rdi
mov edi, ebp
mov qword [rsp + 0x88], r14
mov r14d, ebp
mov qword [rsp + 0x40], r15
mov r15d, ebp
movaps xmmword [rsp + 0x30], xmm6
test cx, cx
je 0x14001321a
mov r9d, 0xffdf
mov edx, 0xfffd
lea eax, [rcx - 0x2c]
test dx, ax
je 0x1400131ac
lea eax, [rcx - 0x45]
test r9w, ax
je 0x1400131e0
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001321a
movzx edx, cx
test r8b, r8b
je 0x14001319e
lea r15, [r15 + r15*4]
lea r15, [r15 - 0x18]
lea r15, [rdx + r15*2]
test rdi, rdi
jne 0x140013195
mov edi, 0xa
jmp 0x1400131bf
lea rdi, [rdi + rdi*4]
add rdi, rdi
jmp 0x1400131bf
lea r14, [r14 + r14*4]
lea r14, [r14 - 0x18]
lea r14, [rdx + r14*2]
jmp 0x1400131bf
test r8b, r8b
jne 0x14001321a
call fcn.140012ff0
mov r8b, 1
mov r9d, 0xffdf
add rbx, 2
mov rax, rbx
sub rax, rsi
sar rax, 1
cmp eax, 0x7fffffff
jge 0x14001321a
movzx ecx, word [rbx]
test cx, cx
je 0x14001321a
jmp 0x140013152
lea rcx, [rbx + 2]
mov dword [rsp + 0x80], ebp
mov r9d, 0x7fffffff
mov byte [rsp + 0x20], 1
mov r8b, 1
lea rdx, [rsp + 0x80]
call fcn.140013090
mov eax, dword [rsp + 0x80]
inc eax
movsxd rcx, eax
cvttsd2si ebp, xmm0
lea rbx, [rbx + rcx*2]
xorps xmm6, xmm6
cvtsi2sd xmm6, r14
mov r14, qword [rsp + 0x88]
test rdi, rdi
jle 0x140013247
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, r15
cvtsi2sd xmm0, rdi
divsd xmm1, xmm0
addsd xmm6, xmm1
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
test ebp, ebp
je 0x14001326e
movsd xmm0, qword [0x1400da388]
movd xmm1, ebp
cvtdq2pd xmm1, xmm1
call fcn.1400ac320
mulsd xmm6, xmm0
mov rbp, qword [rsp + 0x70]
test r13, r13
je 0x140013282
sub rbx, rsi
sar rbx, 1
mov dword [r13], ebx
test r12b, r12b
je 0x14001328e
xorps xmm6, xmmword [0x1400da490]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop r13
pop r12
pop rsi
pop rbx
ret
xorps xmm0, xmm0
add rsp, 0x48
pop r13
pop r12
pop rsi
pop rbx
ret
Function at 0x140014aa0
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
movsxd rdi, r8d
mov rbp, rdx
mov rsi, rcx
test r8d, r8d
jg 0x140014ac2
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.1400106f0
mov qword [rsp + 0x40], rbx
lea ecx, [rdi + 2]
mov qword [rsp + 0x48], r12
mov eax, 0x55555556
imul ecx
mov qword [rsp + 0x50], r14
xor r12d, r12d
mov ebx, edx
mov qword [rsp + 0x58], r15
shr ebx, 0x1f
mov r9b, 1
add ebx, edx
xor r8d, r8d
shl ebx, 2
mov rcx, rsi
mov edx, ebx
mov r14d, r12d
call fcn.140010590
mov r15, rax
mov rcx, rdi
test edi, edi
je 0x140014bce
dec rcx
lea r8, [rbp + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
lea r9d, [r12 + 2]
mul rcx
mov r11d, r12d
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr rdx, 1
lea r10, [rdx + 1]
lea r14d, [r10*4]
lea eax, [r9 - 1]
cmp eax, edi
jge 0x140014b53
movzx eax, byte [r8 - 1]
shl rax, 8
jmp 0x140014b56
mov rax, r12
cmp r9d, edi
jge 0x140014b61
movzx edx, byte [r8]
jmp 0x140014b64
mov rdx, r12
movzx ecx, byte [r8 - 2]
add r9d, 3
shl rcx, 0x10
add r8, 3
add rcx, rax
add rcx, rdx
mov rax, rcx
shr rax, 0x12
movsx eax, byte [rax + rbp]
mov word [r15 + r11*2], ax
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movsx eax, byte [rax + rbp]
mov word [r15 + r11*2 + 2], ax
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movsx eax, byte [rax + rbp]
mov word [r15 + r11*2 + 4], ax
movsx eax, byte [rcx + rbp]
mov word [r15 + r11*2 + 6], ax
add r11, 4
sub r10, 1
jne 0x140014b40
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea ecx, [rdx + rdx*2]
cmp edi, ecx
je 0x140014bfc
sub ecx, edi
add ecx, 3
test ecx, ecx
jle 0x140014bfc
sub r14d, ecx
movsxd rax, r14d
lea rdi, [r15 + rax*2]
mov eax, 0x3d
movzx eax, ax
rep stosw word [rdi], ax
mov rdx, qword [rsi]
movsxd rax, ebx
lea rdi, [rdx - 0x18]
mov word [rdx + rax*2], r12w
mov rcx, rdi
mov dword [rdi + 8], ebx
mov eax, dword [rcx + 0x10]
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
cmp eax, 0xffffffff
jne 0x140014c35
mov eax, 1
xchg dword [rcx + 0x10], eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400294e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x170
mov rdi, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call fcn.140002000
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x30]
mov qword [r14], rax
mov ebp, 1
mov dword [rsp + 0x30], ebp
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
test rax, rax
je 0x14002964a
mov dword [rsp + 0x1a0], ebx
lea rdx, [rsp + 0x1a0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x44]
call fcn.1400906c0
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140029641
mov eax, dword [rsp + 0x1a0]
cmp dword [rsp + 0x48], eax
je 0x1400295a4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140029580
jmp 0x140029641
lea rdi, [rsp + 0x6c]
nop dword [rax]
movzx eax, byte [rdi]
inc rdi
test al, al
jne 0x1400295b0
lea rax, [rsp + 0x6c]
sub edi, eax
dec edi
mov rcx, r14
test edi, edi
jle 0x14002963c
xor r9d, r9d
movzx r8d, bpl
mov edx, edi
call fcn.140010590
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [rsp + 0x6c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdx, eax
mov rcx, qword [r14]
cmp edx, 0xffffffff
jne 0x140029626
test rcx, rcx
je 0x14002962c
mov rbx, rcx
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x140029610
sub rbx, rcx
sar rbx, 1
dec ebx
jmp 0x14002962c
mov word [rcx + rdx*2], bx
mov ebx, edx
mov dword [rcx - 0x10], ebx
mov eax, dword [rcx - 8]
cmp eax, 0xffffffff
jne 0x140029641
xchg dword [rcx - 8], ebp
jmp 0x140029641
call fcn.1400106f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140029c70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, r9
mov r15, r8
mov rsi, rdx
mov r12, rcx
xor ebp, ebp
mov dword [rsp + 0x44], ebp
call fcn.140002000
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], bpl
mov byte [rsp + 0x20], bpl
mov r9d, 0xffffffff
mov r8d, r9d
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0x28]
mov qword [rsi], rax
mov r14d, 1
mov dword [rsp + 0x44], r14d
mov rcx, qword [r12]
test rcx, rcx
je 0x140029d3f
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x80], ebp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029d3f
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, r14d
jbe 0x140029d5b
cmp ecx, 4
jne 0x140029d3f
mov rdx, r15
mov rcx, r12
call fcn.140029e00
movsxd rdx, eax
lea r9d, [rbp + 0xa]
xor r8d, r8d
mov rcx, rsi
call fcn.140013580
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov edi, dword [rsp + 0x80]
inc rdi
shr rdi, 1
lea edx, [rdi + 1]
movzx r9d, r14b
xor r8d, r8d
mov rcx, rsi
call fcn.140010590
mov rbx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rdx, qword [rsi]
test rdx, rdx
je 0x140029dd5
mov rax, rdx
nop word [rax + rax]
movzx ecx, word [rax]
add rax, 2
test cx, cx
jne 0x140029dc0
sub rax, rdx
sar rax, 1
lea ebp, [rax - 1]
mov dword [rdx - 0x10], ebp
mov eax, dword [rdx - 8]
cmp eax, 0xffffffff
mov rax, rsi
jne 0x140029d42
xchg dword [rdx - 8], r14d
jmp 0x140029d42
Function at 0x140029e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x60], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x140029ee7
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x50], 0xffffffff
lea rax, [r11 + 0x20]
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
mov qword [r11 - 0x28], rax
lea r9, [r11 + 8]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029ee7
mov eax, dword [rsp + 0x50]
cmp eax, 4
je 0x140029ed8
mov dword [rsp + 0x60], 0
cmp eax, 1
jne 0x140029ee7
lea r9, [0x1400c5494]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140029c70
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax - 0x10], 0
jle 0x140029ea9
mov rcx, rax
call fcn.140017960
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140029ed8
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140029ece
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140029ed8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14002a810
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call fcn.140002000
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rsi], rax
mov ebp, 1
mov dword [rsp + 0x40], ebp
lea rdi, [rax - 0x18]
mov rcx, qword [rdi]
mov eax, dword [rdi + 0x10]
cmp eax, ebp
jle 0x14002a89c
mov rax, qword [rcx]
mov byte [rsp + 0x30], bpl
mov byte [rsp + 0x28], bpl
mov byte [rsp + 0x20], bpl
mov r9d, 0x820
mov r8d, dword [rdi + 8]
mov rdx, qword [rsi]
call qword [rax + 0x28]
mov qword [rsi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rdi + 0x10]
cmp eax, 0x7ffffc17
je 0x14002a919
mov eax, dword [rdi + 0x10]
jmp 0x14002a8f6
cmp dword [rdi + 0xc], 0x820
jg 0x14002a911
mov eax, 0x820
mov r9d, ebp
nop dword [rax]
add r9d, r9d
shr eax, 1
jne 0x14002a8b0
mov rdx, qword [rsi]
mov eax, dword [rdi + 0x10]
mov r10, qword [rcx]
cmp eax, 0xffffffff
setne al
mov byte [rsp + 0x30], bpl
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], 0
mov r8d, dword [rdi + 8]
call qword [r10 + 0x28]
mov qword [rsi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rdi + 0x10]
cmp eax, 0x7ffffc17
je 0x14002a919
mov eax, dword [rdi + 0x10]
cmp eax, edx
je 0x14002a903
lock xadd dword [rdi + 0x10], edx
sub edx, ebp
jg 0x14002a919
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
jmp 0x14002a919
mov edx, 0xffffffff
xchg dword [rdi + 0x10], edx
mov edx, 0x820
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002a946
mov rbx, rcx
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x14002a932
sub rbx, rcx
sar rbx, 1
dec ebx
mov dword [rcx - 0x10], ebx
mov eax, dword [rcx - 8]
cmp eax, 0xffffffff
jne 0x14002a954
xchg dword [rcx - 8], ebp
mov rcx, rsi
call fcn.14002f4a0
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14002a980
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call fcn.140002000
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rsi], rax
mov ebp, 1
mov dword [rsp + 0x40], ebp
lea rdi, [rax - 0x18]
mov rcx, qword [rdi]
mov eax, dword [rdi + 0x10]
cmp eax, ebp
jle 0x14002aa0c
mov rax, qword [rcx]
mov byte [rsp + 0x30], bpl
mov byte [rsp + 0x28], bpl
mov byte [rsp + 0x20], bpl
mov r9d, 0x820
mov r8d, dword [rdi + 8]
mov rdx, qword [rsi]
call qword [rax + 0x28]
mov qword [rsi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rdi + 0x10]
cmp eax, 0x7ffffc17
je 0x14002aa89
mov eax, dword [rdi + 0x10]
jmp 0x14002aa66
cmp dword [rdi + 0xc], 0x820
jg 0x14002aa81
mov eax, 0x820
mov r9d, ebp
nop dword [rax]
add r9d, r9d
shr eax, 1
jne 0x14002aa20
mov rdx, qword [rsi]
mov eax, dword [rdi + 0x10]
mov r10, qword [rcx]
cmp eax, 0xffffffff
setne al
mov byte [rsp + 0x30], bpl
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], 0
mov r8d, dword [rdi + 8]
call qword [r10 + 0x28]
mov qword [rsi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rdi + 0x10]
cmp eax, 0x7ffffc17
je 0x14002aa89
mov eax, dword [rdi + 0x10]
cmp eax, edx
je 0x14002aa73
lock xadd dword [rdi + 0x10], edx
sub edx, ebp
jg 0x14002aa89
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
jmp 0x14002aa89
mov edx, 0xffffffff
xchg dword [rdi + 0x10], edx
mov edx, 0x820
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rcx, qword [rsi]
test rcx, rcx
je 0x14002aab6
mov rbx, rcx
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x14002aaa2
sub rbx, rcx
sar rbx, 1
dec ebx
mov dword [rcx - 0x10], ebx
mov eax, dword [rcx - 8]
cmp eax, 0xffffffff
jne 0x14002aac4
xchg dword [rcx - 8], ebp
mov rcx, rsi
call fcn.14002f4a0
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret