Function at 0x580c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov esi, esp
mov dword [esi + 0xe0], ebp
mov dword [esi + 4], ecx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0xe4], esp
mov dword [esi + 0xf0], 0xffffffff
lea eax, [esi + 0xe8]
mov dword [esi + 0xec], 0x584350
mov ecx, dword fs:[0]
mov dword [esi + 0xe8], ecx
mov dword fs:[0], eax
call fcn.00583f50
mov edi, eax
mov eax, dword [0xb14dbc]
mov ecx, dword [0xb14d98]
mov edx, 0x1a7b
sub edx, edi
mov dword [esi + 8], edx
sub ecx, edx
add ecx, eax
call dword [0xb0836c]
call ecx
mov dword [esi], eax
xor edx, edx
add ebx, 0xfffffffe
cmp ebx, 0x24
ja case.0x580d08.5
mov ecx, edi
mov edi, dword [ebp + 0x10]
add ecx, 0xffffe585
mov eax, dword [0xb5324c]
jmp dword [ebx*4 + 0xaaa3d4]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x580d1f
mov eax, dword [esi + 4]
mov dword [eax + 0x434], ecx
mov eax, dword [esi]
mov ecx, eax
xor ecx, 0xfeb0e22d
cmp dword [edi], ecx
mov ecx, 0x14f1ddf
mov edx, 0x14f1dd3
cmove edx, ecx
xor edx, eax
jmp case.0x580d08.5
mov ecx, dword [esi]
xor ecx, 0x14f1dd8
mov eax, dword [esi + 4]
cmp dword [eax + 0x348], ecx
jbe 0x580ef6
mov eax, dword [eax + 0x334]
jmp 0x580efb
mov eax, dword [esi]
mov ebx, eax
xor ebx, 0x9b55f3b3
mov edi, dword [esi + 4]
mov ecx, dword [edi + 0x308]
add ecx, ebx
mov edx, ecx
not edx
sub edx, ebx
lea ecx, [edx + ecx*2]
xor eax, 0x14f1dd3
cmp dword [edi + 0x434], ecx
mov edx, 0
cmovb edx, eax
jmp case.0x580d08.5
mov eax, dword [esi + 4]
cmp byte [eax + 0x566], 0
mov ecx, 0x14f1ddf
mov edx, 0x14f1dd3
cmove edx, ecx
xor edx, dword [esi]
jmp case.0x580d08.5
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x308]
mov ecx, edx
not ecx
lea ecx, [ecx + edx*2]
mov edi, dword [esi]
xor edi, 0x14f1dd3
cmp dword [eax + 0x434], ecx
mov edx, 0
cmovb edx, edi
jmp case.0x580d08.5
mov ebx, dword [ebp + 0x14]
cmp byte [edi + 4], 0
je 0x580f02
mov eax, dword [esi + 4]
cmp dword [eax + 0x360], 0
je 0x580f43
lea ecx, [eax + 0x350]
add eax, 0x364
jmp 0x580f23
mov dword [edi], 0
mov edx, 4
jmp case.0x580d08.5
mov ebx, dword [esi]
xor ebx, 0x571a808c
mov edx, dword [0xb14db4]
sub ecx, eax
add ecx, dword [0xb14d94]
add ecx, edx
call dword [0xb0836c]
push ebx
call ecx
mov dword [edi], eax
mov edx, 4
jmp case.0x580d08.5
mov dword [esi + 4], eax
mov dword [esi + 0x14], ecx
cmp byte [edi + 0xb0], 0
je case.0x580d08.5
mov ecx, dword [0xb14dc0]
mov edi, dword [0xb14da4]
or edi, dword [esi + 4]
sub edi, dword [esi + 8]
add edi, ecx
mov ecx, edi
mov ebx, dword [esi]
call dword [0xb0836c]
lea ecx, [esi + 0x30]
push 1
call edi
mov eax, ebx
xor eax, 0x14f1dc7
lea edx, [esi + eax]
add edx, 0x30
movzx eax, byte [0xb149bd]
mov ah, bl
xor ah, 0x2e
cmp al, ah
mov byte [esi + 0xc], bl
je 0x580f9b
mov ecx, ebx
xor cl, 0x3c
mov ch, bl
xor ch, 0x84
mov al, cl
lock cmpxchg byte [0xb149bd], ch
je 0x580f5e
cmp al, ah
jne 0x580eb0
jmp 0x580f9b
mov edx, dword [ebp + 0x14]
cmp byte [edi + 7], 0
je 0x580f3d
mov eax, dword [esi + 4]
cmp dword [eax + 0x398], 0
je 0x580f43
mov ecx, dword [esi]
xor ecx, 0x14f1dd8
cmp dword [eax + 0x39c], ecx
jbe 0x580f4d
mov eax, dword [eax + 0x388]
jmp 0x580f52
add eax, 0x334
mov dword [edi], eax
jmp case.0x580d08.5
cmp byte [edi + 6], 0
mov eax, dword [esi + 4]
je 0x581293
cmp dword [eax + 0x37c], 0
je 0x580f43
lea ecx, [eax + 0x36c]
add eax, 0x380
mov edx, dword [esi]
xor edx, 0x14f1dd8
cmp dword [eax], edx
jbe 0x580f31
mov ecx, dword [ecx]
mov dword [ebx], ecx
mov edx, 4
jmp case.0x580d08.5
mov dword [edx], 0
mov edx, 8
jmp case.0x580d08.5
add eax, 0x388
mov dword [edx], eax
mov edx, 4
jmp case.0x580d08.5
mov ecx, dword [esi]
xor ecx, 0x14f1dda
xor edi, edi
nop dword [eax + eax]
mov al, byte [edi + 0xaaa390]
add byte [edi + 0xb149b0], al
mov ebx, edi
xor ebx, 1
and edi, 1
lea edi, [ebx + edi*2]
cmp edi, ecx
jl 0x580f70
xchg byte [0xb149bd], ah
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf0], 0
push 0xb149b0
push edx
call fcn.005442b0
add esp, 8
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + 0xb2]
mov ecx, eax
push edx
call fcn.00583470
mov ecx, eax
movzx eax, byte [0xb149cb]
mov dh, byte [esi + 0xc]
mov ah, dh
xor ah, 0xe4
cmp al, ah
je 0x58103b
mov dl, dh
xor dl, 0x7f
xor dh, 0x40
nop word cs:[eax + eax]
mov al, dl
lock cmpxchg byte [0xb149cb], dh
je 0x581002
cmp al, ah
jne 0x580ff0
jmp 0x58103b
mov edx, dword [esi]
xor edx, 0x14f1ddc
xor edi, edi
nop dword [eax]
mov al, byte [edi + 0xaaa3a0]
xor byte [edi + 0xb149c0], al
mov ebx, edi
xor ebx, 1
and edi, 1
lea edi, [ebx + edi*2]
cmp edi, edx
jl 0x581010
xchg byte [0xb149cb], ah
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf0], 0
push 0xb149c0
push ecx
call fcn.005442b0
add esp, 8
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov ecx, dword [eax + edx + 0x14]
mov edx, dword [esi]
xor edx, 0xfeb0ec28
mov edi, edx
and edx, ecx
mov ebx, ecx
not ecx
mov eax, dword [esi]
xor eax, 0x14f13d7
and edi, ecx
xor ebx, eax
xor eax, ecx
or edx, eax
and edx, ebx
not edx
or edx, edi
mov eax, dword [esi]
xor eax, 0xfeb0ea28
mov ecx, eax
xor ecx, edx
or eax, edx
not eax
or eax, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov dword [ecx + edx + 0x14], eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0xbc]
push dword [eax + 0xb8]
call fcn.00544870
lea ecx, [esi + 0x48]
lea eax, [esi + 0x18]
push eax
call fcn.0055d5e0
mov eax, dword [0xb14db0]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 4]
mov edi, dword [0xb14da0]
mov dword [esi + 0x10], ecx
add edi, ecx
add edi, eax
mov dword [esi + 0xf0], 0xffffffff
mov ecx, edi
call dword [0xb0836c]
lea ecx, [esi + 0x30]
call edi
cmp dword [0xb5438c], 0
mov edx, dword [esi]
jne 0x58113d
mov ecx, edx
xor ecx, 0x14f1df7
mov dword [esi + 0xf0], 2
call fcn.0053d610
mov edx, dword [esi]
mov ecx, edx
xor ecx, 0x14f1dd8
mov dword [eax + 0x1c], ecx
mov dword [eax + 4], 0x799e70
mov dword [eax], 0
mov dword [eax + 0x18], 0
mov byte [eax + 8], 0
mov dword [0xb5438c], eax
mov ecx, dword [0xb5438c]
mov eax, dword [0xb53038]
mov dword [esi + 8], eax
mov eax, edx
xor eax, 0x14f1d2d
mov dword [ecx], eax
xor edx, 0x14f1dd8
mov dword [esi + 0xc], edx
cmp dword [esi + 0x2c], edx
lea edx, [esi + 0x18]
jbe 0x581168
mov edx, dword [esi + 0x18]
add ecx, 4
mov dword [esi + 0xf0], 2
call fcn.0055d910
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x10]
call fcn.00583db0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0xc]
mov edx, dword [esi]
jbe 0x58124e
mov edi, dword [esi + 0x18]
lea ebx, [eax + 1]
mov ecx, edx
xor ecx, 0x14f1228
cmp ebx, ecx
jbe 0x58120f
mov ecx, edx
xor ecx, 0xba20892c
mov edx, dword [esi]
xor edx, 0x14f1dd4
sub edx, ecx
inc edx
mov ebx, edx
xor ebx, ecx
and edx, ecx
mov ecx, dword [edi - 4]
mov dword [esi + 0xc], ecx
add ebx, ecx
lea ecx, [ebx + edx*2]
mov ebx, dword [esi]
sub edi, ecx
mov ecx, ebx
xor ecx, 0x14f1df7
cmp edi, ecx
jae 0x581310
mov ecx, eax
not ecx
mov dword [esi + 8], ecx
xor ebx, 0x14f1df3
mov edx, dword [esi]
xor edx, 0xfeb0e20c
mov edi, ebx
and edi, ecx
mov ecx, eax
and ecx, edx
or ecx, edi
xor ebx, eax
and edx, dword [esi + 8]
or edx, ebx
not edx
lea eax, [ecx + edx*2]
mov dword [esi + 8], eax
mov edx, dword [esi]
jmp 0x581215
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
xor edx, 0x4105555
mov eax, dword [0xb14dc4]
mov ebx, dword [esi + 4]
add ebx, dword [esi + 0x14]
add ebx, dword [0xb14d90]
add ebx, eax
mov dword [esi + 0xf0], 0xffffffff
mov ecx, ebx
mov edi, edx
call dword [0xb0836c]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push edi
call ebx
add esp, 4
mov eax, dword [ebp + 0x10]
mov byte [eax + 0xb0], 0
mov word [eax + 0xb2], 0
mov dword [eax + 0xbc], 0
mov dword [eax + 0xb8], 0
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [esi + 0xe8]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
cmp byte [edi + 5], 0
je 0x5812a8
mov ecx, ebx
mov dword [ebx], 0
mov edx, 8
jmp case.0x580d08.5
mov ecx, dword [edi]
cmp ecx, 0xffffffed
je 0x5812f3
cmp ecx, 0xfffffffa
je 0x5812d6
cmp ecx, 0xfffffffc
jne 0x58129b
cmp dword [eax + 0x3b4], 0
je 0x580f43
lea ecx, [eax + 0x3a4]
add eax, 0x3b8
jmp 0x580f23
cmp dword [eax + 0x3d0], 0
je 0x580f43
lea ecx, [eax + 0x3c0]
add eax, 0x3d4
jmp 0x580f23
cmp dword [eax + 0x3ec], 0
je 0x580f43
lea ecx, [eax + 0x3dc]
add eax, 0x3f0
jmp 0x580f23
mov dword [esi + 0xf0], 1
call fcn.00748ef1
nop
push ebp
sub esp, 8
lea esi, [ebp - 0xf4]
mov ebp, dword [esi + 0xe0]
call fcn.0077ccd0
nop word cs:[eax + eax]
push ebp
sub esp, 8
lea esi, [ebp - 0xf4]
mov ebp, dword [esi + 0xe0]
mov eax, dword [0xb14db8]
mov edi, dword [esi + 0x10]
add edi, dword [0xb14d9c]
add edi, eax
mov ecx, edi
call dword [0xb0836c]
lea ecx, [esi + 0x18]
call edi
add esp, 8
pop ebp
ret