Function at 0x4017c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e348
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov eax, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x44], eax
mov edi, 1
push dword [ebx + 0x1c]
mov ecx, edi
mov dword [ebp - 0x40], edi
push dword [ebx + 0x18]
call fcn.00403950
add esp, 8
shl eax, 3
mov dword [ebp - 0x4c], eax
nop word [eax + eax]
cmp edi, 0x28
jg 0x401d1b
mov ecx, dword [ebp - 0x48]
xor esi, esi
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x4018c2
lea edx, [edi - 0xa]
lea ecx, [edx + 9]
cmp ecx, 8
ja 0x401855
mov edi, dword [eax + 4]
jmp 0x40186e
cmp edx, 0x10
ja 0x40185f
mov edi, dword [eax + 8]
jmp 0x40186e
lea ecx, [edx - 0x11]
cmp ecx, 0xd
ja 0x401d30
mov edi, dword [eax + 0xc]
mov edx, 1
mov ecx, edi
shl edx, cl
cmp dword [eax + 0x10], edx
jge 0x4019ec
mov edx, 0x7fffffff
lea ecx, [edi + 4]
sub edx, esi
cmp ecx, edx
jg 0x4019ec
mov edx, dword [eax + 0x20]
add esi, 4
add esi, edi
mov ecx, 0x7fffffff
mov edi, dword [ebp - 0x40]
sub ecx, esi
cmp edx, ecx
ja 0x4019ef
mov ecx, dword [ebp - 0x48]
add eax, 0x24
add esi, edx
cmp eax, dword [ecx + 4]
jne 0x401845
cmp esi, 0xffffffff
je 0x4019ef
cmp esi, dword [ebp - 0x4c]
jg 0x4019ef
mov eax, dword [0x42a374]
mov dword [ebp - 0x78], eax
mov eax, dword [0x42a378]
mov dword [ebp - 0x74], eax
mov eax, dword [0x42a38c]
mov dword [ebp - 0x70], eax
mov eax, dword [0x42a390]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x42a37c]
mov dword [ebp - 0x68], eax
mov eax, dword [0x42a380]
push 0x18
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.0040bc1d
mov ecx, eax
lea edx, [ebp - 0x78]
add esp, 4
mov dword [ebp - 0x30], ecx
sub edx, ecx
mov edi, 3
lea eax, [ecx + 0x18]
mov dword [ebp - 0x28], eax
nop
mov eax, dword [edx + ecx]
mov dword [ecx], eax
mov eax, dword [edx + ecx + 4]
mov dword [ecx + 4], eax
add ecx, 8
sub edi, 1
jne 0x401930
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], edi
mov eax, ecx
mov edx, dword [ebp - 0x30]
sub eax, edx
add eax, 7
mov dword [ebp - 0x38], edi
shr eax, 3
cmp edx, ecx
mov dword [ebp - 0x4c], edx
cmova eax, edi
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4019b2
nop dword [eax]
mov ecx, dword [edx + 4]
mov eax, dword [edx]
push ecx
mov dword [ebp - 0x5c], ecx
mov ecx, edi
push eax
mov dword [ebp - 0x58], eax
call fcn.00403950
shl eax, 3
add esp, 8
cmp esi, eax
jg 0x40199a
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
inc eax
add edx, 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], edx
cmp eax, dword [ebp - 0x44]
jne 0x401970
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x401a2a
mov eax, dword [ebp - 0x28]
sub eax, edx
sar eax, 3
lea ecx, [eax*8]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a20
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d16
jmp 0x401a20
mov edi, dword [ebp - 0x40]
cmp edi, 0x28
jge 0x401d45
push dword [ebx + 0x1c]
inc edi
push dword [ebx + 0x18]
mov ecx, edi
mov dword [ebp - 0x40], edi
call fcn.00403950
shl eax, 3
add esp, 8
mov dword [ebp - 0x4c], eax
cmp edi, 1
jl 0x401d1b
jmp 0x401830
push ecx
push edx
call fcn.0040bc4d
add esp, 8
push dword [ebx + 0x1c]
mov ecx, edi
push dword [ebx + 0x18]
call fcn.00403950
xorps xmm0, xmm0
shl eax, 3
movups xmmword [ebp - 0x24], xmm0
xor ecx, ecx
mov dword [ebp - 0x58], eax
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
cmp esi, eax
je 0x401b5f
nop dword [eax + eax]
push 4
push dword [esi]
lea ecx, [ebp - 0x24]
call fcn.00401070
movups xmm0, xmmword [esi]
lea eax, [edi - 1]
movups xmmword [ebp - 0x34], xmm0
cmp eax, 8
ja 0x401aa0
mov eax, dword [ebp - 0x30]
jmp 0x401abc
lea eax, [edi - 0xa]
cmp eax, 0x10
ja 0x401aad
mov eax, dword [ebp - 0x2c]
jmp 0x401abc
lea eax, [edi - 0x1b]
cmp eax, 0xd
ja 0x401d6f
mov eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00401070
mov edx, dword [ebp - 0x18]
test edx, edx
jns 0x401aed
mov eax, edx
neg eax
je 0x401aed
mov ecx, dword [ebp - 0x24]
mov eax, edx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub ecx, eax
mov dword [ebp - 0x38], ecx
jmp 0x401afb
mov eax, dword [ebp - 0x24]
mov ecx, edx
shr ecx, 5
lea eax, [eax + ecx*4]
mov dword [ebp - 0x38], eax
mov ecx, dword [esi + 0x20]
and edx, 0x1f
test ecx, ecx
jns 0x401b27
mov eax, ecx
neg eax
je 0x401b27
mov edi, dword [esi + 0x14]
mov eax, ecx
not eax
mov dword [ebp - 0x48], edi
shr eax, 5
lea eax, [eax*4 + 4]
sub dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x401b32
mov edi, dword [esi + 0x14]
mov eax, ecx
shr eax, 5
lea eax, [edi + eax*4]
mov edi, dword [ebp - 0x40]
and ecx, 0x1f
push ecx
push eax
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x24]
push 0
push eax
push edx
push dword [ebp - 0x38]
lea eax, [ebp - 0x50]
push eax
call fcn.00403f20
add esi, 0x24
cmp esi, dword [ebp - 0x44]
jne 0x401a80
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x58]
mov eax, esi
sub eax, ecx
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
push ecx
push 0
lea ecx, [ebp - 0x24]
call fcn.00401070
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
neg eax
and eax, 7
push eax
push 0
call fcn.00401070
mov eax, dword [ebp - 0x18]
mov cl, 0xec
mov byte [ebp - 0x39], cl
cmp eax, esi
jae 0x401bbe
nop word [eax + eax]
movzx eax, cl
lea ecx, [ebp - 0x24]
push 8
push eax
call fcn.00401070
mov cl, byte [ebp - 0x39]
mov eax, dword [ebp - 0x18]
xor cl, 0xfd
mov byte [ebp - 0x39], cl
cmp eax, esi
jb 0x401ba0
test al, 7
jne 0x401d5a
mov esi, eax
mov dword [ebp - 0x4c], 0
shr esi, 3
xorps xmm0, xmm0
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], 0
test esi, esi
je 0x401c22
push esi
lea ecx, [ebp - 0x54]
call fcn.00401420
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x54]
add esi, eax
push 0
push eax
mov dword [ebp - 0x38], eax
call fcn.0040dbe0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x50], esi
xor esi, esi
test eax, eax
je 0x401c71
mov edi, dword [ebp - 0x38]
nop dword [eax + eax]
mov eax, dword [ebp - 0x24]
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, esi
shr ecx, 5
test dword [eax + ecx*4], edx
je 0x401c5e
mov eax, esi
mov ecx, 7
and eax, 7
mov edx, 1
sub ecx, eax
shl edx, cl
jmp 0x401c60
xor edx, edx
mov eax, esi
inc esi
shr eax, 3
or byte [eax + edi], dl
cmp esi, dword [ebp - 0x18]
jb 0x401c30
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
push dword [ebx + 0x1c]
mov esi, dword [ebp - 0x60]
push dword [ebx + 0x18]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00401d90
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x401cbf
mov edx, dword [ebp - 0x4c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x401cb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d84
push edx
push ecx
call fcn.0040bc4d
add esp, 8
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x401cf6
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x401cec
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d84
push ecx
push edx
call fcn.0040bc4d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bc0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040ffc4
push 0x42d950
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], str.Version_number_out_of_range
push eax
call fcn.0040db64
push 0x42d950
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.Version_number_out_of_range
push eax
call fcn.0040db64
push 0x42d950
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.Data_too_long
push eax
call fcn.0040db64
push 0x42d950
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], str.Assertion_error
push eax
call fcn.0040db64
push 0x42d950
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], str.Version_number_out_of_range
push eax
call fcn.0040db64
call fcn.0040ffc4
int3