joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x415eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x416924
mov dword [esp + 0x1c], 7
call fcn.00412a70
mov eax, dword [esi + 0x78]
push eax
mov dword [esp + 0x14], eax
call fcn.00414a60
xor ebx, ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, dword [esi + 0x68]
push eax
mov dword [esp + 0x18], eax
call fcn.00414a60
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov eax, dword [esi + 0x58]
push eax
mov dword [esp + 0x1c], eax
call fcn.00414a60
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov eax, dword [esi + 0x48]
push eax
mov dword [esp + 0x20], eax
call fcn.00414a60
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0x24], eax
call fcn.00414a60
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x28], eax
call fcn.00414a60
lea edi, [esi + 0x14]
add esp, 0x18
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x24], bl
call fcn.00413f20
mov eax, dword [edi + 4]
push eax
call fcn.00414a60
add esp, 4
lea ecx, [esi + 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00413ec0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x412be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x412c01
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412c01
mov eax, 1
ret 4
xor eax, eax
ret 4
Function at 0x412c10
Capabilities:
Delete file
Delete registry key
Delete registry value
Move file
Persist via run registry key
Set file attributes

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x114]
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi]
cmp eax, 1
jne 0x412c53
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call ebx
jmp 0x412d45
cmp eax, 2
jne 0x412c7e
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
call ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000001
call ebx
push edi
jmp 0x412c87
cmp eax, 4
jne 0x412cae
lea edx, [esi + 4]
push edx
push str.CLSID_s
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x80000000
jmp 0x412d3f
cmp eax, 8
jne 0x412d14
lea edi, [esi + 4]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x80000002
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x80000001
call ebx
push edi
push str.CLSID_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x80000000
call ebx
pop ebp
jmp 0x412d45
cmp eax, 0x20
jne 0x412d45
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp + 0xc]
push esi
call fcn.00412be0
test eax, eax
je 0x412d92
add esi, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x412d92
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x412d92
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebx
add esp, 0x108
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret 8
Function at 0x412db0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x354
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x10000
mov byte [esp + 0x120], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x14], eax
sub eax, 0
je 0x412def
dec eax
jne 0x412e07
push 0
lea eax, [esp + 0x124]
push 0x18
push eax
jmp 0x412dfb
push 0
lea ecx, [esp + 0x124]
push 7
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x412e14
mov byte [esp + 0x120], 0
jmp 0x412f0e
mov al, byte [esp + 0x120]
test al, al
je 0x412f0e
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x11f]
lea ebp, [esp + ecx + 0x120]
cmp al, 0x5c
je 0x412e4b
mov byte [ebp], 0x5c
inc ebp
mov edi, 0x41ad98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x224]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412f0e
test byte [esp + 0x224], 0x10
jne 0x412ef4
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x250]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0x74]
push edx
call fcn.004139e0
lea eax, [esp + 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412e8e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x412dd9
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x78]
pop ebx
test eax, eax
jne 0x412f36
add esp, 0x354
ret
mov ecx, dword [ecx + 0x7c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
add esp, 0x354
ret
Function at 0x412f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x20], 1
mov byte [esp + 0x128], 0
mov byte [esp + 0x24], 0
mov edi, 0x41691c
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413001
xor esi, esi
mov eax, 0x104
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x128]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x412ff6
lea edx, [esp + 0x20]
lea eax, [ebp + 4]
push edx
push eax
mov ecx, ebp
call fcn.004139e0
inc esi
jmp 0x412fac
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 4
cmp edi, 0x416924
jb 0x412f8c
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41301e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov ecx, dword [ebp + 0xc]
pop edi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x21c
ret
Function at 0x413050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x32c
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov edi, 0x41691c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], 2
mov byte [esp + 0x134], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x18], edi
mov ebx, 0x104
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push ecx
call esi
test eax, eax
jne 0x413187
xor edi, edi
lea edx, [esp + 0x24]
lea eax, [esp + 0x238]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x40]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x413178
cmp byte [esp + 0x30], 0x7b
jne 0x413172
cmp dword [esp + 0x10], 0x26
jb 0x413172
lea edx, [esp + 0x30]
lea eax, [esp + 0x238]
push edx
push str.CLSID_sInprocServer32
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x238]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call esi
test eax, eax
jne 0x413172
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x134]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413167
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edx, [ecx + 0x14]
push edx
call fcn.004139e0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x4130ad
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
add edi, 4
cmp edi, 0x416924
mov dword [esp + 0x18], edi
jb 0x41308d
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x18]
pop ebx
test eax, eax
jne 0x4131b0
add esp, 0x32c
ret
mov ecx, dword [ecx + 0x1c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x32c
ret
Function at 0x4131d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x32c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, 0x41691c
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], 4
mov byte [esp + 0x134], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x18], ebp
mov edi, 0x104
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
push ecx
call esi
test eax, eax
jne 0x413309
xor ebp, ebp
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x248]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4132fa
cmp byte [esp + 0x30], 0x7b
jne 0x4132f4
cmp dword [esp + 0x10], 0x26
jb 0x4132f4
lea edx, [esp + 0x30]
lea eax, [esp + 0x238]
push edx
push str.CLSID_sInprocServer32
push edi
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x238]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call esi
test eax, eax
jne 0x4132f4
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x134]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4132e9
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edx, [ecx + 0x24]
push edx
call fcn.004139e0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x41322e
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
add ebp, 4
cmp ebp, 0x416924
mov dword [esp + 0x18], ebp
jb 0x41320d
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x28]
pop ebx
test eax, eax
jne 0x413332
add esp, 0x32c
ret
mov ecx, dword [ecx + 0x2c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x32c
ret
Function at 0x413360
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x324
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, 0x41691c
push edi
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], 8
mov byte [esp + 0x12c], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x18], ebp
mov ebx, 0x104
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push ecx
call esi
test eax, eax
jne 0x41346e
xor ebp, ebp
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push ebx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41345f
cmp byte [esp + 0x28], 0x7b
jne 0x413459
lea ecx, [esp + 0x28]
lea edx, [esp + 0x230]
push ecx
push str.CLSID_sInprocServer32
push ebx
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x230]
push eax
push 0x20019
push 0
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x413459
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea eax, [esp + 0x12c]
push edx
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41344e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [ecx + 0x34]
push eax
call fcn.004139e0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x4133be
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
add ebp, 4
cmp ebp, 0x416924
mov dword [esp + 0x18], ebp
jb 0x41339d
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x38]
pop ebx
test eax, eax
jne 0x413497
add esp, 0x324
ret
mov ecx, dword [ecx + 0x3c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x324
ret
Function at 0x4134d0
Capabilities:
Get common file path
Get file attributes
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x524
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
mov ebp, ecx
push 0x80000002
mov dword [esp + 0x30], 0x40
mov byte [esp + 0x34], 0
mov byte [esp + 0x138], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4135ff
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], al
lea edx, [esp + 0x228]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.AppInit_DLLs
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4135ff
lea eax, [esp + 0x430]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x228]
lea esi, [esp + 0x228]
test ecx, ecx
je 0x4135ff
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
cmp byte [esi], 0
je 0x4135ff
push 0x2c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4135a3
mov byte [edi], 0
inc edi
lea edx, [esp + 0x430]
push esi
push edx
push str._s_s
lea eax, [esp + 0x130]
push 0x104
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4135f9
push 0x104
lea edx, [esp + 0x24]
push esi
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x64]
push eax
push ecx
mov ecx, ebp
call fcn.004139e0
test edi, edi
mov esi, edi
jne 0x413588
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x413611
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x524
ret
mov ecx, dword [ebp + 0x6c]
pop edi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x524
ret
Function at 0x413640
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x320
push ebx
lea eax, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServices
mov ebx, ecx
push 0x80000002
mov dword [esp + 0x2c], 0x20
mov byte [esp + 0x30], 0
mov byte [esp + 0x134], 0
call esi
test eax, eax
jne 0x41374a
push edi
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41373e
lea ecx, [esp + 0x20]
lea edx, [esp + 0x228]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x228]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x413735
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x124]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41372a
lea edx, [esp + 0x1c]
lea eax, [ebx + 0x54]
push edx
push eax
mov ecx, ebx
call fcn.004139e0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0xc]
jmp 0x413690
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x41375a
pop esi
pop ebx
add esp, 0x320
ret
mov ecx, dword [ebx + 0x5c]
pop esi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop ebx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x320
ret
Function at 0x414080
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
mov edi, ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x414133
mov eax, dword [edi + 0x108]
test eax, eax
je 0x4140b5
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [edi + 0x108], eax
test eax, eax
je 0x414133
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x414133
mov eax, dword [edi + 0x108]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push eax
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x414133
mov eax, dword [esp + 0xc]
xor edx, edx
add edi, 4
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x414220
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x41424d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
jae 0x41424f
xor eax, eax
add esp, 0x94
ret
Function at 0x414590
Capabilities:
Get session user name

Disassembly:
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov edi, ecx
jne 0x4145b8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x14
mov ebp, dword [esp + 0x150]
cmp ebp, esi
jne 0x4145f0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4145ec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14
lea ebp, [esp + 0x3c]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push esi
push esi
push 4
push ecx
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x4146c7
mov ebx, dword [esp + 0x14c]
cmp ebx, 2
je 0x41462f
cmp ebx, 1
jne 0x41463e
mov edx, dword [esp + 0x14]
push ebp
push 3
push edx
mov ecx, edi
call fcn.00414520
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x158]
push ebx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x4146bc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push 0
push edx
push 0
push 0
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x4146bc
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4146c7
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14

Function at 0x414a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x414ae1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x414ae1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x414aca
jmp 0x414ae1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8