joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a5340
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rbp - 0x40], r15d
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rbp - 0x40], 1
lea rdx, [rbp + 0x48]
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x1401a5544
mov ecx, esi
call fcn.14000fdf4
mov rbx, rax
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1401a5537
mov r9, rax
mov r8d, esi
mov edx, dword [rbp + 0x48]
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1401a5537
mov qword [rbp - 0x38], r15
mov dword [rbp + 0x40], r15d
lea r9, [rbp + 0x40]
lea r8, [rbp - 0x38]
lea rdx, str.StringFileInfo040904E4ProductName
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401a547f
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x1401a547f
mov r8d, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x14023a6c0]
movdqu xmmword [rbp - 0x10], xmm1
mov word [rbp - 0x20], r15w
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x20]
call fcn.1400084c0
nop
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14000e340
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1401a5525
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a5520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a5561
jmp 0x1401a5520
mov qword [rbp - 0x38], r15
mov dword [rbp + 0x40], r15d
lea r9, [rbp + 0x40]
lea r8, [rbp - 0x38]
lea rdx, str.StringFileInfo040904B0ProductName
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401a5537
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x1401a5537
mov r8d, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x14023a6c0]
movdqu xmmword [rbp - 0x10], xmm1
mov word [rbp - 0x20], r15w
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x20]
call fcn.1400084c0
nop
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14000e340
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1401a5525
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a5520
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a555b
call fcn.140002de0
movdqa xmm0, xmmword [0x14023a6c0]
mov word [rbp - 0x20], r15w
movdqu xmmword [rbp - 0x10], xmm0
test rbx, rbx
je 0x1401a5544
mov rcx, rbx
call fcn.14000fdec
mov rax, rdi
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401ae974
int3
call fcn.1401ae974
int3
Function at 0x1401a6d70
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, qword [rdx + 0x18]
mov rax, qword [rdx + 0x38]
add rax, 0xa
add rsi, rax
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14000fdf4
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1401a6e00
lea rax, [rdi + 0x28]
cmp qword [rax + 0x18], 8
jb 0x1401a6dd1
mov rax, qword [rax]
lea r9, [rdi + 8]
cmp qword [r9 + 0x18], 0x10
jb 0x1401a6ddf
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
lea r8, str._S_:__s_r_n
mov rdx, rsi
mov rcx, rbx
call fcn.1401a7540
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
test rbx, rbx
je 0x1401a6e0d
mov rcx, rbx
call fcn.14000fdec
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1401a6e20
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov eax, dword [rdx + 0x48]
mov rbx, rdx
mov rdi, rcx
cmp eax, dword [rcx + 8]
jl 0x1401a6ebc
cmp eax, 5
jg 0x1401a6ebc
mov rcx, rdx
call fcn.1401a4c20
cmp qword [rax + 0x18], 8
jb 0x1401a6e53
mov rax, qword [rax]
mov r9d, dword [rbx + 0x48]
mov r10d, 1
mov qword [rsp + 0x60], rax
cmp r9d, 2
jl 0x1401a6e87
cmp r9d, 3
jle 0x1401a6e87
cmp r9d, 4
je 0x1401a6e80
cmp r9d, 5
jne 0x1401a6e87
movzx eax, r10w
jmp 0x1401a6e8c
mov eax, 2
jmp 0x1401a6e8c
mov eax, 4
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r10w
mov qword [rsp + 0x20], rdx
movzx edx, ax
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1401a6ed0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp word [rcx + 0x18], 0
mov rsi, rdx
mov rdi, rcx
je 0x1401a6fcb
mov qword [rsp + 0x58], rbx
mov rbx, qword [rcx + 0x248]
test rbx, rbx
je 0x1401a6fd2
cmp byte [rcx + 0x228], 0
je 0x1401a6fd2
mov qword [rsp + 0x60], rbp
lea rcx, [rbx + 0x28]
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx]
mov r9, rsi
mov rcx, rbx
mov rdi, qword [rax]
mov rdx, rdi
mov r14, qword [rdi + 8]
mov r8, r14
call fcn.1401a2660
mov rdx, rax
movabs rcx, 0x1745d1745d1745c
mov rax, qword [rbx + 8]
sub rcx, rax
cmp rcx, 1
jb 0x1401a6ff9
inc rax
mov qword [rbx + 8], rax
mov qword [rdi + 8], rdx
mov qword [r14], rdx
cmp byte [rbx + 0x18], 0
jne 0x1401a6fb2
mov rcx, qword [rbx + 0x20]
xor edi, edi
test rcx, rcx
je 0x1401a6f80
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], rdi
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x1401a7970]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call fcn.1401b1004
test rax, rax
mov qword [rbx + 0x20], rax
setne al
mov byte [rbx + 0x18], al
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop rdi
pop rsi
ret
call fcn.1401a6c70
test eax, eax
je 0x1401a6fc6
mov rdx, rsi
mov rcx, rdi
call fcn.1401a7e40
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop rdi
pop rsi
jmp int.1401a44a0
lea rcx, str.list_T__too_long
call fcn.1401a1420
int3

Function at 0x1401a7610
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1401a76c8
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.1401a9b30
lea rax, [rsp + 0x258]
mov dword [rsp + 0x258], 0x100
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x240]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x240], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401a76c8
cmp dword [rsp + 0x240], 1
jne 0x1401a76c8
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1401a76a4
test r8, r8
je 0x1401a76c8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400084c0
mov eax, 1
jmp 0x1401a76ca
xor eax, eax
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401a7e40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x230], 0
mov rbx, rdx
mov rdi, rcx
je 0x1401a7f14
mov r9d, dword [rcx + 0x224]
mov eax, dword [rcx + 0x220]
mov qword [rsp + 0x30], rsi
lea r8d, [rax + rax*4]
add r8d, r8d
lea eax, [r9 + 1]
mov dword [rcx + 0x224], eax
cmp r9d, r8d
jle 0x1401a7eae
xor edx, edx
call fcn.1401a5570
test al, al
je 0x1401a7e9d
mov dword [rdi + 0x224], 0
jmp 0x1401a7eae
mov eax, dword [rdi + 0x224]
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0x224], eax
mov rcx, rbx
call fcn.1401a4c20
mov rcx, rbx
mov rsi, qword [rax + 0x10]
call fcn.1401a4c20
cmp qword [rax + 0x18], 8
jb 0x1401a7ecc
mov rax, qword [rax]
mov r9, qword [rdi + 0x230]
mov r8, rsi
mov edx, 2
mov rcx, rax
call fcn.1401b2bf8
mov r9, qword [rdi + 0x230]
mov edx, 2
mov rcx, qword [0x14028d9c0]
mov rbx, rax
lea r8d, [rdx - 1]
call fcn.1401b2bf8
mov rsi, qword [rsp + 0x30]
add eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1401bd718
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401bd544

Function at 0x1401c5820
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1401c57fd
call fcn.1401abf40
mov dword [rax], 0x16
call fcn.1401ae954
or eax, 0xffffffff
jmp 0x1401c581a
sub dword [rcx + 0x10], 1
jns 0x1401c580c
add rsp, 0x28
jmp fcn.1401c77b4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1401c57dc
Function at 0x1401c7920
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1401c7646
call fcn.1401abf40
mov dword [rax], 0x16
call fcn.1401ae954
jmp 0x1401c7791
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401c7791
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401c7791
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401c7675
lock or dword [rcx + 0x14], 0x10
jmp 0x1401c7791
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401c7689
call fcn.1401d0d00
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401c7699
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401c769c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401b1f1c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401c709c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401c777f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401c772d
mov rcx, rbx
call fcn.1401b1f1c
cmp eax, 0xffffffff
je 0x1401c7718
mov rcx, rbx
call fcn.1401b1f1c
cmp eax, 0xfffffffe
je 0x1401c7718
mov rcx, rbx
call fcn.1401b1f1c
movsxd rdi, eax
lea r14, [0x14029a950]
mov rcx, rbx
sar rdi, 6
call fcn.1401b1f1c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401c771f
lea rdx, [0x14028dd60]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401c772d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401c7751
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401c7751
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401c7751
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401c776f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401c777a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401c7796
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1401c7610
Function at 0x140001000
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
and dword [rax + 8], 0
lea r9, [rax + 8]
xor edx, edx
xor r8d, r8d
lea edi, [rdx + 0xb]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000112e
mov edx, eax
xor ecx, ecx
mov r8d, 0x37126dd
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000112e
mov r14d, dword [rbx]
xor esi, esi
xor r15d, r15d
xor edi, edi
test r14d, r14d
je 0x1400010ae
mov eax, edi
lea rcx, [rbx + 0x30]
imul rbp, rax, 0x128
lea rdx, [0x140002040]
add rcx, rbp
call sub.ntoskrnl.exe_strcmp
test eax, eax
je 0x1400010a4
inc edi
cmp edi, r14d
jb 0x14000107b
jmp 0x1400010ae
mov rsi, qword [rbx + rbp + 0x18]
mov r15d, dword [rbx + rbp + 0x20]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rsi, rsi
je 0x14000112e
lea r9, [0x140002070]
mov rdx, r15
lea r8, [0x140002080]
mov rcx, rsi
call fcn.14000119c
mov rbx, rax
test rax, rax
je 0x14000112e
mov esi, dword [rax + 3]
mov r14d, 0x51313dd
mov r15d, 0x7d0
mov r8d, r14d
mov edx, r15d
mov ecx, 0x200
mov rbp, qword [rsi + rax + 7]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14000112e
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.140001e40
mov edx, r14d
mov qword [rsi + rbx + 7], rdi
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x140001130
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400012e0
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x61a5b53
mov rbx, rcx
jne 0x140001337
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001337
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001337
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001337
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000133c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
Function at 0x140001344
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x61a5b53
mov rsi, rcx
je 0x140001368
mov eax, 0xc0000001
jmp 0x140001417
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov edi, ebx
lea ecx, [rbx + 0x42]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001415
test rdi, rdi
je 0x1400013a1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001391
test rdi, rdi
je 0x140001415
mov r8d, dword [rdi]
test r8d, r8d
je 0x14000140a
lea rcx, [rdi + 8]
mov rdx, qword [rcx]
and rdx, 0xfffffffffffffffe
test byte [rcx], 1
je 0x1400013ff
cmp qword [rcx + 8], 0x200000
jne 0x1400013ff
cmp dword [rcx + 0x10], 0x546e6f43
je 0x140001427
inc ebx
add rcx, 0x18
cmp ebx, r8d
jb 0x1400013e0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rsi + 8]
mov qword [rax], rdx
jmp 0x140001415

Function at 0x140001430
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x61a5b53
mov rdi, rcx
jne 0x1400014f5
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400014f5
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400014f5
call fcn.14000150c
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.14000174c
test rax, rax
je 0x1400014f5
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rdi + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rdi + 0x20], 0
movsxd r8, esi
je 0x1400014d8
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001904
jmp 0x1400014f1
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400014fa
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800018a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180001a5d
test r9, r9
je 0x180001a5d
movsxd r8, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div r8
test rdx, rdx
jne 0x180001a5d
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
cmp ecx, 1
jne 0x18000198a
mov r15d, ebp
test rax, rax
je 0x180001a4e
lea r14, [rbx + 0x3f8]
mov rax, r14
cmp byte [rbx + 8], bpl
je 0x180001945
mov edx, ebp
test r8d, r8d
jle 0x180001945
mov r8, rsi
sub r8, r14
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
inc edx
xor byte [rax], cl
lea rax, [rax + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x180001930
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.180001a70
movsxd r8, dword [rbx + 0x3d0]
mov rdx, rdi
mov rcx, r14
call fcn.1800481e0
movsxd r8, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r15d
div r8
add rsi, r8
mov ecx, r15d
add rdi, r8
cmp rcx, rax
jb 0x180001915
jmp 0x180001a4e
cmp ecx, 2
jne 0x180001a1d
mov r14d, ebp
test rax, rax
je 0x180001a4e
nop
mov r8, rdi
lea rdx, [rbx + 0x3f8]
mov rcx, rbx
call fcn.180001a70
mov rcx, rdi
cmp byte [rbx + 8], bpl
je 0x1800019e5
mov edx, ebp
cmp dword [rbx + 0x3d0], edx
jle 0x1800019e5
mov r8, rsi
sub r8, rdi
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
inc edx
xor byte [rcx], al
lea rcx, [rcx + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x1800019d0
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.1800481e0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r14d
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, r14d
cmp rcx, rax
jb 0x1800019a0
jmp 0x180001a4e
test rax, rax
je 0x180001a4e
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.180001a70
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc ebp
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, ebp
cmp rcx, rax
jb 0x180001a22
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x180003dd0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor bl, bl
xor ebp, ebp
mov r12, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], rbp
je 0x180003f4f
cmp qword [rdx + 0x10], rbp
je 0x180003f4f
cmp qword [rdx + 0x18], 0x10
mov rcx, rdx
mov qword [rsp + 0x80], r15
jb 0x180003e11
mov rcx, qword [rdx]
lea rdx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov r15d, eax
test eax, eax
je 0x180003f4a
mov ecx, r15d
mov qword [rsp + 0x78], r14
lea rdx, [0x1800a5c94]
call fcn.18002aba0
mov r14, rax
test rax, rax
je 0x180003f2f
cmp qword [rdi + 0x18], 0x10
jb 0x180003e50
mov rdi, qword [rdi]
mov edx, dword [rsp + 0x70]
mov r9, r14
mov r8d, r15d
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x180003f1a
lea r9, [rsp + 0x88]
mov rcx, r14
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180003f1a
mov rax, qword [rsp + 0x30]
lea rdx, [0x1800a5c94]
mov ecx, 0x80
movzx edi, word [rax]
movzx eax, word [rax + 2]
shl edi, 0x10
or edi, eax
call fcn.18002aba0
mov rbp, rax
test rax, rax
je 0x180003f1a
cmp qword [rsi + 0x18], 0x10
jb 0x180003ec2
mov rsi, qword [rsi]
mov r9d, edi
mov qword [rsp + 0x20], rsi
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x80
mov rcx, rbp
call fcn.180004300
lea r9, [rsp + 0x88]
mov rdx, rbp
lea r8, [rsp + 0x38]
mov rcx, r14
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180003f18
mov rdx, qword [rsp + 0x38]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x180003f06
mov rcx, r12
call fcn.180002460
mov bl, 1
mov rcx, r14
call fcn.18002a370
test rbp, rbp
je 0x180003f2f
mov rcx, rbp
call fcn.18002a370
mov r14, qword [rsp + 0x78]
movzx eax, bl
mov r15, qword [rsp + 0x80]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, bl
jmp 0x180003f37
movzx eax, bl
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180006ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1800a21e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, r8
mov qword [rsp + 0x38], rcx
mov rsi, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
mov rbp, r9
call fcn.180048640
xor r12d, r12d
mov edi, 0x20019
nop
lea rax, [rsp + 0x38]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180006bb8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rbp
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x180006bad
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 2
jne 0x180006bd8
cmp rsi, 0xffffffff80000002
jne 0x180006bd8
cmp edi, 0x20019
jne 0x180006bd8
mov edi, 0x20219
jmp 0x180006b30
mov qword [r14 + 0x10], r12
lea rax, [rsp + 0x40]
mov qword [r14 + 0x18], 7
mov r8, 0xffffffffffffffff
mov word [r14], r12w
inc r8
cmp word [rax + r8*2], r12w
jne 0x180006bf4
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1800041c0
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002a480
add rsp, 0x260
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180007e60
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, 0xffffffffffffffff
mov rdi, rcx
nop dword [rax]
inc rdi
cmp word [rbp + rdi*2], 0
jne 0x180007e80
lea eax, [rdi + 1]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.18002a3e8
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.180048640
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.18004c1a8
movsxd rdi, edi
mov bpl, 1
test rdi, rdi
js 0x180007f29
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov qword [rsp + 0x48], r15
mov ebx, r14d
mov r15d, 0x5c
cmp word [rsi + rbx*2], r15w
jne 0x180007f12
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180007f0d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180007f1c
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x180007ee5
jmp 0x180007f1f
xor bpl, bpl
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rcx, rsi
call fcn.18002a370
mov rbx, qword [rsp + 0x50]
movzx eax, bpl
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret