Function at 0x40b400
Capabilities:
Copy file
Get common file path
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43c5d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xecc
mov eax, dword [esp + 0xedc]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x48], esi
call fcn.0042e38a
mov ecx, dword [0x44ed90]
xor ebx, ebx
mov dword [esp + 0xee4], ebx
mov dword [esi + 0x68], ecx
mov edx, dword [0x44ed90]
mov dword [esi + 0x6c], edx
lea ecx, [esi + 0x70]
mov byte [esp + 0xee4], 2
call fcn.0042d16c
mov eax, dword [0x44ed90]
mov dword [esi + 0x84], eax
mov ecx, dword [0x44ed90]
mov dword [esi + 0x88], ecx
mov edx, dword [0x44ed90]
lea edi, [esi + 0x8c]
mov dword [edi], edx
mov eax, dword [0x44ed90]
lea ebp, [esi + 0x90]
mov dword [ebp], eax
mov ecx, dword [0x44ed90]
mov dword [esi + 0x94], ecx
lea ecx, [esi + 0xbc]
mov byte [esp + 0xee4], 8
call fcn.0042d16c
lea ecx, [esi + 0xd0]
mov byte [esp + 0xee4], 9
call fcn.0042d16c
lea ecx, [esi + 0xe4]
mov byte [esp + 0xee4], 0xa
call fcn.0042e93c
mov dword [esi + 0xe4], 0x43f748
mov edx, dword [0x44ed90]
mov dword [esi + 0x130], edx
mov eax, dword [0x44ed90]
mov dword [esi + 0x134], eax
mov ecx, dword [0x44ed90]
mov dword [esi + 0x138], ecx
mov edx, dword [0x44ed90]
mov dword [esi + 0x13c], edx
mov eax, dword [0x44ed90]
mov dword [esi + 0x140], eax
mov ecx, dword [0x44ed90]
mov dword [esi + 0x144], ecx
push fcn.00402480
push 0x4023f0
push 5
lea edx, [esi + 0x14c]
push 0x2c
push edx
mov byte [esp + 0xef8], 0x11
call fcn.0041c92f
mov byte [esp + 0xee4], 0x12
mov dword [esi], method.CDialog.virtual_0
call fcn.0043769d
call fcn.0043769d
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x148], eax
lea eax, [esp + 0x144]
push eax
mov byte [esi + 0x228], bl
mov dword [esp + 0x148], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x154]
cmp eax, 1
jne 0x40b5a9
mov byte [esi + 0x228], al
jmp 0x40b5f3
cmp eax, 2
jne 0x40b5f3
push 8
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40b5f3
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
je 0x40b5d4
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
jmp 0x40b5e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x40b5e8
mov byte [esi + 0x228], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x44ed90]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
lea edx, [esp + 0x1c]
mov byte [esp + 0xee4], 0x14
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
mov dword [esp + 0x40], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x44]
push eax
push ecx
push ebx
push ebx
push str.Start_Menu
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00431b70
lea edx, [esp + 0x1c]
mov byte [esp + 0x44], bl
push edx
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x44]
push eax
push ecx
push ebx
push ebx
push str.Common_Start_Menu
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x24]
call fcn.00431b70
mov edx, dword [esp + 0x20]
push 0x452ac0
push edx
call fcn.0041c3ea
add esp, 8
test eax, eax
je 0x40b6d6
lea eax, [esp + 0x20]
push eax
jmp 0x40b6db
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 0x6c]
call fcn.00431b20
push str.file:___
mov ecx, edi
mov byte [esi + 0x99], bl
mov byte [esi + 0x125], bl
mov byte [esi + 0x124], 1
mov dword [esi + 0x120], ebx
mov byte [esi + 0x65], bl
mov byte [esi + 0x64], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call fcn.00431b70
mov ecx, esi
call fcn.0040bc80
lea edx, [esp + 0x1d8]
push 0xff
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1d8]
push eax
push 0x44d120
push ebp
call fcn.0042ca77
add esp, 0xc
mov ecx, ebp
push 0x5c
call fcn.0042c6cf
mov ecx, dword [ebp]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
mov ecx, ebp
call fcn.0042c2d5
lea eax, [esi + 0x94]
mov ecx, edi
push eax
call fcn.00431dff
push 0x44de3c
push 0x44de38
mov ecx, edi
call fcn.0042c3e2
push 0x44de34
push 0x44d278
mov ecx, edi
call fcn.0042c3e2
push str._index.html
mov ecx, edi
call fcn.00431dc3
push ebp
lea ecx, [esp + 0x1c]
call fcn.0043175c
lea edx, [esp + 0x18]
push str.mtm.ini
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xef0], 0x15
call fcn.00431c7c
push eax
lea ecx, [esi + 0x68]
mov byte [esp + 0xee8], 0x16
call fcn.00431b20
lea ecx, [esp + 0x10]
mov byte [esp + 0xee4], 0x15
call fcn.004319e7
mov ecx, dword [0x44ed90]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x18]
push str._access_config.ini
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xef0], 0x17
call fcn.00431c7c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xee8], 0x18
call fcn.00431b20
lea ecx, [esp + 0x10]
mov byte [esp + 0xee4], 0x17
call fcn.004319e7
lea eax, [esi + 0x94]
push str._access_config.ini
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00431c7c
lea edi, [esi + 0x13c]
push eax
mov ecx, edi
mov byte [esp + 0xee8], 0x19
call fcn.00431b20
lea ecx, [esp + 0x10]
mov byte [esp + 0xee4], 0x17
call fcn.004319e7
mov eax, dword [edi]
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 1
push eax
push edx
call ebp
cmp eax, ebx
jne 0x40b94a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x40b94a
mov eax, dword [edi]
push eax
lea eax, [esp + 0x2dc]
push 0x400
push eax
push 0x452ac0
push str.VERSION
push str.OTHER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
jle 0x40b93f
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x6d8]
push ecx
push 0x400
push edx
push 0x452ac0
push str.VERSION
push str.OTHER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
jle 0x40b94a
lea ebp, [esp + 0x6d8]
lea edi, [esp + 0x2d8]
mov cl, byte [edi]
mov dl, byte [ebp]
mov al, cl
cmp cl, dl
jne 0x40b921
cmp al, bl
je 0x40b91d
mov dl, byte [edi + 1]
mov cl, byte [ebp + 1]
mov al, dl
cmp dl, cl
jne 0x40b921
add edi, 2
add ebp, 2
cmp al, bl
jne 0x40b8f8
xor eax, eax
jmp 0x40b926
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b94a
mov eax, dword [esi + 0x13c]
push ebx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40b94a
mov edi, dword [edi]
mov ecx, dword [esp + 0x14]
push ebx
push edi
push ecx
call ebp
lea edx, [esp + 0x18]
push str.index_t.html
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00431c7c
push eax
lea ecx, [esi + 0x138]
mov byte [esp + 0xee8], 0x1a
call fcn.00431b20
lea ecx, [esp + 0x10]
mov byte [esp + 0xee4], 0x17
call fcn.004319e7
lea ecx, [esp + 0x18]
push str._access_text.ini
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00431c7c
lea edi, [esi + 0x88]
push eax
mov ecx, edi
mov byte [esp + 0xee8], 0x1b
call fcn.00431b20
lea ecx, [esp + 0x10]
mov byte [esp + 0xee4], 0x17
call fcn.004319e7
lea eax, [esi + 0x94]
push str.index.html
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00431c7c
push eax
lea ecx, [esi + 0x134]
mov byte [esp + 0xee8], 0x1c
call fcn.00431b20
lea ecx, [esp + 0x10]
mov byte [esp + 0xee4], 0x17
call fcn.004319e7
lea ecx, [esp + 0x18]
push str.machine_specifics.csv
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00431c7c
push eax
lea ecx, [esi + 0x130]
mov byte [esp + 0xee8], 0x1d
call fcn.00431b20
lea ecx, [esp + 0x10]
mov byte [esp + 0xee4], 0x17
call fcn.004319e7
mov edi, dword [edi]
lea eax, [esp + 0x44]
push edi
push 0x400
push eax
push 0x452ac0
push str.NOLAUNCHERROR
push str.Access_Text
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xad8]
push 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [0x44ed90]
mov dword [esp + 0x24], edx
lea eax, [esp + 0xad8]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0xee8], 0x1e
call fcn.00431b70
push str._aibmrun.exe
lea ecx, [esp + 0x28]
call fcn.00431dc3
lea ecx, [esp + 0x30]
call fcn.004326d0
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xef0], 0x1f
call fcn.004327e2
cmp eax, ebx
jne 0x40bae1
push ebx
push ebx
push str.c:program_filesibm_access_ibm_aibmrun.exe
lea ecx, [esp + 0x3c]
call fcn.004327e2
cmp eax, ebx
jne 0x40baea
push ebx
lea edx, [esp + 0x48]
push ebx
push edx
mov ecx, esi
call fcn.004302fc
jmp 0x40baea
lea ecx, [esp + 0x30]
call fcn.004329fd
push str.aibmrunl.dll
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x9c], eax
je 0x40bb48
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Verify
push eax
call edi
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x9c]
push str.initialize
push eax
call edi
mov dword [esi + 0xa4], eax
mov byte [esi + 0x98], 1
jmp 0x40bb4e
mov byte [esi + 0x98], bl
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x40bb5a
call eax
push 0xc
call fcn.00431728
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xee4], 0x20
je 0x40bb7d
mov ecx, eax
call fcn.00401dc0
jmp 0x40bb7f
xor eax, eax
mov dword [esi + 0xb0], eax
mov ecx, dword [eax]
push eax
mov byte [esp + 0xee8], 0x1f
call dword [ecx + 4]
push 0xc
call fcn.00431728
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xee4], 0x21
je 0x40bbb7
push esi
mov ecx, eax
call fcn.00401ac0
jmp 0x40bbb9
xor eax, eax
mov ecx, dword [esi + 0xb0]
push eax
mov byte [esp + 0xee8], 0x1f
call fcn.00401e00
lea ecx, [esp + 0x30]
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov byte [esp + 0xee4], 0x1e
call fcn.00432725
lea ecx, [esp + 0x24]
mov byte [esp + 0xee4], 0x17
call fcn.004319e7
lea ecx, [esp + 0x14]
mov byte [esp + 0xee4], 0x15
call fcn.004319e7
lea ecx, [esp + 0x18]
mov byte [esp + 0xee4], 0x14
call fcn.004319e7
lea ecx, [esp + 0x28]
mov byte [esp + 0xee4], 0x13
call fcn.004319e7
lea ecx, [esp + 0x20]
mov byte [esp + 0xee4], 0x12
call fcn.004319e7
mov ecx, dword [esp + 0xedc]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xed8
ret 4