joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102db31
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x102dbb4
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x1005d98
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102dbb4
push esi
push edi
push 0x1005d84
push dword [ebp - 4]
call fcn.01033408
mov esi, eax
cmp esi, ebx
je 0x102dbaa
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102db81
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x102dd94
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x210]
push eax
mov edi, 0x20019
push edi
push 0
xor ebx, ebx
push 0x1005f58
inc ebx
push 0x80000001
mov dword [ebp - 0x214], ebx
call esi
test eax, eax
jne 0x102ddf4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x102df00
lea eax, [ebp - 0x210]
push eax
push edi
push 0
push 0x1005ed0
mov ebx, 0x80000002
push ebx
call esi
test eax, eax
jne 0x102de88
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102de67
cmp dword [ebp - 0x214], 1
jne 0x102de67
lea eax, [ebp - 0x20c]
push eax
call fcn.010326f3
test eax, eax
je 0x102de67
mov dword [ebp - 0x21c], 1
jmp 0x102de6e
and dword [ebp - 0x21c], 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 0
je 0x102de88
xor eax, eax
inc eax
jmp 0x102df00
lea eax, [ebp - 0x210]
push eax
push edi
push 0
push 0x1005e50
push ebx
call esi
test eax, eax
jne 0x102defe
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102deec
xor esi, esi
inc esi
cmp dword [ebp - 0x214], esi
jne 0x102deec
lea eax, [ebp - 0x20c]
push eax
call fcn.010326f3
test eax, eax
jne 0x102deee
xor esi, esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x102df00
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret
Function at 0x102e215
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa40], esi
mov dword [ebp - 0xa4c], esi
call fcn.01034382
test eax, eax
jne 0x102e25f
mov eax, 0x80004005
jmp 0x102e401
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
push 0x1006138
push 0x105
lea eax, [ebp - 0xa38]
push eax
call fcn.01028a67
test eax, eax
jl 0x102e3fb
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xa40]
push eax
mov ebx, 0x20019
push ebx
push esi
lea eax, [ebp - 0xa38]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x102e3f9
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0xa3c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1006114
push dword [ebp - 0xa40]
mov dword [ebp - 0xa3c], 1
mov dword [ebp - 0xa48], 0x208
call esi
test eax, eax
jne 0x102e3ed
cmp dword [ebp - 0xa3c], 1
jne 0x102e3ed
lea eax, [ebp - 0xa4c]
push eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x82c]
push eax
push dword [ebp - 0xa40]
call edi
test eax, eax
jne 0x102e3ed
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xa3c]
push eax
push ebx
push 0x1006100
push dword [ebp - 0xa4c]
mov dword [ebp - 0xa48], 0x20a
call esi
test eax, eax
jne 0x102e3e1
cmp dword [ebp - 0xa3c], 1
jne 0x102e3e1
push 0x10060e8
mov edi, 0x105
push edi
lea eax, [ebp - 0x418]
push eax
call fcn.01028adc
test eax, eax
jl 0x102e3e1
push ebx
push ebx
push 0x1005d40
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01035c66
mov esi, 0xd2af9
cmp eax, esi
jne 0x102e3ab
mov dword [ebp - 0xa44], esi
push edi
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x102e3e1
push ebx
push ebx
push 0x1005e08
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01035c66
cmp eax, esi
jne 0x102e3e1
mov dword [ebp - 0xa44], esi
push dword [ebp - 0xa4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xa40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 0xa44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret
Function at 0x102e592
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x10061d8
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102e60f
push esi
push dword [ebp + 8]
push 0x10061c4
push dword [ebp - 4]
call fcn.01033408
mov esi, eax
cmp esi, edi
je 0x102e605
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x102e5da
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret 4
Function at 0x102eb9e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x102ed62
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102ebc4
push ebx
push esi
sub eax, edx
sar eax, 1
push edi
mov esi, eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01028a67
test eax, eax
jl 0x102ed60
test esi, esi
je 0x102ec21
movzx eax, word [edi + esi*2 - 2]
cmp ax, 0x3a
je 0x102ec21
cmp ax, 0x5c
je 0x102ec21
push 0x100623c
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x102ed60
inc esi
lea eax, [esi + 2]
cmp eax, ebx
ja 0x102ed60
push 0x1004ea4
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x102ed60
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x460], eax
je 0x102ed60
push 4
lea edi, [ebp + esi*2 - 0x20c]
pop esi
and word [edi], 0
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102ec80
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x228]
jne 0x102ec9c
lea eax, [ebp - 0x430]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x102ed54
test byte [ebp - 0x45c], 0x10
je 0x102ed39
mov ecx, 0x1003544
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x102ecea
test dx, dx
je 0x102ece6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x102ecea
add eax, esi
add ecx, esi
test dx, dx
jne 0x102ecc6
xor eax, eax
jmp 0x102ecef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x102ed39
mov ecx, 0x1006240
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x102ed22
test dx, dx
je 0x102ed1e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x102ed22
add eax, esi
add ecx, esi
test dx, dx
jne 0x102ecfe
xor eax, eax
jmp 0x102ed27
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x102ed39
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e619
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x102ec73
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01031a01
leave
ret 4
Function at 0x102eea9
Capabilities:
Delete file
Delete registry value
Query or enumerate registry value
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x2d8]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x10061d8
push 0x80000001
mov dword [ebp - 0x2d8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102f014
push esi
push edi
mov esi, 0x10062c0
push esi
lea eax, [ebp - 0xcc]
push 0x63
push eax
mov dword [ebp - 0x2dc], 0x208
mov dword [ebp - 0x2e4], 1
call fcn.01028b64
add esp, 0x10
mov dword [ebp - 0x2e0], 1
jmp 0x102efd2
cmp dword [ebp - 0x2e4], 1
jne 0x102f007
push 0x80
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2d4]
push eax
call fcn.0102dab1
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea eax, [ebp - 0x2d4]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x2d4]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, edi
pop ecx
pop ecx
je 0x102efaa
mov word [eax], di
push edi
lea eax, [ebp - 0x2d4]
push eax
call fcn.0102e619
push dword [ebp - 0x2e0]
lea eax, [ebp - 0xcc]
push esi
push 0x63
push eax
mov dword [ebp - 0x2dc], 0x208
call fcn.01028b64
add esp, 0x10
inc dword [ebp - 0x2e0]
test eax, eax
jl 0x102f007
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2e4]
push eax
push edi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102ef28
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01031a01
leave
ret
Function at 0x102f026
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
lea eax, [ebp - 0x208]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10061d8
push 0x80000001
mov dword [ebp - 0x208], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102f107
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x208]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x20c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102f0d2
cmp dword [ebp - 0x20c], ebx
jne 0x102f0d2
cmp dword [ebp - 0x210], ebx
jbe 0x102f0d2
lea eax, [ebp - 0x204]
push edi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x102f0d2
call fcn.0102eea9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102f0d7
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ebx
push esi
push esi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x10061d8
push 0x80000001
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102f217
push ebx
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
mov esi, 0x1005108
push esi
push dword [ebp - 0x210]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x21c], 0x208
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102f1d3
cmp dword [ebp - 0x218], ebx
jne 0x102f1d3
cmp dword [ebp - 0x21c], ebx
jbe 0x102f1d8
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x102f1d8
call fcn.0102eea9
mov eax, dword [ebp - 0x214]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x102f1e1
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x214]
push ebx
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01031a01
leave
ret 4
Function at 0x10309f6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
push esi
push esi
push 4
mov dword [ebp - 0x208], esi
call fcn.01034068
test eax, eax
je 0x1030ab3
push edi
lea eax, [ebp - 0x208]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1006418
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1030ab0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1006400
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x20c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1030aa4
cmp dword [ebp - 0x20c], edi
jne 0x1030aa4
lea eax, [ebp - 0x204]
push 0x10063f4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1030aa4
mov esi, edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret

Function at 0x1030ac5
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
push 0x2a
push eax
xor edi, edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x1030b1b
push 0x1004e00
lea eax, [ebp - 0x20c]
push eax
push 0x1004f5c
push dword [ebp + 0xc]
push esi
call fcn.01028b64
add esp, 0x14
test eax, eax
jl 0x1030b1b
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret 8
Function at 0x1030b7b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1030b9f
xor eax, eax
jmp 0x1030c52
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, eax
test esi, esi
jl 0x1030c4a
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x15
inc eax
inc eax
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, eax
test esi, esi
jl 0x1030c1d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1030c06
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.01028aa1
mov esi, eax
jmp 0x1030c0b
mov esi, 0x80004005
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jl 0x1030c4a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1030c32
sub eax, edx
sar eax, 1
cmp eax, 8
jae 0x1030c4a
mov esi, 0x80004005
xor eax, eax
test esi, esi
setge al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01031a01
leave
ret 0xc
Function at 0x1031190
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x348], esi
mov dword [ebp - 0x33c], edi
je 0x10312d8
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x10]
call fcn.01030b7b
test eax, eax
je 0x10312d8
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], edi
je 0x10311fc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x1047500]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x10312bc
lea eax, [ebp - 0x33c]
push eax
push ebx
push edi
push 0x1006478
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10312d8
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x96
lea eax, [ebp - 0x338]
push eax
push 0x23
push dword [0x1047500]
mov dword [ebp - 0x344], 0x208
xor esi, esi
mov dword [ebp - 0x340], ebx
call edi
test eax, eax
je 0x10312a6
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x340]
push eax
push esi
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1031288
cmp dword [ebp - 0x340], ebx
jne 0x1031288
mov esi, ebx
jmp 0x10312a6
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x1047500]
call edi
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10312d8
mov esi, dword [ebp - 0x348]
push esi
call fcn.01032458
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call fcn.01028b1e
mov eax, ebx
jmp 0x10312da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 0xc
Function at 0x10312f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54c
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x544], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x103153d
push dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
call fcn.01030b7b
test eax, eax
je 0x103153d
lea eax, [ebp - 0x544]
push eax
push 1
push 0
push 0x1006478
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, 0x104
jne 0x1031441
push 0x96
lea eax, [ebp - 0x540]
push eax
push 0x24
push dword [0x1047500]
mov dword [ebp - 0x54c], 0x208
mov dword [ebp - 0x548], 1
call ebx
test eax, eax
je 0x1031435
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x548]
push eax
push 0
lea eax, [ebp - 0x540]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1031435
cmp dword [ebp - 0x548], 1
jne 0x1031435
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028a67
test eax, eax
jl 0x1031435
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x1031435
lea eax, [ebp - 0x20c]
push eax
call fcn.01033ed9
test eax, eax
je 0x1031435
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push edi
call fcn.01028aa1
test eax, eax
jl 0x1031435
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x103153f
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
call fcn.01030b7b
test eax, eax
je 0x10314c7
push esi
lea eax, [ebp - 0x414]
push eax
push 0x21
push dword [0x1047500]
call ebx
test eax, eax
je 0x10314c7
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028a67
test eax, eax
jl 0x10314c7
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x10314c7
lea eax, [ebp - 0x20c]
push eax
call fcn.01033ed9
test eax, eax
je 0x10314c7
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push edi
call fcn.01028aa1
test eax, eax
jge 0x103142d
push dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
call fcn.01030b7b
test eax, eax
je 0x103153d
push esi
lea eax, [ebp - 0x414]
push eax
push 0x25
push dword [0x1047500]
call ebx
test eax, eax
je 0x103153d
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028a67
test eax, eax
jl 0x103153d
lea eax, [ebp - 0x20c]
push eax
call fcn.01032458
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01028adc
test eax, eax
jl 0x103153d
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push edi
call fcn.01028aa1
test eax, eax
jge 0x103142d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 0xc
Function at 0x1031555
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1031579
xor eax, eax
jmp 0x1031642
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, eax
test edi, edi
jl 0x103163a
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x19
add eax, 6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
test edi, edi
jl 0x103160d
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10315f5
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
push ebx
call fcn.01028aa1
mov edi, eax
test edi, edi
jl 0x10315fa
push 0x10065fc
push dword [esi]
push ebx
call fcn.01028b1e
mov edi, eax
jmp 0x10315fa
mov edi, 0x80004005
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
pop esi
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test edi, edi
jl 0x103163a
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1031622
sub eax, edx
sar eax, 1
cmp eax, 8
jae 0x103163a
mov edi, 0x80004005
xor eax, eax
test edi, edi
setge al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 0xc