joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105cb71
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], ecx
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea eax, [edi - 1]
cmp eax, 0x103
ja 0x105cc2e
dec edi
push edi
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x105cc2e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
push dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
sub dword [ebp - 0x210], edi
call esi
add eax, dword [ebp - 0x210]
pop esi
cmp eax, dword [ebp + 0x14]
jge 0x105cc2e
lea eax, [ebx + edi*2]
push eax
push dword [ebp - 0x214]
push 0x1001cb8
push dword [ebp + 0x14]
push dword [ebp - 0x218]
call fcn.01009a76
xor ecx, ecx
add esp, 0x14
test eax, eax
setge cl
mov eax, ecx
jmp 0x105cc30
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 0x10
Function at 0x105d047
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov edi, 0x1075004
mov ebx, 0x10053cc
cmp eax, edi
je 0x105d087
test byte [eax + 0x1c], 2
je 0x105d087
cmp byte [eax + 0x19], 5
jb 0x105d087
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x105d096
push 0x57
pop eax
jmp 0x105d1ea
cmp dword [esi], 0x14
jne 0x105d08e
and dword [esi + 4], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x105d0e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d0de
test byte [eax + 0x1c], 2
je 0x105d0de
cmp byte [eax + 0x19], 2
jb 0x105d0de
push esi
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, esi
jmp 0x105d1ea
push eax
call fcn.0105c184
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x105d11f
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d118
test byte [eax + 0x1c], 2
je 0x105d118
cmp byte [eax + 0x19], 2
jb 0x105d118
push dword [ebp + 0xc]
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 8
jmp 0x105d090
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x105d164
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d1df
test byte [eax + 0x1c], 2
je 0x105d1df
cmp byte [eax + 0x19], 2
jb 0x105d1df
push dword [ebp - 4]
push ebx
push 0xd
jmp 0x105d1a1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1005244
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x105d1ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105d1df
test byte [eax + 0x1c], 2
je 0x105d1df
cmp byte [eax + 0x19], 2
jb 0x105d1df
push dword [ebp - 4]
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x105d1df
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
xor ecx, ecx
inc ecx
and edx, ecx
mov dword [esi + 0x10], edx
mov dx, word [eax + 0x12]
mov word [esi + 8], dx
mov dx, word [eax + 0x10]
mov word [esi + 0xa], dx
mov dx, word [eax + 0x16]
mov word [esi + 0xc], dx
mov ax, word [eax + 0x14]
mov word [esi + 0xe], ax
mov dword [esi + 4], ecx
push dword [ebp - 0xc]
call fcn.0105c21c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x105d1f6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov edi, 0x10053cc
cmp eax, esi
je 0x105d23a
test byte [eax + 0x1c], 2
je 0x105d23a
cmp byte [eax + 0x19], 5
jb 0x105d23a
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x105d29e
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105d29a
test byte [eax + 0x1c], 2
je 0x105d29a
cmp byte [eax + 0x19], 2
jb 0x105d29a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor eax, eax
jmp 0x105d2a8
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0105b7af
leave
ret
Function at 0x105f8a8
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x105f8ef
test byte [eax + 0x1c], 2
je 0x105f8ef
cmp byte [eax + 0x19], 5
jb 0x105f8ef
push 0x10054e0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax]
jne 0x105f901
push 0x57
pop eax
jmp 0x105fa64
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105f96d
call edi
mov dword [ebp - 4], eax
cmp eax, 0x7a
jne 0x105f932
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x105f96d
call edi
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fa4a
test byte [eax + 0x1c], 2
je 0x105fa4a
cmp byte [eax + 0x19], 2
jb 0x105fa4a
push dword [ebp - 4]
push 0x10054e0
push 0x1a
jmp 0x105fa29
push dword [ebp - 0xc]
call fcn.0105c184
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x105f9b0
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fa4a
test byte [eax + 0x1c], 2
je 0x105fa4a
cmp byte [eax + 0x19], 2
jb 0x105fa4a
push dword [ebp - 0xc]
push 0x10054e0
push 0x1b
jmp 0x105fa29
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0105c184
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x105f9ea
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fa4a
test byte [eax + 0x1c], 2
je 0x105fa4a
cmp byte [eax + 0x19], 2
jb 0x105fa4a
push dword [ebp - 8]
push 0x10054e0
push 0x1c
jmp 0x105fa29
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push 0
call ebx
test eax, eax
jne 0x105fa36
call edi
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105fa4a
test byte [eax + 0x1c], 2
je 0x105fa4a
cmp byte [eax + 0x19], 2
jb 0x105fa4a
push dword [ebp - 4]
push 0x10054e0
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x105fa4a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x105fa4a
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push dword [ebp - 0x18]
call fcn.0105c21c
cmp dword [ebp - 4], 0
pop ebx
je 0x105fa61
push dword [ebp - 0x10]
call fcn.0105c21c
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x105fd8f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 4
pop ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x105fdb0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x105fe28
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 2
jne 0x105fdff
mov eax, dword [ebp + 0x14]
push ebx
push esi
push ebx
push 0
push dword [ebp + 0xc]
mov dword [esi], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x105fe08
push esi
push dword [ebp + 0xc]
push 0x1005610
call fcn.01062c21
add esp, 0xc
push esi
jmp 0x105fe1f
test edi, edi
jne 0x105fe0d
cmp dword [ebp + 0x10], ebx
jne 0x105fe0d
xor eax, eax
inc eax
jmp 0x105fe27
push edi
push dword [ebp + 0xc]
push 0x10055c8
call fcn.01062c21
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x105fe5e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], 3
xor edi, edi
call esi
cmp eax, ebx
je 0x105feac
cmp eax, 2
je 0x105febb
push eax
push 0x1005658
call fcn.01062c21
pop ecx
pop ecx
push edi
call fcn.0105c21c
jmp 0x105feb2
cmp dword [ebp - 8], 3
je 0x105feb6
xor eax, eax
jmp 0x105ff2b
cmp dword [ebp - 4], ebx
jne 0x105fec2
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0105c184
mov edi, eax
cmp edi, ebx
je 0x105fea4
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 4]
mov byte [edi + ecx], bl
cmp eax, ebx
je 0x105ff1d
cmp eax, 2
jne 0x105fe97
push dword [ebp - 4]
push edi
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x105ff1d
push eax
push dword [ebp + 0xc]
push 0x1005610
call fcn.01062c21
add esp, 0xc
jmp 0x105fea4
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x105ff29
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x105ff37
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x105ff75
push esi
push dword [ebp + 0xc]
push 0x1005610
call fcn.01062c21
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x105ff78
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc
Function at 0x105ff82
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x10]
jne 0x105ff93
lea eax, [ebp + 0x14]
push dword [ebp + 0x14]
push eax
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x105ffc0
push eax
push dword [ebp + 0xc]
push 0x1005610
call fcn.01062c21
add esp, 0xc
xor eax, eax
jmp 0x105ffc3
xor eax, eax
inc eax
pop ebp
ret 0x10

Function at 0x105ffcc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
jne 0x105fffb
cmp dword [ebp + 0x14], 0
je 0x105fff9
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x105ffe5
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x105fffb
xor eax, eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1060029
push eax
push dword [ebp + 0x10]
push 0x1005610
call fcn.01062c21
add esp, 0xc
xor eax, eax
jmp 0x106002c
xor eax, eax
inc eax
pop ebp
ret 0x14
Function at 0x1060075
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
neg esi
sbb esi, esi
and esi, 6
add esi, 0x20019
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.0105fce9
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, edi
je 0x1060191
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x10600e1
push eax
push 0x10056d0
jmp 0x1060179
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push ebx
call dword [ebp + 0x14]
test eax, eax
je 0x1060188
add dword [ebp + 0xc], 4
cmp dword [ebp + 0xc], 0x7ffffffe
ja 0x1060188
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax + 2]
push eax
call fcn.0105c184
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1060188
push dword [ebp + 0xc]
push eax
push edi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1060166
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0105fce9
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x106015a
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 4]
push eax
call dword [ebp + 0x14]
push dword [ebp - 0xc]
test eax, eax
je 0x1060182
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
cmp eax, edi
je 0x1060127
cmp eax, 0x103
je 0x1060188
push eax
push 0x1005698
call fcn.01062c21
pop ecx
pop ecx
jmp 0x1060188
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call fcn.0105c21c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10601a8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], esi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x1060206
test byte [eax + 0x1c], 2
je 0x1060206
cmp byte [eax + 0x19], 5
jb 0x1060206
push 0x10054f0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 0x210]
push eax
push 0x3001f
push esi
push dword [ebp - 0x21c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
je 0x1060254
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106024e
test byte [eax + 0x1c], 2
je 0x106024e
cmp byte [eax + 0x19], 2
jb 0x106024e
push edi
push 0x10054f0
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push edi
jmp 0x1060342
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1060276
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.010601a8
test eax, eax
je 0x1060348
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call edi
mov dword [ebp - 0x214], eax
cmp eax, esi
je 0x106025c
cmp eax, 0x103
jne 0x1060303
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, esi
je 0x10602fe
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x106024e
test byte [eax + 0x1c], 2
je 0x106024e
cmp byte [eax + 0x19], 2
jb 0x106024e
push edi
push 0x10054f0
push 0xd
jmp 0x1060243
xor eax, eax
inc eax
jmp 0x106034a
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1060330
test byte [eax + 0x1c], 2
je 0x1060330
cmp byte [eax + 0x19], 2
jb 0x1060330
push dword [ebp - 0x214]
push 0x10054f0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 8
Function at 0x1060360
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], 4
mov dword [ebp - 8], esi
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x10603a2
test byte [eax + 0x1c], 2
je 0x10603a2
cmp byte [eax + 0x19], 5
jb 0x10603a2
push 0x10054f0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x10603eb
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1060462
test byte [eax + 0x1c], 2
je 0x1060462
cmp byte [eax + 0x19], 2
jb 0x1060462
push ebx
push 0x10054f0
push 0xf
jmp 0x1060457
cmp dword [ebp - 4], 4
je 0x106041f
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1060418
test byte [eax + 0x1c], 2
je 0x1060418
cmp byte [eax + 0x19], 2
jb 0x1060418
push 0x10054f0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov ebx, 0x3f1
jmp 0x1060462
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x1060462
mov eax, dword [0x1075004]
cmp eax, edi
je 0x1060462
test byte [eax + 0x1c], 2
je 0x1060462
cmp byte [eax + 0x19], 2
jb 0x1060462
push ebx
push 0x10054f0
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x106071d
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x220], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x10054f0
cmp eax, esi
je 0x106076a
test byte [eax + 0x1c], 2
je 0x106076a
cmp byte [eax + 0x19], 5
jb 0x106076a
push ebx
push 0x12
push dword [eax + 0x14]
jo 0x1060776
push dword [eax + 0x10]
call fcn.010090c5
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x100594c
push 0x1005938
push 0x104
push eax
call fcn.01009a76
add esp, 0x14
cmp eax, edi
mov dword [ebp - 0x214], eax
jge 0x10607e0
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10607be
test byte [eax + 0x1c], 2
je 0x10607be
cmp byte [eax + 0x19], 2
jb 0x10607be
push dword [ebp - 0x214]
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [ebp - 0x214]
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x1060a02
movzx eax, ax
jmp 0x1060a02
push 0x2001f
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call fcn.0105fce9
mov dword [ebp - 0x210], eax
cmp eax, edi
jne 0x1060834
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106082d
test byte [eax + 0x1c], 2
je 0x106082d
cmp byte [eax + 0x19], 3
jb 0x106082d
push edi
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push 0x10058e8
push eax
call fcn.010601a8
test eax, eax
jne 0x1060866
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1060866
test byte [eax + 0x1c], 2
je 0x1060866
cmp byte [eax + 0x19], 3
jb 0x1060866
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 0x10058c4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x106089e
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106089e
test byte [eax + 0x1c], 2
je 0x106089e
cmp byte [eax + 0x19], 3
jb 0x106089e
push ebx
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push edi
push edi
lea eax, [ebp - 0x220]
push eax
push edi
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x214], eax
cmp eax, edi
je 0x1060906
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10609f0
test byte [eax + 0x1c], 2
je 0x10609f0
cmp byte [eax + 0x19], 3
jb 0x10609f0
push ebx
push 0x17
jmp 0x10609e5
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], edi
jne 0x10609fc
cmp dword [ebp - 0x21c], edi
jne 0x10609fc
Function at 0x10610b2
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x120], 0
push ebx
push esi
push edi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x1075004]
mov esi, 0x1075004
push 2
mov edi, 0x10059e0
pop ebx
cmp eax, esi
je 0x1061116
test byte [eax + 0x1c], bl
je 0x1061116
cmp byte [eax + 0x19], 5
jb 0x1061116
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1061165
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106115e
test byte [eax + 0x1c], bl
je 0x106115e
cmp byte [eax + 0x19], bl
jb 0x106115e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor eax, eax
jmp 0x1061212
cmp dword [ebp - 0x110], ebx
je 0x1061191
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106115e
test byte [eax + 0x1c], bl
je 0x106115e
cmp byte [eax + 0x19], 3
jb 0x106115e
push edi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x106115e
cmp dword [ebp - 0x11c], 5
jae 0x10611b3
mov eax, dword [0x1075004]
cmp eax, esi
je 0x106115e
test byte [eax + 0x1c], bl
je 0x106115e
cmp byte [eax + 0x19], 3
jb 0x106115e
push edi
push 0xe
jmp 0x1061184
mov eax, dword [ebp - 8]
test al, 0x40
je 0x10611cc
xor eax, eax
cmp byte [ebp - 6], 1
setne al
dec eax
and eax, 0xffffffe0
add eax, 0x40
jmp 0x1061212
test eax, 0x200
je 0x10611d8
xor eax, eax
inc eax
jmp 0x1061212
test bl, al
je 0x10611e0
push 8
jmp 0x1061211
test al, al
jns 0x10611e8
push 0x10
jmp 0x1061211
test eax, 0x400
je 0x10611f6
mov eax, 0x80
jmp 0x1061212
cmp byte [ebp - 6], 1
jne 0x1061200
mov eax, ebx
jmp 0x1061212
cmp byte [ebp - 6], 3
je 0x106120f
cmp byte [ebp - 6], bl
jne 0x106115e
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret

Function at 0x1062a11
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001c60
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1062a3c
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005c64
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1062a69
cmp dword [ebp - 0x10], 4
je 0x1062a6d
and dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret