Function at 0x40f5c0
Capabilities:
Check if file exists
Create process on windows
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x4473d7
mov eax, dword fs:[0]
push eax
sub esp, 0xeb4
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0xeb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0xec8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xed8]
push 0xa
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.TITLE_CE
call fcn.00401fc0
mov edi, ebp
call fcn.00410ce0
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x103
lea eax, [esp + 0x291]
push ebx
push eax
mov byte [esp + 0x298], bl
call fcn.00434290
add esp, 0xc
lea ecx, [esp + 0x28c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x44de0b
lea ecx, [esp + 0x20]
call fcn.00401fc0
push 0x44de0b
lea ecx, [esp + 0x18]
mov dword [esp + 0xed4], ebx
call fcn.00401fc0
push 0x44de0b
lea ecx, [esp + 0x1c]
mov byte [esp + 0xed4], 1
call fcn.00401fc0
push 0x207
lea edx, [esp + 0xab9]
push ebx
push edx
mov byte [esp + 0xedc], 2
call fcn.00434290
mov ecx, 0xe
mov esi, str.http:__www.bankofluoyang.com.cn_UploadFiles_Version.ini
lea edi, [esp + 0xac0]
lea eax, [esp + 0xac0]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f6d0
sub eax, ecx
push eax
lea eax, [esp + 0xab8]
push eax
lea ecx, [esp + 0x24]
call fcn.00402430
push 0x44de0b
lea ecx, [esp + 0x28]
call fcn.00401fc0
push 0x207
lea ecx, [esp + 0x89]
push ebx
mov byte [esp + 0xed8], 3
push ecx
mov byte [esp + 0x90], bl
call fcn.00434290
push 0x207
lea edx, [esp + 0x8bd]
push ebx
push edx
mov byte [esp + 0x8c4], bl
call fcn.00434290
push 0x207
lea eax, [esp + 0x5b9]
push ebx
push eax
mov byte [esp + 0x5c0], bl
call fcn.00434290
mov eax, dword [esp + 0xf00]
add esp, 0x24
cmp eax, 1
jne 0x40f859
mov ecx, 0xf
mov esi, str.http:__www.bankofluoyang.com.cn_UploadFiles_BOL_Jansh_KEY.exe
lea edi, [esp + 0x8ac]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x8ac]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f782
sub eax, edx
push eax
lea ecx, [esp + 0x8b0]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402430
mov ecx, 0xc
mov esi, str.http:__www.jansh.com.cn_lybank_BOL_Jansh_KEY.exe
lea edi, [esp + 0x59c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x59c]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f7c0
sub eax, edx
push eax
lea edx, [esp + 0x5a0]
push edx
lea ecx, [esp + 0x20]
call fcn.00402430
lea eax, [esp + 0x28c]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f7e4
lea edi, [esp + 0x84]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40f7f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x84]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40f815
mov ecx, dword [str.BOL_Jansh_KEY.exe]
mov edx, dword [0x44fd58]
mov dword [eax], ecx
mov ecx, dword [0x44fd5c]
mov dword [eax + 4], edx
mov edx, dword [0x44fd60]
mov dword [eax + 8], ecx
mov cx, word [0x44fd64]
mov dword [eax + 0xc], edx
mov dl, byte [0x44fd66]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
jmp 0x40fcfe
cmp eax, 2
jne 0x40fc2d
mov ecx, 0xf
mov esi, str.http:__www.bankofluoyang.com.cn_UploadFiles_BOL_HaiTai_KEY.exe
lea edi, [esp + 0x8ac]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x8ac]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f882
sub eax, edx
push eax
lea eax, [esp + 0x8b0]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402430
mov ecx, 0xc
mov esi, str.http:__www.jansh.com.cn_lybank_BOL_HaiTai_KEY.exe
lea edi, [esp + 0x59c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x59c]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f8c0
sub eax, edx
push eax
lea ecx, [esp + 0x5a0]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402430
lea eax, [esp + 0x28c]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f8e4
lea edi, [esp + 0x84]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40f8f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x84]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40f915
mov edx, dword [str.BOL_HaiTai_KEY.exe]
mov ecx, dword [0x44fda0]
mov dword [eax], edx
mov edx, dword [0x44fda4]
mov dword [eax + 4], ecx
mov ecx, dword [0x44fda8]
mov dword [eax + 8], edx
mov edx, dword [0x44fdac]
mov dword [eax + 0xc], ecx
push 0x207
mov dword [eax + 0x10], edx
lea eax, [esp + 0x399]
push ebx
push eax
mov byte [esp + 0x3a0], bl
call fcn.00434290
add esp, 0xc
xor eax, eax
jmp 0x40f970
mov cl, byte [esp + eax + 0x28c]
mov byte [esp + eax + 0x394], cl
inc eax
cmp cl, bl
jne 0x40f970
lea eax, [esp + 0x394]
dec eax
jmp 0x40f990
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40f990
mov ecx, dword [str.Version.ini]
mov edx, dword [0x44defc]
mov dword [eax], ecx
mov ecx, dword [0x44df00]
mov dword [eax + 4], edx
mov dl, byte [0x44df04]
mov dword [eax + 8], ecx
push 0x44de0b
lea ecx, [esp + 0x24]
mov byte [eax + 0xc], dl
call fcn.00401fc0
push 0x207
lea eax, [esp + 0xcc1]
push ebx
push eax
mov byte [esp + 0xedc], 4
call fcn.00434290
mov ecx, 0xa
mov esi, str.http:__www.jansh.com.cn_lybank_Version.ini
lea edi, [esp + 0xcc8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0xcc8]
add esp, 0xc
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fa07
sub eax, edx
push eax
lea ecx, [esp + 0xcc0]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402430
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea eax, [esp + 0x394]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40fa4f
lea ecx, [esp + 0x394]
push ecx
call edi
mov eax, dword [esp + 0x1c]
push ebx
push ebx
lea edx, [esp + 0x39c]
push edx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x40fb78
lea ecx, [esp + 0x394]
push ecx
call edi
mov esi, dword [sym.imp.ole32.dll_CoUninitialize]
call esi
mov eax, dword [esp + 0x20]
push ebx
push ebx
lea edx, [esp + 0x39c]
push edx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x40fb7e
lea ecx, [esp + 0x394]
push ecx
call edi
call esi
mov byte [esp + 0xed0], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40facf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xed0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xed0], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xed0], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xed0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x410013
mov esi, dword [sym.imp.ole32.dll_CoUninitialize]
push 0x103
lea ecx, [esp + 0x7a9]
push ebx
push ecx
mov byte [esp + 0x7b0], bl
call fcn.00434290
add esp, 0xc
lea edx, [esp + 0x394]
push edx
push 0x104
lea eax, [esp + 0x7ac]
push eax
push ebx
push 0x44df6c
push str.HTVer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40fa9b
lea ecx, [esp + 0x7a4]
push ecx
mov edx, str.HTVer
mov ecx, str.SoftwareEnterSafeET199Auto_LYBank
call fcn.004065c0
cmp eax, ebx
jne 0x40fbfc
mov ebx, str.HTVer
lea edi, [esp + 0x7a4]
mov esi, str.SoftwareEnterSafeET199Auto_LYBank
call fcn.00403630
xor ebx, ebx
mov byte [esp + 0xed0], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40fcfe
cmp eax, 4
jne 0x40fcfe
mov ecx, 0x10
mov esi, str.http:__www.bankofluoyang.com.cn_UploadFiles_BOL_CCFCCBSetup.exe
lea edi, [esp + 0x8ac]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x8ac]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402520
mov ecx, 0xc
mov esi, str.http:__www.jansh.com.cn_lybank_BOL_CCFCCBSetup.exe
lea edi, [esp + 0x59c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x59c]
push edx
lea ecx, [esp + 0x1c]
movsb byte es:[edi], byte [esi]
call fcn.00402520
lea eax, [esp + 0x28c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fc90
lea edi, [esp + 0x84]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40fca1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x84]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40fcc1
mov ecx, dword [str.BOL_CCFCCBSetup.exe]
mov edx, dword [0x44fe28]
mov dword [eax], ecx
mov ecx, dword [0x44fe2c]
mov dword [eax + 4], edx
mov edx, dword [0x44fe30]
mov dword [eax + 8], ecx
mov ecx, dword [0x44fe34]
mov dword [eax + 0xc], edx
mov dl, byte [0x44fe38]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40fd34
lea eax, [esp + 0x84]
push eax
call esi
mov edx, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0x8c]
push ecx
push edx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x40fdd6
mov ecx, dword [esp + 0x18]
push ebx
push ebx
lea eax, [esp + 0x8c]
push eax
push ecx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x40fdd6
lea edx, [esp + 0x84]
push edx
mov dword [ebp + 0x94], ebx
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0xedc]
mov dword [ebp + 0x74], ebx
cmp eax, 1
jne 0x40fdae
push 0x64
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SIGN2
call fcn.00401fc0
mov edi, ebp
call fcn.00410ce0
jmp 0x40facf
cmp eax, 2
jne 0x40facf
push 0x64
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SIGN2_HT
call fcn.00401fc0
mov edi, ebp
call fcn.00410ce0
jmp 0x40facf
mov edi, 4
cmp dword [esp + 0xedc], edi
jne 0x40fe37
push 0x3c
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.00434290
add esp, 0xc
lea eax, [esp + 0x3c]
lea edx, [esp + 0x84]
push eax
mov dword [esp + 0x40], 0x3c
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
jmp 0x40ff6c
push 0x44
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.00434290
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0xa4]
push ecx
push ebx
mov dword [esp + 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40fed9
push 0x64
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.REPAIR0
call fcn.00401fc0
mov edi, ebp
call fcn.00410ce0
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.REPAIR0
call fcn.00401fc0
call fcn.00410ce0
mov byte [esp + 0xed0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [ebp + 0x74], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40faeb
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40ff24
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
call esi
lea eax, [esp + 0x84]
push eax
mov dword [ebp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40facf
cmp dword [esp + 0x28], edi
jne 0x40ff62
lea ecx, [esp + 0x84]
push ecx
mov dword [ebp + 0x74], ebx
call esi
lea ecx, [esp + 0x24]
call fcn.004026a0
lea ecx, [esp + 0x18]
call fcn.004026a0
lea ecx, [esp + 0x14]
call fcn.004026a0
lea ecx, [esp + 0x1c]
call fcn.004026a0
xor eax, eax
jmp 0x410013
lea edx, [esp + 0x84]
push edx
call esi
mov byte [esp + 0xed0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xed0], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xed0], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xed0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41000e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xec8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xeb0]
xor ecx, esp
call fcn.00430bec
add esp, 0xec0
ret 8