Function at 0x4d6710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
lea ecx, [ebx + 0x16c]
mov esi, ecx
push edi
lea eax, [esi + 0x7d6]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], ecx
mov edi, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 1
test edx, edx
je 0x4d6dcc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4d6dcc
mov dword [ebx + 0x96c], 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0
jle 0x4d6db4
cmp esi, dword [ebp - 0x2c]
ja 0x4d6da0
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffffdc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ecx
cmp eax, 0x3a
ja case.0x4d6799.37
movzx eax, byte [eax + 0x4d6e04]
jmp dword [eax*4 + 0x4d6de8]
mov byte [esi], 2
inc esi
jmp 0x4d6c7f
mov ecx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jne 0x4d67ba
mov byte [esi], 4
inc esi
jmp 0x4d6c82
mov byte [esi], 1
mov al, byte [edx]
mov byte [esi + 1], al
add esi, 2
jmp 0x4d6c82
cmp byte [edx + 1], 0
mov ecx, dword [ebp - 8]
jne 0x4d67ba
mov byte [esi], 5
inc esi
jmp 0x4d6c82
mov edi, dword [ebp - 0x10]
inc edx
mov byte [esi], 3
inc esi
xor ecx, ecx
inc edi
cmp byte [edx], 0x5e
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
jne 0x4d6806
inc edi
inc edx
mov byte [ebp - 1], 0xff
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
jmp 0x4d6809
mov byte [ebp - 1], cl
cmp byte [edx], 0x2d
jne 0x4d6825
or byte [ebx + 0x975], 0x20
inc edi
mov ecx, 0x2d
inc edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edx
cmp byte [edx], 0x5d
jne 0x4d6841
or byte [ebx + 0x97b], 0x20
inc edi
mov ecx, 0x5d
inc edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edx
mov al, byte [edx]
mov dword [ebp - 0x24], eax
test al, al
je 0x4d6924
mov edi, edi
cmp al, 0x5d
je 0x4d69d7
cmp al, 0x2d
jne 0x4d695b
test ecx, ecx
jns 0x4d6878
or byte [ebx + 0x975], 0x20
mov ecx, 0x2d
mov dword [ebp - 0x18], ecx
jmp 0x4d690e
lea eax, [edx + 1]
mov dword [ebp - 0x24], eax
mov al, byte [eax]
test al, al
je 0x4d6924
cmp al, 0x5d
je 0x4d6864
mov edx, dword [ebp - 0x24]
inc dword [ebp - 0x10]
movzx eax, byte [edx]
lea edi, [ecx + 1]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], eax
cmp eax, 0x5c
jne 0x4d68f8
inc edx
mov dword [ebp - 0xc], edx
cmp byte [edx], 0
je 0x4d6924
lea eax, [ebp - 0x30]
push eax
push edx
mov ecx, ebx
call fcn.004d64f0
mov edx, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x30]
inc edx
add edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], edx
test ecx, ecx
js 0x4d68fc
movzx edx, cl
mov ecx, edx
and edx, 7
shr ecx, 3
mov al, byte [edx + 0x409950]
or byte [ecx + ebx + 0x970], al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jns 0x4d6938
or byte [ebx + 0x975], 0x20
mov ecx, 0x2d
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp - 0x10]
mov al, byte [edx + 1]
inc edx
inc edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], eax
test al, al
jne 0x4d6850
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d6f0
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edi, eax
jg 0x4d690b
mov esi, dword [ebp - 0x24]
nop
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.004d6350
inc edi
cmp edi, esi
jle 0x4d6940
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
jmp 0x4d690b
cmp al, 0x5c
jne 0x4d69b9
cmp byte [edx + 1], 0
je 0x4d69b9
lea ecx, [ebp - 0x38]
lea eax, [edx + 1]
push ecx
push eax
mov ecx, ebx
mov dword [ebp - 0xc], eax
call fcn.004d64f0
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x38]
inc edi
add edi, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edx
test eax, eax
js 0x4d69ae
movzx edx, al
mov ecx, edx
and edx, 7
shr ecx, 3
mov al, byte [edx + 0x409950]
or byte [ecx + ebx + 0x970], al
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
jmp 0x4d690e
or ecx, 0xffffffff
mov dword [ebp - 0x18], ecx
jmp 0x4d690e
push dword [ebp + 0x10]
movzx eax, al
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.004d6350
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
jmp 0x4d690e
cmp byte [edx], 0
je 0x4d6924
mov ah, byte [ebp - 1]
lea ecx, [ebx + 0x970]
mov edi, 0x20
mov edi, edi
mov al, byte [ecx]
xor al, ah
mov byte [esi], al
inc esi
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edi
jne 0x4d69f0
jmp 0x4d6c7f
cmp edx, dword [ebp + 8]
je 0x4d6cd8
mov al, byte [edi]
mov dword [ebp - 0x1c], edi
cmp al, 0xb
je 0x4d6c7f
cmp al, 0xd
je 0x4d6c7f
cmp al, 4
je 0x4d6cc4
cmp al, 5
jle 0x4d6a37
cmp al, 0xa
jle 0x4d6cc4
cmp cl, 0x2b
jne 0x4d6a52
mov edi, dword [ebp - 0x1c]
mov ecx, esi
cmp edi, esi
jae 0x4d6a52
mov al, byte [edi]
mov byte [esi], al
inc edi
inc esi
cmp edi, ecx
jb 0x4d6a45
mov dword [ebp - 0x1c], edi
mov byte [esi], 0
inc esi
mov byte [esi], 0
lea edi, [esi + 1]
cmp esi, dword [ebp - 0x1c]
jbe 0x4d6a71
mov ebx, dword [ebp - 0x1c]
mov al, byte [esi - 1]
mov byte [esi], al
dec esi
cmp esi, ebx
ja 0x4d6a64
mov ebx, dword [ebp - 0x3c]
cmp byte [edx], 0x3f
jne 0x4d6a80
mov byte [esi], 0xc
mov esi, edi
jmp 0x4d6c7f
cmp byte [edx + 1], 0x3f
sete al
lea eax, [eax*2 + 0xb]
mov byte [esi], al
mov esi, edi
jmp 0x4d6c7f
mov cl, byte [edx + 1]
inc dword [ebp - 0x10]
inc edx
movsx eax, cl
mov dword [ebp - 0x34], eax
add eax, 0xffffffcf
mov dword [ebp - 0xc], edx
cmp eax, 0xd
ja case.0x4d6ab6.58
movzx eax, byte [eax + 0x4d6e50]
jmp dword [eax*4 + 0x4d6e40]
mov byte [esi], 8
inc esi
jmp 0x4d6c7f
cmp byte [edi], 8
je 0x4d6cec
mov byte [esi], 9
inc esi
jmp 0x4d6c7f
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
add eax, 0xffffffd0
test ecx, ecx
jle 0x4d6af2
cmp dword [ebx + ecx*4 + 0x144], eax
je 0x4d6d00
cmp dword [ebp - 0x20], eax
jle 0x4d6d14
mov byte [esi], 0xa
mov byte [esi + 1], al
add esi, 2
jmp 0x4d6c82
cmp byte [ebp + 0x14], 0
jne 0x4d6b73
cmp cl, 0x28
jne 0x4d6b41
mov eax, dword [ebp - 0x20]
cmp eax, 0xa
jge 0x4d6d28
mov ecx, dword [ebp - 8]
inc ecx
add esi, 2
mov dword [ebx + ecx*4 + 0x144], eax
mov byte [esi - 2], 6
mov byte [esi - 1], al
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], eax
jmp 0x4d6c82
cmp cl, 0x29
jne 0x4d6b73
cmp byte [edi], 6
je 0x4d6d50
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x4d6d3c
mov byte [esi], 7
mov al, byte [ebx + ecx*4 + 0x144]
mov byte [esi + 1], al
add esi, 2
dec ecx
mov dword [ebp - 8], ecx
jmp 0x4d6c82
lea eax, [ebp - 0x40]
push eax
push edx
mov ecx, ebx
call fcn.004d64f0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0xc]
add dword [ebp - 0x10], ecx
add edx, ecx
test eax, eax
jns 0x4d6c76
mov byte [esi], 3
inc esi
lea ecx, [ebx + 0x970]
mov edi, 0x20
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edi
jne 0x4d6ba1
jmp 0x4d6c7f
cmp byte [ebp + 0x14], 0
je 0x4d6c1b
cmp cl, 0x28
jne 0x4d6bec
mov eax, dword [ebp - 0x20]
cmp eax, 0xa
jge 0x4d6d64
mov ecx, dword [ebp - 8]
inc ecx
add esi, 2
mov dword [ebx + ecx*4 + 0x144], eax
mov byte [esi - 2], 6
mov byte [esi - 1], al
inc eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], eax
jmp 0x4d6c82
cmp cl, 0x29
jne 0x4d6c1b
cmp byte [edi], 6
je 0x4d6d8c
mov ecx, dword [ebp - 8]
test ecx, ecx
jle 0x4d6d78
mov byte [esi], 7
mov al, byte [ebx + ecx*4 + 0x144]
mov byte [esi + 1], al
add esi, 2
dec ecx
mov dword [ebp - 8], ecx
jmp 0x4d6c82
mov byte [ebp - 0x28], cl
test cl, cl
jne 0x4d6c2d
mov ecx, 0x5c
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x28], cl
cmp byte [ebp + 0x10], 0
jne 0x4d6c73
mov eax, dword [ebx + 0x994]
movzx ecx, cl
cmp byte [ecx + eax], 2
jne 0x4d6c73
push 0
push dword [ebp - 0x28]
mov byte [esi], 3
mov ecx, ebx
inc esi
call fcn.004d6350
lea ecx, [ebx + 0x970]
mov edx, 0x20
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x4d6c60
mov edx, dword [ebp - 0xc]
jmp 0x4d6c7f
mov eax, dword [ebp - 0x24]
mov byte [esi], 1
mov byte [esi + 1], al
add esi, 2
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
inc eax
inc edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp eax, dword [ebp + 0xc]
jl 0x4d6772
test ecx, ecx
jle 0x4d6db4
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov eax, 0x43d7dc
jne 0x4d6ddd
pop edi
pop esi
mov eax, 0x43d7e8
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d70c
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d6fc
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d71c
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d738
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d74c
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d764
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d794
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d778
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d7a4
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d7d0
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d7b8
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
mov eax, 0x43d6dc
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [esi], 0
mov dword [ebx + 0x96c], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0x96c], 0
jne 0x4d6dc1
mov byte [ecx], 0
mov eax, 0x43d6bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10