Function at 0x4d2930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63593d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00409430
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x18]
test al, 1
je 0x4d2985
lea esi, [edi + 2]
jmp 0x4d2b67
xor ebx, ebx
test al, 2
jne 0x4d29f7
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, 3
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x4d2995
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edx*4]
lea ebx, [eax + edx*4]
test ecx, ecx
je 0x4d29f7
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp dword [ecx + 4], edx
jne 0x4d29f1
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 8]
cmp eax, dword [edi + 4]
mov edi, 0
jne 0x4d29f1
mov edi, dword [ebp + 8]
mov ax, word [ecx + 0xc]
cmp ax, word [edi + 8]
mov edi, 0
jne 0x4d29f1
mov edi, dword [ebp + 8]
mov ax, word [ecx + 0xe]
cmp ax, word [edi + 0xa]
mov edi, 0
je 0x4d2a1e
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4d29b8
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp edx, eax
jb 0x4d2b16
mov ebx, 2
lea ecx, [eax + eax]
cmp eax, ebx
cmovb ecx, ebx
cmp ecx, edx
jae 0x4d2a28
lea esi, [ebx + 1]
jmp 0x4d2b67
mov esi, 1
jmp 0x4d2b67
push dword [esi + 0x18]
mov eax, dword [esi]
push esi
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4d2b30
mov al, byte [ecx + 0x18]
not al
test al, 1
je 0x4d2b30
cmp dword [esi + 0x14], 0
je 0x4d2ae4
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x1c], 0
jbe 0x4d2ae4
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ebx
nop
mov eax, dword [esi + 0x14]
mov edi, dword [edx + eax]
test edi, edi
je 0x4d2ac2
nop word [eax + eax]
mov ebx, dword [edi]
lea ecx, [edi + 4]
dec dword [esi + 0xc]
mov edx, 3
xor eax, eax
nop
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x4d2a90
mov ecx, dword [ebp - 0x18]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [ecx], edi
mov edi, ebx
mov ecx, dword [ebp - 0x18]
inc dword [ecx + 0xc]
test ebx, ebx
jne 0x4d2a80
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov eax, dword [esi + 0x14]
add edx, 4
mov dword [ebp - 0x20], edx
mov dword [ebx + eax], 0
add ebx, 4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x10]
jb 0x4d2a70
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
push 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, 3
ror eax, 0x19
xor eax, dword [ecx]
add ecx, 4
sub edx, 1
jne 0x4d2b00
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea ebx, [eax + edx*4]
push ecx
lea ecx, [esi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.004d2f60
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x4d2b37
lea esi, [eax + 2]
jmp 0x4d2b67
mov edi, dword [ebp - 0x14]
mov esi, ebx
jmp 0x4d2b67
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [edi + 4], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
inc dword [esi + 0xc]
xor esi, esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4d2b79
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.004d2e50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc