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

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005230a8], 0
je 0x40a71e
cmp word [0x005233b8], 0xd7b2
jne 0x40a6b3
cmp dword [0x005233c0], 0
jbe 0x40a6b3
lea rcx, [0x005233b0]
call qword [0x005233d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0050d698]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040a754]
call fcn.0040b8d0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a740
cmp byte [0x0050c052], 0
jne 0x40a740
xor rcx, rcx
lea rdx, [0x0050d698]
lea r8, [0x0050d5a0]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e110
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00527c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00527cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00527c88], al
cmp byte [0x00527c88], 0
je 0x40e1af
lea rcx, [0x0040e1b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e1ce]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00527c70], rax
lea rcx, [0x0040e1b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e1ec]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00527c78], rax
lea rcx, [0x0040e1b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e20a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00527c80], rax
add rsp, 0x28
ret
Function at 0x40e440
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040ab20
movzx rax, word [rbp + 0x4e]
cmp word [0x0050dd48], ax
ja 0x40e528
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0050e148]
mov word [rbp + 0x4e], ax
ja 0x40e528
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40e527
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0050dd48]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40e4e1
mov ecx, eax
sub ecx, 1
jmp 0x40e522
lea rdx, [0x0050dd48]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40e503
mov r8d, eax
add r8d, 1
jmp 0x40e522
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0050dd50]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040e2e0
jmp 0x40e527
cmp ecx, r8d
jae 0x40e4b0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40e60a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e60a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040c120
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040c120
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040c120
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040e664]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040e674]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040c5a0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040ac00
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40e880
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00527c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00527cb8], ax
jne 0x40e8eb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00527cba]
mov r8d, 0x55
call fcn.0040c120
lea rcx, [0x00527c90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e9f7
lea rcx, [0x00527c90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040ab20
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e9b0
cmp byte [0x00527c88], 0
je 0x40e944
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040e710
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040b150
jmp 0x40e9b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040e440
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b150
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40e9b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40e98f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040ea44]
call fcn.0040c390
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040e440
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040c390
lea rcx, [0x00527c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00527cb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040c050
lea rcx, [0x00527cba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00527c90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040ac00
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40f400
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040acb0
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040c120
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040c480
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040f220
test al, al
jne 0x40f4ce
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040c120
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040c480
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040f220
test al, al
jne 0x40f4ce
mov rcx, qword [rbp + 0x20]
call fcn.0040ab20
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ac00
lea rcx, [rbp + 0x70]
call fcn.0040ab20
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40f540
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040acb0
mov rcx, qword [rbp + 0x90]
call fcn.0040acb0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040ab20
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040b1d0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40f5e3
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40f61d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40f616
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040c690
jmp 0x40f61d
sub eax, 1
test eax, eax
jne 0x40f5e8
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040f110
cmp qword [rbp + 0x68], 0
je 0x40f65b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040f2c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040b150
jmp 0x40f6f7
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040e880
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040f2c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040b150
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40f6d0
cmp byte [0x00527c88], 0
jne 0x40f6d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040e880
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040f2c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b150
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40f6f7
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040f400
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040b150
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040ac00
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040ac00
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x410320
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x410340
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x410364
cmp eax, 1
jae 0x410369
cmp ecx, 5
jbe 0x410375
mov dword [0x005239b0], 0x7f
jmp 0x41037f
mov dword [0x005239b0], 0x409
add rsp, 0x28
ret
Function at 0x4105e0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.004105d0
mov ebx, eax
test ebx, ebx
je 0x41062b
cmp dword [0x0050e5e8], 0xffffffff
jne 0x410604
mov ecx, 0xe2
call fcn.0040a920
mov ecx, ebx
call fcn.004105b0
test rax, rax
jne 0x41061d
mov ecx, 0xe2
call fcn.0040a920
jmp 0x41062b
mov ecx, dword [0x0050e5e8]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x410680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x1ac]
test rax, rax
je 0x4106c0
cmp dword [0x0050e5e8], 0xffffffff
je 0x4106c0
mov ecx, dword [0x0050e5e8]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x4106c0
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x0050e5e8]
xor rdx, rdx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x410700
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00527d64], 0
je 0x41073b
mov ecx, dword [0x0050e5e8]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41074f
call fcn.004105e0
mov ecx, dword [0x0050e5e8]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41074f
mov rax, qword [0x00527d98]
jmp 0x41074f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0050e5e8]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42af20
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42af47
movzx rax, word [rbp + 0x2c]
jmp 0x42af49
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x42c1f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.0042bf90
mov ebx, eax
mov rax, qword [0x00522310]
cmp byte [rax], 0
je 0x42c328
mov rcx, qword [0x00521fd8]
call fcn.00407520
call fcn.00406330
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042c1b0]
mov r8d, 1
movsxd r9, esi
call fcn.0040dbd0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0042c3c8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42c36e
mov rcx, qword [0x00527d68]
call fcn.0040dee0
mov rcx, rax
mov rax, qword [0x00521f58]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042c1b0]
call fcn.0040ddb0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x42e380
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040b300
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00410300
mov esi, eax
cmp esi, 0x104
jbe 0x42e3dd
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405ff0
mov rdi, rax
jmp 0x42e3e1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00410300
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x42e437
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x42e41b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x42e449
mov rcx, rdi
call fcn.00406020
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4f1060
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040c050
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x004f1138]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x4f110c
xor rdi, rdi
test rsi, rsi
je 0x4f10ca
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040c050
mov rbx, rax
mov rcx, rsi
call fcn.0040c050
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x4f112d
mov rcx, qword [0x004eedf0]
mov dl, 1
mov r8, qword [0x00521ff8]
call fcn.0042c590
mov rcx, rax
call fcn.00409cc0
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4f1140
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040c050
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret
Function at 0x4fc3a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.0040b1d0
mov rcx, qword [rbp + 0x78]
call fcn.004fbe90
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x4fc415
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.0040c6f0
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.004fcaa0
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x4fc569
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.004fc1a0
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.004fc720
test al, al
je 0x4fc549
lea rcx, [rbp + 0x70]
xor rdx, rdx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.0040ade0
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x4fc548
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.0040c050
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004fc0c0
test al, al
je 0x4fc534
mov rcx, qword [rbp + 0x70]
call fcn.0040c050
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040c0f0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.004fc3a0
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x4fc4a8
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.004fc1a0
mov rcx, qword [rbp + 0x90]
call sub.advapi32.dll_RegCloseKey_1
cmp byte [0x0052c554], 0
je 0x4fc5c8
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.004fc180
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040c050
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004fc0c0
mov byte [rbp + 0x8f], al
jmp 0x4fc607
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.004fc180
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040c050
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.004fc0c0
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.0040ab20
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.0040ac00
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret

Function at 0x4fc6f0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.0040c050
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.004fc0c0
add rsp, 0x20
pop rbx
ret
Function at 0x4fcdf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x34], r9d
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040acb0
mov rcx, qword [rbp + 0x90]
call fcn.0040acb0
nop
xor rax, rax
mov byte [rbp + 0x33], al
mov rax, qword [rbp + 0xa0]
mov qword [rax], 0
mov rax, qword [rbp + 0xa8]
mov dword [rax], 0
xor rbx, rbx
mov rax, qword [0x00521eb0]
cmp byte [rax], 0
je 0x4fce83
call fcn.00410700
cmp byte [rax + 0x1a9], 0
je 0x4fce6f
mov ebx, pe_nt_image_headers64
jmp 0x4fce83
call fcn.00410700
cmp byte [rax + 0x1a8], 0
je 0x4fce83
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0x88]
call fcn.0040c050
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
mov r9d, ebx
or r9d, 0x20019
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4fcf71
cmp qword [rbp + 0x90], 0
jne 0x4fcec9
xor rsi, rsi
jmp 0x4fced8
mov rcx, qword [rbp + 0x90]
call fcn.0040c050
mov rsi, rax
mov rcx, qword [rbp + 0x50]
mov rdx, rsi
xor r8, r8
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4fcf68
mov ecx, dword [rbp + 0x4c]
call fcn.00405ff0
mov rbx, rax
mov rcx, qword [rbp + 0x50]
mov rdx, rsi
xor r8, r8
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4fcf60
mov eax, dword [rbp + 0x34]
cmp eax, dword [rbp + 0x5c]
jne 0x4fcf56
mov rax, qword [rbp + 0xa0]
mov qword [rax], rbx
mov rax, qword [rbp + 0xa8]
mov ecx, dword [rbp + 0x4c]
mov dword [rax], ecx
mov al, 1
mov byte [rbp + 0x33], al
jmp 0x4fcf68
mov rcx, rbx
call fcn.00406020
jmp 0x4fcf68
mov rcx, rbx
call fcn.00406020
mov rcx, qword [rbp + 0x50]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040ac00
movzx rax, byte [rbp + 0x33]
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4fd1a0
Capabilities:
Check os version

Disassembly:
push rbp
sub rsp, 0x150
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov byte [rbp + 0x14f], 7
nop
mov dword [rbp + 0x30], 0x11c
lea rcx, [rbp + 0x30]
call sub.kernel32.dll_GetVersionExW
cmp dword [rbp + 0x40], 2
jne 0x4fd294
mov byte [rbp + 0x14f], 5
cmp dword [rbp + 0x34], 6
jb 0x4fd266
mov byte [rbp + 0x14f], 0xa
cmp byte [rbp + 0x14a], 1
jne 0x4fd22c
cmp dword [rbp + 0x38], 3
jb 0x4fd204
mov byte [rbp + 0x14f], 0x10
jmp 0x4fd2da
cmp dword [rbp + 0x38], 2
jb 0x4fd216
mov byte [rbp + 0x14f], 0xe
jmp 0x4fd2da
cmp dword [rbp + 0x38], 1
jb 0x4fd2da
mov byte [rbp + 0x14f], 0xd
jmp 0x4fd2da
mov byte [rbp + 0x14f], 0xb
cmp dword [rbp + 0x38], 3
jb 0x4fd245
mov byte [rbp + 0x14f], 0x11
jmp 0x4fd2da
cmp dword [rbp + 0x38], 2
jb 0x4fd257
mov byte [rbp + 0x14f], 0xf
jmp 0x4fd2da
cmp dword [rbp + 0x38], 1
jb 0x4fd2da
mov byte [rbp + 0x14f], 0xc
jmp 0x4fd2da
cmp dword [rbp + 0x34], 5
jb 0x4fd2da
mov byte [rbp + 0x14f], 6
cmp dword [rbp + 0x38], 1
jb 0x4fd2da
cmp byte [rbp + 0x14a], 1
jne 0x4fd28b
mov byte [rbp + 0x14f], 7
jmp 0x4fd2da
mov byte [rbp + 0x14f], 9
jmp 0x4fd2da
cmp dword [rbp + 0x40], 1
jne 0x4fd2c9
mov byte [rbp + 0x14f], 1
cmp dword [rbp + 0x34], 4
jne 0x4fd2b4
cmp dword [rbp + 0x38], 0xa
jne 0x4fd2b4
mov byte [rbp + 0x14f], 2
cmp dword [rbp + 0x34], 4
jne 0x4fd2da
cmp dword [rbp + 0x38], 0x5a
jne 0x4fd2da
mov byte [rbp + 0x14f], 3
jmp 0x4fd2da
mov byte [rbp + 0x14f], 1
jmp 0x4fd2da
movzx rax, byte [rbp + 0x14f]
lea rsp, [rbp + 0x150]
pop rbp
ret

Function at 0x4ff340
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x250
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x260], rcx
nop
mov rcx, qword [rbp + 0x260]
call fcn.0040ab20
nop
mov ecx, 0xff
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_GetTempPathW
test eax, eax
je 0x4ff43a
mov rcx, qword [rbp + 0x260]
lea rdx, [rbp + 0x50]
call fcn.0040c0f0
lea rcx, [rbp + 0x30]
mov rax, qword [rbp + 0x260]
mov rdx, qword [rax]
call fcn.004feea0
mov rcx, qword [rbp + 0x260]
mov rdx, qword [rbp + 0x30]
call fcn.0040b150
lea rcx, [rbp + 0x28]
mov rax, qword [rbp + 0x260]
mov rdx, qword [rax]
call fcn.004ff2e0
mov rcx, qword [rbp + 0x260]
mov rdx, qword [rbp + 0x28]
call fcn.0040b150
mov rax, qword [rbp + 0x260]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x44], 0
cmp qword [rbp + 0x48], 0
je 0x4ff407
mov rax, qword [rbp + 0x48]
mov eax, dword [rax - 4]
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x260]
mov rax, qword [rax]
movsxd rcx, dword [rbp + 0x44]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x4ff43a
mov rcx, qword [rbp + 0x260]
lea rdx, [0x004ff4a4]
call fcn.0040c390
jmp 0x4ff43a
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040ac00
mov rax, qword [rbp + 0x260]
lea rsp, [rbp + 0x250]
pop rbp
ret