Function at 0x4036e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
fld qword [ebp + 0x10]
fst qword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov eax, ebx
shr eax, 0x14
fld st(0)
fchs
test ebx, ebx
js 0x403708
fstp st(0)
fld st(0)
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x50]
and eax, 0x7ff
je 0x403760
fstp st(1)
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp eax, 0x7ff
jne 0x4037b9
fstp st(0)
mov ecx, ebx
and ecx, 0xfffff
or edi, ecx
mov ecx, 0x4472f5
je 0x403743
mov ecx, 0x447543
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x7000
mov ecx, 3
mov edx, dword [esp + 0x1c]
jmp 0x403bb8
fxch st(1)
fstp qword [esp + 0x48]
mov eax, SysReAllocString
and eax, dword [esp + 0x4c]
or eax, dword [esp + 0x48]
je 0x403942
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
xor eax, eax
test ebx, 0x80000
jne 0x4037b9
mov edx, 0x80000
xor esi, esi
xor eax, eax
mov dword [esp + 4], edi
nop
nop
nop
nop
nop
nop
nop
nop
dec eax
shrd esi, edx, 1
shr edx, 1
mov edi, edx
and edi, ebx
mov ecx, ebx
mov ebx, esi
and ebx, dword [esp + 4]
or ebx, edi
mov ebx, ecx
je 0x4037a0
mov edi, dword [ebp + 0x18]
mov edx, eax
not edx
and edx, 0x3ff
and eax, 0xfffffc00
sub eax, edx
mov dword [esp + 0x28], ebx
js 0x4037eb
imul eax, eax, 0x4d1
mov esi, eax
shr esi, 0xc
shr eax, 0xb
and eax, 2
xor esi, 1
add esi, eax
jmp 0x4037fe
imul eax, eax, 0x269
mov esi, eax
sar esi, 0x1f
shr esi, 0x15
add esi, eax
sar esi, 0xb
mov eax, 0x12
sub eax, esi
sub esp, 0x14
mov dword [esp + 0x10], eax
fstp qword [esp + 8]
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.00405c60
add esp, 0x14
fld qword [esp + 0x60]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or eax, 0xc00
mov word [esp + 0x26], ax
fldcw word [esp + 0x26]
fld st(0)
fistp qword [esp + 0x40]
fldcw word [esp + 0x16]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebx
fild qword [esp + 0x38]
fld st(1)
fsub st(1)
fld st(0)
fsub st(3)
fld st(1)
fsub st(1)
fsubp st(4)
faddp st(2)
fxch st(2)
fsubrp st(1)
faddp st(1)
fadd qword [esp + 0x58]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov word [esp + 0x24], ax
fldcw word [esp + 0x24]
fistp qword [esp + 0x30]
fldcw word [esp + 0x14]
add ebx, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
mov eax, 0xa763ffff
cmp eax, ebx
mov eax, 0xde0b6b3
sbb eax, edx
adc esi, 0
test edi, edi
mov dword [esp + 0x2c], esi
js 0x4038c6
add edi, esi
cmp edi, 0x17
jbe 0x4038d6
jmp 0x403992
and edi, 0x7ffffff
inc edi
cmp edi, 0x17
ja 0x403992
xor eax, eax
mov ecx, 0x3b9ac9ff
mov dword [esp + 4], ebx
cmp ecx, ebx
mov dword [esp + 0xc], edx
sbb eax, edx
setb al
movzx eax, al
lea eax, [eax + eax*8]
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax*8 + 0x4450fc]
mov edx, dword [eax*8 + 0x4450f8]
cmp dword [esp + 4], edx
mov esi, dword [esp + 0xc]
sbb esi, ecx
jb 0x40392c
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x14
jne 0x403900
jmp 0x403935
sub eax, edi
jbe 0x403935
cmp eax, 0x17
jbe 0x40395c
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov edx, dword [esp + 0xc]
jmp 0x403995
fstp st(0)
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov dword [ecx], esi
mov byte [esi], 0x30
mov ecx, 1
jmp 0x403bb8
mov ebx, dword [eax*8 + 0x4450f8]
mov esi, dword [eax*8 + 0x4450fc]
mov eax, esi
shld eax, ebx, 0x1f
mov edi, esi
shr edi, 1
add eax, dword [esp + 4]
adc edi, dword [esp + 0xc]
cmp eax, edx
mov edx, edi
sbb edx, ecx
sbb dword [esp + 0x2c], 0xffffffff
push esi
push ebx
push edi
push eax
call fcn.0040c4f0
mov ebx, eax
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, ebx
or eax, edx
je 0x403a3b
test edx, edx
jle 0x4039fe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 4], ebx
push 0
push 0x3e8
push edx
push ebx
mov ebx, edx
call fcn.0040c4f0
mov ecx, eax
mov edi, edx
mov edx, 0x3e8
mul edx
imul esi, edi, 0x3e8
add esi, edx
mov edx, dword [esp + 4]
sub edx, eax
mov eax, ebx
sbb eax, esi
or eax, edx
jne 0x403bc7
shr ebx, 3
mov eax, ebx
mov ebx, ecx
cmp eax, 0x7c
mov edx, edi
ja 0x4039b0
mov ebx, ecx
mov edi, dword [ebp + 8]
xor esi, esi
imul eax, ebx, 0x26e978d5
ror eax, 3
cmp eax, 0x418937
ja 0x403a3d
mov ecx, 0x10624dd3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ebx
mul ecx
mov ebx, edx
shr ebx, 6
imul eax, ebx, 0x26e978d5
ror eax, 3
cmp eax, 0x418938
jb 0x403a20
jmp 0x403a3d
xor ebx, ebx
xor ecx, ecx
lea eax, [edi + 0x40]
mov dword [esp + 0x10], eax
add edi, 0x3e
jmp 0x403a86
xor ecx, ecx
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x10]
lea eax, [ebx - 8]
mov dword [esp + 8], ecx
add ecx, 8
push ecx
push 0x30
push eax
call fcn.0040c700
add esp, 0xc
mov eax, dword [esp + 8]
add esi, eax
add esi, 8
add ebx, 0xfffffff8
mov dword [esp + 0x10], ebx
add edi, 0xfffffff8
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
cmp ebx, 0x5f5e100
mov eax, ecx
sbb eax, 0
mov dword [esp + 8], esi
jl 0x403ac0
push 0
push 0x5f5e100
push ecx
push ebx
call fcn.0040c4f0
mov dword [esp + 0x20], eax
imul eax, eax, 0x5f5e100
sub ebx, eax
mov dword [esp + 0xc], edx
jne 0x403ad8
jmp 0x403a4b
test ebx, ebx
je 0x403b59
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
xor esi, esi
mov dword [esp + 4], edi
nop
nop
mov eax, ebx
mov ecx, 0x51eb851f
mul ecx
shr edx, 5
imul eax, edx, 0x64
mov ecx, ebx
sub ecx, eax
mov edi, ecx
or edi, 2
mov eax, ecx
and eax, 2
imul edi, eax
and ecx, 0x7d
xor eax, 2
imul eax, ecx
movzx eax, word [eax + edi + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov edi, dword [esp + 4]
mov word [edi + esi], ax
add esi, 0xfffffffe
cmp ebx, 0x63
mov ebx, edx
ja 0x403ae0
mov edx, esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
or eax, ecx
je 0x403b4f
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 8]
mov ecx, edx
sub esi, edx
cmp edx, 0xfffffff8
mov ebx, dword [esp + 0x10]
jne 0x403a55
jmp 0x403a74
mov esi, dword [esp + 8]
mov eax, edx
sub esi, edx
jmp 0x403b5b
xor eax, eax
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
add edi, eax
test esi, esi
je 0x403b99
mov dword [esp + 8], esi
cmp byte [edi], 0x30
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 0xc]
jne 0x403b95
inc edi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 8]
mov ecx, edi
not ecx
lea edi, [ecx + edi*2]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x10]
mov ecx, eax
jmp 0x403bac
mov dword [esp + 8], 0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [ecx], edi
mov ecx, dword [esp + 8]
mov dword [edx], ecx
shr ebx, 0x1f
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
mov ecx, ebx
mov ebx, dword [esp + 4]
xor esi, esi
jmp 0x403a3f