Function at 0x404090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
test byte [str.P_bX_b], 1
push ebx
push esi
push edi
jne 0x4040d4
mov al, byte [0x41f575]
rol al, 4
xor al, 0xaa
mov byte [0x41f575], al
je 0x4040cd
mov ecx, 0x41f575
jmp 0x4040c0
mov al, byte [ecx + 1]
inc ecx
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x4040c0
or byte [str.P_bX_b], 1
push 0x1fc
xor edi, edi
lea ecx, [ebp - 0x208]
push edi
push ecx
mov dword [ebp - 0x20c], 0x41f575
call fcn.0040e850
add esp, 0xc
test byte [0x41f4d0], 1
jne 0x40412b
mov dl, byte [0x41f4d1]
rol dl, 4
xor dl, 0xaa
mov byte [0x41f4d1], dl
je 0x404124
mov ecx, 0x41f4d1
mov al, byte [ecx + 1]
inc ecx
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x404117
or byte [0x41f4d0], 1
test byte [0x4208b8], 1
jne 0x40415a
or dword [0x4208b8], 1
push 0x418cd0
mov dword [0x4208b4], edi
mov dword [0x4208b0], edi
mov dword [0x4208ac], edi
call fcn.004096b5
add esp, 4
test byte [0x41f4c4], 1
jne 0x404194
mov al, byte [0x41f4c5]
rol al, 4
xor al, 0xaa
mov byte [0x41f4c5], al
je 0x40418d
mov ecx, 0x41f4c5
lea esp, [esp]
mov al, byte [ecx + 1]
inc ecx
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x404180
or byte [0x41f4c4], 1
mov eax, 0x41f4c5
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4041a0
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 0x10]
call fcn.00402080
lea esi, [eax + esi + 0x14]
cmp esi, edi
jg 0x4041dc
mov eax, dword [0x4208ac]
cmp eax, edi
je 0x4041cd
push eax
call fcn.00409587
add esp, 4
xor eax, eax
mov dword [0x4208b0], edi
mov dword [0x4208ac], eax
jmp 0x404235
cmp esi, dword [0x4208b0]
jg 0x4041ef
mov ecx, dword [0x4208ac]
push esi
push edi
push ecx
jmp 0x404228
mov eax, dword [0x4208ac]
cmp eax, edi
je 0x404201
push eax
call fcn.00409587
add esp, 4
push esi
mov dword [0x4208b0], edi
mov dword [0x4208ac], edi
call fcn.00409507
add esp, 4
mov dword [0x4208ac], eax
cmp eax, edi
je 0x404235
push esi
push edi
mov dword [0x4208b0], esi
push eax
call fcn.0040e850
mov eax, dword [0x4208ac]
add esp, 0xc
mov ebx, eax
cmp eax, edi
jne 0x404246
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov byte [eax], 0x2f
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 8]
push edx
lea edi, [ebx + 1]
push eax
dec esi
mov eax, edi
mov dword [ebp - 8], esi
call fcn.00401d80
add esp, 8
test eax, eax
je 0x40423b
test edi, edi
je 0x404274
mov ecx, dword [ebp - 8]
mov byte [edi + ecx], 0
test byte [0x41f4c4], 1
jne 0x4042aa
mov dl, byte [0x41f4c5]
rol dl, 4
xor dl, 0xaa
mov byte [0x41f4c5], dl
je 0x4042a3
mov ecx, 0x41f4c5
mov al, byte [ecx + 1]
inc ecx
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x404296
or byte [0x41f4c4], 1
push 0x41f4c5
push esi
push ebx
call fcn.0040949a
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
lea esi, [edi + 8]
add esp, 0xc
mov dword [ebp + 0xc], esi
test eax, eax
je 0x4042d6
push eax
call dword [0x420708]
mov dword [esi], 0
mov ecx, dword [edi + 4]
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push ebx
push str.POST
push ecx
call dword [0x42070c]
xor ecx, ecx
mov dword [esi], eax
cmp eax, ecx
je 0x40423b
mov eax, 2
test byte [0x4208b8], al
jne 0x404333
or dword [0x4208b8], eax
push 0x418ca0
mov dword [0x4208a8], ecx
mov dword [0x4208a4], ecx
mov dword [0x4208a0], ecx
call fcn.004096b5
add esp, 4
mov ebx, dword [ebp + 0x18]
mov eax, ebx
call fcn.00402080
add eax, 0x14
mov edi, eax
mov esi, 0x4208a0
mov dword [ebp + 0x10], eax
call fcn.00401760
mov esi, eax
test esi, esi
je 0x40423b
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0x10]
push edx
push ebx
call fcn.00401d80
add esp, 8
test eax, eax
je 0x40423b
mov eax, dword [ebp + 0x10]
mov byte [esi + eax], 0
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404380
sub eax, edx
mov edx, eax
mov eax, 0x41f4d1
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404393
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
push ecx
push edx
sub eax, edi
push esi
push eax
mov eax, dword [ebp + 0xc]
mov edx, 0x41f4d1
call fcn.00404b50
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14