joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140140af0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
mov eax, 0x10e8
call fcn.14016f240
sub rsp, rax
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rsp + 0x10c0], rax
mov eax, dword [rdx + 0x10]
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
lea r9d, [rax*2 + 2]
mov rax, qword [rcx]
mov dword [rax], r9d
cmp qword [rdx + 0x18], 8
jb 0x140140b39
mov r14, qword [rdx]
mov rax, qword [rcx]
mov ebx, dword [rax]
test ebx, ebx
je 0x140140cbc
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x10e0], r12
mov qword [rsp + 0x10d8], r13
xor r13d, r13d
mov qword [rsp + 0x10d0], r15
nop dword [rax]
cmp ebx, 0x1000
jbe 0x140140b84
mov esi, 0x1000
mov byte [rsp + 0x30], 0x20
jmp 0x140140bb1
mov eax, ebp
mov esi, ebx
sub eax, 1
je 0x140140bac
sub eax, 1
je 0x140140ba5
cmp eax, 1
je 0x140140b9e
mov byte [rsp + 0x30], 0x23
jmp 0x140140bb1
mov byte [rsp + 0x30], 0x7e
jmp 0x140140bb1
mov byte [rsp + 0x30], 0x24
jmp 0x140140bb1
mov byte [rsp + 0x30], 0x40
mov r8d, esi
lea rcx, [rsp + 0x31]
mov rdx, r14
mov r12d, esi
call fcn.1401aff40
mov rcx, qword [rdi + 0x10]
lea r15d, [rsi + 1]
mov r9, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
mov r8d, r15d
mov qword [rsp + 0x20], r13
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
mov dword [rcx], eax
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
je 0x140140c1b
mov rax, qword [rdi + 0x18]
cmp r15d, dword [rax]
jne 0x140140c1b
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add r14, r12
sub ebx, esi
jne 0x140140b70
jmp 0x140140c9c
test ebp, ebp
je 0x140140c9c
xor edx, edx
lea rcx, [rsp + 0x1040]
mov r8d, 0x80
call fcn.1401b1bc0
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
jne 0x140140c76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x7f
lea rcx, [rsp + 0x1040]
cmp eax, 0xe8
jne 0x140140c65
lea r8, str.Finished_writing:_the_pipe_has_been_closed
call fcn.140140320
jmp 0x140140c9c
mov r9d, eax
lea r8, str.Error_writing_to_the_pipe___d_
call fcn.140140320
jmp 0x140140c9c
mov rax, qword [rdi + 0x18]
lea r8, str.Warning._Writing_to_the_pipe__d_bytes___wrote__d_bytes
mov r9d, r15d
mov edx, 0x7f
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x1040]
call fcn.140140320
mov r13, qword [rsp + 0x10d8]
mov r12, qword [rsp + 0x10e0]
mov rsi, qword [rsp + 0x1120]
mov r15, qword [rsp + 0x10d0]
mov rcx, qword [rsp + 0x10c0]
xor rcx, rsp
call fcn.14016e480
add rsp, 0x10e8
pop r14
pop rdi
pop rbp
pop rbx
ret
mov r8d, dword [r8]
add rcx, 8
jmp 0x140140af0
Function at 0x1401410c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
mov eax, 0x10e8
call fcn.14016f240
sub rsp, rax
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rsp + 0x10c0], rax
mov eax, dword [rdx + 0x10]
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
lea r9d, [rax*2 + 2]
mov rax, qword [rcx]
mov dword [rax], r9d
cmp qword [rdx + 0x18], 8
jb 0x140140b39
mov r14, qword [rdx]
mov rax, qword [rcx]
mov ebx, dword [rax]
test ebx, ebx
je 0x140140cbc
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x10e0], r12
mov qword [rsp + 0x10d8], r13
xor r13d, r13d
mov qword [rsp + 0x10d0], r15
nop dword [rax]
cmp ebx, 0x1000
jbe 0x140140b84
mov esi, 0x1000
mov byte [rsp + 0x30], 0x20
jmp 0x140140bb1
mov eax, ebp
mov esi, ebx
sub eax, 1
je 0x140140bac
sub eax, 1
je 0x140140ba5
cmp eax, 1
je 0x140140b9e
mov byte [rsp + 0x30], 0x23
jmp 0x140140bb1
mov byte [rsp + 0x30], 0x7e
jmp 0x140140bb1
mov byte [rsp + 0x30], 0x24
jmp 0x140140bb1
mov byte [rsp + 0x30], 0x40
mov r8d, esi
lea rcx, [rsp + 0x31]
mov rdx, r14
mov r12d, esi
call fcn.1401aff40
mov rcx, qword [rdi + 0x10]
lea r15d, [rsi + 1]
mov r9, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
mov r8d, r15d
mov qword [rsp + 0x20], r13
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
mov dword [rcx], eax
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
je 0x140140c1b
mov rax, qword [rdi + 0x18]
cmp r15d, dword [rax]
jne 0x140140c1b
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add r14, r12
sub ebx, esi
jne 0x140140b70
jmp 0x140140c9c
test ebp, ebp
je 0x140140c9c
xor edx, edx
lea rcx, [rsp + 0x1040]
mov r8d, 0x80
call fcn.1401b1bc0
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
jne 0x140140c76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x7f
lea rcx, [rsp + 0x1040]
cmp eax, 0xe8
jne 0x140140c65
lea r8, str.Finished_writing:_the_pipe_has_been_closed
call fcn.140140320
jmp 0x140140c9c
mov r9d, eax
lea r8, str.Error_writing_to_the_pipe___d_
call fcn.140140320
jmp 0x140140c9c
mov rax, qword [rdi + 0x18]
lea r8, str.Warning._Writing_to_the_pipe__d_bytes___wrote__d_bytes
mov r9d, r15d
mov edx, 0x7f
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x1040]
call fcn.140140320
mov r13, qword [rsp + 0x10d8]
mov r12, qword [rsp + 0x10e0]
mov rsi, qword [rsp + 0x1120]
mov r15, qword [rsp + 0x10d0]
mov rcx, qword [rsp + 0x10c0]
xor rcx, rsp
call fcn.14016e480
add rsp, 0x10e8
pop r14
pop rdi
pop rbp
pop rbx
ret
mov r8d, dword [r8]
add rcx, 8
jmp 0x140140af0
Function at 0x140141bf0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp + 0x2f], 7
xor esi, esi
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
lea r8d, [rsi + 1]
lea rdx, [0x14023312c]
lea rcx, [rbp + 0x17]
call fcn.1400c3720
nop
lea r8, [rbp + 0x17]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140148b60
nop
mov r8, qword [rbp + 0x2f]
cmp r8, 8
jb 0x140141c76
inc r8
mov rdx, qword [rbp + 0x17]
lea rcx, [rbp + 0x17]
call fcn.1400c3a10
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
lea rdx, [rdi + 8]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.1400c3ac0
nop
mov ebx, esi
mov r9, qword [rbp - 0x21]
mov rdx, r9
mov r8, qword [rbp - 0x29]
sub rdx, r8
sar rdx, 5
lea rax, [rdx - 1]
test rax, rax
je 0x140141d6c
mov rcx, rsi
nop
cmp rdx, rcx
jbe 0x140141d66
shl rcx, 5
lea rdx, [r8 + rcx]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.1400ca960
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140141d2b
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rax, qword [rbp - 9]
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x140141d2b
cmp cx, 0x2f
je 0x140141d2b
mov edx, 1
lea r8d, [rdx + 0x5b]
lea rcx, [rbp - 9]
call fcn.1400c3870
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc ebx
mov r9, qword [rbp - 0x21]
mov rdx, r9
mov r8, qword [rbp - 0x29]
sub rdx, r8
sar rdx, 5
mov ecx, ebx
lea rax, [rdx - 1]
cmp rcx, rax
jb 0x140141cd0
jmp 0x140141d6c
call fcn.1400ca400
nop
mov rax, qword [rbp + 0xf]
cmp rax, 8
jb 0x140141d8f
lea r8, [rax + 1]
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400c3a10
mov r9, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
test r8, r8
je 0x140141dc3
mov rdx, r9
mov rcx, r8
call fcn.1400cb6c0
mov r8, qword [rbp - 0x19]
mov rdx, qword [rbp - 0x29]
sub r8, rdx
sar r8, 5
call fcn.1400ca610
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14016e480
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140142030
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14028c238]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x28], rbx
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x50]
call fcn.1400cb2f0
nop
lea r8, [0x14023312c]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400cb5f0
mov rdx, rax
mov rcx, rdi
call fcn.1400ca180
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1401420a9
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400c3a10
mov qword [rsp + 0x48], 7
xor esi, esi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1401420db
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400c3a10
cmp qword [rdi + 0x18], 8
jb 0x1401420e5
mov rdi, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140142109
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400c3a10
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x14014211f
mov rbx, qword [rbx]
mov word [rbx], si
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14016e480
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140143b70
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov r12d, 0xffffffe5
mov qword [rdx + 8], rax
mov rbx, rdx
cmp qword [rcx + 0x18], 8
mov edi, r12d
jb 0x140143b9a
mov rcx, qword [rcx]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140143c88
xor edx, edx
mov qword [rsp + 0x80], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x140143c71
lea ecx, [rax + 1]
mov qword [rsp + 0x78], rbp
call fcn.1401b4590
mov rbp, rax
test rax, rax
je 0x140143c6c
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r15d
mov r8d, esi
mov qword [rsp + 0x20], r15
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140143c64
mov ecx, dword [rsp + 0x70]
cmp ecx, esi
jne 0x140143c64
mov rax, qword [rbx + 0x10]
mov edx, ecx
sub rax, qword [rbx]
cmp rax, rcx
jae 0x140143c45
mov rcx, rbx
call fcn.140144000
mov ecx, dword [rsp + 0x70]
mov edx, ecx
mov rcx, rbx
call fcn.140143f40
mov edx, dword [rsp + 0x70]
mov r8, rbp
mov rcx, qword [rbx]
mov r9d, edx
call fcn.140142e30
mov edi, r15d
mov rcx, rbp
call fcn.1401b40e0
mov rbp, qword [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x80]
test eax, eax
cmove edi, r12d
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret

Function at 0x140143ca0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbp, rcx
xor edx, edx
xor ecx, ecx
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movsxd rsi, eax
test eax, eax
je 0x140143d49
mov eax, 2
mov qword [rsp + 0x30], rdi
mul rsi
lea rdx, [0x14020c628]
cmovo rax, rbx
mov rcx, rax
call fcn.14016ef1c
mov rdi, rax
test rax, rax
je 0x140143d32
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140143d2a
cmp word [rdi], 0
jne 0x140143d10
xor ebx, ebx
jmp 0x140143d1a
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140143d10
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1400c3720
xor ebx, ebx
mov rcx, rdi
call fcn.14016ea38
mov eax, ebx
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140144580
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
mov dword [rsp + 0x40], edi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14014463c
mov ecx, esi
call fcn.1401b4590
mov qword [rbx + 0x40], rax
test rax, rax
je 0x14014463c
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14014463c
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x50], edi
lea rdx, [0x14023312c]
mov qword [rsp + 0x58], rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14014463c
mov rax, qword [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x18], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x28], xmm0
mov eax, dword [rax + 0x30]
mov dword [rbx + 0x38], eax
cmp dword [rbx + 8], 0xfeef04bd
sete dil
mov dword [rbx + 0x58], edi
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbx + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140145820
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1401b1bc0
xor eax, eax
mov dword [rsp + 0x70], 0x68
xor ebx, ebx
mov qword [rsp + 0x50], rax
lea rcx, str.kernel32
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x100], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x1401458ad
mov rcx, rax
call qword [fcn.140005fb0]
lea rcx, [rsp + 0x100]
call rbp
cmp qword [rdi + 0x18], 8
jb 0x1401458b7
mov rdi, qword [rdi]
cmp qword [rsi + 0x18], 8
jb 0x1401458c1
mov rsi, qword [rsi]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14014591d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140145925
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [rsp + 0x100], 0
je 0x140145968
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140145968
mov rcx, rax
call qword [fcn.140005fb0]
mov rcx, qword [rsp + 0x100]
call rdi
test ebx, ebx
je 0x14014598e
cmp ebx, 2
jb 0x140145987
cmp ebx, 3
jbe 0x140145980
cmp ebx, 5
jne 0x140145987
lea eax, [rbx - 0x1b]
jmp 0x140145990
mov eax, 0xffffffe4
jmp 0x140145990
mov eax, 0xffffffe5
jmp 0x140145990
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140145f40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
or rbx, 0xffffffffffffffff
xor esi, esi
cmp qword [rdx + 0x18], 8
mov r12, r8
mov rdi, rdx
mov r15, rcx
jb 0x140145f65
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140146181
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x78], r14
call fcn.14016ea40
mov r14, rax
test rax, rax
je 0x14014616e
cmp qword [rdi + 0x18], 8
jb 0x140145fb1
mov rdi, qword [rdi]
mov rcx, qword [r15]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14014616e
cmp dword [rsp + 0x68], 1
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x70], rbp
jne 0x14014601d
test ecx, ecx
je 0x14014601d
lea eax, [rcx + 4]
mov ecx, eax
mov ebp, eax
call fcn.14016ea40
mov rdi, rax
test rax, rax
je 0x140146015
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.1401b1bc0
mov ecx, dword [rsp + 0x60]
jmp 0x140146022
mov ecx, dword [rsp + 0x60]
xor edi, edi
jmp 0x140146022
mov rdi, qword [rsp + 0x60]
mov eax, dword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
sub eax, 1
je 0x1401460ff
sub eax, 1
je 0x140146092
cmp eax, 2
je 0x140146048
mov ebx, 0xffffffe1
jmp 0x140146159
mov ecx, reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.14016ea40
mov rsi, rax
test rax, rax
je 0x140146159
mov ecx, dword [r14]
mov r8d, 0xa
mov rdx, rax
call fcn.1401c28f4
cmp word [rax], 0
jne 0x140146080
xor ebx, ebx
mov rdx, rax
jmp 0x14014614c
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140146080
mov rdx, rax
jmp 0x14014614c
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
je 0x140146159
mov eax, 2
mul rdi
cmovo rax, rbx
mov rcx, rax
call fcn.14016ea40
mov rsi, rax
test rax, rax
je 0x140146159
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140146159
cmp word [rsi], 0
jne 0x1401460f0
xor ebx, ebx
mov rdx, rsi
jmp 0x14014614c
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1401460f0
mov rdx, rsi
jmp 0x14014614c
test ecx, ecx
jne 0x140146117
xor r8d, r8d
lea rdx, [0x1402325f4]
mov rcx, r12
call fcn.1400c3720
jmp 0x140146159
mov r8d, ecx
mov rdx, r14
mov rcx, rdi
call fcn.1401aff40
mov rcx, r14
call fcn.14016ea38
mov r14, rdi
cmp word [rdi], si
jne 0x140146140
xor ebx, ebx
jmp 0x140146149
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140146140
mov rdx, rdi
mov r8, rbx
mov rcx, r12
call fcn.1400c3720
xor ebx, ebx
mov rcx, r14
call fcn.14016ea38
test rsi, rsi
je 0x14014616e
mov rcx, rsi
call fcn.14016ea38
mov eax, ebx
mov r14, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140147630
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, qword [r8 + 0x18]
mov rdi, r8
mov r13, qword [r8 + 0x10]
mov r12, rdx
mov rsi, rcx
cmp rbp, 8
jb 0x140147666
mov r8, qword [r8]
lea r9, [r13*2]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x1401476a4
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x140147690
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, rdx
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r14, qword [rcx + rax*8]
lea r15, [rcx + rax*8]
cmp r14, rsi
jne 0x1401476d2
mov rax, rsi
jmp 0x1401476d9
mov rax, qword [r15 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x140147747
lea rcx, [rbx + 0x10]
cmp rbp, 8
jb 0x1401476ed
mov r8, qword [rdi]
jmp 0x1401476f0
mov r8, rdi
cmp qword [rcx + 0x18], 8
lea rdx, [rcx + 0x10]
jb 0x1401476fe
mov rcx, qword [rcx]
mov rdx, qword [rdx]
mov r9, r13
call fcn.1400ca4f0
test eax, eax
je 0x140147712
mov rbx, qword [rbx]
jmp 0x1401476c8
cmp qword [rbx + 0x28], 8
lea r8, [rbx + 0x10]
lea r9, [r8 + 0x10]
jb 0x140147724
mov r8, qword [r8]
cmp rbp, 8
jb 0x14014772d
mov rdi, qword [rdi]
mov r9, qword [r9]
mov rdx, r13
mov rcx, rdi
call fcn.1400ca4f0
test eax, eax
cmovne rbx, rsi
mov qword [r12], rbx
jmp 0x14014774b
mov qword [r12], rsi
mov rbx, qword [rsp + 0x50]
mov rax, r12
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140147c70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rsi
mov rdi, r9
mov r14, r8
mov r12, rdx
mov r15, rcx
mov r11, qword [r8 + 0x10]
mov r10, qword [r8 + 0x18]
cmp r10, 8
jb 0x140147cb2
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
lea r9, [r11 + r11]
test r9, r9
je 0x140147ce5
movabs rbx, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, r9
jb 0x140147cd1
mov r13, qword [r15 + 0x30]
and r13, rdx
shl r13, 4
mov rax, qword [r15 + 0x18]
mov rsi, qword [rax + r13]
cmp rsi, qword [r15 + 8]
jne 0x140147d04
mov rbx, qword [r15 + 8]
jmp 0x140147d0c
mov rbx, qword [rax + r13 + 8]
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x140147d8f
mov rbx, qword [rbx + 8]
lea r8, [rbx + 0x10]
lea r9, [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140147d27
mov r8, qword [r8]
cmp r10, 8
jb 0x140147d32
mov rcx, qword [r14]
jmp 0x140147d35
mov rcx, r14
mov r9, qword [r9]
mov rdx, r11
call fcn.1400ca4f0
test eax, eax
je 0x140147d53
cmp rbx, rsi
mov r10, qword [r14 + 0x18]
mov r11, qword [r14 + 0x10]
jne 0x140147d11
jmp 0x140147d8f
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [r15 + 0x10]
lea rcx, [rdi + 0x10]
call fcn.140147be0
mov rcx, rdi
call fcn.140005f10
mov qword [r12], rbx
mov byte [r12 + 8], 0
mov rax, r12
jmp 0x140147e29
mov qword [rsp + 0x70], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x140147dc9
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r15 + 0x18]
add rdx, r13
mov rax, qword [rdx]
cmp rax, qword [r15 + 8]
jne 0x140147de7
mov qword [rdx], rdi
mov rax, qword [r15 + 0x18]
mov qword [rax + r13 + 8], rdi
jmp 0x140147e13
cmp rax, rbx
jne 0x140147df1
mov qword [rdx], rdi
jmp 0x140147e13
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x140147e13
mov rdx, qword [r15 + 0x18]
mov rax, qword [rdx + r13 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r13 + 8], rcx
mov rcx, r15
call fcn.140147e50
nop
mov qword [r12], rdi
mov byte [r12 + 8], 1
mov rax, r12
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret