Function at 0x576d20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0x14], ecx
test ebx, ebx
jne 0x576d62
pop edi
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x24
ret
cmp dword [ebx + 0x38], 0
je 0x576d4c
cmp dword [ebx + 0x9c], 0
je 0x576d7a
push ebx
call fcn.00576920
add esp, 4
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
mov esi, ebx
call fcn.005763f0
add esp, 0xc
test eax, eax
je 0x576daf
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x24
ret
push ebp
push 0x90
call fcn.004e8a77
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x576dfd
push 0x4000
call fcn.004e8a77
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x44], edx
mov edx, dword [esp + 0x48]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x8c], edx
cmp eax, esi
jne 0x576e15
push ebp
call fcn.004e8920
add esp, 4
pop ebp
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x40], esi
cmp eax, esi
je 0x576e25
mov ecx, dword [ebx + 0x54]
mov dword [eax], ecx
cmp edi, esi
je 0x576e5a
mov dword [edi], 6
mov eax, dword [ebx + 0x50]
and eax, 6
sub eax, 2
je 0x576e54
sub eax, 2
je 0x576e4c
sub eax, 2
jne 0x576e5a
mov dword [edi], 1
jmp 0x576e5a
mov dword [edi], 2
jmp 0x576e5a
mov dword [edi], 9
mov eax, dword [ebx + 0x5c]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x54], eax
mov ecx, dword [ebx + 0x54]
mov dword [ebp + 0x84], ecx
mov eax, dword [ebx + 0x20]
mov dword [ebp + 0x80], eax
lea edi, [ebp + 0x60]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2c]
xor edi, edi
mov dword [ebp + 0x88], ecx
mov dword [ebp + 0x18], edi
cmp dword [ebx + 0x54], 8
jne 0x576ecd
cmp edx, edi
jne 0x576ecd
push 0x38
push str.1.2.3
lea eax, [ebp + 4]
push 0xfffffffffffffff1
push eax
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], edi
mov dword [eax], edi
mov dword [ebp + 8], edi
call fcn.00577ba0
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x576fae
mov dword [ebp + 0x40], 1
mov edx, dword [ebx + 0x60]
mov dword [ebp + 0x58], edx
mov eax, dword [ebx + 0x64]
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x5c], eax
mov ecx, dword [ebx + 0x98]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], edi
mov dword [ebx + 0x9c], ebp
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x576f99
call fcn.00583400
lea esi, [ebx + 0xa4]
mov ecx, esi
mov edx, ebp
mov dword [ebx + 0xb0], eax
call fcn.005759f0
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push edi
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x576dfd
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push 0xc
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, 0xc
jb 0x576dfd
xor ebp, ebp
mov eax, esi
call fcn.00575990
xor byte [esp + ebp + 0x24], al
movsx eax, byte [esp + ebp + 0x24]
mov edi, dword [ebx + 0xb0]
call fcn.005759b0
inc ebp
cmp ebp, 0xc
jl 0x576f64
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x24
ret
push ebp
call fcn.004e8920
mov ecx, dword [esp + 0x34]
add esp, 4
pop ebp
mov eax, esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.004e5fb0
add esp, 0x24
ret