Function at 0x41a077
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x41a09b
test byte [eax + 1], 0x10
je 0x41a09b
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
jmp 0x41a0ad
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x10], ecx
mov ebx, dword [eax + 0x64]
mov dword [ebp - 0x14], ebx
mov edi, dword [eax + 0x68]
mov dword [ebp - 0x18], edi
test eax, eax
je 0x41a0f8
test byte [eax + 2], 2
je 0x41a0f8
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x20], eax
jmp 0x41a0ff
mov eax, 1
jmp 0x41a410
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], 1
mov edi, dword [ebp + 0x24]
mov edx, dword [edi]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov ebx, dword [ebp + 0x20]
mov dword [ebx + edx*4], eax
inc dword [edi]
mov eax, 0
jmp 0x41a410
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 8
mov edi, dword [ebp + 0x30]
mov dword [esp], edi
call sub.cygwin1.dll_calloc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], edi
jge 0x41a1db
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + 4]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x14]
movzx edx, word [edx + 6]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp + 0x14]
movzx ecx, word [ecx + 8]
mov dword [ebp - 0x34], ecx
add eax, edx
add eax, ecx
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov dword [edi + ebx*8], ebx
mov eax, dword [ebp - 0x28]
lea ebx, [eax + eax*2]
shl ebx, 2
mov edx, dword [ebp + 0x2c]
movzx esi, word [ebx + edx + 4]
mov eax, dword [ebp - 0x2c]
sub eax, esi
mov ecx, eax
sar ecx, 0x1f
mov edx, ecx
xor edx, eax
sub edx, ecx
mov ecx, dword [ebp + 0x2c]
movzx edi, word [ebx + ecx + 6]
mov eax, dword [ebp - 0x30]
sub eax, edi
mov ecx, eax
sar ecx, 0x1f
xor eax, ecx
sub eax, ecx
add edx, eax
mov eax, dword [ebp + 0x2c]
movzx ebx, word [ebx + eax + 8]
mov eax, dword [ebp - 0x34]
sub eax, ebx
mov ecx, eax
sar ecx, 0x1f
xor eax, ecx
sub eax, ecx
add edx, eax
lea edx, [edx + edx*2]
add esi, edi
add esi, ebx
mov eax, dword [ebp - 0x38]
sub eax, esi
mov ecx, eax
sar ecx, 0x1f
xor eax, ecx
sub eax, ecx
add edx, eax
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov dword [ebx + ecx*8 + 4], edx
inc ecx
mov dword [ebp - 0x28], ecx
mov edi, dword [ebp + 0x30]
cmp ecx, edi
jl 0x41a151
mov dword [esp + 0xc], 0x41a003
mov dword [esp + 8], 8
mov eax, dword [ebp + 0x30]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call sub.cygwin1.dll_qsort
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov esi, dword [ecx]
jmp 0x41a2f5
cmp dword [ebp - 0x20], 0
je 0x41a2b8
mov ebx, dword [ebp + 0x38]
mov dword [esp + 0x10], ebx
lea eax, [esi + esi*2]
mov edi, dword [ebp + 0x2c]
lea eax, [edi + eax*4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebp + 0x34]
test eax, eax
je 0x41a29e
cmp dword [ebp - 0x1c], 2
jne 0x41a259
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00420d09
mov ebx, dword [ebp - 0x24]
mov dword [esp], ebx
call fcn.00421030
lea edx, [esi + esi*2]
shl edx, 2
mov edi, dword [ebp + 0x2c]
mov eax, dword [edx + edi]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], 1
mov edi, dword [ebp + 0x24]
mov ecx, dword [edi]
mov ebx, dword [ebp + 0x2c]
mov eax, dword [edx + ebx]
mov edi, dword [ebp + 0x20]
mov dword [edi + ecx*4], eax
mov eax, dword [ebp + 0x24]
inc dword [eax]
mov eax, 0
jmp 0x41a410
inc dword [ebp - 0x28]
mov edx, dword [ebp + 0x30]
cmp dword [ebp - 0x28], edx
je 0x41a369
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebx + ecx*8]
jmp 0x41a2f5
cmp dword [ebp - 0x1c], 2
jne 0x41a2c9
mov edi, dword [ebp + 8]
mov dword [esp], edi
call fcn.00420d09
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00421030
lea eax, [esi + esi*2]
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx + eax*4]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], 1
mov eax, 0
jmp 0x41a410
lea eax, [esi + esi*2]
lea ecx, [eax*4]
mov edi, dword [ebp + 0x2c]
movzx ebx, word [ecx + edi + 4]
mov eax, dword [ebp + 0x14]
movzx edx, word [eax + 4]
mov eax, edx
sub eax, dword [ebp - 0x10]
cmp ebx, eax
jl 0x41a369
mov edi, dword [ebp - 0x10]
lea eax, [edx + edi]
cmp ebx, eax
jg 0x41a369
mov eax, dword [ebp + 0x2c]
movzx ebx, word [ecx + eax + 6]
mov edi, dword [ebp + 0x14]
movzx edx, word [edi + 6]
mov eax, edx
sub eax, dword [ebp - 0x14]
cmp ebx, eax
jl 0x41a369
mov edi, dword [ebp - 0x14]
lea eax, [edx + edi]
cmp ebx, eax
jg 0x41a369
mov eax, dword [ebp + 0x2c]
movzx ecx, word [ecx + eax + 8]
mov ebx, dword [ebp + 0x14]
movzx edx, word [ebx + 8]
mov eax, edx
sub eax, dword [ebp - 0x18]
cmp ecx, eax
jl 0x41a369
mov edi, dword [ebp - 0x18]
lea eax, [edx + edi]
cmp ecx, eax
jle 0x41a20e
cmp dword [ebp - 0x1c], 2
jne 0x41a37a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00420d09
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call fcn.00421030
cmp dword [ebp - 0x28], 0
sete al
mov ecx, dword [ebp + 0x30]
cmp dword [ebp - 0x28], ecx
sete dl
or eax, edx
test al, 1
jne 0x41a0bf
mov ebx, dword [ebp + 0x38]
mov dword [esp + 0x10], ebx
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebp + 0x34]
test eax, eax
jne 0x41a0c9
cmp dword [ebp - 0x1c], 1
jne 0x41a3de
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.0041face
mov ebx, dword [ebp + 0x30]
mov dword [esp + 0xc], ebx
mov edi, dword [ebp + 0x2c]
mov dword [esp + 8], edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.00420094
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jle 0x41a106
mov eax, 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret