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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x730
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x724], esi
call fcn.0105fa06
lea eax, [ebp - 0x724]
push eax
push 0x20119
push esi
push 0x100c568
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1060a17
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 0x1060a09
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 0x1060a09
lea eax, [ebp - 0x104]
push eax
push 0x100c53c
push 4
call fcn.0105e5ad
add esp, 0xc
push ebx
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0105fde7
cmp eax, esi
jl 0x10609e8
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.01060053
test eax, eax
je 0x10609da
lea eax, [ebp - 0x104]
push eax
push 0x100c4d8
lea eax, [ebp - 0x71c]
push ebx
push eax
call fcn.01034db1
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10609f8
lea eax, [ebp - 0x30c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1060963
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x30c]
push eax
push 1
push esi
push 0x100c4c0
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 0x1060996
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x514]
push eax
push 1
push esi
push 0x100c49c
push dword [ebp - 0x720]
call edi
push dword [ebp - 0x720]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100c488
push 4
call fcn.0105e573
jmp 0x10609f8
lea eax, [ebp - 0x30c]
push eax
push 0x100c460
jmp 0x10609ee
push eax
push 0x100c440
push 2
call fcn.0105e5ad
add esp, 0xc
push dword [ebp - 0x72c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1060854
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.01047417
leave
ret
Function at 0x1060a29
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 [0x107fa78]
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 0x100c720
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov dword [ebp - 0x620], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], ecx
call esi
test eax, eax
je 0x1060ab1
lea eax, [ebp - 0x620]
push eax
push edi
xor edi, edi
push edi
push 0x100c6a0
push ebx
mov dword [ebp - 0x62c], 2
call esi
test eax, eax
je 0x1060ab3
xor eax, eax
jmp 0x1060c59
xor edi, edi
push 0x100c678
push 4
call fcn.0105e573
cmp dword [ebp - 0x620], edi
je 0x1060b8e
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push edi
push 0x100aef0
push dword [ebp - 0x620]
mov esi, 0x208
mov dword [ebp - 0x630], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1060b78
cmp dword [ebp - 0x624], 2
je 0x1060b13
cmp dword [ebp - 0x624], 1
jne 0x1060b78
cmp dword [ebp - 0x624], 2
mov dword [ebp - 0x628], 1
jne 0x1060b78
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 0x1060b5b
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cb3
test eax, eax
jge 0x1060b78
push 0x100c640
push 4
call fcn.0105e573
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1060aaa
push dword [ebp - 0x620]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x628], edi
jne 0x1060b9f
push 0x100c640
push 4
call fcn.0105e573
jmp 0x1060aaa
push edi
lea eax, [ebp - 0x620]
push eax
push edi
push 0x20106
push edi
push edi
push edi
push 0x1001b08
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1060be5
push 4
lea eax, [ebp - 0x62c]
push eax
push 4
push edi
push 0x100be04
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call esi
cmp dword [ebp - 0x62c], 2
jne 0x1060bf3
call fcn.010607e9
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
lea eax, [ebp - 0x20c]
push 0x100c628
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1060c53
lea eax, [ebp - 0x20c]
push 0x100c624
push eax
call esi
cmp eax, edi
pop ecx
pop ecx
je 0x1060c53
push eax
push 0x100c5d0
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01034db1
add esp, 0x10
test eax, eax
jl 0x1060c53
push 0xffff
push 1
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0105ab51
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret
Function at 0x1061150
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 0x1001bd0
push SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10611bd
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 0x100c8dc
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 0x10611b3
cmp dword [ebp - 8], esi
jne 0x10611b3
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 0x1063350
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, ecx
mov eax, dword [eax + 0xc]
xor edi, edi
inc edi
test eax, eax
je 0x10633eb
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x107fddc]
push 0x1008290
push 0x1002378
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10633ed
lea eax, [ebp - 0x20c]
push eax
push dword [0x107fddc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10633ed
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10633bf
sub eax, edx
sar eax, 1
cmp eax, 0x26
jb 0x10633d9
and word [ebp - 0x1c0], cx
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x10633ed
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 4
Function at 0x1063404
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 [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x21c], edi
je 0x1063656
test edi, edi
je 0x1063656
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
and word [eax], 0
push 0x5c
push edi
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x1063459
mov ebx, edi
jmp 0x106345b
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 0x1063496
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1063481
push 0x57
pop eax
test eax, eax
jle 0x106365b
and eax, 0xffff
or eax, 0x80070000
jmp 0x106365b
push 0x100d798
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
lea eax, [ebp - 0x20c]
push eax
call fcn.01056f43
xor edi, edi
test eax, eax
je 0x1063618
push 4
pop eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], edi
push 0x100d750
push eax
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
call fcn.0105e5ad
add esp, 0xc
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x100d6e0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1063586
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 0x1063561
cmp dword [ebp - 0x220], 4
jne 0x1063561
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 0x1063618
cmp ebx, edi
je 0x106363d
cmp dword [ebp + 0x10], edi
je 0x10635f3
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
cmp eax, edi
pop ecx
pop ecx
je 0x1063642
push 0x5c
push dword [ebp - 0x21c]
mov word [eax], di
call esi
cmp eax, edi
pop ecx
pop ecx
jne 0x10635cf
mov eax, dword [ebp - 0x21c]
jmp 0x10635d1
inc eax
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100d6cc
push 0x103
push dword [ebp - 0x210]
call fcn.01034db1
add esp, 0x14
jmp 0x1063642
push 0x100d6c4
mov esi, 0x103
push esi
push dword [ebp - 0x210]
call fcn.01034c79
push ebx
push esi
push dword [ebp - 0x210]
call fcn.01034cee
jmp 0x1063642
cmp ebx, edi
je 0x106363d
cmp dword [ebp + 0x10], edi
je 0x106362a
lea eax, [ebp - 0x20c]
push eax
jmp 0x106362b
push ebx
push 0x103
push dword [ebp - 0x210]
call fcn.01034c79
jmp 0x1063642
mov edi, 0x80004005
push edi
push 0x100d694
push 4
call fcn.0105e5ad
add esp, 0xc
mov eax, edi
jmp 0x106365b
mov eax, 0x8007000e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0xc
Function at 0x1063e98
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.01062fb7
cmp dword [ebp - 0x14], esi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
je 0x1063f7e
cmp dword [ebp - 8], esi
je 0x1063f7e
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 0x1063f7e
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 0x1063f31
inc eax
cmp dword [ebp + 8], eax
jne 0x1063f31
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x1063f7e
test byte [ebp + 0x18], 0x40
je 0x1063f57
push 0x3b
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x1063f57
mov word [eax], si
mov eax, dword [ebp + 0x18]
xor eax, 0xf
je 0x1063fab
push ebx
call fcn.0105970f
test eax, eax
je 0x1063f7e
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1063f6e
sub eax, edx
sar eax, 1
jne 0x1063fab
cmp dword [ebp - 0xc], esi
je 0x1063fab
push dword [ebp - 0xc]
shr edi, 1
push edi
push ebx
call fcn.01034c79
mov eax, dword [ebp + 0x18]
or eax, 0xf
jne 0x1063fa4
push ebx
call fcn.0105970f
test eax, eax
mov dword [ebp - 4], esi
je 0x1063fab
mov dword [ebp - 4], 1
test byte [ebp + 0x18], 0x20
je 0x1063fbc
xor eax, eax
cmp dword [ebp - 4], esi
sete al
mov dword [ebp - 4], eax
cmp dword [ebp - 8], esi
je 0x1063fca
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x10], esi
je 0x1063fd8
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 0x1063fe9
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 0x106523b
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 0x1065367
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x106525f
mov eax, 0x100d310
push ecx
push 0x100d49c
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push 0
call fcn.0106374b
test eax, eax
je 0x1065367
and dword [ebp - 8], 0
push 0x26d7
call fcn.0105db8a
lea eax, [ebp - 0x1c]
push eax
call fcn.01062d78
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1065367
push ebx
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, 0x1007e00
push ebx
push eax
jmp 0x106534d
push esi
push 0x100dfc0
push 4
call fcn.0105e5ad
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push dword [ebp + 8]
call fcn.0105e74d
test eax, eax
je 0x106534a
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], 1
call fcn.0105e614
push eax
mov dword [ebp - 4], eax
call fcn.0105d977
cmp dword [ebp - 4], 1
jb 0x106534a
push dword [ebp + 0xc]
call fcn.0105db14
inc dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.01062d78
mov esi, eax
test esi, esi
je 0x1065333
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call fcn.0105970f
push esi
push 0x100dfa0
push 4
call fcn.0105e5ad
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 0x106534a
mov eax, dword [ebp - 4]
cmp dword [ebp + 0xc], eax
jbe 0x10652f6
push ebx
push 0
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x10652b4
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 0x1067364
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
je 0x1067543
push eax
call fcn.01056f43
test eax, eax
je 0x1067543
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x100a1a0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1067543
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov edi, 0x100a168
push edi
push dword [ebp - 0x14]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x1067538
cmp dword [ebp - 8], 7
jne 0x1067538
push dword [ebp - 0xc]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x1067538
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x106752f
cmp dword [ebp - 8], 7
jne 0x106752f
push 1
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.0105b9ce
cmp eax, ebx
mov dword [ebp - 0x10], eax
jle 0x10674fc
cmp dword [ebp - 4], ebx
je 0x10674fc
mov ecx, eax
and ecx, 0x80000001
jns 0x1067459
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x1067462
dec eax
mov dword [ebp - 0x10], eax
xor edi, edi
cmp eax, ebx
jle 0x10674fc
mov eax, dword [ebp - 4]
mov esi, edi
shl esi, 2
add eax, esi
cmp dword [eax], ebx
je 0x10674da
cmp dword [eax + 4], ebx
je 0x10674da
push dword [eax + 4]
call fcn.01056f43
test eax, eax
je 0x10674da
mov eax, dword [ebp - 4]
push dword [esi + eax + 4]
mov ecx, dword [ebp - 0x1c]
call fcn.010630c8
test eax, eax
je 0x10674da
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add eax, esi
push 1
push dword [eax + 4]
push dword [eax]
call fcn.01066fba
cmp eax, 0xd2af8
je 0x10674bd
cmp eax, ebx
jne 0x10674e3
mov eax, dword [ebp - 4]
push dword [esi + eax + 4]
mov dword [ebp - 0x18], 1
push 0x100b82c
push 4
call fcn.0105e5ad
add esp, 0xc
inc edi
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x106746c
jmp 0x10674fc
mov eax, dword [ebp - 4]
push dword [eax + edi*4 + 4]
mov dword [ebp - 0x18], ebx
push 0x100b75c
push 4
call fcn.0105e5ad
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x10], ebx
jle 0x1067521
mov eax, dword [ebp - 4]
lea eax, [eax + esi*4]
cmp dword [eax], ebx
je 0x106751b
push dword [eax]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 4]
pop ecx
mov dword [eax + esi*4], ebx
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x1067503
cmp dword [ebp - 4], ebx
je 0x106752f
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret
Function at 0x106754e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x82c], 1
je 0x1067752
cmp edi, ebx
je 0x1067752
push ebx
push 2
push ebx
mov dword [eax], ebx
push dword [esi + 0xc]
call fcn.0105e6fe
cmp eax, 0xffffffff
mov dword [ebp - 0x828], eax
je 0x1067752
cmp dword [ebp + 0x10], ebx
mov ecx, 0x1002048
jne 0x10675bd
mov ecx, 0x100d670
lea edx, [ebp - 0x844]
push edx
push edi
push ecx
push eax
call fcn.0105e74d
test eax, eax
je 0x1067746
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x100d550
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1067621
push esi
lea eax, [esi + 4]
push eax
push 0x1001b54
push 0
call fcn.010560d5
test eax, eax
je 0x1067604
mov dword [esi + 8], 1
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x828]
call fcn.0105622f
mov dword [ebp - 0x830], eax
jmp 0x1067736
push 0x100d530
push edi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1067746
xor ebx, ebx
or eax, 0xffffffff
cmp dword [esi + 8], ebx
je 0x106763f
mov eax, dword [esi]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x828]
call fcn.010565bc
cmp eax, ebx
mov dword [ebp - 0x830], eax
jl 0x1067686
cmp dword [esi + 8], ebx
je 0x1067686
cmp dword [esi + 4], 4
jne 0x1067686
push 1
push 0x1001b54
push ebx
call fcn.01055afa
jmp 0x1067736
cmp eax, 0x80070430
jne 0x1067736
push edi
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.01059beb
test eax, eax
je 0x106773f
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x106773f
push 0x100e58c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
push 0x5c
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x106773f
add eax, 2
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x100e548
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.01034d76
add esp, 0x14
test eax, eax
jl 0x106773f
mov eax, dword [ebp - 0x834]
mov dword [eax], 1
lea eax, [ebp - 0x414]
push eax
push 0x10040a0
call fcn.0105aa51
cmp dword [ebp - 0x830], 0
jge 0x1067746
and dword [ebp - 0x82c], 0
push dword [ebp - 0x828]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x82c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0xc
Function at 0x106776e
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x430], ecx
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x14]
inc esi
test eax, eax
push edi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x420], esi
je 0x10678ba
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x107fddc]
push 0x100e598
push 0x1002378
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10678c1
lea eax, [ebp - 0x20c]
push eax
push dword [0x107fddc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10678c1
lea eax, [ebp - 0x20c]
push 0x2c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x10678c1
add eax, 2
push eax
push 0x105
lea eax, [ebp - 0x418]
push eax
call fcn.01034c79
test eax, eax
jl 0x10678c1
mov edi, dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, 0x100839c
lea eax, [ebp - 0x418]
push ebx
push eax
call edi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x41c], esi
je 0x10678c1
mov esi, dword [sym.imp.msvcrt.dll__wtol]
mov ecx, dword [ebp - 0x41c]
dec ecx
je 0x106789b
dec ecx
je 0x106788f
dec ecx
je 0x1067883
dec ecx
jne 0x10678a7
push eax
call esi
pop ecx
mov ecx, dword [ebp - 0x428]
jmp 0x10678a5
push eax
call esi
pop ecx
mov ecx, dword [ebp - 0x424]
jmp 0x10678a5
push eax
call esi
pop ecx
mov ecx, dword [ebp - 0x430]
jmp 0x10678a5
push eax
call esi
pop ecx
mov ecx, dword [ebp - 0x42c]
mov dword [ecx], eax
inc dword [ebp - 0x41c]
push ebx
push 0
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1067865
jmp 0x10678c1
and dword [ebp - 0x420], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0x10