Function at 0x4095d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41bc60]
sub esp, 0x800
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
je 0x409abb
mov ecx, dword [0x41bc64]
cmp ecx, ebx
je 0x409abb
cmp dword [0x41bc3c], ebx
jg 0x409abb
mov eax, dword [esp + 0x80c]
cmp eax, ebx
jne 0x4096b2
mov eax, dword [0x416f80]
cmp eax, ebx
je 0x409abb
dec eax
mov dword [0x416f80], eax
jne 0x409abb
cmp ecx, 1
jne 0x4098dc
mov eax, dword [0x41b594]
lea edx, [esp + 8]
push 8
push edx
push eax
mov dword [0x416f80], 4
mov byte [esp + 0x14], 7
mov byte [esp + 0x15], cl
mov word [esp + 0x16], 8
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
call fcn.00406620
mov eax, dword [0x41b594]
add esp, 0xc
cmp eax, 0x1010101
jne 0x40969a
mov ecx, dword [esp + 0xa]
lea edx, [esp + 8]
and ecx, 0xffff
push ecx
push edx
push 0x10101ca
call fcn.00406620
add esp, 0xc
push 1
push str.send_code1
call fcn.004038a0
add esp, 8
pop edi
pop ebx
add esp, 0x800
ret
cmp eax, 1
jne 0x409629
cmp ecx, eax
jne 0x40971d
cmp dword [0x418ce4], 0x10
jb 0x409abb
cmp byte [0x4186a0], 7
jne 0x409abb
push ebx
push str.rec_code2_ok
mov byte [0x4186a4], 2
call fcn.004038a0
mov eax, dword [0x4186ac]
mov ecx, dword [0x4186a8]
add esp, 8
mov dword [0x4174fc], eax
mov dword [0x417500], ecx
mov dword [0x41bc64], 2
mov dword [0x416f7c], 4
jmp 0x4098e5
cmp ecx, 2
jne 0x409abb
mov eax, dword [0x418ce4]
cmp eax, 0x10
jb 0x409abb
mov cx, word [0x4186a6]
cmp cx, 0x314
ja 0x409abb
xor edx, edx
mov dx, cx
add edx, 0x10
cmp eax, edx
jl 0x409abb
cmp byte [0x4186a0], 7
jne 0x409abb
mov al, byte [0x4186a4]
and al, 0xf
cmp al, 4
jne 0x409abb
mov eax, dword [0x4174f8]
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
add ecx, eax
mov eax, dword [0x4186a8]
cmp ecx, eax
jne 0x409abb
push ebx
push str.rec_code4_ok
call fcn.004038a0
mov cl, byte [0x4186a4]
add esp, 8
test cl, 0x40
mov dword [0x41bc64], 1
mov dword [0x416f80], 0x24
je 0x409856
mov edi, 0x4186b0
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x416f80], ebx
push 0x2d
je 0x4097f0
call fcn.004036d0
mov edx, dword [0x41b648]
add esp, 4
push eax
push 0x4186b0
push edx
jmp 0x40980a
call fcn.004036d0
add esp, 4
push eax
push 0x1c
call fcn.004036d0
add esp, 4
push eax
mov eax, dword [0x41b648]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, 0x4186b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
add edx, 0x4186b1
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40983c
push edx
call fcn.00401840
add esp, 4
mov ecx, dword [0x41b648]
push ebx
push ebx
push 2
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
add esp, 0x800
ret
mov eax, dword [0x412018]
cmp eax, ebx
mov eax, dword [0x41bc34]
je 0x40987c
mov edx, dword [0x4186a4]
and eax, 0x80
and edx, 0xff
or eax, edx
mov dword [0x41bc34], eax
test cl, 0x80
je 0x409893
cmp dword [0x41bcbc], ebx
jne 0x409893
call fcn.00409bb0
mov eax, dword [0x41bc34]
cmp dword [0x41202c], ebx
jne 0x409abb
cmp dword [0x412018], ebx
je 0x4098b1
test al, 0x80
je 0x4098b1
mov dword [0x41bc68], ebx
mov eax, dword [0x4174f8]
pop edi
mov ecx, eax
mov dword [0x41202c], 1
shr ecx, 0x10
xor ecx, eax
mov dword [0x41b29d], eax
mov word [0x41869c], cx
pop ebx
add esp, 0x800
ret
cmp ecx, 2
jne 0x409abb
mov eax, dword [0x416f7c]
mov dword [0x416f80], 4
dec eax
mov dword [0x416f7c], eax
jne 0x40990f
pop edi
mov dword [0x41bc64], 1
pop ebx
add esp, 0x800
ret
mov edi, 0x41b538
or ecx, 0xffffffff
xor eax, eax
mov byte [0x41b538], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov byte [esp + 0x11], cl
mov ecx, dword [esp + 0x11]
and ecx, 0xff
mov esi, 0x41b538
mov eax, ecx
lea edi, [esp + 0x2c]
shr ecx, 2
mov byte [esp + 0xc], 7
mov byte [esp + 0xd], bl
mov byte [esp + 0x10], 3
push 9
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x15]
mov esi, 0x416f88
and ecx, 0xff
lea edi, [esp + ecx + 0x30]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movzx dx, byte [esp + 0x15]
mov ecx, dword [0x4174fc]
add edx, 0x60
mov word [esp + 0x12], dx
mov edx, dword [0x417500]
mov dword [esp + 0x16], eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x1a], ax
mov dword [esp + 0x20], 0x200
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x1312fc7
mov dword [esp + 0x2c], 0x7e
call fcn.0040a500
add esp, 4
test al, al
je 0x4099d0
mov eax, dword [esp + 0x1c]
or ah, 0x22
mov dword [esp + 0x1c], eax
mov esi, dword [0x41202c]
mov eax, dword [0x41bc68]
cmp esi, ebx
je 0x4099ee
cmp eax, ebx
je 0x4099f2
mov ecx, dword [esp + 0x1c]
or ch, 1
mov dword [esp + 0x1c], ecx
cmp eax, ebx
jne 0x4099fc
mov dword [0x41bc68], 1
mov eax, dword [esp + 0xe]
and eax, 0xffff
lea ecx, [esp + eax + 0xc]
mov dword [ecx], ebx
mov eax, dword [esp + 0xe]
and eax, 0xffff
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
mov word [esp + 0xe], ax
mov ecx, dword [esp + 0xe]
and ecx, 0xffff
xor eax, eax
shr ecx, 2
cmp ecx, ebx
jle 0x409a49
lea edx, [esp + 0xc]
mov edi, dword [edx]
add edx, 4
xor eax, edi
dec ecx
jne 0x409a3f
imul eax, eax, 0x12c4b7e
cmp esi, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
jne 0x409a60
mov dword [0x4174f8], eax
xor esi, esi
mov eax, dword [esp + 0x11]
mov edx, esi
and eax, 0xff
and edx, 7
add eax, esi
mov cl, 8
sub cl, dl
lea edi, [esp + eax + 0x2c]
mov al, byte [esp + eax + 0x2c]
mov bl, al
shr bl, cl
mov ecx, edx
shl al, cl
add bl, al
inc esi
cmp esi, 0x40
mov byte [edi], bl
jb 0x409a62
mov ecx, dword [esp + 0xe]
mov eax, dword [0x41b594]
and ecx, 0xffff
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call fcn.00406620
push 0
push str.send_code3
call fcn.004038a0
add esp, 0x14
pop esi
pop edi
pop ebx
add esp, 0x800
ret