Function at 0x412ef0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d211
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x437610]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x437610]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x24]
xor esi, esi
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
call fcn.00413880
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4a0], esi
call fcn.004145c0
test eax, eax
jne 0x412f7b
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x30]
lea ecx, [esp + ecx + 0x24]
or eax, 2
cmp dword [ecx + 0x38], esi
jne 0x412f94
or eax, 4
jmp 0x412f94
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x5c]
lea ecx, [esp + ecx + 0x24]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push esi
call fcn.00412c40
cmp dword [esp + 0x90], esi
jne 0x412fdc
lea ecx, [esp + 0x94]
mov dword [esp + 0x4a0], 0xffffffff
call fcn.00413970
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.0041525d
add esp, 4
xor eax, eax
jmp 0x4134be
mov ebx, 0xf
mov dword [esp + 0x110], ebx
mov dword [esp + 0x10c], esi
mov byte [esp + 0xfc], 0
push 0x3e7fc18
mov byte [esp + 0x4a4], 1
call fcn.004163dd
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x41305f
lea ecx, [esp + 0x94]
mov dword [esp + 0x110], ebx
mov dword [esp + 0x10c], esi
mov byte [esp + 0xfc], 0
mov dword [esp + 0x4a0], 0xffffffff
call fcn.00413970
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.0041525d
lea eax, [ebx - 0x77]
jmp 0x4134bb
mov ecx, dword [esp + 0x18]
push 0x1ff
push ecx
lea edx, [esp + 0x284]
push edx
xor ebx, ebx
call fcn.004167c0
lea eax, [esp + 0x288]
add esp, 0xc
mov byte [esp + 0x47c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413090
sub eax, edx
xor ecx, ecx
cmp eax, esi
jle 0x4130b8
mov dl, 0x2e
cmp byte [esp + ecx + 0x27c], dl
jne 0x4130af
mov ebx, 1
inc ecx
cmp ecx, eax
jl 0x4130a1
cmp ebx, esi
jne 0x4130d9
lea eax, [esp + 0x27c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4130c0
mov ecx, dword [str..zip]
mov dl, byte [0x432f14]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x27c]
push 0x4310a4
push eax
call fcn.0041606d
add esp, 8
cmp eax, esi
je 0x413102
push eax
call fcn.0041614d
add esp, 4
mov eax, 2
jmp 0x413106
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 2
setne cl
lea edx, [esp + 0x27c]
mov dword [esp + 0xdc], 0x407e30
mov dword [esp + 0xe0], 0x407ed0
mov dword [esp + 0xe4], 0x407f20
mov dword [esp + 0xe8], 0x407f70
mov dword [esp + 0xec], 0x407fb0
dec ecx
and ecx, 2
push ecx
push edx
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], 0x408010
mov dword [esp + 0xfc], 0x408040
mov dword [esp + 0x100], esi
call fcn.00409cd0
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
cmp ebx, esi
jne 0x413197
lea eax, [esp + 0x27c]
push eax
push str.error_opening__s_n
jmp 0x4131a4
lea ecx, [esp + 0x27c]
push ecx
push str.creating__s_n
call fcn.004168e4
add esp, 8
push 0x20
call fcn.004161c1
add esp, 4
lea edx, [esp + 0x13c]
push edx
push str.temp.tmp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], esi
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], esi
mov dword [esp + 0x138], esi
mov dword [esp + 0x13c], esi
mov dword [esp + 0x140], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413248
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x136]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
push edx
xor ecx, ecx
lea edx, [esp + 0x11c]
mov esi, ebx
call fcn.0040a0d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41330d
mov esi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413291
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xe4]
call fcn.00401360
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x4ac], 2
call fcn.00401260
mov byte [esp + 0x4a0], 1
cmp dword [esp + 0xf0], 0x10
jb 0x4132ea
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.00416084
add esp, 4
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
jmp 0x4133c5
push 0x4310a4
push str.temp.tmp
call fcn.0041606d
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41333a
mov edx, dword [esp + 0x10]
push edx
push str.error_in_opening__s_for_reading_n
jmp 0x4133ed
mov eax, dword [esp + 0x14]
push eax
push 0x3e7fc18
push 1
push edi
xor ebx, ebx
call fcn.00417108
mov esi, eax
add esp, 0x10
cmp esi, 0x3e7fc18
jge 0x41337d
mov eax, dword [esp + 0x14]
push eax
call fcn.00417125
add esp, 4
test eax, eax
jne 0x41337d
mov ecx, dword [esp + 0x10]
push ecx
push str.error_in_reading__s_n
call fcn.004168e4
add esp, 8
or ebx, 0xffffffff
test esi, esi
jle 0x4133b5
xor eax, eax
test esi, esi
jle 0x413390
xor byte [eax + edi], 0x5e
inc eax
cmp eax, esi
jl 0x413387
mov eax, dword [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.0040a6e0
mov ebx, eax
test ebx, ebx
jns 0x4133b7
mov edx, dword [esp + 0x10]
push edx
push str.error_in_writing__s_in_the_zipfile_n
call fcn.004168e4
add esp, 8
test ebx, ebx
jne 0x4133c1
test esi, esi
jg 0x413336
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4133d6
push eax
call fcn.0041614d
add esp, 4
test ebx, ebx
js 0x4133f5
mov ebx, dword [esp + 0x18]
call fcn.0040a990
test eax, eax
je 0x4133f5
push esi
push str.error_in_closing__s_in_the_zipfile_n
call fcn.004168e4
add esp, 8
mov esi, dword [esp + 0x18]
call fcn.0040ac60
test eax, eax
je 0x413417
lea eax, [esp + 0x27c]
push eax
push str.error_in_closing__s_n
call fcn.004168e4
add esp, 8
lea eax, [esp + 0x3c]
call fcn.004146b0
test eax, eax
jne 0x413446
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x30]
lea ecx, [esp + ecx + 0x24]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x41343f
or eax, 4
push 0
call fcn.00412c40
push edi
call fcn.004163a3
add esp, 4
cmp dword [esp + 0x110], 0x10
jb 0x413469
mov edx, dword [esp + 0xfc]
push edx
call fcn.00416084
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
mov dword [esp + 0x4a0], 0xffffffff
call fcn.00413970
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.0041525d
mov eax, 1
add esp, 4
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret