joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f5e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
mov esi, dword [esp + 0x488]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x40f7a5
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40f7a5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x17d]
mov byte [esp + 0x17c], bl
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push esi
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x420f78
lea eax, [esp + 0x184]
push 0x103
push eax
call ebp
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], ebx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x17c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40f7a5
mov dword [esp + 0x10], ebx
test byte [esp + 0x3c], 0x10
jne 0x40f6f2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x385]
mov byte [esp + 0x384], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
lea ecx, [esp + 0x384]
push eax
push esi
push 0x420f70
push 0x103
push ecx
call ebp
add esp, 0x14
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x388]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x40f766
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x40f766
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x68]
push 0x420568
push edx
call edi
test eax, eax
je 0x40f766
lea eax, [esp + 0x68]
push 0x420564
push eax
call edi
test eax, eax
je 0x40f766
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x281]
mov byte [esp + 0x280], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x68]
lea edx, [esp + 0x280]
push ecx
push esi
stosw word es:[edi], ax
push 0x420f70
push 0x103
push edx
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x294]
push eax
call fcn.0040f5e0
mov ecx, dword [esp + 0x28]
add esp, 0x18
add ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x14]
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f677
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x478
ret

Function at 0x40f950
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push 0
call sub.MSVCRT.dll_time
push eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
cdq
mov ecx, 9
mov edi, dword [esp + 0x18]
idiv ecx
mov esi, edx
mov edx, dword [esp + 0x1c]
push edx
push edi
push esi
call fcn.0040ff60
add esp, 0x14
test eax, eax
jne 0x40f988
pop edi
pop esi
ret
mov eax, dword [esp + 0x18]
push edi
mov dword [eax], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
ret
Function at 0x40ff60
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x64
push edi
ja case.0x40ff77.10
xor ecx, ecx
mov cl, byte [eax + 0x410128]
jmp dword [ecx*4 + 0x4100fc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00410260
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004021a0
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.004021a0
add esp, 8
mov ecx, 0x422bb8
jmp 0x4100e2
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x420f94
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0x14]
push eax
push 0x10
call fcn.004132d0
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x40ff77.10
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x420f88
push esi
call edi
mov ecx, 0x422b98
call fcn.00404910
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x40ff77.10
mov ecx, 0x422ba8
call fcn.00404910
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push esi
call edi
mov ecx, 0x422b98
call fcn.00404910
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x40ff77.10
mov ecx, 0x422b98
call fcn.00404910
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x410260
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push esi
push ecx
push 0x420bb0
push 0x420f24
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4102af
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4102af
pop edi
mov eax, 1
pop esi
pop ecx
ret
push edi
push 0x10
call fcn.004132d0
add esp, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ecx
ret
Function at 0x410500
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x478
lea eax, [esp + 8]
push ebx
xor ebx, ebx
push eax
push 0x2000000
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4106b3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push esi
push ecx
push 1
push 2
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4106a1
push ebp
push 0x420b70
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
push 0x420b58
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x410692
mov edx, dword [esp + 0x488]
lea ecx, [esp + 0x10]
push ecx
push edx
call eax
test eax, eax
je 0x410692
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0x20
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0xc]
add eax, 8
push eax
lea eax, [esp + 0x1c]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x410687
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0x44
mov word [esp + 0x78], bx
rep stosd dword es:[edi], eax
mov ecx, 0x103
lea edi, [esp + 0x7a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x490]
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebx
stosw word es:[edi], ax
mov eax, dword [esp + 0x494]
mov dword [esp + 0x2c], edx
push eax
mov dword [esp + 0x34], edx
push ecx
push 0x4208d0
lea edx, [esp + 0x84]
push 0x207
push edx
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
pop edi
je 0x410681
mov eax, dword [esp + 0x494]
cmp eax, ebx
jbe 0x41066c
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ebx, 1
jmp 0x410687
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0xc]
push edx
call esi
pop ebp
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, ebx
pop esi
pop ebx
add esp, 0x478
ret
mov eax, ebx
pop ebx
add esp, 0x478
ret
Function at 0x411180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov dword [esp + 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x10]
push eax
push 0x420f4c
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x411201
xor al, al
pop edi
add esp, 0x214
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x114]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41123b
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
add esp, 0x214
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 4
setae al
add esp, 0x214
ret

Function at 0x411310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x422ca8
push ebx
push eax
xor ebx, ebx
call fcn.00404910
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x411388
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x41137d
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret

Function at 0x4113a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov ecx, 0x422c98
push ebx
push eax
xor ebx, ebx
call fcn.00404910
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x411418
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x41140d
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x110
ret
Function at 0x411ab0
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x420fb4
push 0
stosb byte es:[edi], al
call sub.MSVCRT.dll__tempnam
add esp, 8
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 4]
push ecx
call fcn.00411aa0
add esp, 4
test eax, eax
pop edi
jne 0x411b05
add esp, 0x104
ret
lea edx, [esp]
push esi
push edx
call fcn.004130a0
add esp, 4
mov esi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x411cd0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x558
push ebp
mov ebp, dword [esp + 0x56c]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x574]
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push 0x4205fc
push 0x4208fc
push 0x80000002
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x411d3f
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
add esp, 0x564
ret
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
stosb byte es:[edi], al
call fcn.00411ed0
add esp, 8
lea eax, [esp + 0x20]
push 0x420fd8
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
je 0x411e25
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x120]
push edx
call fcn.0040a7f0
lea eax, [esp + 8]
lea ecx, [esp + 0x120]
push eax
mov dword [esp + 0x56c], 0
call fcn.0040a950
mov ecx, dword [esp + 0xe]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0xa]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0xc]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x420cbc
push esi
push ebp
call sub.MSVCRT.dll__snprintf
add esp, 0x1c
lea ecx, [esp + 0x120]
mov dword [esp + 0x568], 0xffffffff
call fcn.0040a8a0
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
add esp, 0x564
ret
mov ecx, dword [esp + 0x560]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x564
ret

Function at 0x411ed0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x104
push esi
push 0x420ffc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [esp + 0xc]
push 0x42038c
push esi
push 0x420f70
push eax
push esi
call sub.MSVCRT.dll__snprintf
add esp, 0x14
mov eax, 1
pop esi
ret
Function at 0x411f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0x42103c
push 0x4208fc
push 0x80000002
mov dword [esp + 0x24], eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x411fa8
mov eax, 1
pop esi
ret
push 0x421030
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop esi
ret

Function at 0x412120
Capabilities:
Delete service

Disassembly:
push ebx
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x412173
mov eax, dword [esp + 0xc]
push ebp
push edi
push 0x10000
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x412169
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x412166
mov ebx, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
ret
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x412180
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x24
push esi
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x4122a7
mov eax, dword [esp + 0x30]
push ebx
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x412280
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x412290
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x412275
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
cmp dword [esp + 0x1c], 2
jne 0x41225f
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x412218
mov edx, 0x3e8
jmp 0x412225
cmp edx, 0x2710
jbe 0x412225
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41225f
cmp dword [esp + 0x2c], ebp
jbe 0x41224c
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
jmp 0x412258
call edi
mov ecx, dword [esp + 0x30]
sub eax, esi
cmp eax, ecx
ja 0x41225f
cmp dword [esp + 0x1c], 2
je 0x4121fd
mov eax, dword [esp + 0x1c]
pop ebp
cmp eax, 4
jne 0x412271
mov dword [esp + 0xc], 1
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x412275
mov dword [esp + 0xc], 1
jmp 0x412275
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret
Function at 0x412680
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x500c
call fcn.00418cf0
push ebx
push ebp
push esi
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [0x421048]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [0x421044]
push edx
push eax
push ecx
push 0x80000002
mov dword [esp + 0x28], 7
mov dword [esp + 0x30], 0x2800
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41283f
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor edx, edx
lea ebp, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412752
cmp edx, 0xa
jae 0x412752
mov esi, dword [esp + 0x5020]
mov eax, ebp
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x412728
test cl, cl
je 0x412724
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x412728
add eax, 2
add esi, 2
test cl, cl
jne 0x412704
xor eax, eax
jmp 0x41272d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41283f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc edx
lea ebp, [ecx + ebp + 1]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4126f6
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x281d]
mov byte [esp + 0x281c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x5020]
push 0x2800
lea edx, [esp + 0x2820]
push edi
push edx
lea esi, [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
inc ebp
call ebx
test eax, eax
je 0x412817
mov dword [esp + 0x14], 0
mov edi, 0x421050
mov ecx, dword [edi]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4127cf
add edi, 4
cmp edi, 0x421064
jl 0x4127b0
mov edi, dword [esp + 0x14]
jmp 0x4127d4
mov edi, 1
mov edx, dword [esp + 0x5020]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x412809
test edi, edi
jne 0x412809
mov eax, 0x2800
lea ecx, [esp + ebp + 0x281c]
sub eax, ebp
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call ebx
lea ebp, [eax + ebp + 1]
push esi
call ebx
lea esi, [esi + eax + 1]
push esi
call ebx
test eax, eax
jne 0x4127a3
mov eax, dword [esp + 0x10]
mov ecx, dword [0x421048]
inc ebp
lea edx, [esp + 0x281c]
push ebp
push edx
mov edx, dword [0x421044]
push eax
push ecx
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500c
ret
Function at 0x412850
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x5008
call fcn.00418cf0
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [0x421048]
push ecx
mov ecx, dword [0x421044]
push edx
push eax
push ecx
push 0x80000002
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], 0x2800
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x412981
push ebx
xor ebx, ebx
mov ecx, 0x9ff
lea edi, [esp + 0x2811]
mov byte [esp + 0x2810], bl
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push edx
lea ebp, [esp + 0x18]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x412958
push esi
xor edi, edi
mov esi, 0x421050
mov eax, dword [esi]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x412901
add esi, 4
cmp esi, 0x421064
jl 0x4128e6
jmp 0x412906
mov edi, 1
mov ecx, dword [esp + 0x501c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x412943
test edi, edi
jne 0x412943
mov edx, 0x2800
lea eax, [esp + ebx + 0x2818]
sub edx, ebx
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call esi
lea ebx, [ebx + eax + 1]
jmp 0x412949
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call esi
lea ebp, [eax + ebp + 1]
push ebp
call esi
test eax, eax
jne 0x4128df
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [0x421048]
inc ebx
lea ecx, [esp + 0x2814]
push ebx
push ecx
mov ecx, dword [0x421044]
push edx
push eax
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop ebp
pop ebx
pop edi
add esp, 0x5008
ret

Function at 0x412ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
push esi
push edi
xor dl, dl
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
mov byte [esp + 0x30], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x422de0
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 1
stosb byte es:[edi], al
call fcn.00404910
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [esp + 0x138]
push 0x104
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.00404560
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x42111c
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x412b8c
lea eax, [esp + 0x10]
push eax
call fcn.00412850
add esp, 4
push esi
call fcn.00412120
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x12c
ret