Function at 0x411054
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], edx
mov esi, eax
movzx eax, word [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [0x482908]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x118]
mov dword [esp + 0x38], eax
push esi
call fcn.0040e3b0
mov dword [esp + 0x28], eax
push esi
call fcn.0040e3a4
add esp, 8
mov dword [esp + 0x20], eax
mov edi, dword [esi + 0x8c]
lea eax, [edi + edi*8]
add eax, edi
neg eax
sub eax, dword [esi + 0x2c]
add eax, 0x64
mov dword [esp + 0x48], eax
call fcn.00411adc
mov dword [esp + 0x28], eax
fild dword [esi + 0xa0]
fdiv qword [0x4625b8]
fld qword [0x4625a8]
fld qword [0x4625b0]
fxch st(1)
fadd st(2), st(0)
fxch st(2)
fcom st(1)
fnstsw ax
mov edx, 3
sahf
mov byte [esp + 2], dl
mov byte [esp + 6], dl
mov byte [esp], 1
ja 0x4110f4
fst st(1)
fstp st(0)
fnstcw word [esp + 8]
movzx eax, word [esp + 8]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x18]
fldcw word [esp + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x118]
movzx ebx, byte [eax + 0x7cd8]
mov edx, dword [eax + 0xcec0]
mov byte [esp + 1], 5
test dl, 1
mov byte [esp + 3], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 4], 4
mov byte [esp + 5], 0
je 0x41115c
test dl, 8
jne 0x41115c
mov edx, 1
mov dword [esp + 0x1c], edx
jmp 0x411162
xor edx, edx
mov dword [esp + 0x1c], edx
mov ebx, dword [eax + 0x157d4]
mov eax, dword [eax + 0x157d8]
mov edi, dword [esi + 0x7c]
mov dword [esp + 0xc], ebx
mov edx, edi
and edx, 1
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x84]
mov dword [esp + 0x40], eax
movzx eax, byte [esi + 0xc4]
mov dword [esp + 8], eax
and edi, 2
xor ecx, ecx
test edi, edi
setne cl
mov dword [esp + 0x3c], ecx
cmp edx, 3
jne 0x4111b2
mov eax, dword [esi + 0x90]
mov dword [esp + 0x10], eax
jmp 0x4111c9
test edx, edx
jne 0x4111bf
mov eax, dword [esi + 0x48]
mov dword [esp + 0x10], eax
jmp 0x4111c9
mov eax, dword [esi + 0x94]
mov dword [esp + 0x10], eax
cmp edx, 7
jae 0x4111d8
movzx eax, byte [esp + edx]
mov dword [esp + 0x18], eax
jmp 0x4111de
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 0x157dc]
test al, 2
je 0x41122d
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 0x157e4]
cmp ecx, 0x1fe
jle 0x411204
mov ecx, 0x1fe
cmp ecx, 0xfffffe02
jg 0x411211
mov ecx, 0xfffffe02
test ecx, ecx
mov dword [edx + 0x157e4], ecx
jl 0x41156c
or ecx, 0xffff2c00
movzx edx, cx
mov dword [esp], edx
jmp 0x411232
xor edx, edx
mov dword [esp], edx
test al, 4
je 0x41125e
mov edi, dword [esp + 0x38]
fld dword [edi + 0x157e0]
fdiv qword [0x4625c0]
fmul qword [0x4625c8]
faddp st(1)
call fcn.0040a090
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 4], eax
jmp 0x411266
fstp st(0)
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41128c
mov edx, dword [esp + 0x40]
mov ecx, eax
add ecx, 0xffffffff
xor eax, eax
test edx, edx
setg al
mov dword [esp + 0x50], eax
xor eax, eax
cmp edx, ecx
setl al
jmp 0x411292
xor eax, eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x50]
shl ecx, 4
shl edx, 5
add ecx, edx
add ecx, dword [esp + 8]
mov dword [esp + 0x4c], ecx
shl eax, 6
shl ebx, 7
add eax, ebx
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
test eax, eax
jg 0x4112c7
mov eax, 0
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x30]
cmp eax, 3
je 0x411593
test eax, eax
je 0x411312
cmp eax, 2
jne 0x4112eb
mov eax, 2
mov dword [esp + 0x40], eax
jmp 0x41131b
cmp eax, 1
jne 0x411307
mov eax, dword [esi + 0x34]
test eax, eax
mov edx, 4
jne 0x411301
mov edx, 3
mov dword [esp + 0x40], edx
jmp 0x41131b
mov eax, 7
mov dword [esp + 0x40], eax
jmp 0x41131b
mov eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
cmp eax, 0x7d00
jg 0x411331
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x411358
cmp eax, 0xbb80
je 0x41134f
cmp eax, 0xbb80
mov edx, 3
jg 0x411349
mov edx, 1
mov dword [esp + 0x3c], edx
jmp 0x411358
mov eax, 2
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xdc]
cmp eax, 2
je 0x4113cb
cmp eax, 3
je 0x4113cb
mov eax, dword [esi + 0xa0]
cmp eax, 0xffffffff
je 0x41157f
fld dword [esi + 0x18]
fld dword [esi + 0x1c]
fcom st(1)
fnstsw ax
sahf
jbe 0x41138a
fstp st(1)
fstp st(0)
jmp 0x4113cb
fcompp
fnstsw ax
sahf
jp 0x411393
jb 0x4113cb
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4113a4
mov eax, dword [esi + 0x48]
cmp eax, 0x140
jl 0x4113cb
mov eax, dword [esi + 0xc0]
test eax, eax
jne 0x4113cb
mov eax, dword [esi + 0xb8]
test eax, eax
jne 0x4113cb
mov eax, dword [esp + 8]
test eax, eax
je 0x4113cb
mov eax, dword [esp + 0xc]
cmp eax, 0x7d00
jg 0x4113d2
mov ecx, 1
jmp 0x4113d4
xor ecx, ecx
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
lea eax, [ebx + eax*4]
shl edx, 6
add eax, edx
shl ecx, 5
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
lea ebx, [eax - 0x80]
test ecx, ecx
lea edx, [edi + 4]
jne 0x411409
mov ebx, eax
mov eax, dword [esp + 0x38]
movzx eax, word [eax + 0xcefc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x48]
shr eax, 0x10
mov byte [edi + 1], al
mov eax, dword [esp + 0x48]
shr eax, 8
mov byte [edi + 2], al
mov eax, dword [esp + 0x48]
push 9
mov byte [edi + 3], al
mov eax, dword [esp + 0x2c]
push eax
push edx
call fcn.004483d0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esp]
mov ecx, dword [esp + 0x24]
mov byte [edi + 0xd], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 4]
mov byte [edi + 0xe], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 0xf], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 0x10], al
mov eax, ebx
shr eax, 8
mov byte [edi + 0x11], al
mov byte [edi + 0x12], bl
mov ebx, edi
mov eax, edx
shr eax, 8
mov byte [edi + 0x13], al
mov byte [edi + 0x14], dl
mov edx, dword [esp + 0x20]
xor eax, eax
mov byte [edi + 0x15], al
mov byte [edi + 0x16], al
mov eax, dword [esp + 0x4c]
mov byte [edi + 0x17], al
mov eax, dword [esp + 0x10]
cmp eax, 0xff
mov byte [edi + 0x1b], dl
jle 0x4114b7
mov eax, 0xff
mov byte [edi + 0x18], al
mov eax, ecx
shr eax, 4
mov byte [edi + 0x19], al
shl ecx, 4
mov eax, edx
shr eax, 8
add ecx, eax
mov eax, dword [esp + 0x30]
mov byte [edi + 0x1a], cl
mov byte [edi + 0x1c], al
xor eax, eax
mov byte [edi + 0x1d], al
mov edx, dword [esi + 0x80]
mov eax, edx
shr eax, 8
mov byte [edi + 0x1e], al
mov eax, dword [esp + 0x50]
mov byte [edi + 0x1f], dl
mov edx, eax
shr edx, 0x18
mov byte [edi + 0x20], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 0x21], dl
mov edx, eax
shr edx, 8
mov byte [edi + 0x22], dl
mov edx, dword [esp + 0x38]
mov byte [edi + 0x23], al
mov eax, edx
shr eax, 8
mov byte [edi + 0x24], al
mov eax, dword [esp + 0x2c]
mov byte [edi + 0x25], dl
mov edx, 0xffffffda
movzx ecx, byte [edx + ebx + 0x26]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4621a0]
movzx eax, ax
add edx, 1
jne 0x411523
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov edx, eax
mov eax, edx
shr eax, 8
mov byte [ebx + 0x26], al
mov byte [ebx + 0x27], dl
mov ecx, dword [esp + 0x54]
call fcn.00446571
mov eax, 0x28
add esp, 0x5c
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
neg ecx
or ecx, 0xffff2e00
movzx edx, cx
mov dword [esp], edx
jmp 0x411232
mov eax, dword [esi + 0xa4]
cmp eax, 0xffffffff
je 0x4113cb
jmp 0x411377
xor eax, eax
mov dword [esp + 0x40], eax
jmp 0x41131b