joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10341a7
Capabilities:
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
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x210], esi
cmp ebx, esi
je 0x10342b8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x1001f80
push 0x80000002
call edi
test eax, eax
jne 0x1034281
and dword [ebp - 0x214], esi
lea eax, [ebp - 0x214]
push eax
push 1
push esi
push ebx
push dword [ebp - 0x210]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1034279
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x1001f58
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1034271
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x210]
call edi
mov ecx, 0x100173c
mov eax, ebx
pop edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10342af
test dx, dx
je 0x10342ab
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10342af
add eax, 4
add ecx, 4
test dx, dx
jne 0x1034289
xor eax, eax
jmp 0x10342b4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10342cd
push 0
push 0x1001e18
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 4
Function at 0x10342e4
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x214], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
cmp eax, edi
je 0x10343fc
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x210], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x218], eax
cmp eax, edi
je 0x10343fc
push ebx
xor ebx, ebx
cmp dword [ebp - 0x210], edi
jle 0x10343fb
push esi
mov eax, dword [ebp - 0x218]
lea esi, [eax + ebx*4]
push 0x1001ff8
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x10343ed
push 0x3a
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x10343ed
inc esi
inc esi
je 0x10343ed
push esi
call fcn.010561ca
test eax, eax
je 0x10343ed
push edi
push 2
push edi
push esi
call fcn.0105c63f
mov esi, eax
cmp esi, 0xffffffff
je 0x10343ed
lea eax, [ebp - 0x228]
push eax
push 0x10094c0
push 0x1001fd8
push esi
call fcn.0105c68e
test eax, eax
je 0x10343e6
push 0xffffffffffffffff
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
call fcn.0105c067
cmp eax, edi
mov dword [ebp - 0x214], eax
jl 0x10343e6
push 1
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0105b5a5
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
inc ebx
cmp ebx, dword [ebp - 0x210]
jl 0x1034346
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop edi
call fcn.01047464
leave
ret

Function at 0x1034414
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
push 0x1002088
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsstr]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x10344af
push esi
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x10344ae
push edi
lea eax, [ebp + 8]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002038
push 0x80000002
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10344ae
inc esi
inc esi
je 0x10344a5
push 0x1001e44
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10344a5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1034482
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push edi
push 0x1002018
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebp
ret 4
Function at 0x10349b7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push esi
push esi
push 0x1001b38
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1034a28
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10020d0
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1034a1e
cmp dword [ebp - 8], edi
jne 0x1034a1e
cmp dword [ebp - 0xc], 1
sete al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1034b43
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x1002120
push 0x80000002
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1034bbf
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 0x100173c
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1034bb5
cmp dword [ebp - 8], esi
jne 0x1034bb5
cmp dword [ebp - 0xc], edi
sete bl
cmp ebx, edi
je 0x1034bb5
push 0x1002104
push esi
call fcn.01055c2f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1034ca2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.01056434
cmp eax, 6
jne 0x1034cce
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 6
pop eax
xor ecx, ecx
cmp ax, word [ebp - 0x24]
setne cl
mov eax, ecx
leave
ret
mov ecx, dword [0x10739c8]
push edi
xor edi, edi
test ecx, ecx
je 0x1034cf9
push esi
call fcn.010465d8
mov esi, eax
call fcn.0105c72d
test eax, eax
jne 0x1034cf0
test esi, esi
jmp 0x1034cf3
cmp esi, 1
jne 0x1034cf8
xor edi, edi
inc edi
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x1034d4a
Capabilities:
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
push ebx
lea eax, [ebp - 0x208]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1002260
push 0x80000002
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x208], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1034e79
push esi
push 3
pop esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x1002250
push dword [ebp - 0x208]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1034e6c
cmp dword [ebp - 0x218], esi
jne 0x1034e6c
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.0105a990
test eax, eax
je 0x1034e6c
mov eax, dword [ebp - 0x210]
shr eax, 0x10
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ecx, eax
movzx eax, word [ebp - 0x210]
mov esi, edx
cdq
or ecx, eax
mov eax, dword [ebp - 0x20c]
or esi, edx
shld esi, ecx, 0x10
shr eax, 0x10
cdq
push edi
shl ecx, 0x10
or ecx, eax
movzx eax, word [ebp - 0x20c]
or esi, edx
mov edi, ecx
shld esi, edi, 0x10
cdq
shl edi, 0x10
or edi, eax
lea eax, [ebp - 0x204]
push eax
or esi, edx
call fcn.01055edd
cmp edx, esi
ja 0x1034e6b
jb 0x1034e65
cmp eax, edi
jae 0x1034e6b
mov dword [ebp - 0x214], ebx
pop edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret

Function at 0x1034e91
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
push edi
push 0x1002308
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1034eb5
inc edi
test esi, esi
je 0x1034ec7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x103514c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
mov esi, 0x1001b38
cmp dword [0x107399c], edi
jne 0x10351bd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
push eax
push edi
push 2
push edi
push edi
push edi
push esi
push 0x80000002
call ebx
test eax, eax
je 0x1035198
push edi
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push esi
push 0x80000001
call ebx
cmp dword [ebp - 4], edi
je 0x1035214
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x1001b18
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x103520b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 2
push edi
push esi
push 0x80000002
call ebx
test eax, eax
jne 0x10351ea
push 0x1001b18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 2
push edi
push esi
push 0x80000001
call ebx
test eax, eax
jne 0x1035214
push 0x1001b18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x103521e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
je 0x10352e0
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
cmp eax, ebx
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
mov dword [ebp - 4], eax
je 0x103529b
lea ecx, [ebp - 0x24]
push ecx
push eax
call edi
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push 0
call ebx
cmp dword [ebp + 0x14], 0
je 0x103529b
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x10352df
lea ecx, [ebp - 0x14]
push ecx
push eax
call edi
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor edi, edi
push edi
call ebx
mov eax, dword [ebp - 0x20]
push 1
push edi
push edi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x10356f2
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
lea eax, [ebp - 4]
push eax
push 3
xor ebx, ebx
push ebx
push 0x1001c88
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035806
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001d08
push dword [ebp - 4]
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 1
call edi
mov esi, 0x10023dc
test eax, eax
jne 0x10357d7
cmp dword [ebp - 0x10], 0xd2af9
je 0x103576d
cmp dword [ebp - 0x10], 0xc00d2afb
jne 0x10357d7
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0xc], 1
call fcn.010339b2
test eax, eax
jne 0x10357c6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 8
call edi
test eax, eax
jne 0x10357c6
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jb 0x10357c3
ja 0x10357ae
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jbe 0x10357c3
push 8
lea eax, [ebp - 0x1c]
push eax
push 3
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10357c6
mov dword [ebp - 0xc], ebx
call fcn.010567a8
test eax, eax
jne 0x10357d2
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
jne 0x10357fb
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push 0x1001d08
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x10359b2
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1002454
lea edi, [ebp - 0x61c]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
xor ebx, ebx
lea eax, [ebp - 0x602]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
push 7
pop ecx
mov esi, 0x1002434
lea edi, [ebp - 0x414]
rep movsd dword es:[edi], dword [esi]
push 0x1ea
lea eax, [ebp - 0x3f6]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x61c]
add esp, 0x18
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x628], 2
mov esi, 0x1002428
lea eax, [ebp - 0x624]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x620]
xor edi, edi
push 0x80000000
mov dword [ebp - 0x624], ebx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035a9f
push 4
lea eax, [ebp - 0x62c]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x624]
mov dword [ebp - 0x62c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1035a8f
push esi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edi, edi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x1035af3
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push 0x1002408
push 0x104
push eax
call fcn.0103590d
add esp, 0x10
test eax, eax
jl 0x1035af3
push 4
push 1
mov edi, 0x10000000
push edi
push 0x1002400
lea eax, [ebp - 0x20c]
push eax
call fcn.01057c50
push 4
push 1
push edi
push 0x10023f8
lea eax, [ebp - 0x20c]
push eax
call fcn.01057c50
add dword [ebp - 0x620], 0x208
dec dword [ebp - 0x628]
jne 0x1035a32
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret
Function at 0x1035e2d
Capabilities:
Delete registry value
Persist via run registry key
Set 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
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1001c88
push 0x80000001
mov dword [ebp - 0x210], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1035e99
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1001d08
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1001c88
push 0x80000002
call ebx
test eax, eax
jne 0x1035fbd
cmp dword [ebp + 8], 0xd2af9
je 0x1035ee3
cmp dword [ebp + 8], 0xc00d2afb
je 0x1035ee3
push 0x10023dc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1035f9b
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x214], esi
call fcn.010339b2
test eax, eax
jne 0x1035f12
push 8
lea eax, [ebp - 0x21c]
push eax
push 3
push esi
push 0x10023dc
push dword [ebp - 0x210]
call edi
lea eax, [ebp - 0x214]
push eax
push 2
push esi
push 0x1002568
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035f9b
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01058148
test eax, eax
je 0x1035f8f
push 0x1002554
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
test eax, eax
jl 0x1035f8f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1035f65
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x1002534
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1001d08
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 4
Function at 0x103600f
Capabilities:
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 + 0x14]
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x214], ecx
cmp eax, ecx
je 0x10360d1
cmp esi, ecx
je 0x10360d1
cmp ebx, ecx
je 0x10360d1
lea edx, [ebp - 0x210]
push edx
push 0x20019
push ecx
xor edi, edi
push eax
inc edi
push 0x80000000
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10360d1
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10360bc
cmp dword [ebp - 0x218], edi
jne 0x10360bc
mov dword [ebp - 0x214], edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
jne 0x10360d8
push 0x10026bc
jmp 0x10360df
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.01035811
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 0x10

Function at 0x10360fe
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x1036122
xor eax, eax
jmp 0x1036199
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1036197
lea eax, [ebp - 0x414]
cmp dword [ebp + 0xc], edi
je 0x1036150
push 0x10019d4
push eax
push 0x10026f0
jmp 0x103615b
push 0x10019a4
push eax
push 0x10026cc
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.01035948
add esp, 0x14
cmp eax, edi
jl 0x1036197
lea eax, [ebp - 0x20c]
push eax
call fcn.010561ca
test eax, eax
je 0x1036197
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
inc edi
call fcn.01056c8f
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 8

Function at 0x10362a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10362b9
xor eax, eax
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010360fe
test eax, eax
jne 0x10362b5
push 0x1002714
push 2
call fcn.01055c2f
pop ebp
jmp fcn.010361ae
Function at 0x1036624
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0106e3bd
lea eax, [ebp - 0x10]
push eax
call fcn.01041912
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x10020d0
test eax, eax
jl 0x103668f
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103668f
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1036691
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push eax
push eax
push eax
push 0x1001b38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10366c5
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea ecx, [ebp - 0x10]
call fcn.0106de0a
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10366d9
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call fcn.010561ca
test eax, eax
je 0x103679a
push edi
push 0x8000080
push 3
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1036727
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x103679a
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035811
test eax, eax
jl 0x103679a
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010583d3
lea eax, [ebp - 0x20c]
push eax
push 0x1002758
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0103590d
add esp, 0x10
test eax, eax
jl 0x103679a
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1036797
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
jmp 0x103679a
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 4