Function at 0x4d8c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x546109
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x463df0]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x128]
mov edi, dword [ebp + 0x130]
mov ebx, dword [ebp + 0x138]
mov esi, ecx
push 4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
call fcn.004ee390
test al, al
je 0x4d8ca7
cmp dword [ebp - 0x20], 0xffff
jbe 0x4d8cd9
push 0x72
mov ecx, esi
call fcn.004cc3d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00526a8a
add ebp, 0x120
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x134]
test eax, eax
je 0x4d8cf2
push eax
push edi
call fcn.004ee390
test al, al
jne 0x4d8cf2
push 0x71
jmp 0x4d8ca9
mov eax, dword [ebp + 0x13c]
test eax, eax
je 0x4d8d07
push eax
push ebx
call fcn.004ee390
test al, al
je 0x4d8cee
mov ebx, dword [ebp + 0x134]
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x34], ebx
call fcn.004cf050
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [esi + 0x6c]
mov dword [ebp - 4], 0
call fcn.004ca7c0
mov edi, dword [ebp + 0x12c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 0
cmp edi, 0x1a
je 0x4d8e3c
cmp edi, 0x15
je 0x4d8d57
cmp edi, 0x1e
je 0x4d8d57
cmp edi, 0x23
jne 0x4d8e40
mov cl, 0x42
mov dl, 0x49
mov byte [ebp + 0x116], cl
mov byte [ebp + 0x118], cl
mov cl, 0x46
mov byte [ebp + 0x115], dl
mov byte [ebp + 0x119], dl
mov byte [ebp + 0x10c], 0x1a
mov byte [ebp + 0x10d], 0xff
mov byte [ebp + 0x10e], 1
mov byte [ebp + 0x10f], 0
mov byte [ebp + 0x110], 0x18
mov byte [ebp + 0x111], 0
mov byte [ebp + 0x112], 0
mov byte [ebp + 0x113], 0
mov byte [ebp + 0x114], 0x57
mov byte [ebp + 0x117], 0x55
mov byte [ebp + 0x11a], cl
mov byte [ebp + 0x11b], cl
mov edx, 0x10
cmp ebx, 0x10
ja 0x4d8dd3
mov edx, ebx
mov esi, dword [ebp - 0x2c]
lea ebx, [ebp + 0x10c]
cmp edx, 4
jb 0x4d8df5
mov eax, dword [ebx]
cmp eax, dword [esi]
jne 0x4d8df9
sub edx, 4
add esi, 4
add ebx, 4
cmp edx, 4
jae 0x4d8de1
test edx, edx
je 0x4d8e40
movzx ecx, byte [ebx]
movzx eax, byte [esi]
sub ecx, eax
jne 0x4d8e34
cmp edx, 1
jbe 0x4d8e40
movzx ecx, byte [ebx + 1]
movzx eax, byte [esi + 1]
sub ecx, eax
jne 0x4d8e34
cmp edx, 2
jbe 0x4d8e40
movzx ecx, byte [ebx + 2]
movzx eax, byte [esi + 2]
sub ecx, eax
jne 0x4d8e34
cmp edx, 3
jbe 0x4d8e40
movzx ecx, byte [ebx + 3]
movzx edx, byte [esi + 3]
sub ecx, edx
sar ecx, 0x1f
or ecx, 1
je 0x4d8e40
mov byte [ebp - 0x11], 1
mov eax, dword [ebp + 0x13c]
mov ecx, 0x1f000
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
jae 0x4d8e57
mov ecx, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 0x11], 0
je 0x4d9127
mov eax, 1
mov word [ebp - 0x68], ax
xor eax, eax
xor esi, esi
mov ebx, 0x10
xor ecx, ecx
mov edx, 1
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov word [ebp - 0x86], ax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 0x46d388
mov dword [ebp - 0x6c], 0x461cc8
mov word [ebp - 0x66], cx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], 0x46d364
mov dword [ebp - 0x8c], 0x461cd8
mov word [ebp - 0x88], dx
mov dword [ebp - 0x84], esi
lea eax, [ebp - 0x74]
cmp edi, 0x1a
je 0x4d8ee4
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp]
call fcn.004f4370
mov ecx, dword [ebp + 0x134]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
lea ecx, [ebp + 0xdc]
mov byte [ebp - 4], 2
call fcn.00482730
push esi
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 3
call fcn.004d65a0
push esi
lea ecx, [ebp + 0xe0]
call fcn.004d65a0
mov eax, dword [ebp + 0xe4]
cmp dword [ebp + 0xf8], ebx
jae 0x4d8f37
lea eax, [ebp + 0xe4]
push 0xa
push eax
lea ecx, [ebp]
call fcn.004d6e40
push 0x46d35c
lea ecx, [ebp - 0x54]
call fcn.0047ae40
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 4
call fcn.004c3f90
mov esi, 0x10
mov edi, 0x469080
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x38], esi
jb 0x4d8f81
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.005265f5
add esp, 4
push 0x46d350
lea ecx, [ebp - 0x54]
call fcn.0047ae40
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.004d2990
mov ebx, eax
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x38], esi
jb 0x4d8fbf
mov eax, dword [ebp - 0x4c]
push eax
call fcn.005265f5
add esp, 4
push 0x46d348
lea ecx, [ebp - 0x54]
call fcn.0047ae40
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp]
mov byte [ebp - 4], 6
call fcn.004d2990
cmp dword [ebp - 0x38], 0x10
mov esi, eax
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], edi
jb 0x4d8ffa
mov edx, dword [ebp - 0x4c]
push edx
call fcn.005265f5
add esp, 4
push 0
lea eax, [esi + 3]
push eax
lea ecx, [ebp + 0x104]
call fcn.0049adc0
push 0x46d340
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.0047ae40
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 8
call fcn.004c3f90
cmp dword [ebp - 0x38], 0x10
mov byte [ebp - 4], 7
mov dword [ebp - 0x54], edi
jb 0x4d9045
mov edx, dword [ebp - 0x4c]
push edx
call fcn.005265f5
add esp, 4
mov eax, dword [ebp + 0x10c]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x108]
push esi
push eax
lea ecx, [ebp]
call fcn.004f3e80
mov eax, dword [ebp + 0x10c]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 0x108]
xor edi, edi
mov ecx, dword [ebp - 0x34]
shr ecx, 2
cmp edi, ecx
jae 0x4d90a7
mov edx, dword [ebp - 0x2c]
xor dword [esi + edi*4], ebx
push 0
push 0x5917
push edx
push ebx
call fcn.00528570
add eax, 0x4a6b
adc edx, 0
mov ebx, eax
mov eax, dword [ebp + 0x10c]
mov dword [ebp - 0x2c], edx
inc edi
jmp 0x4d9073
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x12c]
push ecx
mov ecx, dword [ebp - 0x34]
neg eax
push edx
mov edx, dword [ebp - 0x20]
sbb eax, eax
and eax, dword [ebp + 0x108]
push ecx
push eax
push esi
push edx
lea ecx, [ebp - 0xf8]
call fcn.004cd930
lea ecx, [ebp + 0x104]
call fcn.00476f80
lea ecx, [ebp + 0xdc]
mov byte [ebp - 4], 2
call fcn.00477890
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004f39b0
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x4d914f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0x134]
push ecx
push edx
push edi
push eax
lea ecx, [ebp - 0xf8]
call fcn.004cd930
mov esi, dword [ebp + 0x12c]
xor edi, edi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
push edi
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 0x24]
add edx, 0x18
push edx
lea eax, [ebp - 0xf8]
push eax
add ecx, 0x28
call fcn.004eeba0
test al, al
je 0x4d92ba
cmp esi, 0x19
je 0x4d9198
cmp esi, 0x1c
je 0x4d9198
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xf8]
call fcn.004cf1c0
mov esi, eax
jmp 0x4d955f
xor eax, eax
mov ecx, 0x10
mov edx, 1
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x74], ecx
mov ecx, edx
mov word [ebp - 0x88], dx
xor edx, edx
mov word [ebp - 0x86], ax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x90], 0x46d388
mov dword [ebp - 0x8c], 0x461cc8
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x70], 0x46d364
mov dword [ebp - 0x6c], 0x461cd8
mov word [ebp - 0x68], cx
mov word [ebp - 0x66], dx
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x94]
cmp esi, 0x19
je 0x4d9212
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp]
call fcn.004f4370
mov byte [ebp - 4], 0xa
call fcn.004b5900
push eax
lea ecx, [ebp - 0x54]
call fcn.004bc340
mov eax, 3
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 0xb
call fcn.004f3770
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
call fcn.004bbaf0
xor esi, esi
mov dword [ebp + 0xf8], 0xf
mov dword [ebp + 0xf4], esi
mov byte [ebp + 0xe4], 0
mov dword [ebp + 0xdc], 0x469080
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 0xc
call fcn.004bb670
mov edx, dword [ebp - 0x28]
mov ebx, dword [eax]
add esp, 4
push edx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x2c], esi
call fcn.004cf1c0
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, esi
jne 0x4d92d1
lea ecx, [ebp + 0xdc]
mov byte [ebp - 4], 0xa
call fcn.00477890
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004f39b0
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.004cf090
jmp 0x4d8cb0
push 0x46d338
lea ecx, [ebp - 0xb4]
call fcn.0047ae40
push 0x46d32c
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0xd
call fcn.0047ae40
push 0x46d31c
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xe
call fcn.0047ae40
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 0xf
call fcn.004c1de0
add esp, 4
lea ecx, [ebp - 0x138]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.004c0d50
mov esi, eax
mov byte [ebp - 4], 0x11
call fcn.004b6010
push eax
call fcn.004b6010
push eax
lea edx, [ebp - 0xb4]
push edi
push edx
call fcn.004b6010
push eax
lea eax, [ebp + 0xfc]
push ebx
push eax
call fcn.004b6010
push eax
push esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp + 0xdc]
call fcn.0047b770
mov ecx, eax
call fcn.0047b770
mov ecx, eax
call fcn.0047b770
mov ecx, eax
call fcn.0047b770
mov ecx, eax
call fcn.00481040
mov ecx, eax
call fcn.0047b770
mov ecx, eax
call fcn.0047b770
mov ecx, eax
call fcn.00481040
mov ecx, eax
call fcn.0047b770
mov ecx, eax
call fcn.0047b770
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x10
call fcn.00477890
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xf
call fcn.004cc680
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xe
call fcn.00477890
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0xd
call fcn.00477890
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xc
call fcn.00477890
push 0x46d35c
lea ecx, [ebp - 0xb4]
call fcn.0047ae40
lea edx, [ebp - 0xb4]
push edx
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x12
call fcn.004c3f90
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xc
call fcn.00477890
cmp dword [ebp + 0xf8], 0x10
mov eax, dword [ebp + 0xe4]
jae 0x4d9437
lea eax, [ebp + 0xe4]
push 0xa
push eax
lea ecx, [ebp]
call fcn.004d6e40
push 0x46d340
lea ecx, [ebp - 0xb4]
call fcn.0047ae40
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x13
call fcn.004c3f90
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0xc
call fcn.00477890
push 0
push edi
lea ecx, [ebp + 0x104]
call fcn.0049adc0
mov esi, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x13c]
neg esi
sbb esi, esi
and esi, dword [ebp + 0x108]
mov byte [ebp - 4], 0x14
cmp edi, eax
jb 0x4d94a2
mov edi, eax
mov eax, dword [ebp + 0x10c]
mov ecx, dword [ebp - 0x28]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x108]
push edi
push ecx
push eax
call fcn.00526df0
mov eax, dword [ebp - 0x18]
shr eax, 2
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jbe 0x4d94f7
nop
mov edx, dword [ebp - 0x2c]
xor dword [esi + edi*4], ebx
push 0
push 0x5917
push edx
push ebx
call fcn.00528570
add eax, 0x4a6b
adc edx, 0
inc edi
mov ebx, eax
mov dword [ebp - 0x2c], edx
cmp edi, dword [ebp - 0x1c]
jb 0x4d94d0
mov eax, dword [ebp + 0x10c]
mov ecx, dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x108]
push ecx
push eax
lea ecx, [ebp]
call fcn.004f5370
mov edi, dword [ebp + 0x13c]
mov edx, dword [ebp - 0x28]
push 0xa
push edi
push edx
lea ecx, [ebp]
call fcn.004d5010
mov esi, eax
cmp esi, edi
jbe 0x4d9539
mov ecx, dword [ebp - 0x24]
push 0x70
call fcn.004cc3d0
lea ecx, [ebp + 0x104]
call fcn.00476f80
lea ecx, [ebp + 0xdc]
mov byte [ebp - 4], 0xa
call fcn.00477890
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004f39b0
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.004cf090
mov eax, esi
jmp 0x4d8cb2