Function at 0x599f8b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x31c], 0
test eax, eax
je 0x5279ea
lea ecx, [ebx + 0x218]
mov dword [ebp - 0x330], ecx
jmp 0x49e0ca
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
je 0x4d4a00
lea esp, [esp]
lea edx, [eax + 1]
imul edx, edx, 0x6256
jmp dword [0x458ab7]
je 0x45b7ae
test eax, eax
jle 0x45b7ae
xor eax, eax
lea ebx, [ebx]
lea edx, [eax + 1]
imul edx, edx, 0x1ab
xor dx, word [eax*2 + 0x5dd484]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xa
jl 0x45b778
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi + 0x22c]
jmp dword [0x45b7ba]
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x30c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
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.004810b5
mov esp, ebp
pop ebp
ret 4
jmp 0x49e0d5
mov dword [edi + 0x40298], 6
mov esi, dword [eax]
mov dword [edi + 0x40298], 7
mov byte [ebp - 0x10c], 0
mov byte [ebp - 0xd], 0
mov eax, dword [esi + 4]
push 0
test eax, eax
je 0x572a4d
lea edx, [ebp - 0x10c]
push 0x572a34
ret
test eax, eax
je 0x458a94
test ebx, ebx
je 0x4d3207
cmp byte [ebp - 0xd], 0
jne 0x4d3207
mov edx, dword [ebp - 0x314]
cmp dword [edx + 0x14], 0
jle 0x4d3207
mov eax, dword [ebp - 0x330]
mov ecx, dword [esi + 0x1c]
inc dword [ebp - 0x31c]
mov dword [eax], ecx
mov dword [eax + 4], 0
add eax, 8
mov dword [ebp - 0x330], eax
mov eax, dword [edi + 0x22c]
mov dword [edi + 0x40298], 9
jmp dword [0x4d3221]
lea ecx, [eax + 1]
imul ecx, ecx, 0x4c37
xor cx, word [eax*2 + 0x5dd474]
inc eax
mov word [ebp + eax*2 - 0x30e], cx
cmp eax, 7
jl 0x4d4a00
mov edx, dword [esi]
push edx
jmp 0x486290
test ebx, ebx
je 0x415dde
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x415dde
push 0x415db2
ret
test ebx, ebx
je 0x45b7ae
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x31c], eax
jmp 0x45b762
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 0x5464a3
mov ebx, dword [eax + 0x28]
add ebx, eax
test ecx, ecx
je 0x55fee4
mov edx, dword [ebp - 0x310]
mov esi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x314], esi
cmp dword [esi + 0x14], ecx
jle 0x509d77
mov ecx, dword [ebp - 0x318]
mov dword [edi + 0x40298], 3
jmp dword [0x5464da]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004810b5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov edx, dword [ebp - 0x314]
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp - 0x318]
push 0
push eax
push ecx
call fcn.00427902
add esp, 0x18
mov dword [ebp - 0x32c], eax
mov dword [edi + 0x40298], 8
jmp 0x4d31bc
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]
jmp 0x546478