Function at 0x402d8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x38]
push 0xb
pop ecx
mov esi, str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb
mov dword [ebp - 0x4c], ebx
rep movsd dword es:[edi], dword [esi]
test eax, eax
mov dword [ebp - 0x3c], edx
lea esi, [ebp - 0x38]
cmovne esi, eax
test edx, edx
je 0x402f85
push edx
call fcn.0040bea8
push dword [ebp - 0x3c]
mov edi, eax
push ebx
push edi
call fcn.00407530
add esp, 0x10
cmp dword [ebp - 0x3c], 0x19
jle 0x402f4d
push esi
call fcn.0040c440
mov edx, dword [ebp - 0x3c]
push ecx
push ecx
push eax
push esi
mov ecx, edi
call fcn.00402cb1
add esp, 0x14
test eax, eax
je 0x402f4d
mov ecx, dword [ebp - 0x3c]
jmp 0x402e1a
mov al, byte [edi + ecx - 1]
xor byte [edi + ecx], al
dec ecx
test ecx, ecx
jg 0x402e13
xor ebx, ebx
xorps xmm2, xmm2
mov eax, ebx
movd xmm1, dword [edi + eax + 1]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add eax, 4
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
cmp eax, 0x10
jl 0x402e26
movaps xmm0, xmm2
sub esp, 0xc
psrldq xmm0, 8
xorps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
xorps xmm2, xmm0
movd eax, xmm2
push 0xa
pop ecx
cdq
idiv ecx
lea eax, [edi + 1]
add edx, 6
lea ecx, [edi + 0x11]
push edx
mov edx, dword [ebp - 0x3c]
push eax
lea edx, [edx - 0x11]
call fcn.00402cb1
mov eax, dword [ebp - 0x3c]
lea edx, [edi + 0x19]
add eax, 0xffffffe7
push eax
call fcn.00402a4c
mov esi, dword [ebp - 0x40]
add esp, 0x18
cmp eax, dword [edi + 0x11]
jne 0x402f52
test esi, esi
mov dword [ebp - 0xc], 0x5d
lea eax, [ebp - 0x44]
mov byte [ebp - 8], 1
cmovne eax, esi
mov dword [ebp - 0x44], ebx
mov esi, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
add eax, 0xffffffe7
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x15]
mov dword [ebp - 0x3c], eax
add eax, 0x3e9
push 0xffffffffffffffff
pop ecx
cmovb eax, ecx
push eax
push dword [esi]
call fcn.00409aa3
pop ecx
pop ecx
push 5
lea ecx, [ebp - 0xc]
mov dword [esi], eax
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [edi + 0x19]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.00404c60
test eax, eax
jne 0x402f05
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [edi + 0x15]
jne 0x402f05
mov eax, dword [esi]
mov byte [ecx + eax], bl
jmp 0x402f22
mov eax, dword [ebp - 0x48]
push eax
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x19]
push eax
push dword [esi]
call fcn.00407530
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
pop ecx
add eax, 1
cmovb eax, ecx
push eax
push dword [esi]
call fcn.00409aa3
pop ecx
mov dword [esi], eax
pop ecx
cmp dword [ebp - 0x44], ebx
je 0x402f55
push dword [ebp - 0x44]
call fcn.0040be8d
pop ecx
mov dword [ebp - 0x44], ebx
jmp 0x402f55
mov esi, dword [ebp - 0x40]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
test edi, edi
je 0x402f60
push edi
call fcn.0040be8d
pop ecx
cmp dword [ebp - 0x3c], 0
jne 0x402f80
test esi, esi
je 0x402f80
mov eax, dword [ebp - 0x4c]
cmp dword [esi], eax
je 0x402f80
cmp dword [esi], 0
je 0x402f80
push dword [esi]
call fcn.0040be8d
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x3c]
jmp 0x402f87
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406768
leave
ret