Function at 0x52fd94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d9c
lea eax, [ebp - 0x19c]
mov edx, dword [0x4085e8]
call fcn.00405390
xor eax, eax
push ebp
push 0x53022e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x19c]
mov edx, 0x3f
mov eax, dword [ebp - 4]
call fcn.00409e04
push 2
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41c920]
call fcn.0042185c
mov ebx, eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x265]
mov ecx, 0xc8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
cmp byte [ebp - 0x251], 0
jne 0x52feb8
mov eax, 0x5a6e60
call fcn.00404ff8
xor ecx, ecx
mov edx, 0x42
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x265]
mov ecx, 0x14
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, 0x14
lea esi, [ebp - 0x265]
mov edi, 0x5a0ab0
lea eax, [ebp - 0x26c]
mov dl, byte [esi]
xor dl, byte [edi]
call fcn.00405110
mov edx, dword [ebp - 0x26c]
mov eax, 0x5a6e60
call fcn.004051b0
inc edi
inc esi
dec ebx
jne 0x52fe71
mov eax, dword [ebp - 8]
mov edx, dword [0x5a6e60]
call fcn.00404b74
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 0x530244
call fcn.00404940
jmp 0x5301d9
mov cx, 1
mov dx, 7
mov ax, 0x7ba
call fcn.0040b758
fstp qword [ebp - 0x28]
wait
mov cx, 0x11
mov dx, 9
mov ax, 0x7c5
call fcn.0040b758
fstp qword [ebp - 0x30]
wait
mov cx, 5
mov dx, 6
mov ax, 0x81f
call fcn.0040b758
fstp qword [ebp - 0x38]
wait
xor ecx, ecx
mov edx, 0x42
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, 0x5a6e8c
mov ecx, 0x28
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
xor ecx, ecx
mov edx, 0x75
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, 0x5a6e5c
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, ebx
call fcn.00403a7c
mov ebx, 0x42
lea esi, [ebp - 0x223]
cmp ebx, 0x72
jne 0x52ff5b
lea eax, [ebp - 0x1c]
mov edx, 0x530258
call fcn.00404984
jmp 0x52ff63
lea eax, [ebp - 0x1c]
call fcn.004048ec
push dword [ebp - 0x20]
push 0x530264
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x270]
xor eax, eax
mov al, byte [esi]
mov edx, 2
call fcn.00409918
push dword [ebp - 0x270]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404c6c
inc ebx
inc esi
cmp ebx, 0x7a
jne 0x52ff47
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, 1
call fcn.00404e4c
cmp dword [0x5a6e5c], 0x90000000
jb 0x52fff9
cmp dword [0x5a6e5c], 0xb0000000
jae 0x52fff9
mov eax, dword [0x5a6e5c]
xor eax, 0x903e6c94
mov dword [ebp - 0x278], eax
xor eax, eax
mov dword [ebp - 0x274], eax
fild qword [ebp - 0x278]
fdiv dword [0x530268]
fmul dword [0x53026c]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x18]
wait
jmp 0x53005b
mov eax, dword [0x5a6e5c]
xor eax, 0x803e6c94
mov dword [ebp - 0x278], eax
xor edx, edx
mov dword [ebp - 0x274], edx
fild qword [ebp - 0x278]
fdiv dword [0x530268]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x18]
wait
test eax, 0x30000000
je 0x53005b
mov edx, 0x40000000
sub edx, eax
mov eax, edx
mov dword [ebp - 0x278], eax
xor eax, eax
mov dword [ebp - 0x274], eax
fild qword [ebp - 0x278]
fdiv dword [0x530268]
fdiv dword [0x53026c]
fsubr qword [ebp - 0x30]
fstp qword [ebp - 0x18]
wait
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jae 0x5300b3
mov ebx, 0xa
mov edi, 0x5a0a9c
mov esi, 0x5a6e64
mov dword [ebp - 0x3c], 0x5a0a88
fld qword [ebp - 0x18]
call fcn.00403150
push eax
fld qword [ebp - 0x28]
call fcn.00403150
pop edx
sub dx, ax
xor dx, word [edi]
xor dx, 0xf000
mov word [esi], dx
mov eax, dword [ebp - 0x3c]
mov ax, word [eax]
mov word [esi + 2], ax
add dword [ebp - 0x3c], 2
add esi, 4
add edi, 2
dec ebx
jne 0x53007c
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x530111
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x38]
fnstsw ax
sahf
jae 0x530111
mov ebx, 0xa
mov dword [ebp - 0x40], 0x5a0a9c
mov edi, 0x5a6e64
mov esi, 0x5a0a88
fld qword [ebp - 0x18]
call fcn.00403150
push eax
fld qword [ebp - 0x30]
call fcn.00403150
pop edx
sub dx, ax
mov eax, dword [ebp - 0x40]
xor dx, word [eax]
mov word [edi], dx
mov ax, word [esi]
mov word [edi + 2], ax
add esi, 2
add edi, 4
add dword [ebp - 0x40], 2
dec ebx
jne 0x5300df
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x38]
fnstsw ax
sahf
jb 0x530168
mov ebx, 0xa
mov dword [ebp - 0x44], 0x5a0a9c
mov edi, 0x5a6e64
mov esi, 0x5a0a88
fld qword [ebp - 0x18]
call fcn.00403150
push eax
fld qword [ebp - 0x30]
call fcn.00403150
pop edx
sub dx, ax
mov eax, dword [ebp - 0x44]
xor dx, word [eax]
mov word [edi], dx
mov ax, word [esi]
xor ax, 1
mov word [edi + 2], ax
add esi, 2
add edi, 4
add dword [ebp - 0x44], 2
dec ebx
jne 0x530132
mov eax, 0x5a6e60
call fcn.00404ff8
mov ebx, 0x14
mov esi, 0x5a6e64
mov edi, 0x5a6e8c
mov ax, word [edi]
xor ax, word [esi]
movzx eax, ax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5301b2
lea eax, [ebp - 0x27c]
mov dx, word [ebp - 0xc]
call fcn.00405120
mov edx, dword [ebp - 0x27c]
mov eax, 0x5a6e60
call fcn.004051b0
add edi, 2
add esi, 2
dec ebx
jne 0x530181
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 0x530278
call fcn.00404940
mov eax, dword [ebp - 8]
mov edx, dword [0x5a6e60]
call fcn.00404b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x530235
lea eax, [ebp - 0x27c]
call fcn.00404ff8
lea eax, [ebp - 0x270]
call fcn.004048ec
lea eax, [ebp - 0x26c]
call fcn.00404ff8
lea eax, [ebp - 0x19c]
mov edx, dword [0x4085e8]
call fcn.00405460
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404910
lea eax, [ebp - 4]
call fcn.004048ec
ret