Function at 0x417552
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4cdbf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x38]
mov edx, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], esi
mov esi, str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb
push 0xb
pop ecx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x40], edx
cmovne edi, eax
test byte [ebp + 0x10], 4
je 0x41761c
test edx, edx
mov esi, 0x4b19af
cmovne esi, edx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4175a6
sub ecx, edx
je 0x41760b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4175b6
sub ecx, edx
xor eax, eax
xor edx, edx
inc edx
add ecx, edx
setb al
neg eax
or eax, ecx
push eax
call fcn.00487397
mov edx, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x44], eax
and edx, ecx
mov ecx, esi
push edx
mov edx, eax
call fcn.00417257
mov edx, eax
mov dword [ebp - 0x3c], edx
pop ecx
pop ecx
test edx, edx
jne 0x41763e
cmp dword [ebp - 0x44], eax
je 0x41760b
lea eax, [ebp - 0x44]
push eax
call fcn.004201d0
push dword [ebp - 0x44]
call fcn.0048737c
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047fe8c
leave
ret
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41760b
push eax
call fcn.00487397
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x40]
push eax
call fcn.00481690
mov edx, dword [ebp - 0x3c]
add esp, 0x10
and dword [ebp + 0x10], 8
push 0x19
pop eax
push 1
pop ecx
cmovne eax, ecx
cmp edx, eax
jle 0x417829
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417658
sub esp, 0xc
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x44]
push edi
call fcn.0041731b
add esp, 0x14
test eax, eax
je 0x417829
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx - 1]
test edx, edx
jle 0x417695
mov ecx, dword [ebp - 0x44]
mov al, byte [edx + ecx - 1]
xor byte [edx + ecx], al
dec edx
test edx, edx
jg 0x417683
mov ecx, dword [ebp - 0x3c]
cmp dword [ebp + 0x10], 0
je 0x4176de
dec ecx
mov dword [ebp - 0x3c], ecx
test ebx, ebx
je 0x41782d
xor edx, edx
xor eax, eax
inc edx
add ecx, edx
setb al
neg eax
or eax, ecx
push eax
push dword [ebx]
call fcn.004845db
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
inc ecx
mov dword [ebx], eax
push ecx
push eax
call fcn.00481690
mov ecx, dword [ebx]
add esp, 0x14
mov eax, dword [ebp - 0x3c]
mov byte [eax + ecx], 0
jmp 0x41782d
mov esi, dword [ebp - 0x44]
xor eax, eax
xorps xmm2, xmm2
lea edi, [esi + 1]
movd xmm1, dword [edi + eax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add eax, 4
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
cmp eax, 0x10
jl 0x4176e9
movaps xmm0, xmm2
mov dword [ebp - 0x40], 0xa
psrldq xmm0, 8
sub esp, 0xc
pxor xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
pxor xmm2, xmm0
movd eax, xmm2
cdq
idiv dword [ebp - 0x40]
add edx, 6
push edx
lea edx, [ecx - 0x11]
push edi
lea ecx, [esi + 0x11]
call fcn.0041731b
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
lea eax, [esi - 0x19]
push eax
lea edx, [edi + 0x19]
call fcn.0041707b
add esp, 0x18
cmp eax, dword [edi + 0x11]
jne 0x417829
xor ecx, ecx
mov dword [ebp - 0xc], 0x5d
test ebx, ebx
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x48]
cmovne eax, ebx
mov ebx, eax
xor eax, eax
inc eax
mov byte [ebp - 8], al
lea eax, [esi - 0x19]
mov dword [ebp - 0x40], eax
xor eax, eax
mov ecx, dword [edi + 0x15]
mov dword [ebp - 0x3c], ecx
add ecx, 0x3e9
setb al
neg eax
or eax, ecx
push eax
push dword [ebx]
call fcn.004845db
pop ecx
pop ecx
push 5
lea ecx, [ebp - 0xc]
mov dword [ebx], eax
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x19
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.0046ef20
test eax, eax
mov eax, dword [ebp - 0x44]
jne 0x4177d2
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax + 0x15]
jne 0x4177d2
mov eax, dword [ebx]
mov byte [ecx + eax], 0
jmp 0x4177ed
push esi
add eax, 0x19
mov dword [ebp - 0x3c], esi
push eax
push dword [ebx]
call fcn.00481690
mov ecx, dword [ebx]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x3c]
xor edx, edx
xor ecx, ecx
inc edx
add eax, edx
setb cl
neg ecx
or ecx, eax
push ecx
push dword [ebx]
call fcn.004845db
pop ecx
mov dword [ebx], eax
cmp dword [ebp - 0x48], 0
pop ecx
je 0x41782d
lea eax, [ebp - 0x48]
push eax
call fcn.004201d0
push dword [ebp - 0x48]
call fcn.0048737c
and dword [ebp - 0x48], 0
pop ecx
pop ecx
jmp 0x41782d
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x44], 0
je 0x41784a
lea eax, [ebp - 0x44]
push eax
call fcn.004201d0
push dword [ebp - 0x44]
call fcn.0048737c
and dword [ebp - 0x44], 0
pop ecx
pop ecx
cmp dword [ebp - 0x3c], 0
jne 0x41786b
test ebx, ebx
je 0x41786b
cmp dword [ebx], 0
je 0x41786b
push ebx
call fcn.004201d0
push dword [ebx]
call fcn.0048737c
and dword [ebx], 0
pop ecx
pop ecx
mov eax, dword [ebp - 0x3c]
jmp 0x41760d