joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100691f
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, 0x10122c8
push edi
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
mov esi, 0x10162c8
push esi
mov dword [ebp - 4], eax
mov ebx, 0x100
push eax
jmp 0x1006979
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 0x1006950
and dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push ebx
mov esi, 0x10163c8
push esi
push 0
jmp 0x10069ee
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 0x10069e9
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10069e0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0100691f
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 0x10069a5
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101203c]
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 0x1006af8
cmp dword [ebp - 0x88], 2
jne 0x1006af8
cmp dword [ebp - 0x94], 5
jbe 0x1006a54
inc ebx
jmp 0x1006af8
jne 0x1006af8
push edi
xor edi, edi
inc edi
cmp dword [ebp - 0x90], edi
jbe 0x1006a6d
mov ebx, edi
jmp 0x1006af7
jne 0x1006af7
mov eax, 0xa28
cmp dword [ebp - 0x8c], eax
ja 0x1006a66
jne 0x1006af7
lea eax, [ebp - 0x9c]
push eax
push edi
push ebx
push 0x1001228
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006af7
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x100121c
push dword [ebp - 0x9c]
mov dword [ebp - 0xa8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006aeb
cmp dword [ebp - 0xa0], 4
jne 0x1006aeb
cmp dword [ebp - 0xa4], 0x100
jb 0x1006aeb
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.0100d058
leave
ret
Function at 0x1006b0a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
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 0x1002298
push 0x100247c
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 0x1006bff
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, 0x10022cc
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006bf3
cmp dword [ebp - 0x214], eax
je 0x1006bf3
cmp dword [ebp - 0x21c], 2
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
jne 0x1006be1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x1006bf3
cmp eax, dword [ebp + 0x10]
ja 0x1006bf3
jmp 0x1006be9
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.0100d058
leave
ret 0x10

Function at 0x1006c17
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 0x1002118
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006c60
push esi
push esi
push esi
push esi
push 0x100213c
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 0x1006c6a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101203c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebx], esi
call fcn.01006c17
test eax, eax
je 0x1006c94
xor eax, eax
inc eax
jmp 0x1006d07
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 0x100257c
push 0x10044c4
lea eax, [ebp - 0x108]
push eax
call fcn.010105b4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1006cfe
push 0x1001254
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x1006cf5
mov dword [ebx], 2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1006d04
mov dword [ebx], 1
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100d058
leave
ret 4
Function at 0x1006d93
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101203c]
or dword [ebp - 0x210], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x100226c
push 0x100247c
mov dword [ebp - 0x218], eax
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call edi
mov ebx, 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
push 0x80000002
call ebx
test eax, eax
jne 0x1006f0d
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], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006f01
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push 0x1002280
push esi
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x1006f01
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x108]
push eax
push 0x1001dd0
call esi
test eax, eax
jne 0x1006ea6
mov dword [ebp - 0x210], 3
jmp 0x1006f01
lea eax, [ebp - 0x108]
push eax
push 0x1001db8
call esi
test eax, eax
je 0x1006ee8
lea eax, [ebp - 0x108]
push eax
push 0x1001de0
call esi
test eax, eax
jne 0x1006ed6
mov dword [ebp - 0x210], 4
jmp 0x1006f01
lea eax, [ebp - 0x108]
push eax
push 0x1001df4
call esi
test eax, eax
jne 0x1006ef1
or dword [ebp - 0x210], 0xffffffff
jmp 0x1006f01
cmp byte [ebp - 0x108], 0
je 0x1006f01
and dword [ebp - 0x210], 0
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.0100d058
leave
ret 4
Function at 0x1006f27
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
test byte [ebp + 0x14], 0x20
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 1
mov ebx, 0x80000000
mov edi, 0x104
je 0x1007077
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0x14
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.010068f5
test eax, eax
je 0x1007077
push esi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push 0x1002258
push dword [ebp - 0x218]
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp - 0x218]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100705a
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x224], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100704e
lea eax, [ebp - 0x108]
push 0x1004958
push eax
call fcn.0100d380
test eax, eax
pop ecx
pop ecx
jne 0x100704e
lea eax, [ebp - 0x108]
push 0x1004930
push eax
call fcn.0100d380
test eax, eax
pop ecx
pop ecx
jne 0x100704e
lea eax, [ebp - 0x108]
push 0x100494c
push eax
call fcn.0100d380
test eax, eax
pop ecx
pop ecx
jne 0x100704e
mov dword [ebp - 0x21c], esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1016cb0]
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x21c], esi
je 0x1007139
push dword [ebp - 0x214]
push ebx
call fcn.0100b201
push dword [ebp - 0x228]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push 0x10020e8
push edi
push eax
call esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push 0x100247c
lea eax, [ebp - 0x108]
push edi
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0x220]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007139
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp - 0x214]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100712d
push dword [ebp - 0x210]
push dword [ebp - 0x220]
call fcn.0100691f
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x220]
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.0100d058
leave
ret 0x10
Function at 0x1007150
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 0x10], 0x20
mov eax, dword [0x101203c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x100717c
push esi
call fcn.01006d93
cmp eax, 0xffffffff
jne 0x10071ee
push esi
push 0x100226c
push 0x100247c
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 0x10071ee
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.0100d058
leave
ret 0xc

Function at 0x1007201
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 [0x101203c]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push eax
xor edi, edi
call fcn.01006c6a
test eax, eax
je 0x100722d
inc edi
jmp 0x1007330
cmp dword [ebp - 0x210], edi
jbe 0x1007330
cmp dword [ebp - 0x210], 2
ja 0x1007330
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
je 0x100732f
cmp eax, esi
ja 0x100732f
push esi
lea eax, [ebp - 0x108]
push eax
push 0x100257c
push 0x1004564
lea eax, [ebp - 0x20c]
push eax
call fcn.010105b4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x100732f
push 0x1001268
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1007328
call eax
lea eax, [ebp - 0x218]
push eax
call fcn.01006c6a
test eax, eax
jne 0x1007325
cmp dword [ebp - 0x210], 2
jne 0x1007328
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002148
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1007328
push 0xc
push 0x1002184
push 1
push edi
push 0x100217c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1007317
xor edi, edi
inc edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007328
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.0100d058
leave
ret 4
Function at 0x1007c1a
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 [0x1016dc0], esi
mov dword [ebp - 4], esi
jne 0x1007c90
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [0x1016be0]
mov dword [0x1016dc0], 1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007c90
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10055e8
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007c87
cmp dword [ebp - 4], esi
setne al
mov dword [0x1016dbc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1016dbc]
pop esi
leave
ret

Function at 0x1007dc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x1016c8c]
dec eax
je 0x1007dd0
dec eax
jne 0x1007dd7
jmp fcn.01007ccb
push 1
call fcn.0100cd01
ret

Function at 0x1007ddd
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 0x1007e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1007e60
add esi, 3
push ebx
jmp 0x1007e2b
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x1007e22
cmp byte [esi], 0x5c
je 0x1007e30
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1007e0e
mov bl, byte [esi]
push 0
push dword [ebp + 8]
mov byte [esi], 0
call edi
test eax, eax
jne 0x1007e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1007e56
test bl, bl
mov byte [esi], bl
je 0x1007e5f
inc esi
jmp 0x1007e2b
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 0x1008565
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 0x1008587
jle 0x10085ac
cmp eax, 2
jle 0x10085e4
cmp eax, 3
je 0x10085b3
cmp eax, 4
jne 0x10085ac
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x10085ac
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10085ac
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 0x10085ac
cmp dword [ebp + 0x10], ebx
je 0x10085ac
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 0x10085ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10085ac
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x10085ac
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x100860b
and eax, 0xfffffffe
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0xc], ebx
je 0x10085ac
cmp dword [ebp + 0x14], ebx
je 0x10085ac
call fcn.01006a03
test eax, eax
jne 0x10085ac
push 0xfffffffffffffffe
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0x14]
call fcn.01007aa8
push 1
push edi
call esi
jmp 0x10085ac
Function at 0x1008df7
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 0x1008e38
dec eax
dec eax
je 0x1008e2a
dec eax
jne 0x1008e75
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x1001f50
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008e75
inc esi
jmp 0x1008e6c
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x1001f78
jmp 0x1008e44
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x100201c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008e75
push esi
push esi
push esi
push esi
push 0x10023ac
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 0x1008ed6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1016c8c]
dec eax
je 0x1008ef2
dec eax
je 0x1008eec
xor eax, eax
pop ebp
ret 4
pop ebp
jmp fcn.01008e81
pop ebp
jmp fcn.01008df7

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [0x1016c8c]
dec eax
push ebx
je 0x1008f31
dec eax
jne 0x1008fff
mov dword [ebp - 0x124], 0x10059f8
mov ebx, 0x10023a4
jmp 0x1008f40
mov dword [ebp - 0x124], 0x10059d0
mov ebx, 0x1005a58
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push edi
push dword [0x1016be4]
mov edi, 0x104
push 0x10169d8
push 0x1005970
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 0x1005208
push ebx
push 0x10058ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 0x124]
mov ebx, eax
push 0x10053ac
push 0x100247c
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 0x1008ff3
inc ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x10023a4
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1008fff
push 1
push 0x10014f0
call fcn.0100cbd8
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100d058
leave
ret
Function at 0x100a259
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 0x10055c4
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, 0x10055e8
jne 0x100a2d1
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 0x100a2c8
cmp dword [ebp - 0x14], 4
jne 0x100a2c8
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 [0x1016be0]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100a327
cmp dword [ebp - 0xc], edi
je 0x100a314
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 0x100a31e
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 0x100a567
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [0x1016c8c]
dec eax
push ebx
push edi
je 0x100a597
dec eax
jne 0x100a763
mov dword [ebp - 0x118], 0x10059f8
jmp 0x100a5a1
mov dword [ebp - 0x118], 0x10059d0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x100a724
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x124]
push eax
push 0x20019
push esi
mov edi, 0x10053ac
push edi
push 0x80000002
call ebx
test eax, eax
jne 0x100a762
lea eax, [ebp - 0x120]
push eax
push 1
push esi
push dword [ebp - 0x118]
push dword [ebp - 0x124]
call ebx
test eax, eax
jne 0x100a71c
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x80000001
call edi
test eax, eax
jne 0x100a710
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp - 0x118]
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x100a704
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 esi
mov ebx, 0x10023a4
push ebx
push dword [ebp - 0x120]
mov dword [ebp - 0x114], 0x104
call edi
test eax, eax
jne 0x100a6a5
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push esi
push ebx
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 esi
mov ebx, 0x1005624
push ebx
push dword [ebp - 0x120]
mov dword [ebp - 0x114], 0x104
call edi
test eax, eax
jne 0x100a6f8
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push esi
push ebx
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 0x100a75c
lea eax, [ebp - 0x110]
push eax
push 0x2001f
push esi
push 0x10053ac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a762
push dword [ebp - 0x118]
push dword [ebp - 0x110]
call fcn.0100b201
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100d058
leave
ret 4