joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x2d]
push dword [ebp - 0x38]
mov esi, dword [ebp + 8]
push eax
mov dword [edi + 0xc], 0
push dword [ebx + 4]
mov dword [ebp - 0x40], ebx
push dword [ebx]
mov dword [ebp - 0x34], 7
call fcn.00408fc0
mov eax, dword [ebx]
add esp, 0x10
mov dword [ebx + 4], eax
cmp byte [edi + 8], 0
je 0x40a102
cmp dword [esi + 0x14], 8
jb 0x40a08d
mov eax, dword [esi]
jmp 0x40a08f
mov eax, esi
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40a102
mov eax, dword [ebp - 0x2c]
add eax, 5
push eax
mov dword [ebp - 0x3c], eax
call fcn.00413b96
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x40a102
push dword [ebp - 0x3c]
push 0
push ebx
call fcn.00413c30
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40a0dd
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0
push esi
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 0xc], eax
test eax, eax
je 0x40a109
push ebx
call fcn.00412781
add esp, 4
xor al, al
jmp 0x40a186
mov edi, dword [ebp - 0x2c]
mov esi, ebx
mov edi, edi
cmp byte [esi], 0
jne 0x40a119
test edi, edi
je 0x40a179
push esi
lea ecx, [ebp - 0x28]
call sym.Prounstl.exe_public:_void___thiscall_CNcsString::constructor_wchar_t_const__
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40a13c
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
call fcn.0040b340
lea esi, [esi + ebx*2]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx*2 + 2]
add esi, 2
sub edi, eax
cmp dword [ebp - 0x14], 8
jb 0x40a163
push dword [ebp - 0x28]
call fcn.004125c9
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x40a110
push dword [ebp - 0x38]
call fcn.00412781
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret 8

Function at 0x40a1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 3
xor al, al
cmp byte [esi + 8], al
je 0x40a1ee
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a1d0
mov eax, dword [eax]
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
push dword [ebp + 0xc]
push ecx
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [esi + 0xc], eax
sete al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ad20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor dl, dl
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [ebp + 0x10], dl
setne bl
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x10]
inc ebx
inc eax
cmp byte [esi + 8], dl
je 0x40ad77
cmp dword [ecx + 0x14], 8
jb 0x40ad4d
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x40ad58
mov edx, dword [edx]
add eax, eax
push eax
push ecx
push ebx
push 0
push edx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esi + 0xc], eax
test eax, eax
pop esi
sete al
pop ebx
pop ebp
ret 0xc
pop esi
mov al, dl
pop ebx
pop ebp
ret 0xc

Function at 0x40ad80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor al, al
cmp byte [esi + 8], al
je 0x40adb4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40ad98
mov eax, dword [eax]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [esi + 0xc], eax
sete al
pop esi
pop ebp
ret 8

Function at 0x40adc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor al, al
mov dword [esi + 0xc], 0
cmp byte [esi + 8], al
je 0x40adfb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40addf
mov eax, dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [esi + 0xc], eax
sete al
pop esi
pop ebp
ret 0xc
Function at 0x40ae00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x439010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 8], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
je 0x40aea4
mov ecx, dword [ebp + 0x10]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp + 0xc]
xor esi, esi
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x40ae70
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov eax, dword [ecx]
lea ecx, [ecx + 0x18]
lea esi, [esi + eax*2]
add esi, 2
dec edi
jne 0x40ae62
add esi, 2
push esi
mov dword [ebp - 0x1c], esi
call fcn.00413b96
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x40af00
push str.ERROR:__Unable_to_allocate_memory
push 0x3bf
push str...CommonSrcNcsRegKey.cpp
push 0x43bf64
call sym.Prounstl.exe_public:_void___cdecl_CNcsDebug::Error_wchar_t___int__wchar_t_const__
add esp, 0x10
xor bl, bl
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40aeea
mov edi, dword [ebp + 0x10]
cmp esi, edi
je 0x40aee1
cmp dword [esi + 0x14], 8
jb 0x40aec4
push dword [esi]
call fcn.004125c9
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x40aeb4
mov esi, dword [ebp + 0xc]
push esi
call fcn.004125c9
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
push edi
call fcn.00413c30
xor ecx, ecx
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0xc]
mov eax, esi
shr eax, 1
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, 0x2aaaaaab
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40af97
mov esi, dword [ebp - 0x14]
xor ebx, ebx
jmp 0x40af40
cmp dword [ebx + edi + 0x14], 8
lea eax, [ebx + edi]
jb 0x40af4c
mov eax, dword [eax]
push eax
push dword [ebp - 0x18]
push esi
push 0x3cc
push str...CommonSrcNcsRegKey.cpp
call fcn.0040b470
mov edi, dword [ebp + 0xc]
add esp, 0x14
mov ecx, dword [ebp + 0x10]
inc dword [ebp - 0x10]
sub ecx, edi
mov eax, dword [ebx + edi + 0x10]
add ebx, 0x18
lea esi, [esi + eax*2]
mov eax, 0x2aaaaaab
imul ecx
add esi, 2
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x10], eax
jb 0x40af40
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov byte [edi + esi - 1], 0
cmp dword [eax + 0x14], 8
jb 0x40afaa
mov eax, dword [eax]
push esi
push edi
push 7
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov dword [ebx + 0xc], eax
call fcn.00412781
add esp, 4
cmp dword [ebx + 0xc], 0
jne 0x40aea4
mov bl, 1
jmp 0x40aea6
Function at 0x40b060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 1]
mov esi, ecx
push eax
xor bl, bl
lea ecx, [ebp - 0x1c]
push str.CNcsRegKey::ValueExists
mov byte [ebp - 1], bl
call fcn.00408740
cmp byte [esi + 8], bl
je 0x40b0af
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40b090
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
lea ecx, [ebp - 0x1c]
call fcn.00408830
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e760
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e7a3
push 0x10
lea ecx, [ebp - 0x24]
push ecx
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x24]
push eax
call fcn.00413ea7
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
Function at 0x40efd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x61c], eax
xor ebx, ebx
lea eax, [ebp - 0x610]
mov dword [ebp - 0x618], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareIntelProunstlDins
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x610], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f1e8
push esi
push edi
push 0x3fe
push eax
mov word [ebp - 0x604], ax
lea eax, [ebp - 0x602]
push eax
call fcn.00413c30
push 0x1ff
xor esi, esi
mov dword [ebp - 0x608], 0x400
lea eax, [ebp - 0x203]
mov dword [ebp - 0x614], ebx
push esi
push eax
mov byte [ebp - 0x204], bl
call fcn.00413c30
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x60c]
add esp, 0x18
mov dword [ebp - 0x60c], 0x200
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0x604]
push eax
push esi
push dword [ebp - 0x610]
call edi
test eax, eax
jne 0x40f1c5
jmp 0x40f0b0
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x608], 0x400
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x60c], 0x200
push eax
push 0
push 0
lea eax, [ebp - 0x608]
inc esi
push eax
lea eax, [ebp - 0x604]
push eax
push esi
push dword [ebp - 0x610]
call edi
test eax, eax
je 0x40f0b0
test esi, esi
je 0x40f1c5
xor ecx, ecx
mov eax, esi
mov edx, 0x500
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004125c0
add esp, 4
mov dword [ebp - 0x618], eax
lea ecx, [ebp - 0x60c]
mov dword [ebp - 0x608], 0x80
xor edi, edi
mov dword [ebp - 0x60c], 0x200
push ecx
lea ecx, [eax + 0x100]
push ecx
push edi
push edi
lea ecx, [ebp - 0x608]
push ecx
push eax
push edi
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40f1bd
mov ebx, dword [ebp - 0x618]
mov eax, dword [ebp - 0x614]
inc edi
cmp eax, esi
jae 0x40f1b7
inc eax
mov dword [ebp - 0x608], 0x80
mov dword [ebp - 0x614], eax
add ebx, 0x500
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x60c], 0x200
push eax
lea eax, [ebx + 0x100]
push eax
push 0
push 0
lea eax, [ebp - 0x608]
push eax
push ebx
push edi
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40f160
mov ebx, dword [ebp - 0x614]
mov eax, dword [ebp - 0x61c]
mov dword [eax], ebx
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x618]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00413026
mov esp, ebp
pop ebp
ret
Function at 0x40fa90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0040f5c0
add esp, 0x10
test eax, eax
je 0x40fb67
call fcn.00412030
test eax, eax
jne 0x40fae1
call fcn.00412090
test eax, eax
mov eax, str.rundll32.exe_setupx.dll_InstallHinfSection
je 0x40fae6
mov eax, str.rundll32.exe_setupapi.dll_InstallHinfSection
lea ecx, [ebp - 0x104]
push ecx
push esi
push eax
lea eax, [ebp - 0x504]
push str._s__s_128__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea eax, [ebp - 0x558]
push 0
push eax
call fcn.00413c30
add esp, 0x20
mov dword [ebp - 0x558], 0x44
mov eax, 5
mov word [ebp - 0x528], ax
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x558]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x504]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x40fb67
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00413026
mov esp, ebp
pop ebp
ret

Function at 0x40fb80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0040f5c0
add esp, 0x10
test eax, eax
je 0x40fc7f
call fcn.00412030
test eax, eax
jne 0x40fbd5
call fcn.00412090
test eax, eax
mov eax, str.rundll32.exe_setupx.dll_InstallHinfSection
je 0x40fbda
mov eax, str.rundll32.exe_setupapi.dll_InstallHinfSection
lea ecx, [ebp - 0x104]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push esi
push eax
mov ecx, str._s__s_130__s
mov eax, str._s__s_128__s
cmove eax, ecx
push eax
lea eax, [ebp - 0x504]
push eax
call edi
push 0x44
lea eax, [ebp - 0x558]
push 0
push eax
call fcn.00413c30
add esp, 0x20
mov dword [ebp - 0x558], 0x44
mov eax, 5
mov word [ebp - 0x528], ax
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x558]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x504]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
lea eax, [ebp - 0x504]
push esi
push str._d__n
push eax
call edi
add esp, 0xc
cmp esi, 1
jne 0x40fc7f
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00413026
mov esp, ebp
pop ebp
ret
Function at 0x40fce0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425748
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x439010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ProcessUninstall
lea ecx, [ebp - 0x24]
call fcn.00408610
mov dword [ebp - 4], 0
call fcn.004111b0
test eax, eax
je 0x40fd27
xor esi, esi
jmp 0x40fd64
call fcn.00411b10
mov esi, eax
call fcn.0040fd90
test esi, esi
je 0x40fd3c
call fcn.0040f3f0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPROSet
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00412140
add esp, 0xc
push 4
push 0
push 0x43be60
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00408830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push str.SYSTEMCurrentControlSetControlClass
push 0x104
push eax
call fcn.00413d8d
push 0x426f60
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00414e8e
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00414e8e
add esp, 0x24
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410f8c
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x104
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410f80
lea eax, [ebp - 0x414]
mov ecx, eax
sub edi, ecx
jmp 0x410f70
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edi + eax - 2], cx
test cx, cx
jne 0x410f70
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413026
mov esp, ebp
pop ebp
ret
Function at 0x411f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411fe0
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412090
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4120df
cmp dword [ebp - 0x114], 5
jb 0x4120df
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret

Function at 0x412140
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40c], 0x400
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x41217f
push ebx
push edi
call fcn.00411e70
add esp, 8
test eax, eax
je 0x412257
lea eax, [ebp - 0x408]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412257
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x412221
lea ebx, [ebx]
push esi
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.00412140
add esp, 0xc
test eax, eax
je 0x41224b
lea eax, [ebp - 0x414]
mov dword [ebp - 0x40c], 0x400
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4121d0
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413026
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413026
mov esp, ebp
pop ebp
ret
Function at 0x415ea0
Capabilities:
Encode data using xor

Disassembly:
pushal
sub ecx, ebp
inc esi
add edi, edi
test bl, 0x85
inc ecx
mov dh, dl
inc edx
test ebp, 0x5031547b
inc esi
mov bh, bh
sub ecx, ecx
jne 0x415eb6
imul ebx, ebp, 0x84e8d9ab
jmp 0x415ec6
cmp ecx, 0xb655
jne 0x415ed1
movsx ecx, bp
mov eax, ecx
jmp 0x415edf
call 0x415f32
mov esi, 0
inc eax
mov eax, edi
or eax, 0x2cb3aa8b
sbb al, 0x43
imul ecx, ecx
imul eax, eax, 0x79075a88
mov ebp, edi
add esi, 0xfff3bc84
or ecx, 0x6b859e1d
cmp edx, ebp
xchg ecx, edx
add esi, 0xc437d
imul edi, edx
imul ebp, ebx
mov ebp, ebx
movsx edi, ch
dec ah
xor bh, 0xa2
cmp esi, 0xd38
jb 0x415ee9
pop ecx
mov bl, ah
lea esi, [0x9f74b055]
sbb al, 0x5e
or esi, 0x7d3a3a74
test dl, dl
add ecx, 0x43eca
dec ebp
add ecx, 0x727
cmp edx, 0x50b
jb 0x415f66
imul edx, eax, 0x4a3d810f
add dh, 0x81
test al, dh
push 0xe12792
inc edx
mov bh, 0xf6
imul ebp, edi
mov ebx, 0x3d599d1e
test eax, esi
sbb ah, 8
mov bh, cl
cmp esi, ebp
cmp dh, ch
inc ebp
cmp eax, 0x9a67
jo 0x415f97
test bl, 0xf9
test cl, bl
xchg eax, eax
push esi
jno 0x415fa2
cmp esi, ebx
imul esi, edi, 0x9489f52c
push ecx
cmp ecx, 0x3c8
jb 0x415fb0
mov ebx, 0xb2199109
cmp ebp, 0x4e5c
js 0x415fbe
mov dh, 7
imul eax, esi
adc ah, 0x8f
adc ah, 0x8f
xor ebp, 0x7ed5
mov eax, eax
jmp 0x415fd1
ret
Function at 0x41f78e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00419523
mov dword [ebp - 0x14], eax
cmp dword [0x43ceb4], esi
jne 0x41f881
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41f80e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f961
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41f961
push 0x42e978
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f961
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ceb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ceb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43cebc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43cec4], eax
test eax, eax
je 0x41f87e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43cec0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f8a6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f899
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41f8bb
push 4
pop eax
jmp 0x41f963
cmp dword [ebp - 0x14], esi
je 0x41f8bb
push dword [0x43ceb4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41f8a0
mov eax, dword [0x43cec0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41f919
cmp dword [0x43cec4], edi
je 0x41f919
push eax
call ebx
push dword [0x43cec4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41f919
test eax, eax
je 0x41f919
call ecx
test eax, eax
je 0x41f90e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41f90e
test byte [ebp - 8], 1
jne 0x41f919
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41f949
mov eax, dword [0x43ceb8]
cmp eax, edi
je 0x41f946
push eax
call ebx
test eax, eax
je 0x41f946
call eax
mov esi, eax
test esi, esi
je 0x41f946
mov eax, dword [0x43cebc]
cmp eax, edi
je 0x41f946
push eax
call ebx
test eax, eax
je 0x41f946
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ceb4]
call ebx
test eax, eax
je 0x41f961
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41f963
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413026
mov esp, ebp
pop ebp
ret