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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x210], ebx
xor edi, edi
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x22c], 0x104
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
je 0x105d181
cmp esi, 0xea
jne 0x105d0e3
cmp dword [ebp - 0x210], ebx
je 0x105d0eb
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [ebp - 0x210], ebx
cmp dword [ebp - 0x210], ebx
jne 0x105d145
mov edi, dword [ebp - 0x220]
shr edi, 4
inc edi
shl edi, 4
push edi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x105d06e
push 0xe
pop esi
cmp dword [ebp - 0x210], ebx
je 0x105d124
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp esi, ebx
jne 0x105d250
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
push ebx
jmp 0x105d230
cmp esi, ebx
jne 0x105d171
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp - 0x228]
push ebx
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
inc dword [ebp - 0x214]
cmp esi, ebx
je 0x105d06e
jmp 0x105d110
xor esi, esi
jmp 0x105d110
lea eax, [ebp - 0x210]
push eax
push 0x109
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x105d1ee
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x20106
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x105d1ee
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call fcn.0105d034
cmp dword [ebp - 0x210], ebx
je 0x105d208
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], ebx
cmp dword [ebp - 0x218], ebx
je 0x105d21c
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x214]
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
cmp esi, ebx
je 0x105d185
cmp esi, 0x103
jne 0x105d250
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8
Function at 0x105d64a
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x624], esi
cmp eax, esi
je 0x105d89d
cmp ecx, esi
je 0x105d89d
lea ecx, [ebp - 0x624]
push ecx
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x105d722
push ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
mov ebx, 0x104
push esi
mov dword [ebp - 0x620], esi
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x634], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x105d7ce
mov esi, 0x1001e44
lea eax, [ebp - 0x20c]
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x105d731
test dx, dx
je 0x105d71e
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x105d731
add ecx, 4
add eax, 4
test dx, dx
jne 0x105d6fc
xor eax, eax
jmp 0x105d736
mov dword [ebp - 0x620], 0x80070057
jmp 0x105d880
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x105d770
mov eax, dword [ebp - 0x638]
cmp eax, 6
je 0x105d7bf
cmp eax, 8
je 0x105d7bf
cmp eax, 9
je 0x105d7bf
cmp eax, 3
je 0x105d7bf
cmp eax, 7
je 0x105d7bf
push dword [ebp - 0x628]
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0103586b
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x61c]
push eax
mov dword [ebp - 0x628], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x105d7ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x105d7a2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x620], eax
test eax, eax
jl 0x105d87f
mov dword [ebp - 0x620], 0x80004005
jmp 0x105d87f
mov dword [ebp - 0x620], 0x80070523
jmp 0x105d87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x105d7e2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x620], eax
cmp eax, esi
jmp 0x105d7aa
lea eax, [ebp - 0x414]
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x105d81a
test dx, dx
je 0x105d816
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x105d81a
add ecx, 4
add eax, 4
test dx, dx
jne 0x105d7f4
xor eax, eax
jmp 0x105d81f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x105d86a
push 0xffffffffffffffff
lea eax, [ebp - 0x61c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x105d86a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x100286c
push dword [ebp + 0x10]
push dword [ebp - 0x62c]
call fcn.01035968
add esp, 0x14
jmp 0x105d87f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x62c]
call fcn.0103586b
pop ebx
cmp dword [ebp - 0x624], 0
je 0x105d895
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x620]
jmp 0x105d8a2
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 0xc
Function at 0x105dd85
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01058c4e
test eax, eax
je 0x105ddeb
push 0x100b908
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.010358e7
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
je 0x105ddeb
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047480
leave
ret

Function at 0x105ddfc
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
inc eax
push 0x104
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01058c4e
test eax, eax
je 0x105defe
push ebx
push esi
push 0x100b908
mov esi, 0x208
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov dword [ebp - 0x418], ebx
call fcn.010358e7
cmp edi, ebx
je 0x105de8e
push edi
push 0x100b938
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01035968
add esp, 0x10
lea eax, [ebp - 0x418]
push eax
push 0x20106
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x80000003
jmp 0x105dea5
lea eax, [ebp - 0x418]
push eax
push 0x20106
push ebx
push 0x1003da0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x418], ebx
je 0x105defc
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x105dec2
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x100b924
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
xor ecx, ebp
pop edi
call fcn.01047480
leave
ret 4
Function at 0x105dfe6
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x730
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x724], esi
call fcn.0105d268
lea eax, [ebp - 0x724]
push eax
push 0x20119
push esi
push 0x100bb40
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x105e214
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x730], 0x80
mov dword [ebp - 0x728], esi
mov dword [ebp - 0x72c], esi
mov ebx, 0x208
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x728]
push dword [ebp - 0x724]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x105e206
inc dword [ebp - 0x728]
lea eax, [ebp - 0x72c]
push eax
push 0x20119
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x724]
mov dword [ebp - 0x730], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x105e206
lea eax, [ebp - 0x104]
push eax
push 0x100bb14
push 4
call fcn.01055c8a
add esp, 0xc
push ebx
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0105d64a
cmp eax, esi
jl 0x105e1e5
push ebx
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x720], esi
call fcn.0105d8b6
test eax, eax
je 0x105e1d7
lea eax, [ebp - 0x104]
push eax
push 0x100bab0
lea eax, [ebp - 0x71c]
push ebx
push eax
call fcn.01035968
add esp, 0x10
push esi
lea eax, [ebp - 0x720]
push eax
push esi
push 0x20106
push esi
push esi
push esi
lea eax, [ebp - 0x71c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105e1f5
lea eax, [ebp - 0x30c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105e160
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x30c]
push eax
push 1
push esi
push 0x100ba98
push dword [ebp - 0x720]
call edi
lea eax, [ebp - 0x514]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x105e193
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x514]
push eax
push 1
push esi
push 0x100ba74
push dword [ebp - 0x720]
call edi
push dword [ebp - 0x720]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100ba60
push 4
call fcn.01055c50
jmp 0x105e1f5
lea eax, [ebp - 0x30c]
push eax
push 0x100ba38
jmp 0x105e1eb
push eax
push 0x100ba18
push 2
call fcn.01055c8a
add esp, 0xc
push dword [ebp - 0x72c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x105e051
push dword [ebp - 0x724]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret
Function at 0x105e226
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push edi
inc eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x620]
push eax
xor ecx, ecx
mov edi, 0x101
push edi
push ecx
push 0x100bcf8
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x620], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], ecx
call esi
test eax, eax
je 0x105e2ae
lea eax, [ebp - 0x620]
push eax
push edi
xor edi, edi
push edi
push 0x100bc78
push ebx
mov dword [ebp - 0x62c], 2
call esi
test eax, eax
je 0x105e2b0
xor eax, eax
jmp 0x105e456
xor edi, edi
push 0x100bc50
push 4
call fcn.01055c50
cmp dword [ebp - 0x620], edi
je 0x105e38b
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push edi
push 0x100a668
push dword [ebp - 0x620]
mov esi, 0x208
mov dword [ebp - 0x630], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105e375
cmp dword [ebp - 0x624], 2
je 0x105e310
cmp dword [ebp - 0x624], 1
jne 0x105e375
cmp dword [ebp - 0x624], 2
mov dword [ebp - 0x628], 1
jne 0x105e375
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x105e358
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103586b
test eax, eax
jge 0x105e375
push 0x100bc18
push 4
call fcn.01055c50
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x105e2a7
push dword [ebp - 0x620]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x628], edi
jne 0x105e39c
push 0x100bc18
push 4
call fcn.01055c50
jmp 0x105e2a7
push edi
lea eax, [ebp - 0x620]
push eax
push edi
push 0x20106
push edi
push edi
push edi
push 0x1001c88
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105e3e2
push 4
lea eax, [ebp - 0x62c]
push eax
push 4
push edi
push 0x100b2e4
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call esi
cmp dword [ebp - 0x62c], 2
jne 0x105e3f0
call fcn.0105dfe6
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
lea eax, [ebp - 0x20c]
push 0x100bc00
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x105e450
lea eax, [ebp - 0x20c]
push 0x100bbfc
push eax
call esi
pop ecx
pop ecx
cmp eax, edi
je 0x105e450
push eax
push 0x100bba8
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01035968
add esp, 0x10
test eax, eax
jl 0x105e450
push 0xffff
push 1
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0105983a
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret
Function at 0x105e983
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x1001b38
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105e9f0
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x100beb4
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105e9e6
cmp dword [ebp - 8], esi
jne 0x105e9e6
cmp dword [ebp - 0xc], 1
sete al
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x10608c1
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x21c], edi
test eax, eax
je 0x1060b16
test edi, edi
je 0x1060b16
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
xor ecx, ecx
push 0x5c
push edi
mov word [eax], cx
call esi
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x1060917
mov ebx, edi
jmp 0x1060919
inc ebx
inc ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1060954
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x106093f
push 0x57
pop eax
test eax, eax
jle 0x1060b1b
and eax, 0xffff
or eax, 0x80070000
jmp 0x1060b1b
push 0x100cd28
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
xor edi, edi
test eax, eax
je 0x1060ad8
push 4
pop eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], edi
push 0x100cce0
push eax
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
call fcn.01055c8a
add esp, 0xc
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x100cc70
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1060a44
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1060a1f
cmp dword [ebp - 0x220], 4
jne 0x1060a1f
cmp dword [ebp - 0x214], 1
setne al
mov dword [ebp - 0x214], eax
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x1060ad8
cmp ebx, edi
je 0x1060afd
cmp dword [ebp + 0x10], edi
je 0x1060ab3
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
pop ecx
pop ecx
cmp eax, edi
je 0x1060b02
push 0x5c
push dword [ebp - 0x21c]
xor ecx, ecx
mov word [eax], cx
call esi
pop ecx
pop ecx
cmp eax, edi
jne 0x1060a8f
mov eax, dword [ebp - 0x21c]
jmp 0x1060a91
inc eax
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100cc58
push 0x103
push dword [ebp - 0x210]
call fcn.01035968
add esp, 0x14
jmp 0x1060b02
push 0x100cc50
mov esi, 0x103
push esi
push dword [ebp - 0x210]
call fcn.01035831
push ebx
push esi
push dword [ebp - 0x210]
call fcn.010358a6
jmp 0x1060b02
cmp ebx, edi
je 0x1060afd
cmp dword [ebp + 0x10], edi
je 0x1060aea
lea eax, [ebp - 0x20c]
push eax
jmp 0x1060aeb
push ebx
push 0x103
push dword [ebp - 0x210]
call fcn.01035831
jmp 0x1060b02
mov edi, 0x80004005
push edi
push 0x100cc20
push 4
call fcn.01055c8a
add esp, 0xc
mov eax, edi
jmp 0x1060b1b
mov eax, 0x8007000e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 0xc
Function at 0x10612a5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.010607ce
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
cmp dword [ebp - 0x14], esi
je 0x106138d
cmp dword [ebp - 8], esi
je 0x106138d
lea eax, [ebp + 0xc]
push eax
push 3
push esi
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106138d
lea eax, [ebp + 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp + 8], 1
push dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106133e
inc eax
cmp dword [ebp + 8], eax
jne 0x106133e
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x106138d
test byte [ebp + 0x18], 0x40
je 0x1061366
push 0x3b
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, esi
je 0x1061366
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x18]
xor eax, 0xf
je 0x10613ba
push ebx
call fcn.010587e2
test eax, eax
je 0x106138d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106137d
sub eax, edx
sar eax, 1
jne 0x10613ba
cmp dword [ebp - 0xc], esi
je 0x10613ba
push dword [ebp - 0xc]
shr edi, 1
push edi
push ebx
call fcn.01035831
mov eax, dword [ebp + 0x18]
or eax, 0xf
jne 0x10613b3
push ebx
call fcn.010587e2
mov dword [ebp - 4], esi
test eax, eax
je 0x10613ba
mov dword [ebp - 4], 1
test byte [ebp + 0x18], 0x20
je 0x10613cb
xor eax, eax
cmp dword [ebp - 4], esi
sete al
mov dword [ebp - 4], eax
cmp dword [ebp - 8], esi
je 0x10613d9
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x10], esi
je 0x10613e7
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0xc], esi
pop edi
pop esi
pop ebx
je 0x10613f8
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 0x14
Function at 0x10625f3
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
xor ecx, ecx
inc ecx
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], ecx
je 0x106271f
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1062617
mov eax, 0x100c900
push ecx
push 0x100ca8c
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push 0
call fcn.01060c0b
test eax, eax
je 0x106271f
and dword [ebp - 8], 0
push 0x26d7
call fcn.010552a2
lea eax, [ebp - 0x1c]
push eax
call fcn.0106058d
mov dword [ebp - 0xc], eax
test eax, eax
je 0x106271f
push ebx
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, 0x1007d6c
push ebx
push eax
jmp 0x1062705
push esi
push 0x100d500
push 4
call fcn.01055c8a
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push dword [ebp + 8]
call fcn.0105c6af
test eax, eax
je 0x1062702
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], 1
call fcn.0105c576
push eax
mov dword [ebp - 4], eax
call fcn.0105508f
cmp dword [ebp - 4], 1
jb 0x1062702
push dword [ebp + 0xc]
call fcn.0105522c
inc dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.0106058d
mov esi, eax
test esi, esi
je 0x10626eb
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call fcn.010587e2
push esi
push 0x100d4e0
push 4
call fcn.01055c8a
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x1062702
mov eax, dword [ebp - 4]
cmp dword [ebp + 0xc], eax
jbe 0x10626ae
push ebx
push 0
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x106266c
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
leave
ret 8
Function at 0x1064634
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push esi
mov dword [ebp - 0x21c], eax
mov esi, 0x80004005
test eax, eax
jne 0x106466b
lea eax, [esi - 2]
jmp 0x106477e
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x10095f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106477c
push ebx
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 1
cmp ebx, esi
jbe 0x10646b1
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x100daa4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1064719
cmp dword [ebp - 0x214], 1
jne 0x1064719
lea eax, [ebp - 0x20c]
push eax
call fcn.010587e2
test eax, eax
je 0x10646fa
xor esi, esi
jmp 0x106472c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.010587e2
test eax, eax
jne 0x10646f6
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010643af
mov esi, eax
test esi, esi
jne 0x106476f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1064735
sub eax, edx
sar eax, 1
mov ecx, ebx
shr ecx, 1
inc eax
cmp ecx, eax
jbe 0x1064761
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x21c]
call fcn.01035831
jmp 0x106476f
mov eax, 0x8007007a
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 8