joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018c40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
mov byte [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x50]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x140018ce2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140018cd6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
movzx ecx, byte [rsp + 0x48]
test eax, eax
cmovne ecx, ebx
mov byte [rsp + 0x48], cl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp byte [rsp + 0x48], 0
je 0x140018e1d
mov dword [rsp + 0x58], 0x1a
mov dword [rsp + 0x5c], 0x1c
mov dword [rsp + 0x60], 0x23
lea rbx, [rsp + 0x58]
xor edi, edi
nop dword [rax]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov edx, dword [rbx]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140018d77
lea r8, str.MicrosoftNetworkConnectionsPbk_rasphone.pbk
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14008bd90
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140018d8b
add rbx, 4
lea rax, [rsp + 0x64]
cmp rbx, rax
je 0x140018e1d
jmp 0x140018d10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x70]
lea r8, [0x1400b7620]
lea rdx, str.NumCustomPolicy
lea rcx, str.Windscribe_IKEv2
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x140018e04
lea r9, [rsp + 0x70]
lea r8, str.020000000400000005000000080000000500000005000000
lea rdx, str.CustomIPSecPolicies
lea rcx, str.Windscribe_IKEv2
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x140018e04
lea r9, [rsp + 0x70]
lea r8, [0x1400b76e0]
lea rdx, str.IpNBTFlags
lea rcx, str.Windscribe_IKEv2
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x140018e04
mov bl, 1
jmp 0x140018e1f
call fcn.140005b40
lea r8, [rsp + 0x70]
lea rdx, str.Phonebook_is_not_accessible:__ls
mov rcx, rax
call fcn.14001ed30
xor bl, bl
cmp byte [rsp + 0x48], 0
je 0x140018e2c
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140018e3d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140071b40
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140019320
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov ebx, r8d
mov dword [rsp + 0x50], ebp
mov rdi, rdx
mov rsi, rcx
test r8d, r8d
je 0x140019378
nop dword [rax + rax]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001938f
mov ecx, dword [rsp + 0x50]
add rdi, rcx
sub ebx, ecx
jne 0x140019350
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor al, al
jmp 0x14001937a

Function at 0x1400193a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov ebx, r8d
mov dword [rsp + 0x50], ebp
mov rdi, rdx
mov rsi, rcx
test r8d, r8d
je 0x1400193f8
nop dword [rax + rax]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001940f
mov ecx, dword [rsp + 0x50]
add rdi, rcx
sub ebx, ecx
jne 0x1400193d0
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor al, al
jmp 0x1400193fa
Function at 0x14001e540
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x458
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
lea rdi, [r11 + 0x18]
call fcn.140004ce0
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov r9, 0xffffffffffffffff
mov r8d, 0x400
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.14008a6a8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140071b40
add rsp, 0x458
pop rdi
pop rbx
ret

Function at 0x14001f7d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001f8a4
cmp byte [rcx + 0x72], 0
je 0x14001f8a4
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x14001f8a0
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x14001f866
sub eax, 1
je 0x14001f86a
cmp eax, 2
jne 0x14001f8a0
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140071b40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001f897
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14008d7c0
cmp rdi, rax
jne 0x14001f8a0
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14001f84e
xor al, al
jmp 0x14001f84e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140071b40
add rsp, 0x60
pop rbx
ret
Function at 0x14001fcb0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14001fce1
xor eax, eax
jmp 0x14001fe2f
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14001fd1e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14001fd1e
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14001fe2f
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x14001fe24
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001fd65
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001fd8e
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14008d064
cmp ax, di
je 0x14001fe24
movzx edi, si
jmp 0x14001fe24
lea r8, [rsp + 0x48]
mov word [rsp + 0x40], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x42]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
je 0x14001fde4
sub eax, 1
je 0x14001fde4
cmp eax, 2
jne 0x14001fe24
movzx ecx, word [rsp + 0x40]
jmp 0x14001fd71
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x14001fe11
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call fcn.14008d7c0
cmp rbp, rax
jne 0x14001fe24
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
movzx eax, si
jne 0x14001fe27
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140071b40
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021780
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
mov dword [rcx], 0x3e80
mov qword [rcx + 8], rbp
xor eax, eax
mov qword [rcx + 0x10], rbp
xorps xmm0, xmm0
mov qword [rcx + 0x18], rbp
mov rsi, rcx
mov qword [rcx + 0x20], rbp
mov qword [rcx + 0x28], rbp
mov byte [rcx + 0x28], bpl
mov qword [rcx + 0x38], rbp
mov qword [rcx + 0x40], select
mov edi, dword [rcx]
test edi, edi
mov qword [rsp + 0x50], rax
mov eax, 0x1000
mov byte [rcx + 0x48], bpl
cmove edi, eax
mov ebx, dword [0x1400f8c30]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x40], 0x18
lea eax, [rbx + 1]
mov dword [rsp + 0x50], 1
mov dword [0x1400f8c30], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, ebx
lea rdx, str..PipeWindscribeServiceInternalPipe._08x._lu
mov r8d, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea r9d, [rbp + 1]
mov dword [rsp + 0x30], 0x1d4c0
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], edi
mov edx, 0x40000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
test rax, rax
je 0x1400218be
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 0x40000080
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400218c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbp
mov rdi, rbp
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rax
mov rax, rsi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140071b40
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140021c90
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
add rcx, 0x28
cmp qword [rbx + 0x40], 0x10
jb 0x140021ca8
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x38], 0
xor r9d, r9d
mov byte [rcx], 0
xor r8d, r8d
xor ecx, ecx
mov byte [rbx + 0x48], 0
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x140021a80]
mov qword [rbx + 0x20], rax
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x18], rax
add rsp, 0x30
pop rbx
ret
Function at 0x1400385c0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 1
cmp qword [rdx + 0x18], 8
jb 0x1400385f7
mov rdx, qword [rdx]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x140038641
call fcn.140005b40
cmp qword [rbx + 0x18], 8
jb 0x140038625
mov rbx, qword [rbx]
mov r9d, esi
mov r8, rbx
lea rdx, str.Error_opening_registry_key__s:__d
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x1400386cd
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003864e
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test eax, eax
je 0x140038695
call fcn.140005b40
cmp qword [rdi + 0x18], 8
jb 0x14003866e
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x140038678
mov rbx, qword [rbx]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, rbx
lea rdx, str.Error_deleting_registry_key_value__s____s:__ld
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x1400386cd
call fcn.140005b40
cmp qword [rdi + 0x18], 8
jb 0x1400386a4
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x1400386ae
mov rbx, qword [rbx]
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rbx
lea rdx, str.Successfully_deleted_registry_key_value__s____s:__ld
mov rcx, rax
call fcn.14001ed30
mov bl, 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400386dd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400386f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 1
cmp qword [rdx + 0x18], 8
jb 0x14003872f
mov rdx, qword [rdx]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x140038776
call fcn.140005b40
cmp qword [rbx + 0x18], 8
jb 0x14003875d
mov rbx, qword [rbx]
mov r9d, esi
mov r8, rbx
lea rdx, str.Error_opening_registry_key__s:__d
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x1400387e1
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140038783
mov rdx, qword [rdi]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x1400387df
call fcn.140005b40
cmp qword [rbx + 0x18], 8
jb 0x1400387b8
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x1400387c2
mov rdi, qword [rdi]
mov dword [rsp + 0x20], esi
mov r9, rbx
mov r8, rdi
lea rdx, str.Property__s_not_found_for_key__s:__d
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x1400387e1
mov bl, 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400387f1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140038810
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov dword [r11 + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x60
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
mov qword [r11 + 0x10], r14
lea rax, [r11 + 0x10]
mov qword [r11 - 0x28], rax
mov byte [rsp + 0x58], 1
cmp qword [rdx + 0x18], 8
jb 0x14003884e
mov rdx, qword [rdx]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp eax, 2
jne 0x1400388b3
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14003887e
mov rdx, qword [rbx]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x1400388e2
call fcn.140005b40
cmp qword [rbx + 0x18], 8
jb 0x1400388c6
mov rbx, qword [rbx]
mov r9d, esi
mov r8, rbx
lea rdx, str.Error_creating_opening_registry_key__s:__d
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x140038992
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400388ef
mov rdx, qword [rdi]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x140038957
call fcn.140005b40
cmp qword [rdi + 0x18], 8
jb 0x140038930
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x14003893a
mov rbx, qword [rbx]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, rbx
lea rdx, str.Error_setting_registry_key__s____s:__ld
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x140038992
call fcn.140005b40
mov rcx, rax
cmp qword [rdi + 0x18], 8
jb 0x140038969
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x140038973
mov rbx, qword [rbx]
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, rbx
lea rdx, str.Successfully_set_registry_key__s____s:__lu
call fcn.14001ed30
mov bl, 1
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400389a5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400389c0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rdi, r9
mov rbx, r8
mov rbp, rdx
mov r14, rcx
xor r15d, r15d
mov qword [r11 - 0x38], r15
lea rax, [r11 - 0x38]
mov qword [r11 - 0x30], rax
mov byte [rsp + 0x60], 1
lea rax, [r11 - 0x38]
mov qword [r11 - 0x68], rax
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp eax, 2
jne 0x140038a4b
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x140038a70
call fcn.140005b40
mov r9d, esi
mov r8, rbp
lea rdx, str.Error_creating_opening_registry_key__s:__d
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x140038b18
mov eax, dword [rdi + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140038a87
mov rax, qword [rdi]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140038a94
mov rdx, qword [rbx]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x140038ae3
call fcn.140005b40
cmp qword [rbx + 0x18], 8
jb 0x140038ac6
mov rbx, qword [rbx]
mov dword [rsp + 0x20], esi
mov r9, rbx
mov r8, rbp
lea rdx, str.Error_setting_registry_key__s____s:__ld
mov rcx, rax
call fcn.14001ed30
xor bl, bl
jmp 0x140038b18
call fcn.140005b40
cmp qword [rdi + 0x18], 8
jb 0x140038af2
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x140038afc
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rbp
lea rdx, str.Successfully_set_registry_key__s____s:__s
mov rcx, rax
call fcn.14001ed30
mov bl, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140038b28
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140039690
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
sub rsp, 0x288
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdx, rbx
test eax, eax
jne 0x1400396d2
lea rcx, str.removed__s_n
call fcn.1400398f0
mov al, 1
jmp 0x140039883
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400396fa
cmp eax, 2
jmp 0x14003987b
mov qword [rsp + 0x2b0], rbp
mov rcx, rbx
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
xor ebp, ebp
cmp word [rbx + rcx*2 - 2], 0x5c
lea rdi, [rbx + rcx*2]
je 0x140039733
mov eax, 0x5c
mov word [rdi], ax
add rdi, 2
mov word [rdi], bp
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14003984e
nop dword [rax]
nop word [rax + rax]
mov word [rdi], bp
mov ecx, 0x208
mov rax, rbx
nop dword [rax + rax]
cmp word [rax], bp
je 0x14003979f
add rax, 2
sub rcx, 1
jne 0x140039790
mov eax, 0x208
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x1400397ff
mov edx, 0x208
lea rcx, [rbx + rax*2]
sub rdx, rax
je 0x1400397f1
lea r9, [rsp + 0x60]
mov eax, 0x7ffffffe
sub r9, rcx
nop dword [rax + rax]
test rax, rax
je 0x1400397f1
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400397f1
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400397d0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov rdx, rbx
mov rcx, rsi
call fcn.140039690
test al, al
je 0x14003984e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140039780
mov word [rdi - 2], bp
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdi, qword [rsp + 0x280]
test eax, eax
mov rbp, qword [rsp + 0x2b0]
je 0x1400396cb
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140071b40
add rsp, 0x288
pop rsi
pop rbx
ret
Function at 0x14003c300
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ebp, ebp
mov qword [rcx + 0x38], rbp
mov byte [rcx + 0x40], bpl
add rcx, 0x48
lea edx, [rbp + 2]
call fcn.14004ffbc
nop
lea rcx, [rsi + 0x98]
call fcn.140052348
nop
mov byte [rsi + 0xe0], bpl
lea rcx, [rsi + 0xe1]
call fcn.14003b760
nop
mov qword [rsi + 0xe8], rbp
lea rbx, [rsi + 0xf0]
mov qword [rsp + 0x60], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov ecx, 0x80
call fcn.140071a00
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rbx, [rsi + 0x100]
mov qword [rsp + 0x60], rbx
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
lea ecx, [rbp + 0x40]
call fcn.140071a00
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [0x1400fa0d8], rsi
lea rcx, [rsi + 0xe1]
call fcn.14003b780
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rsi
lea r8, [0x14003d5a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x110], rax
lea edx, [rbp - 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret