Function at 0x499476
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x218], edx
jmp dword [0x43208a]
je 0x432075
test byte [ebp - 0x22c], 3
jne 0x432075
mov edi, dword [ebp - 0x214]
mov edx, ecx
mov eax, dword [edx]
mov ecx, dword [ebp - 0x224]
push eax
call fcn.00557171
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x224]
add esp, 4
mov ebx, edi
call fcn.0053ca17
mov esi, eax
mov ecx, dword [esi + 0x10]
add ecx, dword [esi + 0xc]
xor edi, edi
mov dword [ebp - 0x228], esi
cmp ebx, ecx
jb 0x5285ae
mov edi, 1
jmp 0x5285ae
mov edi, dword [eax]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x214], ebx
cmp ecx, dword [edi + 0xc]
jae 0x4ba380
xor eax, eax
lea esp, [esp]
lea ecx, [eax + 1]
imul ecx, ecx, 0x6174
xor cx, word [eax*2 + 0x57b330]
inc eax
mov word [ebp + eax*2 - 0x20a], cx
cmp eax, 0xf
jl 0x4542ce
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
mov esi, eax
sub esi, ecx
push esi
push eax
jmp dword [0x454309]
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
cmp dword [edi + 0x1e8], 0
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], edi
jmp 0x4e996e
mov edx, dword [ebp - 0x20c]
mov ecx, dword [edx + ecx*4 + 0xc]
mov dword [ebp - 0x21c], ecx
jmp 0x558e34
mov ecx, dword [ebp - 0x218]
mov ebx, dword [ecx]
push 0x28
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, dword [ebp - 0x22c]
xor ecx, ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x21c]
add esp, 4
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
push 0x4957fe
ret
mov dword [ebp - 0x238], 0
mov ebx, dword [ebx]
xor ecx, ecx
test eax, eax
jle 0x4a9554
mov edi, dword [ebp - 0x20c]
add edi, 0xc
mov edx, dword [edi]
cmp ebx, dword [edx + 0xc]
jb 0x4a9548
mov esi, dword [edx + 0xc]
add esi, dword [edx + 8]
cmp ebx, esi
jb 0x49ec0e
inc ecx
add edi, 4
cmp ecx, eax
jl 0x4a952f
mov dword [ebp - 0x21c], 0
push 0x558e34
ret
mov eax, dword [ebx + 0xc]
mov esi, dword [edi + 0xc]
mov edx, dword [ebp - 0x20c]
mov edi, dword [edi]
mov dword [ebp - 0x228], eax
sub eax, esi
mov dword [ebp - 0x22c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x224], eax
movzx eax, word [eax + 6]
xor ecx, ecx
mov dword [ebp - 0x21c], edi
test eax, eax
jle 0x4e0e69
add edx, 0xc
mov ebx, dword [edx]
push 0x4e0e38
ret
inc edi
add ecx, 4
cmp edi, eax
jl 0x558e5f
xor edi, edi
cmp dword [ebp - 0x230], 0
je 0x432075
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x432075
cmp dword [ebp - 0x21c], 0
je 0x432075
test edi, edi
je 0x432075
cmp eax, edi
jne 0x432075
mov ecx, dword [ebp - 0x20c]
cmp eax, dword [ecx + 0x1c4]
jmp 0x43f72c
mov dword [ebp - 0x230], 0
mov edx, dword [ebp - 0x224]
sub esi, dword [edx + 0x34]
xor edx, edx
mov dword [ebp - 0x214], esi
test eax, eax
jle 0x4a9510
mov ecx, dword [ebp - 0x20c]
push 0x4535d4
ret
je 0x531845
push 0x40000
lea eax, [esi + 0x14]
push 0
push eax
call sub.msvcrt.dll_memset
lea ecx, [esi + 0x10]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ecx], 0
mov dword [esi + 0xc], 0
mov eax, dword [edi + 0x1e8]
add esp, 0xc
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x218], eax
test eax, eax
je 0x531830
jmp 0x560214
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x22c]
add dword [eax + 0xc], edx
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x210]
je 0x432075
jmp 0x49ec38
mov eax, dword [ecx]
test eax, eax
je 0x531845
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x53183a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004567c3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x224]
mov edx, dword [edx + 0x34]
mov ebx, dword [ebp - 0x228]
sub ebx, edx
xor edi, edi
test eax, eax
jle 0x4c338e
mov ecx, dword [ebp - 0x20c]
add ecx, 0xc
lea esp, [esp]
mov edx, dword [ecx]
cmp ebx, dword [edx + 0xc]
jb 0x4c3382
push 0x4c3374
ret
jmp 0x56021f
mov edx, eax
mov dword [ebp - 0x210], eax
test eax, eax
je 0x43207b
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], esi
cmp ecx, dword [edx + 8]
jne 0x560269
cmp esi, dword [edx + 0xc]
jne 0x560269
mov edx, dword [edx + 0x10]
mov dword [ebp - 0x210], edx
test edx, edx
jne 0x560241
jmp 0x43207b
mov ebx, dword [edx]
jmp 0x4542b4