joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1034976
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1046080]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
push 0x1034a7c
push ebx
mov dword [ebp - 4], eax
mov edi, ecx
call esi
test eax, eax
jne 0x10349bb
cmp dword [0x1046090], eax
push 1
sete al
mov ecx, edi
push eax
call fcn.0100459c
jmp 0x1034a57
push 0x1034a70
push ebx
call esi
test eax, eax
jne 0x1034a57
and dword [ebp - 0x248], eax
push 0xe
pop ecx
lea edi, [ebp - 0x244]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1034a57
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
test eax, eax
mov dword [ebp - 0x224], eax
je 0x1034a57
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 4
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x23c], 0x1020dac
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x224]
call dword [sym.imp.SHELL32.dll_ILFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret 4

Function at 0x1034a8f
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x1046080]
push ebx
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
push 0x16
lea eax, [ebp - 0x478]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1034b7e
cmp dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x270]
mov esi, 0x136
je 0x1034ad6
push 0x1034bb0
jmp 0x1034adb
push 0x1034b90
push esi
push eax
call fcn.01002ca8
push edi
lea eax, [ebp - 0x478]
push eax
push esi
lea eax, [ebp - 0x270]
push eax
call fcn.01002d79
push 0x1034b8c
push esi
lea eax, [ebp - 0x270]
push eax
call fcn.01002d79
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c8]
rep stosd dword es:[edi], eax
inc eax
mov dword [ebp - 0x4a0], eax
mov word [ebp - 0x49c], ax
xor eax, eax
mov dword [ebp - 0x488], ebx
lea edi, [ebp - 0x484]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x4cc]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x270]
push eax
push ebx
mov dword [ebp - 0x4cc], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x1034b7d
push dword [ebp - 0x488]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x484]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010019ca
leave
ret 4
Function at 0x1035219
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x43c], esi
jne 0x10352ca
push 2
push dword [ebp + 8]
call fcn.01020ba5
test eax, eax
jne 0x10352ca
push 0xffffffffffffffff
push esi
push 3
push 0x28
push 0x10166bc
call fcn.0101a96d
push esi
push esi
push esi
push 0x10352d0
push 0x101c6d8
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x103527c
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x1035283
mov ecx, edi
call fcn.01034f4d
mov ecx, edi
call fcn.01033791
push dword [ebp + 8]
lea esi, [edi + 0x3fc]
mov dword [esi], 2
call dword [sym.imp.SHELL32.dll_Ordinal_60]
and dword [esi], 0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jge 0x10352ca
push 0x11
call esi
test ax, ax
jge 0x10352ca
push 0x12
call esi
test ax, ax
jge 0x10352ca
mov ecx, edi
call fcn.010325f8
pop edi
pop esi
pop ebp
ret 4

Function at 0x1035a25
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
mov edi, ecx
cmp dword [edi + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1035a8b
cmp dword [ebp + 8], ebx
push esi
push 5
pop eax
lea esi, [edi + 8]
je 0x1035a49
mov dword [esi], eax
jmp 0x1035a4b
inc dword [esi]
cmp dword [esi], eax
ja 0x1035a8a
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push 0x10126c0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035a8a
push 4
push esi
push 4
push ebx
push 0x10126a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov dword [edi + 0xc], ebx
pop edi
pop ebx
leave
ret 4
Function at 0x1035a99
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
mov ebx, 0x80000001
je 0x1035b3f
push 1
push 0x101273c
push 0x10126c0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
test eax, eax
mov dword [ebp - 4], eax
je 0x1035b3f
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
pop edi
push dword [esi + 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x14], 0x10001
call dword [0x102c01c]
test eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jbe 0x1035b2f
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_Write]
test eax, eax
jl 0x1035b2f
push dword [ebp - 4]
push dword [esi + 0x1c]
call dword [0x1035b78]
test eax, eax
je 0x1035b2f
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 8], 0
pop edi
jne 0x1035b71
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x10126c0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035b71
push 0x101273c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x1035be2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [ecx + 0x18], eax
je 0x1035c42
mov dword [ecx + 0x18], eax
xor ecx, ecx
test eax, eax
lea eax, [ebp + 8]
push eax
push 0x20006
setne cl
push 0
push 0x101c820
push 0x80000001
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035c3d
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x1015e64
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1035c44
xor eax, eax
leave
ret 4
Function at 0x1036eb3
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x28c], ebx
call fcn.010361df
push dword [ebp + 8]
mov dword [ebp - 8], eax
call fcn.01036221
test eax, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x1036efe
push ebx
push dword [esi + 0x2dc]
push 0x419
push dword [esi + 0x14]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1036f36
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x445
push dword [esi + 0x14]
mov dword [ebp - 0x10], ecx
call edi
cmp dword [ebp - 8], ebx
mov dword [ebp - 4], eax
je 0x1036f36
push eax
push dword [esi + 0x14]
call fcn.0103c507
mov dword [esi + 0x2dc], eax
push dword [ebp - 4]
lea ecx, [esi + 0x23c]
call fcn.0101d228
mov edi, eax
cmp edi, ebx
je 0x1036ff7
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1036fe5
cmp dword [ebp - 8], ebx
je 0x1036fd8
push dword [edi]
call fcn.0103c1a1
mov eax, dword [esi + 0x2bc]
cmp eax, ebx
je 0x1036fb9
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x1036fb9
mov ecx, dword [eax + 4]
cmp ecx, dword [edi + 4]
jne 0x1036fb9
cmp dword [ebp + 8], 0x204
je 0x1036f9c
cmp dword [ebp + 8], 0x206
je 0x1036f9c
mov dword [esi + 0x314], ebx
jmp 0x1036fa6
mov dword [esi + 0x314], 1
push 0x405
push ebx
push ebx
push dword [eax + 4]
mov ecx, esi
push dword [eax]
call fcn.0101e0dd
push 3
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0101d28b
push ebx
mov ecx, esi
mov dword [esi + 0x2c8], 1
call fcn.0101e010
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0101e235
jmp 0x1036ff2
push 1
push ebx
push dword [ebp - 4]
mov ecx, esi
call fcn.0101e8f1
xor eax, eax
inc eax
jmp 0x1036ff9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1037337
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x5de
push esi
mov esi, ecx
jne 0x103735c
cmp dword [ebp + 0xc], 6
je 0x1037428
call fcn.01037005
jmp 0x1037428
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x1037427
push ebx
push dword [esi + 0x14]
lea ecx, [esi + 0x23c]
push edi
push dword [ebp + 8]
call fcn.0101d243
mov ebx, eax
cmp ebx, edi
je 0x1037426
cmp dword [esi + 0x26c], edi
je 0x10373a7
push edi
push dword [ebp + 8]
push 0x419
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov ecx, esi
call fcn.01036093
push dword [ebx]
call fcn.0103c1a1
cmp dword [ebx + 0x10], 3
jb 0x10373e4
xor eax, eax
cmp dword [esi + 0x26c], edi
mov ecx, esi
setne al
add eax, 0x400
push eax
push ebx
call fcn.0101e235
cmp dword [esi + 0x26c], edi
je 0x1037426
cmp dword [esi + 0x270], edi
je 0x1037426
push 0x401
jmp 0x103741e
cmp dword [esi + 0x26c], edi
je 0x1037426
push 0x201
push ebx
mov ecx, esi
call fcn.0101e235
mov edi, 0x202
push edi
push ebx
mov ecx, esi
call fcn.0101e235
cmp dword [esi + 0x270], 0
je 0x1037426
push 0x203
push ebx
mov ecx, esi
call fcn.0101e235
push edi
mov ecx, esi
push ebx
call fcn.0101e235
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x1037d37
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1046080]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edx, [ebp - 0x210]
push edx
mov edx, dword [ebp + 0x14]
or edx, 0x20019
push edx
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1037df8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1037dec
cmp word [ebp - 0x20c], bx
je 0x1037dec
push ebx
push ebx
push 0x146
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
mov edi, eax
jmp 0x1037de9
push ebx
push edi
push 0x150
push dword [ebp - 0x214]
call esi
cmp eax, ebx
je 0x1037de9
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
je 0x1037e09
dec edi
jns 0x1037dc4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret 0x10
push ebx
push edi
push 0x14e
push dword [ebp - 0x214]
call esi
xor eax, eax
inc eax
jmp 0x1037dfa

Function at 0x1037e22
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x1046080]
push esi
mov dword [ebp - 0x420], ecx
lea ecx, [ebp - 0x418]
push ecx
mov ecx, dword [ebp + 0x10]
or ecx, 0x20019
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1037f4d
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1037f40
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
inc dword [ebp - 0x41c]
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.0103e344
test eax, eax
jl 0x1037f1d
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push 0x158
push dword [ebp - 0x420]
call esi
cmp eax, 0xffffffff
jne 0x1037f1d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov ebx, eax
test ebx, ebx
je 0x1037f1d
lea eax, [ebp - 0x414]
push eax
push 0
push 0x143
push dword [ebp - 0x420]
call esi
test eax, eax
push ebx
jl 0x1037f17
push eax
push 0x151
push dword [ebp - 0x420]
call esi
jmp 0x1037f1d
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1037e9a
pop ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.010019ca
leave
ret 0xc
Function at 0x10380b5
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1046080]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xb
xor esi, esi
push esi
push 0x10381c8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10381ba
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x103816a
jmp 0x1038172
dec dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1038172
cmp dword [ebp - 0x21c], 8
jbe 0x103816a
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x210], esi
jge 0x1038110
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 2
push 8
lea eax, [ebp - 0x224]
push eax
push 3
push 0x100adf8
push 0x100c990
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
push 0xffffffffffffffff
push 1
push 3
push 0x28
push 0x10166bc
call fcn.0101a96d
mov ecx, dword [ebp - 4]
pop esi
call fcn.010019ca
leave
ret

Function at 0x10383f1
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x463
cmp dword [esi + 8], eax
mov ebx, ecx
je 0x103841e
push 0x102b3e8
push 0xc
push 0
push dword [esi + 0xc]
call dword [sym.imp.SHELL32.dll_Ordinal_127]
jmp 0x103847d
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x70
mov edi, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x1038443
push 0
push 9
push 0x110a
jmp 0x1038465
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
pop edi
je 0x103847d
mov ecx, dword [ebx + 0x64]
mov edx, dword [ecx]
push 0xc
push eax
push ecx
call dword [edx + 0x18]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 8
Function at 0x10387e7
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1046080]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x428]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x10388d6
and dword [ebp - 0x464], edi
push 0xe
pop ecx
xor eax, eax
push esi
lea edi, [ebp - 0x460]
rep stosd dword es:[edi], eax
push 0x1038904
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x464], 0x3c
mov dword [ebp - 0x45c], ebx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
push 0x10e
lea eax, [ebp - 0x220]
je 0x1038888
push 0x10388fc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x21a]
jmp 0x103889a
push 0x10388e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20e]
push 0
push 0xb
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x450], eax
mov eax, dword [0x10466f0]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x464]
push eax
mov dword [ebp - 0x448], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret 4

Function at 0x1038925
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push eax
push 8
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10389a8
push edi
push dword [ebp - 8]
call fcn.0103c03b
mov esi, dword [sym.imp.SHELL32.dll_ILFree]
mov edi, eax
test edi, edi
je 0x103899e
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push 0x60
push dword [ebp + 8]
push edi
call dword [eax + 0x10]
test eax, eax
jne 0x1038998
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x103898f
cmp dword [ebp - 0xc], 1
jne 0x103898f
push dword [ebp - 0x10]
call esi
inc ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 8]
call esi
test ebx, ebx
pop edi
jne 0x10389de
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push dword [esi + 0x1047a14]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10389d6
push dword [ebp - 0x10]
xor ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 4
cmp esi, 0x14
jb 0x10389aa
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
pop ebx
leave
ret 8
Function at 0x10389fd
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
xor edi, edi
lea esi, [edi + 0x1047a14]
push dword [esi]
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp + 8], 0
je 0x1038a35
push dword [esi]
push 0
push 0x1a
call dword [sym.imp.SHLWAPI.dll_SHSendMessageBroadcastW]
add edi, 4
cmp edi, 0x14
jb 0x1038a10
pop edi
pop esi
pop ebp
ret 4

Function at 0x1038b70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1046080]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 2
push 0x1038ccc
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x100ab04
push eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], edi
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x1038c4d
lea eax, [ebp - 0x210]
push eax
push 0x1038cd8
push 1
push esi
push 0x1038ce8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1038c47
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x21c]
push edx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x1038c3b
push dword [ebp - 0x21c]
call fcn.01038aa8
push esi
xor eax, eax
push esi
mov dword [ebp - 0x228], esi
lea edi, [ebp - 0x224]
stosd dword es:[edi], eax
push dword [ebp - 0x224]
mov eax, dword [ebx]
push dword [ebp - 0x228]
push ebx
call dword [eax + 0x14]
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x28]
push dword [ebp - 0x21c]
call dword [0x100e37c]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x104
mov dword [ebp - 0x210], esi
push esi
jmp 0x1038caa
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
push eax
push dword [ebp - 0x214]
call fcn.01038b06
inc dword [ebp - 0x210]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call edi
test eax, eax
je 0x1038c73
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret 8
Function at 0x1038cfd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1046080]
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
xor esi, esi
push 0xb
push esi
mov dword [ebp - 0x218], esi
call edi
test eax, eax
mov ebx, 0x1017890
jl 0x1038e12
lea eax, [ebp - 0x214]
push eax
push 0x16
push esi
call edi
test eax, eax
jl 0x1038df5
lea eax, [ebp - 0x210]
push eax
push 0x102b5a0
push 1
push esi
push 0x1038fe0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1038de7
push dword [ebp - 0x21c]
call fcn.0103c03b
mov edi, eax
cmp edi, esi
je 0x1038d9c
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push 0xff00
push dword [ebp - 0x21c]
push edi
push esi
push eax
call dword [ecx + 0x34]
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x214]
call fcn.0103c03b
mov edi, eax
cmp edi, esi
je 0x1038dc8
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push esi
push dword [ebp - 0x214]
push edi
push esi
push eax
call dword [ecx + 0x34]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push ebx
push eax
call dword [ecx]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x1038e06
push dword [ebp - 0x21c]
call fcn.0103c03b
mov dword [ebp - 0x218], eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [ebp - 0x218], esi
je 0x1038f12
lea eax, [ebp - 0x210]
push eax
push 0x2001f
push esi
push 0x1038f50
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1038f06
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call fcn.01038b70
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp dword [ebp - 0x214], esi
je 0x1038eb5
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
push dword [ebp - 0x214]
push esi
call fcn.010178a5
test eax, eax
jl 0x1038ea9
push dword [ebp - 0x220]
push 0x1038f34
push dword [ebp - 0x210]
call fcn.01038ac9
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_ILFree]
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 2
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, 0x1038f20
mov edi, eax
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1038efa
push dword [ebp - 0x218]
push esi
push edi
push dword [ebp - 0x210]
call fcn.01038b06
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret