Function at 0x51c6f9
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi]
push eax
call fcn.004b9035
mov ecx, eax
add esp, 4
mov dword [edi + 0x40298], 4
test ecx, ecx
jne 0x424f55
mov ecx, dword [esi]
push eax
push ecx
mov ecx, dword [ebp - 0x318]
call fcn.00569d83
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x575b76
test ebx, ebx
je 0x5c7552
jmp dword [0x424f66]
test ecx, ecx
je 0x4af83d
mov eax, dword [esi]
cdq
push 0x100
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x18]
push eax
push 0x100
push edi
push 0
push 0
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi]
cdq
mov dword [ebx + 0x14], edx
xor edx, edx
mov dword [ebx + 0x10], eax
cmp dword [esi], edx
jle 0x516421
lea ecx, [ebx + 0x218]
jmp dword [0x445745]
test ebx, ebx
je 0x575b5e
mov esi, dword [ebp - 0x324]
mov dword [ebp - 0x310], eax
cmp dword [esi], eax
jle 0x575b5e
add esi, 0x2048
mov edi, edi
mov ecx, dword [ebp - 0x318]
lea edi, [esi - 0x2040]
push edi
call fcn.004b9035
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4456f6
mov ecx, dword [ebp - 0x318]
push eax
push edi
call fcn.00569d83
mov ecx, eax
add esp, 8
jmp 0x4456ee
xor eax, eax
mov edi, edi
lea edx, [eax + 1]
imul edx, edx, 0x2e79
xor dx, word [eax*2 + 0x5de49c]
inc eax
mov word [ebp + eax*2 - 0x30e], dx
jmp dword [0x4af862]
test ebx, ebx
je 0x4c22d3
cmp dword [esi + 0x14], 0
jle 0x4c22d3
add ebx, dword [ebx]
mov edx, dword [ebp - 0x310]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x310], eax
test eax, eax
jne 0x53cb9e
jmp 0x4a85c0
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004027f4
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
je 0x5944bd
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x31c], eax
je 0x5944bd
test eax, eax
jle 0x5944bd
xor eax, eax
lea ebx, [ebx]
lea edx, [eax + 1]
jmp 0x59448a
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 0x324]
add ebx, dword [ebx]
inc eax
jmp 0x575b4a
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x318], eax
mov eax, dword [edi + 0x260]
mov dword [ebp - 0x324], ecx
mov ecx, dword [edi + 0x1e0]
xor ebx, ebx
mov dword [ebp - 0x310], ecx
mov dword [edi + 0x40298], 2
test eax, eax
je 0x53cb96
mov ebx, dword [eax + 0x28]
jmp dword [0x51c752]
test ecx, ecx
je 0x575b5e
mov edx, dword [ebp - 0x310]
mov esi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x314], esi
cmp dword [esi + 0x14], ecx
jle 0x424f55
mov ecx, dword [ebp - 0x318]
mov dword [edi + 0x40298], 3
jmp 0x424f1a
add esi, 0x2048
mov dword [ebp - 0x310], eax
cmp eax, dword [ecx]
jl 0x4a85e4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004027f4
mov esp, ebp
pop ebp
ret 4
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x6210
xor dx, word [eax*2 + 0x5de448]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xd
jl 0x575b78
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x20c]
jmp 0x4d88a4
imul edx, edx, 0x1ab
xor dx, word [eax*2 + 0x5de484]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xa
jl 0x50ca99
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x4c22bf
cmp byte [eax + 0x14], 0
push 0x4c228e
ret
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x31c], 0
test eax, eax
je 0x50ca72
lea ecx, [ebx + 0x218]
mov dword [ebp - 0x330], ecx
jmp 0x5c7584
mov dword [edi + 0x40298], 6
jmp dword [0x5c7596]