Function at 0x403900
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40ce0b
push eax
mov eax, 0x13f4
mov dword fs:[0], esp
call fcn.00406420
push ebx
push ebp
push esi
or ebx, 0xffffffff
push edi
mov edi, str._bootinst
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x141c]
not ecx
dec ecx
push ecx
push str._bootinst
push eax
call fcn.00406310
add esp, 0xc
lea ecx, [esp + 0x4f8]
test eax, eax
push 0x104
push ecx
push 0
sete byte [esp + 0x1e]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403984
push 0x10
push str.Error
push str.Cannot_get_path_to_installation_payload
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, ebx
jmp 0x40432d
push 0
lea edx, [esp + 0xc08]
push 0
lea eax, [esp + 0xa8]
push edx
lea ecx, [esp + 0x504]
push eax
push ecx
call fcn.00406190
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.00404ae0
lea edx, [esp + 0x4f8]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x1410], 0
call fcn.00404b40
test al, al
jne 0x4039e2
push 0x10
push str.Error
push str.Cannot_open_payload_file
jmp 0x4041ac
lea ecx, [esp + 0x18]
call fcn.00404cb0
test al, al
jne 0x4039fd
push 0x10
push str.Error
push str.Cannot_initialize_payload_for_extraction
jmp 0x403a73
mov esi, dword [esp + 0x2c]
test esi, esi
mov dword [esp + 0x14], esi
jne 0x403a15
mov dword [esp + 0x14], 0x411bf4
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x600]
push str._s_Installation_Error
push eax
call fcn.00406120
add esp, 0xc
lea ecx, [esp + 0xe04]
push esi
push str._s_Installation_Warning
push ecx
call fcn.00406120
add esp, 0xc
lea edx, [esp + 0x1204]
push esi
push str._s_Installation_Information
push edx
call fcn.00406120
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00404ed0
test al, al
jne 0x403a89
lea eax, [esp + 0x5fc]
push 0x10
push eax
push str.Cannot_extract_payload
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.00405140
jmp 0x4041b4
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x2ac]
push ecx
push 0x104
call ebp
mov edi, dword [str.TSAd.dll]
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x2ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x3f4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x104
call ebp
mov edi, dword [str.TSAdBot.exe]
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x3f4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x403b42
lea eax, [esp + 0x5fc]
push 0x10
push eax
push str.Original_software_distribution_not_found
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.004050b0
lea ecx, [esp + 0x18]
call fcn.00405140
jmp 0x4041b4
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call ebp
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa4]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1a8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x104
call ebp
mov edi, dword [str.VcpDLL.dll]
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x1a8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call section..text
lea eax, [esp + 0x7fc]
push 0x104
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, eax
cmp edx, 0x104
jbe 0x403c46
lea ecx, [esp + 0x5fc]
push 0
push ecx
push str.AdGateway_DLL_install:_Windows_directory_path_too_long
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.00405140
lea edx, [esp + 0x2ac]
push edx
call fcn.00404590
add esp, 4
lea eax, [esp + 0x3f4]
push eax
call fcn.00404590
add esp, 4
lea ecx, [esp + 0xa4]
push ecx
call fcn.00404590
add esp, 4
lea edx, [esp + 0x1a8]
push edx
call fcn.00404590
add esp, 4
jmp 0x4041b4
test edx, edx
jne 0x403cae
lea eax, [esp + 0x5fc]
push 0x10
push eax
push str.AdGateway_DLL_install:_cannot_get_Windows_directory_path
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.00405140
lea ecx, [esp + 0x2ac]
push ecx
call fcn.00404590
add esp, 4
lea edx, [esp + 0x3f4]
push edx
call fcn.00404590
add esp, 4
lea eax, [esp + 0xa4]
push eax
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x1a8]
push ecx
call fcn.00404590
add esp, 4
jmp 0x4041b4
mov al, byte [esp + edx + 0x7fb]
lea ebp, [esp + edx + 0x7fc]
cmp al, 0x5c
je 0x403ce2
mov edi, 0x40e030
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.TSAd.dll]
mov ecx, ebx
xor eax, eax
lea edx, [esp + edx + 0x7fc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov bl, 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2ac]
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 + 0x7fc]
push ecx
push edx
call fcn.00405870
mov edi, eax
or esi, 0xffffffff
add esp, 8
cmp edi, esi
jne 0x403d30
xor bl, bl
test bl, bl
jne 0x403d7e
mov al, byte [esp + 0x12]
test al, al
jne 0x403d6c
lea eax, [esp + 0x4f8]
push eax
call fcn.00404390
add esp, 4
test eax, eax
jne 0x403e1e
push 0x30
push str.Information
push str.A_DLL_that_is_currently_in_use_needs_to_be_updated._Rebooting_after_this_installation_is_completed_is_highly_recommended.
push eax
mov byte [esp + 0x23], 1
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x2ac]
push edx
call fcn.00404590
add esp, 4
jmp 0x403dc9
lea eax, [esp + 0x2ac]
push eax
call fcn.00404590
add esp, 4
test eax, eax
jne 0x403dc9
lea ecx, [esp + 0x2ac]
lea edx, [esp + 0xa04]
push ecx
push str.Unable_to_delete_copy_of__s__please_delete_it_manually_
push edx
call fcn.00406120
add esp, 0xc
lea eax, [esp + 0xe04]
lea ecx, [esp + 0xa04]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov al, byte [esp + 0x12]
cmp al, 1
je 0x403de1
test al, al
jne 0x404051
cmp edi, esi
je 0x404051
lea edx, [esp + 0x900]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, eax
cmp edx, 0x104
jbe 0x403e58
lea eax, [esp + 0x5fc]
push 0
push eax
push str.VcpDLL_install:_Windows_directory_path_too_long
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.00405140
lea ecx, [esp + 0x2ac]
push ecx
call fcn.00404590
add esp, 4
lea edx, [esp + 0x3f4]
push edx
call fcn.00404590
add esp, 4
lea eax, [esp + 0xa4]
push eax
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x1a8]
push ecx
jmp 0x403eb4
test edx, edx
jne 0x403ed3
lea edx, [esp + 0x5fc]
push 0x10
push edx
push str.VcpDLL_install:_cannot_get_Windows_directory_path
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.00405140
lea eax, [esp + 0x2ac]
push eax
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x3f4]
push ecx
call fcn.00404590
add esp, 4
lea edx, [esp + 0xa4]
push edx
call fcn.00404590
add esp, 4
lea eax, [esp + 0x1a8]
push eax
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x140c], esi
call fcn.00405020
mov eax, esi
jmp 0x40432d
mov al, byte [esp + edx + 0x8ff]
lea ebp, [esp + edx + 0x900]
cmp al, 0x5c
je 0x403f07
mov edi, 0x40e030
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.VcpDLL.dll]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + edx + 0x900]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov bl, 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a8]
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 + 0x900]
push ecx
push edx
call fcn.00405870
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x403f54
xor bl, bl
test bl, bl
jne 0x404006
mov al, byte [esp + 0x12]
test al, al
jne 0x403ff4
lea eax, [esp + 0x4f8]
push eax
call fcn.00404390
add esp, 4
test eax, eax
je 0x403fd8
lea ecx, [esp + 0x2ac]
push ecx
call fcn.00404590
add esp, 4
lea edx, [esp + 0x3f4]
push edx
call fcn.00404590
add esp, 4
lea eax, [esp + 0xa4]
push eax
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x1a8]
push ecx
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x140c], 0xffffffff
call fcn.00405020
or eax, 0xffffffff
jmp 0x40432d
mov al, byte [esp + 0x13]
test al, al
jne 0x403ff4
push 0x30
push str.Information
push str.A_DLL_that_is_currently_in_use_needs_to_be_updated._Rebooting_after_this_installation_is_completed_is_highly_recommended.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x1a8]
push edx
call fcn.00404590
add esp, 4
jmp 0x404051
lea eax, [esp + 0x1a8]
push eax
call fcn.00404590
add esp, 4
test eax, eax
jne 0x404051
lea ecx, [esp + 0x1a8]
lea edx, [esp + 0xa04]
push ecx
push str.Unable_to_delete_copy_of__s__please_delete_it_manually_
push edx
call fcn.00406120
add esp, 0xc
lea eax, [esp + 0xe04]
lea ecx, [esp + 0xa04]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x3b0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [esp + 0x12]
cmp al, 1
je 0x404070
test al, al
jne 0x4040bd
cmp edi, 0xffffffff
je 0x4040bd
lea eax, [esp + 0x80]
lea ecx, [esp + 0x3b0]
push eax
lea edx, [esp + 0xc08]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4040bd
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x80]
jmp 0x4040c6
xor ecx, ecx
mov dword [esp + 0x80], ecx
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or eax, 0xffffffff
test ecx, ecx
je 0x4040e2
push 0xafc8
push ecx
call esi
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x404106
or ebx, 0xffffffff
cmp eax, ebx
je 0x404109
cmp eax, 0x102
je 0x404109
lea edx, [esp + 0x3f4]
push edx
call fcn.00404590
add esp, 4
jmp 0x404109
or ebx, 0xffffffff
mov al, byte [esp + 0x12]
test al, al
jne 0x4041cb
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x40417c
test edi, edi
je 0x40417c
test ebp, ebp
jle 0x40417c
push eax
lea eax, [esp + 0x1008]
push str.SoftwareTimeSink__Inc.AdGatewayChannels_s
push eax
call fcn.00406120
add esp, 0xc
lea ecx, [esp + 0x1004]
push 3
push ebp
push edi
push str.ChannelID
push ecx
push 0x80000002
call fcn.00402f60
add esp, 0x18
test al, al
jne 0x40417c
lea edx, [esp + 0xe04]
push 0x30
push edx
push str.Unable_to_insert_channel_credentials
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov al, byte [esp + 0x12]
test al, al
jne 0x4041cb
mov eax, dword [esp + 0x58]
test eax, eax
jbe 0x4041cb
lea eax, [esp + 0x18]
push eax
call fcn.004045d0
add esp, 4
test al, al
jne 0x4041cb
lea ecx, [esp + 0x5fc]
push 0x10
push ecx
push str.Unable_to_install_preloaded_advertising
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
mov dword [esp + 0x140c], ebx
call fcn.00405020
mov eax, ebx
jmp 0x40432d
lea edx, [esp + 0x68]
push edx
call fcn.00402a40
mov cl, byte [esp + 0x68]
add esp, 4
test cl, 1
je 0x404204
cmp eax, ebx
jne 0x40424c
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
push eax
jmp 0x404244
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x90]
push eax
push 0x4022f0
push 0
lea ecx, [esp + 0x74]
push 0x65
push 0
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x40424c
lea ecx, [esp + 0x68]
push ecx
call fcn.00402700
add esp, 4
mov al, byte [esp + 0x12]
test al, al
jne 0x4042e2
lea edx, [esp + 0xd04]
lea eax, [esp + 0xa4]
push edx
push 0
push 0
push 0
push eax
call fcn.00406190
add esp, 0x14
lea ecx, [esp + 0xd04]
push str..exe
push ecx
call fcn.00406050
add esp, 8
test eax, eax
jne 0x404348
lea edx, [esp + 0x90]
lea eax, [esp + 0x3b0]
push edx
lea ecx, [esp + 0xc08]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0xc4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4042e2
mov eax, dword [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ecx, dword [esp + 0x94]
push ecx
call esi
lea edx, [esp + 0xa4]
push edx
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004050b0
lea ecx, [esp + 0x18]
call fcn.00405140
cmp byte [esp + 0x12], 1
jne 0x40431b
lea eax, [esp + 0x4f8]
push eax
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x140c], ebx
call fcn.00405020
xor eax, eax
mov ecx, dword [esp + 0x1404]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1400
ret 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xa4]
push eax
push ecx
lea edx, [esp + 0xa0c]
push str.The__s_software_distribution_has_been_extracted_to_file___s_
push edx
call fcn.00406120
add esp, 0x10
lea eax, [esp + 0x1204]
lea ecx, [esp + 0xa04]
push 0x40
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4042f2