Function at 0x417873
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4cdbf8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov ecx, dword [ebp + 8]
and dword [ebp - 0xbc], 0
test eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0xc0], ecx
lea edi, [ebp - 0x50]
push 0xb
pop ecx
mov esi, str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb
mov dword [ebp - 0xc8], edx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xd4], ebx
cmovne ecx, eax
mov esi, ebx
and esi, 0x20
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], esi
je 0x4178dd
lea eax, [ebp - 0xb8]
jmp 0x4178ee
mov ecx, dword [ebp - 0xc0]
lea eax, [ebp - 0xbc]
test ecx, ecx
cmovne eax, ecx
mov edi, edx
mov dword [ebp - 0xb8], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4178f9
sub edi, ecx
mov dword [ebp - 0xc4], edi
jne 0x417911
xor eax, eax
jmp 0x417c92
xor eax, eax
test bl, 2
je 0x4179dd
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0046f010
push dword [ebp - 0xc4]
lea eax, [ebp - 0xb4]
push dword [ebp - 0xc8]
push eax
call fcn.0046f6d0
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0046ef70
add esp, 0x18
test bl, 4
je 0x4179aa
test esi, esi
jne 0x41797d
mov eax, dword [ebp - 0xb8]
push 0x20
push dword [eax]
call fcn.004845db
pop ecx
pop ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0x24]
and ebx, 1
push ebx
push dword [eax]
push 0x10
pop edx
call fcn.00417197
pop ecx
pop ecx
lea ebx, [eax + 1]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x41799c
sub ebx, ecx
jmp 0x417c59
push 0x10
pop ebx
test esi, esi
jne 0x4179c9
mov eax, dword [ebp - 0xb8]
push ebx
push dword [eax]
call fcn.004845db
pop ecx
pop ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
mov edi, dword [ebp - 0xb8]
lea esi, [ebp - 0x24]
mov edi, dword [edi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x417c53
and dword [ebp - 0xcc], 0
inc eax
mov esi, 0xff
test bl, 0x10
je 0x417a02
push eax
call fcn.00423ae0
xor edx, edx
div esi
pop ecx
movzx eax, dx
mov dword [ebp - 0x54], eax
jmp 0x417a06
and dword [ebp - 0x54], 0
push 0x19
pop eax
mov esi, ebx
push 1
and esi, 8
pop ecx
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc0], eax
lea ebx, [edi + eax]
mov eax, ebx
add eax, 0x3e8
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00487397
mov dword [ebp - 0xd0], eax
pop ecx
mov ecx, dword [ebp - 0x54]
mov byte [eax], cl
test esi, 8
je 0x417a66
mov esi, eax
mov eax, dword [ebp - 0xc0]
push edi
push dword [ebp - 0xc8]
add eax, esi
push eax
call fcn.00481690
add esp, 0xc
jmp 0x417b51
mov edi, dword [ebp - 0xcc]
xor esi, esi
inc eax
push 0x10
mov dword [ebp - 0xc0], eax
pop ebx
xor eax, eax
inc eax
push eax
call fcn.00423ae0
pop ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov eax, dword [ebp - 0xc0]
mov byte [eax + esi], dl
movzx eax, dl
xor edi, eax
inc esi
cmp esi, ebx
jl 0x417a78
push 5
pop ecx
push 2
pop ebx
mov esi, dword [ebp - 0xd0]
xor edx, edx
push ebx
push 0x20
push ebx
mov ebx, dword [ebp - 0xc8]
lea eax, [esi + 0x19]
push edx
push 3
push 0x1000000
push ecx
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xcc], edi
mov edi, dword [ebp - 0xc4]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x54]
mov dword [esi + 0x15], edi
push ecx
push eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x10], edx
mov byte [ebp - 0xc], dl
mov dword [ebp - 0xc4], eax
call fcn.0046ee90
test eax, eax
je 0x417b0e
push edi
lea eax, [esi + 0x19]
mov dword [ebp - 0x54], edi
push ebx
push eax
call fcn.00481690
add esp, 0xc
jmp 0x417b11
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0xc4]
lea ebx, [edi + 0x19]
lea ecx, [ebx - 0x19]
push ecx
call fcn.0041707b
push ecx
mov dword [esi + 0x11], eax
mov eax, dword [ebp - 0xcc]
push 0xa
pop ecx
cdq
idiv ecx
lea ecx, [esi + 0x11]
add edx, 6
push edx
push dword [ebp - 0xc0]
lea edx, [ebx - 0x11]
call fcn.0041742b
mov esi, dword [ebp - 0xd0]
add esp, 0x10
xor eax, eax
inc eax
mov ecx, eax
cmp ebx, eax
jle 0x417b66
mov al, byte [ecx + esi - 1]
xor byte [ecx + esi], al
inc ecx
cmp ecx, ebx
jl 0x417b5a
mov edi, dword [ebp - 0xdc]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417b71
sub ecx, edx
mov edx, ebx
push ecx
push ecx
push ecx
push edi
mov ecx, esi
call fcn.0041742b
add esp, 0x10
test eax, eax
je 0x417c4a
mov eax, dword [ebp - 0xd4]
mov edi, eax
and edi, 0x20
test al, 4
je 0x417c1a
test edi, edi
jne 0x417bd3
push 2
xor ecx, ecx
mov eax, ebx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
mov eax, dword [ebp - 0xb8]
push ecx
push dword [eax]
call fcn.004845db
pop ecx
pop ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
xor ecx, ecx
mov edx, ebx
inc ecx
and eax, ecx
mov ecx, esi
push eax
mov eax, dword [ebp - 0xb8]
push dword [eax]
call fcn.00417197
mov eax, dword [ebp - 0xb8]
pop ecx
pop ecx
mov ecx, dword [eax]
mov ebx, ecx
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x417bf9
sub ebx, edx
inc ebx
test edi, edi
jne 0x417c4c
push ebx
push ecx
call fcn.004845db
pop ecx
pop ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
jmp 0x417c4c
test edi, edi
jne 0x417c36
mov eax, dword [ebp - 0xb8]
push ebx
push dword [eax]
call fcn.004845db
pop ecx
pop ecx
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xb8]
push ebx
push esi
push dword [eax]
call fcn.00481690
add esp, 0xc
jmp 0x417c4c
xor ebx, ebx
push esi
call fcn.0048737c
pop ecx
mov esi, dword [ebp - 0xd8]
test ebx, ebx
jne 0x417c90
mov eax, dword [ebp - 0xb8]
test esi, esi
je 0x417c6d
mov eax, dword [eax]
mov byte [eax], bl
jmp 0x417c90
cmp dword [eax], 0
je 0x417c90
push eax
call fcn.004201d0
mov eax, dword [ebp - 0xb8]
push dword [eax]
call fcn.0048737c
mov eax, dword [ebp - 0xb8]
pop ecx
pop ecx
and dword [eax], 0
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047fe8c
leave
ret