Function at 0x4021a0
Capabilities:
Set file attributes
Terminate process
Timestomp file
Write file on windows

Disassembly:
sub esp, 0xc70
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x98c]
xor ebx, ebx
push 0xff
xor edi, edi
push eax
push ebx
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x98c]
push ecx
call fcn.004028e0
push 0x4148d0
push eax
mov dword [0x4148d8], eax
call fcn.00402d20
mov eax, dword [0x4148d0]
add esp, 0xc
cmp eax, ebx
jne 0x40220a
push str.Corrupted_file__Exiting..._n
call fcn.00401320
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc70
ret
mov edx, dword [0x4148d8]
push edx
call fcn.00403120
mov eax, dword [0x4148d0]
add esp, 4
xor esi, esi
cmp eax, ebx
jbe 0x40226d
mov edx, dword [0x4148d8]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x9c]
push 0xff
lea ecx, [esp + 0x50]
push eax
push ecx
push edx
call fcn.00402d40
mov eax, dword [0x4148d8]
mov ecx, dword [esp + 0x78]
push 0x4148dc
push eax
add edi, ecx
call fcn.00403170
mov eax, dword [0x4148d0]
add esp, 0x28
inc esi
cmp esi, eax
jb 0x402224
mov dword [esp + 0x10], edi
mov ecx, dword [0x4148d8]
push ecx
call fcn.00403120
mov eax, dword [0x4148d0]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], ebx
jbe 0x402761
mov ecx, dword [0x4148d8]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x19c]
push 0xff
lea eax, [esp + 0x50]
push edx
push eax
push ecx
call fcn.00402d40
mov al, byte [0x4147c8]
add esp, 0x20
cmp al, 0x30
jne 0x4022dc
lea edx, [esp + 0x18c]
push edx
push 0x414db4
call fcn.0040cd80
add esp, 8
test eax, eax
jne 0x402736
lea eax, [esp + 0x18c]
push eax
push str.sfx.ini
call fcn.0040cd80
add esp, 8
test eax, eax
je 0x402736
lea ecx, [esp + 0x18c]
push 0x2f
push ecx
call fcn.004067c0
add esp, 8
test eax, eax
je 0x40231f
lea edx, [esp + 0x18c]
push edx
call fcn.00402130
add esp, 4
mov ecx, dword [0x414aac]
lea eax, [esp + 0x18c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
test byte [esp + 0x44], 1
je 0x4023c9
mov al, byte [0x415248]
lea edx, [esp + 0x18c]
test al, al
mov dword [0x4147a0], edx
jne 0x4023a2
mov eax, dword [0x414ab0]
push 0
push 0x401eb0
push 0
push 0x82
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
mov byte [0x414ab4], 0
jne 0x4023c9
mov edi, 0x415248
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x414ab4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4023d0
mov edi, 0x415248
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x414ab4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4023d0
mov byte [0x414ab4], 0
mov ecx, dword [0x4148d8]
push 0x414ab4
push ecx
call fcn.00403350
mov ecx, dword [0x4148d8]
push 0
push 0
push 0
mov esi, eax
push 0
lea edx, [esp + 0x1a4]
push 0xff
lea eax, [esp + 0x58]
push edx
push eax
push ecx
call fcn.00402d40
add esp, 0x28
cmp esi, 0xfffffff6
je 0x4027b3
cmp esi, 0xfffffff5
je 0x4027d0
cmp esi, 0xfffffff4
je 0x4027ed
cmp esi, 0xfffffff3
je 0x40280a
test byte [esp + 0x70], 0x10
je 0x402511
lea edx, [esp + 0x8c]
push 0xff
push edx
call fcn.00406a0f
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x8b], 0x5c
je 0x40249c
mov edi, 0x410534
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
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]
lea edi, [esp + 0x18c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x90]
and ecx, 3
push 0x2f
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00401340
push 0x2f
lea ecx, [esp + 0x9c]
push 0x5c
push ecx
call fcn.00401340
lea edx, [esp + 0xa4]
push edx
call fcn.00402130
mov eax, dword [0x4148d8]
push eax
call fcn.00403a10
add esp, 0x20
jmp 0x402736
cmp byte [0x410508], 0x31
jne 0x40257b
lea ecx, [esp + 0x18c]
push ecx
call fcn.00401370
add esp, 4
test eax, eax
je 0x40257b
lea edx, [esp + 0x18c]
lea eax, [esp + 0xa8c]
push edx
push str.Overwrite_file:__s_
push eax
call fcn.00406efe
add esp, 0xc
lea ecx, [esp + 0xa8c]
push 3
push 0x410520
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x402572
inc dword [0x415244]
jmp 0x402728
cmp eax, 2
je 0x402827
mov edx, dword [esp + 0x70]
push 0
push edx
push 2
push 0
push 0
lea eax, [esp + 0x1a0]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4025e9
or ecx, eax
lea edi, [esp + 0x18c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x18b], 0x2f
je 0x402728
lea ecx, [esp + 0x18c]
push ecx
push str.Couldnt_open_output_file__s_
push 0x4149e0
call fcn.00406efe
push 0x4149e0
call fcn.00401320
add esp, 0x10
jmp 0x402728
mov eax, dword [0x4148d8]
lea edx, [esp + 0x18c]
push 0x800
push edx
push eax
call fcn.004037d0
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x402686
lea eax, [ebx + ebx*4]
xor edx, edx
lea esi, [eax + eax*4]
shl esi, 2
mov eax, esi
div dword [esp + 0x58]
push eax
push str._d__
push 0x4149e0
call fcn.00406efe
mov eax, esi
xor edx, edx
div dword [esp + 0x1c]
mov ecx, dword [0x414aa8]
add esp, 0xc
push 0
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x38]
push 0
push edx
lea eax, [esp + 0x194]
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x4148d8]
lea ecx, [esp + 0x18c]
push 0x800
push ecx
push edx
add ebx, edi
call fcn.004037d0
mov edi, eax
add esp, 0xc
test edi, edi
jg 0x40260a
mov ecx, dword [esp + 0x84]
mov ax, word [esp + 0x88]
mov dx, word [esp + 0x80]
inc ecx
mov word [esp + 0x18], ax
mov ax, word [esp + 0x7c]
mov word [esp + 0x1a], cx
mov cx, word [esp + 0x78]
mov word [esp + 0x20], ax
mov word [esp + 0x22], cx
lea eax, [esp + 0x30]
mov word [esp + 0x1e], dx
mov dx, word [esp + 0x74]
lea ecx, [esp + 0x18]
push eax
push ecx
mov word [esp + 0x2c], dx
mov word [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x28]
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x18c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x4148d8]
push eax
call fcn.00403a10
add esp, 4
mov ecx, dword [0x4148d8]
push 0x4148dc
push ecx
call fcn.00403170
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4148d0]
add esp, 8
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40228d
mov edx, dword [0x4148d8]
push edx
call fcn.00402ce0
mov eax, dword [0x4148d0]
mov ebx, dword [0x415244]
add esp, 4
sub eax, ebx
push eax
push str._d_files_extracted_
push 0x4149e0
call fcn.00406efe
mov al, byte [0x4147c0]
add esp, 0xc
cmp al, 0x30
je 0x4027a6
push 0x4149e0
call fcn.00401320
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc70
ret
push str.Wrong_password_
call fcn.00401320
add esp, 4
mov eax, 0xfffffff6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc70
ret
push str.No_password_
call fcn.00401320
add esp, 4
mov eax, 0xfffffff5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc70
ret
push str.Read_error
call fcn.00401320
add esp, 4
mov eax, 0xfffffff4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc70
ret
push str.ZIP_file_format_error_
call fcn.00401320
add esp, 4
mov eax, 0xfffffff3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc70
ret
push 1
call fcn.00406fd4
nop
nop