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

Disassembly:
sub esp, 0x54
mov eax, dword [0x480630]
xor eax, esp
mov dword [esp + 0x50], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4067f3
xor eax, eax
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004570de
add esp, 0x54
ret
push esi
push edi
xor eax, eax
mov byte [esp + 0x14], 0
mov ecx, 0x10
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
xor esi, esi
push esi
push str.Version
push ecx
mov dword [esp + 0x24], 0x41
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406845
movsx esi, byte [esp + 0x14]
sub esi, 0x30
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x58]
cmp esi, 5
pop edi
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.004570de
add esp, 0x54
ret

Function at 0x408410
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, dword [esp + 0x14]
je 0x40842d
cmp dword [edi], 2
jae 0x40842d
pop edi
mov eax, 0x7a
pop esi
ret 0xc
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40848a
cmp dword [esp + 0x14], 7
jne 0x40847c
test esi, esi
mov eax, dword [esp + 0x10]
je 0x408486
cmp eax, 2
jb 0x40847c
mov cl, byte [eax + esi - 1]
test cl, cl
jne 0x40847c
mov cl, byte [eax + esi - 2]
test cl, cl
je 0x408486
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x408490
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4084a2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x408520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x480630]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x12c], eax
mov dword [esp + 0x1c], ecx
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x20], bl
mov ecx, 0x41
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.00457c44
add esp, 8
cmp eax, ebx
je 0x40857a
mov byte [eax + 1], bl
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.0044a450
add esp, 8
test eax, eax
jne 0x4085a2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jmp 0x4085b4
cmp dword [esp + 0x14], ebx
ja 0x4085fc
jb 0x4085b4
cmp dword [esp + 0x10], 0x100000
ja 0x4085fc
call fcn.004178f0
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0xc]
push ebx
push 0x40010
push 0x4708d8
mov esi, eax
mov edi, dword [esi]
push 0x13e
call fcn.004515d0
push eax
mov ecx, esi
call dword [edi + 0xa4]
mov eax, SafeArrayPutElement
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret

Function at 0x408620
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x54
mov eax, dword [0x480630]
xor eax, esp
push ebp
push esi
push edi
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xc]
push eax
push 1
xor esi, esi
push esi
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov ebp, ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4086b4
mov byte [esp + 0x18], al
mov ecx, 0x10
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push str.Version
push ecx
mov dword [esp + 0x28], 0x41
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4086a4
movsx esi, byte [esp + 0x18]
sub esi, 0x30
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 4
jge 0x4086f6
call fcn.004178f0
mov ecx, dword [ebp + 0xc]
push 0
push 0x40040
push 0x4708d8
mov esi, eax
mov edi, dword [esi]
push 0x12f
call fcn.004515d0
push eax
mov ecx, esi
call dword [edi + 0xa4]
pop edi
pop esi
mov eax, reloc.OLEAUT32.dll_SafeArrayLock
pop ebp
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004570de
add esp, 0x54
ret
cmp esi, 5
jge 0x408728
call fcn.004178f0
mov ecx, dword [ebp + 0xc]
push 7
push 0x40024
push 0x4708d8
mov esi, eax
mov edi, dword [esi]
push 0x68
call fcn.004515d0
push eax
mov ecx, esi
call dword [edi + 0xa4]
cmp eax, 7
je 0x4086df
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004570de
add esp, 0x54
ret
Function at 0x408740
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x20
mov eax, dword [0x480630]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4087f2
push str.Admin_Test
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp]
inc eax
push eax
push str.Admin_Test
push 1
push 0
push 0x470ed8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4087e8
mov byte [esp + 0xc], al
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov word [esp + 0x19], ax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x23], al
lea eax, [esp + 0x10]
push eax
push 0
push 0x470ed8
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408803
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004570de
add esp, 0x20
ret
mov eax, dword [esp]
push 0x470ed8
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Admin_Test
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ecx, dword [esp + 0x1c]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.004570de
add esp, 0x20
ret

Function at 0x409910
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
call fcn.00430250
mov ecx, eax
call fcn.004300d0
test eax, eax
je 0x4099e9
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x409957
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_OpenSCManager__Err_Code:__d
push 4
call fcn.004047f0
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x1c
ret
push edi
push 4
push str.RsMgrSvc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x409991
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_OpenService_RSD___Err_Code:__d
push 4
call fcn.004047f0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4099cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_QueryServiceStatus_RSD___Err_Code:__d
push 4
call fcn.004047f0
add esp, 0xc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, 4
pop edi
sete al
pop esi
add esp, 0x1c
ret
mov eax, 1
add esp, 0x1c
ret
Function at 0x409dc0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46b986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe54
mov eax, dword [0x480630]
xor eax, esp
push 0
lea ecx, [esp + 8]
mov dword [esp + 0xe54], eax
call fcn.00446910
mov eax, dword [0x4800d8]
mov dword [esp + 0xe5c], 0
mov dword [esp], eax
push 0x104
lea ecx, [esp + 4]
mov byte [esp + 0xe60], 1
call fcn.004042d0
test eax, eax
je 0x409e32
mov eax, dword [esp]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
push esi
push edi
push 0x104
push eax
lea ecx, [esp + 0x14]
call fcn.00446ef0
lea ecx, [esp + 8]
call fcn.00404410
mov esi, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov dword [esi - 8], eax
push 0x5c
lea ecx, [esp + 0xc]
mov byte [eax + esi], 0
call fcn.00404b00
push str.RsTest.ini
push str.RsTest.ini
call edi
push eax
lea ecx, [esp + 0x10]
call fcn.00403ab0
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.004178f0
mov edx, dword [eax]
push esi
push 0x47110c
push 0x471108
push 0x471104
mov ecx, eax
call dword [edx + 0x9c]
call fcn.004178f0
mov edx, dword [eax]
push esi
push 0
push 0x471108
push 0x471104
mov ecx, eax
call dword [edx + 0x8c]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x409ef9
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409ef9
push esi
call fcn.00457c3f
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0xe64], 0xffffffff
call fcn.004462d0
mov ecx, dword [esp + 0xe5c]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe54]
pop esi
xor ecx, esp
call fcn.004570de
add esp, 0xe60
ret
Function at 0x419bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp]
push 0xf003f
push ecx
xor ebx, ebx
mov ecx, ebp
xor edi, edi
mov dword [esp + 0x1c], ebx
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
je 0x419c89
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419c72
mov edx, dword [esp + 0x1c]
push edx
call fcn.00456452
mov ecx, dword [esp + 0x20]
mov edx, ecx
mov ebx, eax
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esp, 4
test ebx, ebx
rep stosb byte es:[edi], al
je 0x419c72
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419c69
mov ecx, dword [esp + 0x24]
push ebx
call fcn.00404d30
mov dword [esp + 0x14], 1
push ebx
call fcn.00457c3f
add esp, 4
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x4c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 0xc
Function at 0x41c050
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.004154a0
mov edi, eax
call fcn.004178f0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [edi + 0x58]
mov edx, dword [esi]
push eax
push ebp
push ebx
push 0x4708d8
push str.TEMPPATH
push str.SETUP
mov ecx, esi
call dword [edx + 0x90]
test eax, eax
jne 0x41c0c1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebp, eax
test ebp, ebp
je 0x41c0bf
mov ecx, dword [edi + 0x58]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [edi + 0x58]
mov edx, dword [esi]
push eax
push ebx
push str.TEMPPATH
push str.SETUP
mov ecx, esi
call dword [edx + 0x9c]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41dde0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
push esi
push edi
push str.Setup.exe_Begin__________________________________
push 0x80
call fcn.004047f0
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [esp + 0x24]
push 0
push ecx
push 0
mov ecx, 0x482d6c
call fcn.0041da40
lea ecx, [esp + 0x10]
call fcn.0041dcd0
lea ecx, [esp + 0x10]
call fcn.004066d0
mov esi, eax
xor edi, edi
test esi, esi
lea ecx, [esp + 0x10]
jne 0x41de7b
call fcn.00405ad0
mov esi, eax
test esi, esi
je 0x41de6e
push esi
lea ecx, [esp + 0x14]
call fcn.00405ae0
lea ecx, [esp + 0x10]
call fcn.00403170
mov edi, eax
jmp 0x41de81
push esi
call fcn.00405ae0
lea ecx, [esp + 0x10]
call fcn.004040e0
mov ecx, 0x482d6c
call fcn.0041dd80
call dword [sym.imp.ole32.dll_CoUninitialize]
test edi, edi
je 0x41dea8
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
lea ecx, [esp + 0x10]
call fcn.0041dc70
pop edi
mov eax, esi
pop esi
add esp, 0x18
ret 0x10
Function at 0x41fbd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x480630]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41fcd2
lea ecx, [esp + 0xc]
call fcn.00402610
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41fcd6
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41fcae
jmp 0x41fc70
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041fbd0
mov edi, eax
test edi, edi
jne 0x41fcfd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41fc70
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41fcc5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41fce1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004570de
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41fd0c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41fce3
Function at 0x420c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
je 0x420d14
mov eax, dword [esp + 0x20]
test eax, eax
je 0x420c96
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x420c96
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x1a0]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov edi, dword [eax]
cmp edi, eax
mov dword [esp + 0x20], edi
je 0x420d14
jmp 0x420cb0
mov edi, dword [esp + 0x20]
lea ecx, [ecx]
mov ecx, dword [ebp + 8]
push 0
lea esi, [edi + 8]
push esi
call fcn.0040a2b0
mov ebx, eax
test ebx, ebx
je 0x420d05
mov ecx, dword [ebp + 8]
push 1
push esi
call fcn.0040a2b0
test eax, eax
je 0x420d05
mov ecx, dword [ebx + 0x6c]
mov esi, dword [ecx]
cmp esi, ecx
je 0x420d05
lea ebp, [eax + 0x68]
nop
mov edi, dword [esi + 8]
push edi
mov ecx, ebp
call fcn.0042fcb0
test eax, eax
jne 0x420cf6
mov ecx, edi
call fcn.0042f7d0
mov esi, dword [esi]
cmp esi, dword [ebx + 0x6c]
jne 0x420ce0
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, dword [edi]
cmp edi, dword [edx + 4]
mov dword [esp + 0x20], edi
jne 0x420ca9
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
cmp ebx, eax
je 0x420d6e
push 1
lea ecx, [ebx + 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a2b0
mov edi, eax
test edi, edi
je 0x420d63
mov eax, dword [edi + 0x6c]
mov esi, dword [eax]
cmp esi, eax
je 0x420d63
mov edi, edi
mov eax, dword [esp + 0x1c]
test eax, eax
mov ecx, dword [esi + 8]
je 0x420d57
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f190
jmp 0x420d5c
call fcn.0042f7d0
mov esi, dword [esi]
cmp esi, dword [edi + 0x6c]
jne 0x420d40
mov eax, dword [esp + 0x18]
mov ebx, dword [ebx]
cmp ebx, dword [eax + 4]
jne 0x420d21
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x420e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
test eax, eax
mov esi, ecx
je 0x420ec7
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x420f33
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x12c]
mov ecx, dword [esi + 0x10]
push eax
call fcn.00406f30
test eax, eax
je 0x420f33
pop edi
mov eax, SysReAllocStringLen
pop esi
ret 4
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420f18
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push 1
add ecx, 0x12c
mov byte [esp + 0x14], 0x5c
call fcn.00403ab0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [eax + 0x12c]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov ecx, dword [esi + 8]
push 0x5c
add ecx, 0x12c
call fcn.00404b00
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x12c]
mov ecx, dword [esi + 0x10]
push eax
call fcn.00406f10
test eax, eax
mov eax, SysReAllocStringLen
jne 0x420f35
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x42b7d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46d313
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4800d8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
lea edi, [esi + 0x18]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00435410
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00435410
mov ecx, dword [esp + 0x20]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
or eax, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x34], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x42c760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push edi
mov edi, ecx
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42c78e
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov ecx, esi
jl 0x42c784
call fcn.00403b50
jmp 0x42c78e
push 0x4708d8
call fcn.00404d30
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], 0
call fcn.004178f0
mov ecx, eax
call fcn.00416630
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42c83a
push 0x30c
mov ecx, esi
call fcn.004042d0
test eax, eax
jne 0x42c7d4
xor edi, edi
jmp 0x42c7e8
mov edx, dword [esi]
mov dword [edx - 8], 0x30c
mov eax, dword [esi]
mov byte [eax + 0x30c], 0
mov edi, dword [esi]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.UninstallString
push eax
mov dword [esp + 0x24], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, esi
mov byte [edi + 0x30b], 0
call fcn.00404410
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi]
mov dword [edx - 8], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x42c850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push edi
mov edi, ecx
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42c87e
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov ecx, esi
jl 0x42c874
call fcn.00403b50
jmp 0x42c87e
push 0x4708d8
call fcn.00404d30
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], 0
call fcn.004178f0
mov ecx, eax
call fcn.00416630
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42c92a
push 0x30c
mov ecx, esi
call fcn.004042d0
test eax, eax
jne 0x42c8c4
xor edi, edi
jmp 0x42c8d8
mov edx, dword [esi]
mov dword [edx - 8], 0x30c
mov eax, dword [esi]
mov byte [eax + 0x30c], 0
mov edi, dword [esi]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.DisplayName
push eax
mov dword [esp + 0x24], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, esi
mov byte [edi + 0x30b], 0
call fcn.00404410
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi]
mov dword [edx - 8], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xc
ret 4