joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021590
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x498], 0
jne 0x1400217cf
mov ecx, 0x70
call fcn.1400085a8
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400215f3
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call fcn.140026e10
mov qword [rsp + 0x70], rax
jmp 0x1400215fc
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x498], rax
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x498]
call fcn.140027150
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
lea rcx, str.m_pSensorManagerEvents__Initialize___08x___n
call fcn.140001000
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x140033518]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400216a5
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InitSensorAPI_HRESULT_
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 0
jl 0x140021721
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x140033578]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021717
mov dword [rsp + 0x40], 0x752f
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x140033428]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400217d1
lea rcx, str.m_pSensorManagerEvents__Uninitialize_Before_n
call fcn.140001000
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x498]
call fcn.140026cb0
lea rcx, str.m_pSensorManagerEvents__Uninitialize_After_n
call fcn.140001000
lea rcx, [0x1400336a0]
call fcn.140001000
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x498]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14002179b
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [rax + 0x20]
mov qword [rsp + 0x78], rax
jmp 0x1400217a4
mov qword [rsp + 0x78], 0
lea rcx, str.delete_m_pSensorManagerEvents_n
call fcn.140001000
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x498], 0
lea rcx, str.m_pSensorManagerEventsNULL_n
call fcn.140001000
xor eax, eax
add rsp, 0x88
ret
Function at 0x1400217e0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWARERealtekRealtekEffectsAP
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021882
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.AutoRotationState
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.SensorIndex
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x48
ret

Function at 0x140021890
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x11
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021973
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Enable
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.LastOrientation
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x140021990
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x11
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlPriorityControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021a2d
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.ConvertibleSlateMode
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x140021a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x11
xor r8d, r8d
lea rdx, str.SOFTWARELenovoMultiMode
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140021b09
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.CameraAudio
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140021afa
cmp dword [rsp + 0x38], 0
jne 0x140021aea
mov dword [rsp + 0x50], 1
jmp 0x140021af2
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x68
ret

Function at 0x140022d80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140022dc8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140022b20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], r11
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400238e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
cmp qword [rsp + 0x98], 0
je 0x140023a87
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov qword [rcx + 0x7a0], rax
mov dword [rsp + 0x30], 0
jmp 0x14002392b
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x3c
jge 0x140023a03
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x20
mov rax, qword [rsp + 0x90]
mov qword [rax + rcx + 8], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, rax
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x20
mov rax, qword [rsp + 0x90]
mov qword [rax + rcx], rdx
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x20
mov rax, qword [rsp + 0x90]
cmp qword [rax + rcx], 0
je 0x1400239fe
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x20
lea rdi, [rsp + 0x50]
mov rax, qword [rsp + 0x90]
lea rsi, [rax + rcx]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call fcn.1400233a0
lea rdi, [rsp + 0x60]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x20
mov rax, qword [rsp + 0x90]
lea rsi, [rsp + 0x60]
lea rdi, [rax + rcx + 0x10]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
jmp 0x140023920
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x788], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x780], rdx
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x780], 0
je 0x140023a87
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x90]
lea r8, [0x140023640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x7a8], rdx
mov rax, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400242d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x40]
call fcn.140023f00
test eax, eax
jne 0x1400242ff
jmp 0x140024383
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x14], 0
jne 0x140024383
lea rcx, str.CMMDeviceHandler::Start_n
call fcn.140001000
mov r11, qword [rsp + 0x40]
mov dword [r11 + 0x14], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], r11
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x20]
call fcn.14002aa10
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x1400242a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], r11
add rsp, 0x38
ret
Function at 0x140029b80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.140027c60
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140029bc8
lea r9, [0x14003d080]
mov r8d, 0x52c
lea rdx, [0x14003d0a0]
lea rcx, [0x14003d0c0]
call fcn.140001000
mov eax, 2
jmp 0x140029cf4
mov rcx, qword [rsp + 0x50]
add rcx, 0xc0
call fcn.14001c3e0
test eax, eax
je 0x140029cea
mov rcx, qword [rsp + 0x50]
call fcn.140027b90
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140029c20
lea r9, [0x14003d128]
mov r8d, 0x532
lea rdx, [0x14003d148]
lea rcx, [0x14003d180]
call fcn.140001000
mov eax, 3
jmp 0x140029cf4
mov rcx, qword [rsp + 0x50]
add rcx, 0xc0
call fcn.14001c650
test eax, eax
je 0x140029c85
mov rcx, qword [rsp + 0x50]
call fcn.140027ac0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140029c74
lea r9, str..Service.cpp
mov r8d, 0x538
lea rdx, [0x14003d208]
lea rcx, str.__s__RETURN_VALUE_ON_FALSE:_Line___d__File___s_n
call fcn.140001000
mov eax, 4
jmp 0x140029cf4
mov rcx, qword [rsp + 0x50]
add rcx, 0xc0
call fcn.14001e600
mov rcx, qword [rsp + 0x50]
add rcx, 0xc0
call fcn.14001ccb0
mov r11d, eax
mov rax, qword [rsp + 0x50]
mov dword [rax], r11d
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
je 0x140029cea
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140028cf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x588], r11
mov rcx, qword [rsp + 0x50]
call fcn.140028d50
add rsp, 0x48
ret

Function at 0x14002ae50
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x10068
call fcn.14002c4d0
sub rsp, rax
mov qword [rsp + 0x10050], 0xfffffffffffffffe
mov rax, qword [0x1400470e0]
xor rax, rsp
mov qword [rsp + 0x10058], rax
mov dword [rsp + 0x10048], 0
lea rdx, [0x140036a74]
lea rcx, [rsp + 0x10040]
call fcn.1400019e0
nop
mov dword [rsp + 0x30], 0x26
mov r8d, 0xfffe
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140007ed0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x14002af29
lea rcx, [rsp + 0x40]
call fcn.140007e34
movzx eax, word [rsp + rax*2 + 0x3e]
cmp eax, 0x5c
jne 0x14002af03
lea rcx, [rsp + 0x40]
call fcn.140007e34
mov r11, rax
xor eax, eax
mov word [rsp + r11*2 + 0x3e], ax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x10040]
call fcn.140001a60
mov rdx, qword [rsp + 0x10040]
lea rcx, str.GetProgramFilesPath___s_n
call fcn.140001000
lea rdx, [rsp + 0x10040]
mov rcx, qword [rsp + 0x10070]
call fcn.1400019b0
mov eax, dword [rsp + 0x10048]
or eax, 1
mov dword [rsp + 0x10048], eax
lea rcx, [rsp + 0x10040]
call fcn.140001a40
mov rax, qword [rsp + 0x10070]
mov rcx, qword [rsp + 0x10058]
xor rcx, rsp
call fcn.1400073c0
add rsp, 0x10068
ret
Function at 0x14002be90
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x278
mov qword [rsp + 0x258], 0xfffffffffffffffe
mov rax, qword [0x1400470e0]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rdx, [0x1400339f4]
lea rcx, [rsp + 0x20]
call fcn.1400019e0
nop
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, str.Kernel32.dll
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rsp + 0x20]
call fcn.140002f60
lea rcx, [rsp + 0x20]
call fcn.140001f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14002bf51
lea rdx, str.SetDefaultDllDirectories
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
je 0x14002bf45
mov ecx, 0x800
call qword [rsp + 0x250]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x20]
call fcn.140001a40
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400073c0
add rsp, 0x278
ret
Function at 0x1415d50b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1415d5237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415d50e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415d50c7
add dl, dl
jne 0x1415d50ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415d514e
xor eax, eax
add dl, dl
jne 0x1415d50fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415d5205
add dl, dl
jne 0x1415d510e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415d511b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415d5128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415d5135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415d5142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415d50d6
mov eax, 1
add dl, dl
jne 0x1415d515e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415d516b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415d5153
sub eax, ebx
mov ebx, 1
jne 0x1415d51a4
mov ecx, 1
add dl, dl
jne 0x1415d5186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415d5193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415d517b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415d50d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415d51c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415d51cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415d51b5
cmp eax, 0x7d00
jae 0x1415d51f3
cmp eax, 0x500
jb 0x1415d51ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415d50d6
cmp eax, 0x7f
ja 0x1415d51f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415d50d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415d522a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1415d50d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1802907d3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor edi, edi
movzx r10w, r11b
bswap r9d
mov r10b, dil
movzx ebx, r8b
xchg r10w, r9w
cmovns r9, r12
mov r11, rcx
setns r9b
mov r8, rdi
mov r9w, 0x1d45
nop
mov r10b, 0x95
movzx r9d, byte [r11]
movzx r10d, byte [rdx]
jmp 0x180290816
inc r11
jmp 0x18029081e
inc rdx
test bp, 0x5edd
test bl, bl
jmp 0x18029082d
je 0x180290850
mov ecx, r8d
lahf
mov eax, 0x736937fd
cmc
rol eax, cl
add al, r8b
cmc
test dil, 0x85
cmp ax, cx
xor r9b, al
inc r8
test r9b, r9b
jmp 0x180290858
je 0x18029086c
cmp r9b, r10b
jmp 0x180290866
je 0x180290809
cmp r9b, r10b
jmp 0x180290874
jae 0x18029088f
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
not di
movzx rdi, r10w
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
jmp 0x180290899
seta dil
movzx eax, di
bswap ax
xchg ah, al
mov eax, edi
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140003bd4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14010d0f8]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r12, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
xor r15d, r15d
xor r14d, r14d
call fcn.140014898
lea r8, [0x1400f23c8]
lea rcx, [rsp + 0x30]
call fcn.140014924
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140003c85
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140003d77
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.140003ab8
mov esi, eax
jmp 0x140003d5d
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140003dd8
mov esi, eax
test eax, eax
jns 0x140003cc3
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.140003a7c
mov rcx, rbx
call fcn.140003b4c
jmp 0x140003d5d
lea r8, [0x1400f23d0]
lea rcx, [rsp + 0x30]
call fcn.140014924
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140003d06
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.140003ab8
mov esi, eax
jmp 0x140003cb6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003dd8
mov esi, eax
test eax, eax
jns 0x140003d3a
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.140003a7c
mov rcx, rdi
call fcn.140003b4c
jmp 0x140003cb6
mov rcx, rdi
call fcn.140003b4c
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.140003b4c
xor esi, esi
test esi, esi
jns 0x140003d77
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.140003a7c
jmp 0x140003d7c
mov r15, r14
xor esi, esi
test esi, esi
jns 0x140003d98
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x6b
call fcn.140003a7c
mov eax, esi
jmp 0x140003da5
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400e6ab0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140011f8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
xor r14d, r14d
test rax, rax
je 0x14001201a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14001201a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14001200a
cmp rbx, rcx
jae 0x14001201a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140011ff5
cmp rbx, rcx
jae 0x14001201a
cmp word [rbx], r14w
je 0x14001201a
mov rax, rbx
jmp 0x14001201c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140013568
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14010d0f8]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
and qword [rsp + 0x58], 0
xor r8d, r8d
and qword [rsp + 0x60], 0
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140013689
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400135f2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x140013689
jmp 0x140013620
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140013568
mov ebx, eax
test eax, eax
jne 0x140013689
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140013606
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001367c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.1400136fc
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001369f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400e6ab0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret