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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
mov edi, 0x10122a8
push edi
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
mov esi, 0x10162a8
push esi
mov dword [ebp - 4], eax
mov ebx, 0x100
push eax
jmp 0x1006df9
push dword [ebp - 8]
inc dword [ebp - 4]
push edi
push dword [ebp - 0x10]
push 0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], 0x4000
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x1006dd0
and dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push ebx
mov esi, 0x10163a8
push esi
push 0
jmp 0x1006e6e
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1006e69
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1006e60
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.01006d9f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call edi
test eax, eax
je 0x1006e25
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1006e83
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x98]
push eax
xor ebx, ebx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1006f78
cmp dword [ebp - 0x88], 2
jne 0x1006f78
cmp dword [ebp - 0x94], 5
jbe 0x1006ed4
inc ebx
jmp 0x1006f78
jne 0x1006f78
push edi
xor edi, edi
inc edi
cmp dword [ebp - 0x90], edi
jbe 0x1006eed
mov ebx, edi
jmp 0x1006f77
jne 0x1006f77
mov eax, 0xa28
cmp dword [ebp - 0x8c], eax
ja 0x1006ee6
jne 0x1006f77
lea eax, [ebp - 0x9c]
push eax
push edi
push ebx
push 0x1001258
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006f77
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x100124c
push dword [ebp - 0x9c]
mov dword [ebp - 0xa8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006f6b
cmp dword [ebp - 0xa0], 4
jne 0x1006f6b
cmp dword [ebp - 0xa4], 0x100
jb 0x1006f6b
mov ebx, edi
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.0100d528
leave
ret
Function at 0x1006f8a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101200c]
and dword [ebp - 0x210], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x10022c0
push 0x10024a4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100707f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
push 0
and eax, 0x10022f4
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007073
cmp dword [ebp - 0x214], eax
je 0x1007073
cmp dword [ebp - 0x21c], 2
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
jne 0x1007061
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x1007073
cmp eax, dword [ebp + 0x10]
ja 0x1007073
jmp 0x1007069
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x210], 1
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
call fcn.0100d528
leave
ret 0x10

Function at 0x1007097
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002140
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10070e0
push esi
push esi
push esi
push esi
push 0x1002164
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x10070ea
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101200c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebx], esi
call fcn.01007097
test eax, eax
je 0x1007114
xor eax, eax
inc eax
jmp 0x1007187
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10025a4
push 0x10044ec
lea eax, [ebp - 0x108]
push eax
call fcn.01010b84
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100717e
push 0x1001284
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x1007175
mov dword [ebx], 2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1007184
mov dword [ebx], 1
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100d528
leave
ret 4
Function at 0x1007213
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101200c]
or dword [ebp - 0x210], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1002294
push 0x10024a4
mov dword [ebp - 0x220], eax
mov ebx, 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x10073a7
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100739b
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push 0x10022a8
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 1
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
cmp eax, ebx
je 0x1007311
lea eax, [ebp - 0x218]
push eax
push 0x101
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
cmp eax, ebx
jne 0x100739b
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x108]
push eax
push 0x1001e00
call esi
test eax, eax
jne 0x1007341
mov dword [ebp - 0x210], 3
jmp 0x100739b
lea eax, [ebp - 0x108]
push eax
push 0x1001de8
call esi
test eax, eax
je 0x1007383
lea eax, [ebp - 0x108]
push eax
push 0x1001e10
call esi
test eax, eax
jne 0x1007371
mov dword [ebp - 0x210], 4
jmp 0x100739b
lea eax, [ebp - 0x108]
push eax
push 0x1001e24
call esi
test eax, eax
jne 0x100738c
or dword [ebp - 0x210], 0xffffffff
jmp 0x100739b
cmp byte [ebp - 0x108], 0
je 0x100739b
mov dword [ebp - 0x210], ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.0100d528
leave
ret 4
Function at 0x10073c1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
test byte [ebp + 0x14], 0x20
mov eax, dword [0x101200c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x224], 1
mov ebx, 0x80000000
je 0x1007512
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0x14
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.01006d75
test eax, eax
je 0x1007512
push esi
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push 0x1002280
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
lea eax, [ebp - 0x218]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10074f5
mov byte [ebp - 8], al
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x22c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10074e9
lea eax, [ebp - 0x10c]
push 0x1004980
push eax
call fcn.0100d890
test eax, eax
pop ecx
pop ecx
jne 0x10074e9
lea eax, [ebp - 0x10c]
push 0x1004958
push eax
call fcn.0100d890
test eax, eax
pop ecx
pop ecx
jne 0x10074e9
lea eax, [ebp - 0x10c]
push 0x1004974
push eax
call fcn.0100d890
test eax, eax
pop ecx
pop ecx
jne 0x10074e9
mov dword [ebp - 0x224], esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1016c90]
push dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x224], esi
je 0x10075d4
push edi
push ebx
call fcn.0100b6b0
push dword [ebp - 0x230]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push dword [ebp - 0x234]
mov edi, 0x105
push 0x10020b8
lea eax, [ebp - 0x214]
push edi
push eax
call esi
push dword [ebp - 0x220]
lea eax, [ebp - 0x214]
push eax
push 0x10024a4
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0x228]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10075d4
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp - 0x220]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10075c8
push dword [ebp - 0x218]
push dword [ebp - 0x228]
call fcn.01006d9f
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0100d528
leave
ret 0x10
Function at 0x10075eb
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 0x10], 0x20
mov eax, dword [0x101200c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x1007617
push esi
call fcn.01007213
cmp eax, 0xffffffff
jne 0x1007689
push esi
push 0x1002294
push 0x10024a4
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1007689
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push esi
push esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100d528
leave
ret 0xc

Function at 0x100769c
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push eax
xor edi, edi
call fcn.010070ea
test eax, eax
je 0x10076c8
inc edi
jmp 0x10077cb
cmp dword [ebp - 0x210], edi
jbe 0x10077cb
cmp dword [ebp - 0x210], 2
ja 0x10077cb
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
je 0x10077ca
cmp eax, esi
ja 0x10077ca
push esi
lea eax, [ebp - 0x108]
push eax
push 0x10025a4
push 0x100458c
lea eax, [ebp - 0x20c]
push eax
call fcn.01010b84
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x10077ca
push 0x1001298
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10077c3
call eax
lea eax, [ebp - 0x218]
push eax
call fcn.010070ea
test eax, eax
jne 0x10077c0
cmp dword [ebp - 0x210], 2
jne 0x10077c3
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002170
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10077c3
push 0xc
push 0x10021ac
push 1
push edi
push 0x10021a4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10077b2
xor edi, edi
inc edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10077c3
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
call fcn.0100d528
leave
ret 4
Function at 0x10080b5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x1016da0], esi
mov dword [ebp - 4], esi
jne 0x100812b
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [0x1016bc0]
mov dword [0x1016da0], 1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100812b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10055f4
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008122
cmp dword [ebp - 4], esi
setne al
mov dword [0x1016d9c], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1016d9c]
pop esi
leave
ret

Function at 0x100825b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x1016c6c]
dec eax
je 0x100826b
dec eax
jne 0x1008272
jmp fcn.01008166
push 1
call fcn.0100d1cb
ret

Function at 0x1008278
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x10082fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10082fb
add esi, 3
push ebx
jmp 0x10082c6
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x10082bd
cmp byte [esi], 0x5c
je 0x10082cb
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x10082a9
mov bl, byte [esi]
push 0
push dword [ebp + 8]
mov byte [esi], 0
call edi
test eax, eax
jne 0x10082e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10082f1
test bl, bl
mov byte [esi], bl
je 0x10082fa
inc esi
jmp 0x10082c6
mov dword [ebp - 4], 0x80004005
mov byte [esi], bl
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x1008a00
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x1008a22
jle 0x1008a47
cmp eax, 2
jle 0x1008a7f
cmp eax, 3
je 0x1008a4e
cmp eax, 4
jne 0x1008a47
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1008a47
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1008a47
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp dword [ebp + 0xc], ebx
je 0x1008a47
cmp dword [ebp + 0x10], ebx
je 0x1008a47
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1008a47
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008a47
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1008a47
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x1008aa6
and eax, 0xfffffffe
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0xc], ebx
je 0x1008a47
cmp dword [ebp + 0x14], ebx
je 0x1008a47
call fcn.01006e83
test eax, eax
jne 0x1008a47
push 0xfffffffffffffffe
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0x14]
call fcn.01007f43
push 1
push edi
call esi
jmp 0x1008a47
Function at 0x1009292
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
dec eax
je 0x10092d3
dec eax
dec eax
je 0x10092c5
dec eax
jne 0x1009310
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x1001f20
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009310
inc esi
jmp 0x1009307
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x1001f48
jmp 0x10092df
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x1001fec
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009310
push esi
push esi
push esi
push esi
push 0x10023d4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1009371
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1016c6c]
dec eax
je 0x100938d
dec eax
je 0x1009387
xor eax, eax
pop ebp
ret 4
pop ebp
jmp fcn.0100931c
pop ebp
jmp fcn.01009292

Function at 0x1009398
Capabilities:
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
mov eax, dword [0x1016c6c]
dec eax
push ebx
je 0x10093cc
dec eax
jne 0x100949a
mov dword [ebp - 0x124], 0x1005a04
mov ebx, 0x10023cc
jmp 0x10093db
mov dword [ebp - 0x124], 0x10059dc
mov ebx, 0x1005a64
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push edi
push dword [0x1016bc4]
mov edi, 0x104
push 0x10169b8
push 0x100597c
lea eax, [ebp - 0x11c]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0x1005214
push ebx
push 0x10058f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 0x124]
mov ebx, eax
push 0x10053b8
push 0x10024a4
lea eax, [ebp - 0x11c]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
push 2
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
pop esi
jne 0x100948e
inc ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x10023cc
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100949a
push 1
push 0x1001520
call fcn.0100d0a2
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100d528
leave
ret
Function at 0x100a705
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10055d0
mov esi, 0x80000002
push esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, 0x10055f4
jne 0x100a77d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a774
cmp dword [ebp - 0x14], 4
jne 0x100a774
mov eax, dword [ebp - 8]
and al, 3
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [0x1016bc0]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100a7d3
cmp dword [ebp - 0xc], edi
je 0x100a7c0
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x100a7ca
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100aa13
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
mov eax, dword [0x1016c6c]
dec eax
push esi
push edi
je 0x100aa43
dec eax
jne 0x100ac12
mov dword [ebp - 0x118], 0x1005a04
jmp 0x100aa4d
mov dword [ebp - 0x118], 0x10059dc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x100abd3
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x124]
push eax
push 0x20019
push ebx
mov esi, 0x10053b8
push esi
push 0x80000002
call edi
test eax, eax
jne 0x100ac11
lea eax, [ebp - 0x120]
push eax
push 1
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x124]
call edi
test eax, eax
jne 0x100abcb
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
mov edi, 0x20006
push edi
push ebx
push ebx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x80000001
call esi
test eax, eax
jne 0x100abbf
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push dword [ebp - 0x118]
push dword [ebp - 0x110]
call esi
test eax, eax
jne 0x100abb3
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
mov esi, 0x10023cc
push esi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], 0x103
mov byte [ebp - 5], bl
call edi
test eax, eax
jne 0x100ab54
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push ebx
push esi
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
mov esi, 0x1005630
push esi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], 0x104
call edi
test eax, eax
jne 0x100aba7
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push ebx
push esi
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x124]
jmp 0x100ac0b
lea eax, [ebp - 0x110]
push eax
push 0x2001f
push ebx
push 0x10053b8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ac11
push dword [ebp - 0x118]
push dword [ebp - 0x110]
call fcn.0100b6b0
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100d528
leave
ret 4