Function at 0x4b8eb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x59
push 0
push 0
dec ecx
jne 0x4b8ebd
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404900
lea eax, [ebp - 0x198]
mov edx, dword [0x4079e8]
call fcn.00404e88
xor eax, eax
push ebp
push 0x4b9520
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x198]
mov edx, 0x3f
mov eax, dword [ebp - 4]
call fcn.00408eb0
push 2
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x414818]
call fcn.004195e4
mov ebx, eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebp - 0x261]
mov ecx, 0xc8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 8]
cmp byte [ebp - 0x24d], 0
jne 0x4b9020
lea eax, [esi + 0x338]
call fcn.00404b7c
xor ecx, ecx
mov edx, 0x42
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebp - 0x261]
mov ecx, 0x14
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, 0x14
lea edi, [ebp - 0x261]
mov dword [ebp - 0x34], 0x4bb97c
lea eax, [ebp - 0x268]
mov dl, byte [edi]
mov ecx, dword [ebp - 0x34]
xor dl, byte [ecx]
call fcn.00404c8c
mov edx, dword [ebp - 0x268]
lea eax, [esi + 0x338]
call fcn.00404d14
inc dword [ebp - 0x34]
inc edi
dec ebx
jne 0x4b8f87
cmp byte [0x4bcdcc], 1
jne 0x4b8fca
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x338]
call fcn.004046e0
jmp 0x4b8fff
lea eax, [ebp - 0x270]
mov edx, dword [esi + 0x338]
call fcn.004046e0
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x26c]
mov edx, 4
call fcn.0043adf0
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 8]
call fcn.004044b4
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 0x4b9538
call fcn.004044b4
call fcn.0040a3a0
mov eax, dword [ebp - 8]
fstp qword [eax + 8]
wait
jmp 0x4b949b
mov cx, 1
mov dx, 7
mov ax, 0x7ba
call fcn.0040a12c
fstp qword [ebp - 0x20]
wait
mov cx, 0x11
mov dx, 9
mov ax, 0x7c5
call fcn.0040a12c
fstp qword [ebp - 0x28]
wait
mov cx, 5
mov dx, 6
mov ax, 0x81f
call fcn.0040a12c
fstp qword [ebp - 0x30]
wait
xor ecx, ecx
mov edx, 0x42
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [esi + 0x364]
mov ecx, 0x28
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 8]
xor ecx, ecx
mov edx, 0x75
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [esi + 0x334]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 8]
mov eax, ebx
call fcn.004036d4
mov ebx, 0x42
lea edi, [ebp - 0x21f]
cmp ebx, 0x72
jne 0x4b90c5
lea eax, [ebp - 0x14]
mov edx, 0x4b954c
call fcn.004044f8
jmp 0x4b90cd
lea eax, [ebp - 0x14]
call fcn.00404460
push dword [ebp - 0x18]
push 0x4b9558
push dword [ebp - 0x14]
lea ecx, [ebp - 0x274]
xor eax, eax
mov al, byte [edi]
mov edx, 2
call fcn.00408ba4
push dword [ebp - 0x274]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004047d8
inc ebx
inc edi
cmp ebx, 0x7a
jne 0x4b90b1
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, 1
call fcn.004049b0
lea eax, [ebp - 0x278]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 0x2ac], 0xb
mov eax, 0x4b9564
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0xb
mov ebx, dword [esi + 0x334]
mov dword [ebp - 0x2a0], ebx
mov byte [ebp - 0x29c], 0
mov eax, 0x4b9564
mov dword [ebp - 0x298], eax
mov byte [ebp - 0x294], 0xb
mov dword [ebp - 0x290], ebx
mov byte [ebp - 0x28c], 0
mov eax, 0x4b9564
mov dword [ebp - 0x288], eax
mov byte [ebp - 0x284], 0xb
push 0x4b9564
push dword [ebp - 0x18]
push 0x4b9564
lea eax, [ebp - 0x2b4]
mov edx, 3
call fcn.004047d8
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x280], eax
mov byte [ebp - 0x27c], 0xb
lea edx, [ebp - 0x2b0]
mov ecx, 6
mov eax, 0x4b9570
call fcn.004098bc
mov edx, dword [ebp - 0x278]
mov eax, dword [esi + 0x320]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x334]
cmp eax, 0x90000000
jb 0x4b9223
cmp eax, 0xb0000000
jae 0x4b9223
xor eax, 0x903e6c94
mov dword [ebp - 0x2bc], eax
xor eax, eax
mov dword [ebp - 0x2b8], eax
fild qword [ebp - 0x2bc]
fdiv dword [0x4b95c0]
fmul dword [0x4b95c4]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x10]
wait
jmp 0x4b9280
xor eax, 0x803e6c94
mov dword [ebp - 0x2bc], eax
xor edx, edx
mov dword [ebp - 0x2b8], edx
fild qword [ebp - 0x2bc]
fdiv dword [0x4b95c0]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x10]
wait
test eax, 0x30000000
je 0x4b9280
mov edx, 0x40000000
sub edx, eax
mov eax, edx
mov dword [ebp - 0x2bc], eax
xor eax, eax
mov dword [ebp - 0x2b8], eax
fild qword [ebp - 0x2bc]
fdiv dword [0x4b95c0]
fdiv dword [0x4b95c4]
fsubr qword [ebp - 0x28]
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c4]
call fcn.0040b054
mov ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2c0]
mov edx, 0x4b95d0
call fcn.00404764
mov edx, dword [ebp - 0x2c0]
mov eax, dword [esi + 0x320]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x28]
fnstsw ax
sahf
jae 0x4b931f
xor ebx, ebx
mov edi, 0x4bb968
mov dword [ebp - 0x38], 0x4bb954
fld qword [ebp - 0x10]
call fcn.00402a88
push eax
fld qword [ebp - 0x20]
call fcn.00402a88
pop edx
sub dx, ax
xor dx, word [edi]
xor dx, 0xf000
mov eax, ebx
add eax, eax
mov word [esi + eax*2 + 0x33c], dx
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
mov edx, ebx
add edx, edx
mov word [esi + edx*2 + 0x33e], ax
inc ebx
add dword [ebp - 0x38], 2
add edi, 2
cmp ebx, 0xa
jne 0x4b92d7
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x28]
fnstsw ax
sahf
jb 0x4b9386
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jae 0x4b9386
xor ebx, ebx
mov edi, 0x4bb968
mov dword [ebp - 0x3c], 0x4bb954
fld qword [ebp - 0x10]
call fcn.00402a88
push eax
fld qword [ebp - 0x28]
call fcn.00402a88
pop edx
sub dx, ax
xor dx, word [edi]
mov eax, ebx
add eax, eax
mov word [esi + eax*2 + 0x33c], dx
mov eax, dword [ebp - 0x3c]
mov ax, word [eax]
mov edx, ebx
add edx, edx
mov word [esi + edx*2 + 0x33e], ax
inc ebx
add dword [ebp - 0x3c], 2
add edi, 2
cmp ebx, 0xa
jne 0x4b9343
fld qword [ebp - 0x10]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x4b93e6
xor ebx, ebx
mov edi, 0x4bb968
mov dword [ebp - 0x40], 0x4bb954
fld qword [ebp - 0x10]
call fcn.00402a88
push eax
fld qword [ebp - 0x28]
call fcn.00402a88
pop edx
sub dx, ax
xor dx, word [edi]
mov eax, ebx
add eax, eax
mov word [esi + eax*2 + 0x33c], dx
mov eax, dword [ebp - 0x40]
mov ax, word [eax]
xor ax, 1
mov edx, ebx
add edx, edx
mov word [esi + edx*2 + 0x33e], ax
inc ebx
add dword [ebp - 0x40], 2
add edi, 2
cmp ebx, 0xa
jne 0x4b939f
lea eax, [esi + 0x338]
call fcn.00404b7c
xor ebx, ebx
mov di, word [esi + ebx*2 + 0x33c]
xor di, word [esi + ebx*2 + 0x364]
movzx edi, di
test edi, edi
je 0x4b9428
lea eax, [ebp - 0x2c8]
mov edx, edi
call fcn.00404c9c
mov edx, dword [ebp - 0x2c8]
lea eax, [esi + 0x338]
call fcn.00404d14
inc ebx
cmp ebx, 0x14
jne 0x4b93f3
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 0x4b95e4
call fcn.004044b4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
cmp byte [0x4bcdcc], 1
jne 0x4b9466
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x338]
call fcn.004046e0
jmp 0x4b949b
lea eax, [ebp - 0x2d0]
mov edx, dword [esi + 0x338]
call fcn.004046e0
mov eax, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2cc]
mov edx, 4
call fcn.0043adf0
mov edx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 8]
call fcn.004044b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9527
lea eax, [ebp - 0x2d0]
mov edx, 2
call fcn.00404484
lea eax, [ebp - 0x2c8]
call fcn.00404b7c
lea eax, [ebp - 0x2c4]
mov edx, 2
call fcn.00404484
lea eax, [ebp - 0x2b4]
call fcn.00404460
lea eax, [ebp - 0x278]
mov edx, 4
call fcn.00404484
lea eax, [ebp - 0x268]
call fcn.00404b7c
lea eax, [ebp - 0x198]
mov edx, dword [0x4079e8]
call fcn.00404f58
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404484
lea eax, [ebp - 4]
call fcn.00404460
ret