joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ec30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x14002ec3e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x14002ec50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x14002ec5e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
add rsp, 0x28
ret

Function at 0x14002ec80
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdi, [rsp + 0x70]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x14002ecc0
xor esi, esi
jmp 0x14002ed12
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call fcn.140120930
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140028910
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.14002b410
mov rcx, rsi
mov rdx, rbx
call fcn.140028aa0
mov rcx, rbx
call fcn.1400289c0
mov rcx, rdi
call fcn.1400289c0
mov sil, 1
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002ed30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002ed9a
movzx eax, word [rsp + 0x70]
test ax, ax
je 0x14002ed9a
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call fcn.140120930
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140028910
jmp 0x14002edee
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.140028890
mov rcx, rdi
call fcn.14002ec80
test al, al
je 0x14002edc2
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400288d0
jmp 0x14002ede4
lea rax, [0x14014ef70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140028910
lea rcx, [rsp + 0x50]
call fcn.1400289c0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14011a370
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x14002f980
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 7
mov r15, rcx
jbe 0x14002f9ad
mov r15, qword [rdi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002f9d8
mov bl, 1
test al, 0x10
jne 0x14002faaa
test r14, r14
je 0x14002f9d1
mov dword [r14], 0xfffffff7
xor ebx, ebx
jmp 0x14002faaa
lea rsi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.140029680
mov rax, qword [rdi + 0x10]
cmp qword [rsp + 0x38], rax
jne 0x14002fa41
test rax, rax
je 0x14002fa33
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x14002fa05
mov rcx, qword [rdi]
cmp qword [rsp + 0x40], 7
jbe 0x14002fa12
mov rsi, qword [rsp + 0x28]
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebx, word [rsi + rdx*2]
cmp bx, word [rcx + rdx*2]
jne 0x14002fa41
add rdx, 1
cmp rax, rdx
jne 0x14002fa20
test r14, r14
je 0x14002fa9e
mov dword [r14], 0xfffffffc
jmp 0x14002fa9e
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.14002f980
test al, al
je 0x14002fa9e
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x14002faa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x14002fa8f
cmp qword [rdi + 0x18], 7
jbe 0x14002fa7c
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fa8f
and eax, 0x10
jne 0x14002faa0
test r14, r14
je 0x14002fa9e
mov ecx, esi
call fcn.14004fc40
mov dword [r14], eax
xor ebx, ebx
lea rcx, [rsp + 0x28]
call fcn.1400289c0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011a370
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14002fb90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov esi, r8d
mov rbx, rdx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 7
jbe 0x14002fbb6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.14000fba0
mov rcx, qword [rsp + 0x40]
mov edi, 0xffffffff
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14002fc3c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rbx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb eax, eax
cmp dword [rsp + 0x3c], esi
mov edi, 0xffffffff
cmove edi, esi
or edi, eax
mov rcx, qword [rsp + 0x40]
add rcx, 1
cmp rcx, 2
jb 0x14002fc75
call fcn.140047f50
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov r9, rax
call fcn.14004a9e0
mov rcx, qword [rsp + 0x40]
call fcn.14004a970
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011a370
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002fe30
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x14002fe3e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14002fe60
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.14002b4f0
test al, al
jne 0x14002fee6
mov rcx, rsi
call fcn.14002b4f0
test al, al
jne 0x14002fee6
cmp qword [rdi + 0x10], 0x103
ja 0x14002fee6
cmp qword [rsi + 0x10], 0x103
ja 0x14002fee6
cmp qword [rsi + 0x18], 7
jbe 0x14002fea3
mov rsi, qword [rsi]
movzx r8d, bl
cmp qword [rdi + 0x18], 7
jbe 0x14002feb1
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14002fee6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fee6
mov dil, 1
test al, 1
je 0x14002fee8
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002fee8
xor edi, edi
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002ff00
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0x103
ja 0x14002ffaa
cmp qword [rdi + 0x10], 0x103
ja 0x14002ffaa
cmp qword [rdi + 0x18], 7
mov rdx, rdi
jbe 0x14002ff37
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14002ff44
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x14002ffac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14002ff6c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002ffa2
and eax, 0x10
je 0x14002ffa2
mov bpl, 1
mov r8b, 1
xor r9d, r9d
mov rcx, rsi
mov rdx, rdi
call fcn.14002e700
test al, al
je 0x14002ffa2
mov dl, 1
mov rcx, rsi
call fcn.14002e210
test al, al
jne 0x14002ffac
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14002b4f0
test al, al
jne 0x140044741
mov rcx, rsi
call fcn.14002b4f0
test al, al
je 0x14004474a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14002ff00
Function at 0x1400308f0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
movdqa xmmword [rsp + 0x50], xmm6
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x14017cc10], 0
je 0x14003091d
xor esi, esi
jmp 0x140030a3e
mov ecx, 0x30
call fcn.14011a310
mov rsi, rax
mov ecx, 0x20
call fcn.14011a310
mov qword [rsi], rax
lea rcx, [rax + 0x20]
mov qword [rsi + 0x10], rcx
mov edx, 7
movq xmm6, rdx
pslldq xmm6, 8
movdqu xmmword [rax + 0x10], xmm6
mov word [rax], 0
mov qword [rsi + 8], rcx
mov qword [rsi + 0x20], 0
mov ecx, 0x60
call fcn.14011a310
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov qword [rsi + 0x18], rax
mov word [rax + 0x18], 0x101
mov qword [rsi + 0x28], 1
mov qword [0x14017cc10], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
movdqu xmmword [rsp + 0x38], xmm6
mov word [rsp + 0x28], 0
mov rcx, rax
call fcn.140120930
mov rbx, rax
cmp rax, 7
jbe 0x1400309cb
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r9, rdi
call fcn.140005da0
jmp 0x1400309ea
mov qword [rsp + 0x38], rbx
mov r8, rbx
add r8, rbx
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.14011d3a0
mov word [rsp + rbx*2 + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140030a70
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x140030a3b
add rax, 1
js 0x140030a5a
mov rcx, qword [rsp + 0x28]
add rax, rax
cmp rax, 0x1000
jb 0x140030a36
test cl, 0x1f
jne 0x140030a5a
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140030a5a
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x140030a5a
call fcn.14011a350
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
call fcn.140120f80
ud2

Function at 0x140030a70
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rcx, qword [0x14017b818]
xor rcx, rsp
mov qword [rsp + 0x50], rcx
mov ecx, 7
movq xmm0, rcx
pslldq xmm0, 8
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], 0
lea rdi, [rsp + 0x30]
mov edx, 3
mov rcx, rax
mov r8, rdi
call fcn.14003cfd0
cmp qword [rsp + 0x40], 0
je 0x140030b02
mov dword [rsp + 0x2c], 0
cmp qword [rsp + 0x48], 7
jbe 0x140030ad9
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov edx, dword [rsp + 0x2c]
mov rcx, rsi
mov r8, rax
call fcn.140030590
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140030b46
add rax, 1
js 0x140030b5b
mov rcx, qword [rsp + 0x30]
add rax, rax
cmp rax, 0x1000
jb 0x140030b41
test cl, 0x1f
jne 0x140030b5b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140030b5b
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x140030b5b
call fcn.14011a350
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011a370
nop
add rsp, 0x58
pop rdi
pop rsi
ret
call fcn.140120f80
ud2
Function at 0x1400367b0
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm8
movapd xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov r14, r8
mov edi, ecx
cvtsi2sd xmm0, edx
call fcn.140128cd0
movapd xmm6, xmm0
mov rax, qword [r14]
mov dword [rax + 4], edi
mov rax, qword [r14]
mov rbx, qword [r14 + 8]
sub rbx, rax
sar rbx, 2
lea rcx, [rbx - 1]
cmp rcx, 3
jb 0x14003688e
add rbx, 0xfffffffffffffffd
mov esi, 8
movdqa xmm8, xmmword [0x14014efe0]
movapd xmm7, xmmword [0x14014eff0]
nop dword [rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, edi
call fcn.140128cd0
movapd xmm1, xmm6
subsd xmm1, xmm0
movq xmm2, rbx
punpckldq xmm2, xmm8
subpd xmm2, xmm7
pshufd xmm3, xmm2, 0x4e
addpd xmm3, xmm2
divsd xmm1, xmm3
addsd xmm0, xmm1
call fcn.140129200
call fcn.140126c00
cvttsd2si eax, xmm0
cmp edi, eax
jl 0x14003686a
add edi, 1
mov eax, edi
mov rcx, qword [r14]
mov dword [rcx + rsi], eax
add rsi, 4
mov edi, eax
add rbx, 0xffffffffffffffff
jne 0x140036820
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
sub rcx, rax
sar rcx, 2
add rcx, 0xffffffffffffffff
mov edx, dword [0x14014f4e0]
mov dword [rax + rcx*4], edx
mov rcx, r14
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14005c9f0
Function at 0x14003a900
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14003a92f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003a932
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14003a953
test bl, bl
je 0x14003a99c
cmp byte [rdi + 8], 0
je 0x14003a98e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003a991
cmp byte [rdi + 8], 0
je 0x14003a964
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003a967
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003a97d
xor edi, edi
jmp 0x14003aa18
cmp byte [rdi + 8], 0
je 0x14003a9d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003a9d3
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x14003a9ad
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003a9b0
mov rcx, qword [rdi]
call sub.KERNEL32.dll_GetProcessId
mov rcx, qword [0x14017ccc0]
mov dil, 1
test rcx, rcx
je 0x14003aa18
mov edx, eax
mov r8d, esi
call fcn.140053df0
jmp 0x14003aa18
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14003a9e6
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x14003a9f7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003a9fa
mov rcx, qword [rdi]
call sub.KERNEL32.dll_GetProcessId
mov rcx, qword [0x14017ccc0]
test rcx, rcx
je 0x14003aa15
mov edx, eax
mov r8d, esi
call fcn.140053df0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14011a370
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003afd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14003b790
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], 0
mov r9d, 0x20019
or r9d, dword [rcx + 8]
mov rcx, qword [rcx]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14003b885
mov dword [rsp + 0x6c], 0
mov rcx, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14003b885
mov ebx, 0x91
cmp dword [rsp + 0x6c], 0
jne 0x14003b885
mov ebx, dword [rdi + 8]
mov rdi, qword [rdi]
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003b877
xor r9d, r9d
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
call rax
jmp 0x14003b883
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14011a370
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003b8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003b92b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14003b92b
cmp dword [rsp + 0x38], 4
jne 0x14003b92b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011a370
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14003b950
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add rsp, 0x38
ret
Function at 0x14003b980
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, r8
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x4c], ntohl
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x3c], 8
mov rcx, qword [rcx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003b9fe
mov eax, dword [rsp + 0x4c]
or eax, 8
mov edi, 0x3f4
cmp eax, 0xb
jne 0x14003b9fe
cmp dword [rsp + 0x3c], 8
jne 0x14003b9fe
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
xor edi, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011a370
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x14003ba20
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1050
call fcn.14011ac70
sub rsp, rax
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x1048], rax
mov rsi, r8
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x840]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003bb60
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14003bac1
mov edi, 0x3f4
cmp eax, 1
jne 0x14003bb60
lea rcx, [rsp + 0x840]
call fcn.140120930
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14003bb15
lea r9, [rsp + 0x840]
jmp 0x14003bb08
lea rcx, [rsp + 0x840]
lea rdx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x14003bb60
lea rcx, [rsp + 0x40]
call fcn.140120930
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14003bb35
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140005da0
jmp 0x14003bb5e
mov rbx, rsi
cmp rax, 8
jb 0x14003bb21
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x14003bb50
mov rbx, rsi
cmp rax, 8
jb 0x14003bb41
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14011d3a0
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1048]
xor rcx, rsp
call fcn.14011a370
mov eax, edi
add rsp, 0x1050
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003bb80
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
mov rcx, qword [rcx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x14003bbe0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x14003bc10
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140120930
lea eax, [rax + rax]
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov r9d, 1
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003be60
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx], 0
je 0x14003bfa2
cmp dword [rsi + 8], 0
js 0x14003bfa2
lea r15, [rsi + 0x10]
mov rbx, qword [rsi + 0x28]
mov edx, ebx
mov dword [rsp + 0x44], ebx
lea r14, [rsi + 0x30]
mov eax, dword [rsi + 0x38]
mov rdi, qword [rsi + 0x30]
sub eax, edi
add eax, 0xfffffffe
and eax, 0xfffffffe
lea r12, [rsi + 0x48]
mov dword [rsi + 0x48], eax
lea r13, [rsi + 0x4c]
mov rcx, r15
call fcn.14003e260
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x14003bf9e
mov edx, dword [rsi + 0x48]
add rdx, 1
shr rdx, 1
add edx, 1
mov rdi, qword [rsi + 0x30]
mov rax, qword [rsi + 0x38]
sub rax, rdi
mov rcx, rax
sar rcx, 1
cmp rcx, rdx
jae 0x14003bf51
mov qword [rsp + 0x48], r14
mov word [rsp + 0x42], 0
lea rax, [rsp + 0x42]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x48]
mov rcx, r14
call fcn.14003c360
mov rdi, qword [rsi + 0x30]
mov rax, qword [rsi + 0x38]
sub rax, rdi
add eax, 0xfffffffe
and eax, 0xfffffffe
mov dword [rsi + 0x48], eax
cmp dword [rsp + 0x44], ebx
mov edx, 0x4000
cmovne edx, ebx
mov dword [rsp + 0x44], edx
mov rcx, r15
call fcn.14003e260
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14003bfe6
lea rax, [rsi + 0x10]
cmp qword [rsi + 0x28], 8
jb 0x14003bfb0
mov rax, qword [rax]
mov word [rax], 0
mov rax, qword [rsi + 0x30]
mov word [rax], 0
mov dword [rsi + 0x48], 0
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r12]
add rax, 1
and rax, 0xfffffffffffffffe
mov rcx, qword [r14]
mov word [rcx + rax], 0
mov sil, 1
jmp 0x14003bfc7

Function at 0x14003c0e0
Capabilities:
Query or enumerate registry value

Disassembly:
add dword [rcx + 8], 0xffffffff
jmp fcn.14003be60