Function at 0x5b7c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x28]
shr edi, 3
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xbc], 2
cmp edi, 0x14
je 0x5b7ca2
cmp edi, 0x1c
je 0x5b7ca2
cmp edi, 0x20
jne 0x5b7d20
test esi, esi
jne 0x5b7cdd
cmp edi, 0x14
jne 0x5b7cba
call fcn.00521600
mov esi, eax
mov dword [ebp - 0x98], esi
jmp 0x5b7ce8
cmp edi, 0x1c
jne 0x5b7cce
call fcn.00521610
mov esi, eax
mov dword [ebp - 0x98], esi
jmp 0x5b7ce8
call fcn.00521620
mov esi, eax
mov dword [ebp - 0x98], esi
jmp 0x5b7ce8
push esi
call fcn.00533e30
add esp, 4
mov edi, eax
mov eax, 0x200
cmp dword [ebp + 0xc], eax
cmovae eax, dword [ebp + 0xc]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [ebp - 0xb0], eax
test ebx, ebx
je 0x5b7d44
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jae 0x5b7d33
push 0x55
push 0x678638
push 0x6e
push 0x7d
push 0xa
call fcn.00528ff0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ae07
mov esp, ebp
pop ebp
ret
cmova eax, edi
push eax
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.005e0960
add esp, 0xc
call fcn.005538c0
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x5b83c3
call fcn.00558a30
mov ebx, eax
mov dword [ebp - 0x88], ebx
test ebx, ebx
je 0x5b83c3
push ebx
call fcn.00558aa0
push ebx
call fcn.005589c0
push ebx
mov dword [ebp - 0xcc], eax
call fcn.005589c0
push ebx
mov dword [ebp - 0xa0], eax
call fcn.005589c0
push ebx
mov dword [ebp - 0xb4], eax
call fcn.005589c0
push ebx
mov dword [ebp - 0x9c], eax
call fcn.005589c0
push ebx
mov dword [ebp - 0xd0], eax
call fcn.005589c0
push ebx
mov dword [ebp - 0xc8], eax
call fcn.005589c0
push ebx
mov dword [ebp - 0x90], eax
call fcn.005589c0
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0x8c], ebx
test ebx, ebx
je 0x5b83c3
mov eax, dword [ebp - 0xb0]
dec eax
push eax
call fcn.0051dc50
push eax
push ebx
call fcn.0056ee40
add esp, 0xc
test eax, eax
je 0x5b83c3
nop
push dword [ebp - 0xa8]
xor ebx, ebx
cmp dword [ebp - 0xac], ebx
push 0
push dword [ebp - 0x94]
sete bl
call fcn.00594b70
inc dword [ebp - 0xa8]
add esp, 0xc
test eax, eax
je 0x5b83c3
cmp dword [ebp - 0xac], 0
jne 0x5b7e4f
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00526410
add esp, 8
test eax, eax
jle 0x5b83c3
jmp 0x5b7e59
mov dword [ebp - 0xac], 0
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005e0960
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.005e0960
lea eax, [edi - 1]
add esp, 0x18
test eax, eax
js 0x5b7e8e
add byte [ebp + eax - 0x44], 1
jne 0x5b7e8e
sub eax, 1
jns 0x5b7e82
push 0
push esi
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00520c50
add esp, 0x18
test eax, eax
je 0x5b83c3
push 0
push esi
push 0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00520c50
add esp, 0x18
test eax, eax
je 0x5b83c3
xor ecx, ecx
test edi, edi
jle 0x5b7f34
cmp edi, 0x20
jb 0x5b7f20
mov eax, edi
and eax, 0x8000001f
jns 0x5b7ee6
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
sub edx, eax
nop word [eax + eax]
movups xmm0, xmmword [ebp + ecx - 0x24]
movups xmm1, xmmword [ebp + ecx - 0x84]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x24], xmm1
movups xmm0, xmmword [ebp + ecx - 0x14]
movups xmm1, xmmword [ebp + ecx - 0x74]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x14], xmm1
add ecx, 0x20
cmp ecx, edx
jl 0x5b7ef0
cmp ecx, edi
jge 0x5b7f34
mov al, byte [ebp + ecx - 0x84]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, edi
jl 0x5b7f24
push dword [ebp - 0x9c]
or byte [ebp - 0x24], 0x80
lea eax, [ebp - 0x24]
or byte [ebp + edi - 0x25], 1
push edi
push eax
call fcn.0051d270
add esp, 0xc
test eax, eax
je 0x5b83c3
push dword [ebp - 0x94]
push ebx
push dword [ebp - 0x88]
push 0x40
push dword [ebp - 0x9c]
call fcn.00594e20
add esp, 0x14
test eax, eax
jg 0x5b7f84
je 0x5b7e00
jmp 0x5b83c3
mov ebx, dword [ebp - 0x94]
push 0
push 2
push ebx
call fcn.00594b70
add esp, 0xc
test eax, eax
je 0x5b83c3
push 0
push 3
push ebx
call fcn.00594b70
add esp, 0xc
test eax, eax
je 0x5b83c3
mov ecx, dword [ebp - 0xb0]
mov eax, 0xcccccccd
mov ebx, dword [ebp - 0xcc]
xor esi, esi
mov dword [ebp - 0xb8], esi
lea ecx, [ecx - 1]
mul ecx
mov eax, edx
shr eax, 7
mov dword [ebp - 0xc4], eax
nop dword [eax]
test esi, esi
je 0x5b7ffd
push esi
push 0
push dword [ebp - 0x94]
call fcn.00594b70
add esp, 0xc
test eax, eax
je 0x5b83c3
push 0
push dword [ebp - 0xb4]
call fcn.0051db90
xor esi, esi
add esp, 8
cmp dword [ebp - 0xc4], esi
jl 0x5b80af
nop dword [eax + eax]
lea eax, [edi - 1]
test eax, eax
js 0x5b8033
add byte [ebp + eax - 0x44], 1
jne 0x5b8033
sub eax, 1
jns 0x5b8027
push 0
push dword [ebp - 0x98]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00520c50
add esp, 0x18
test eax, eax
je 0x5b83c3
push ebx
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0051d270
add esp, 0xc
test eax, eax
je 0x5b83c3
lea eax, [edi*8]
imul eax, esi
push eax
push ebx
push ebx
call fcn.0056ee40
add esp, 0xc
test eax, eax
je 0x5b83c3
mov eax, dword [ebp - 0xb4]
push ebx
push eax
push eax
call fcn.00558df0
add esp, 0xc
test eax, eax
je 0x5b83c3
inc esi
cmp esi, dword [ebp - 0xc4]
jle 0x5b8020
mov eax, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xb4]
dec eax
push eax
push esi
call fcn.0051d8b0
add esp, 8
test eax, eax
je 0x5b83c3
push esi
mov esi, dword [ebp - 0xd0]
push esi
call fcn.0051d690
add esp, 8
test eax, eax
je 0x5b83c3
push dword [ebp - 0x8c]
push esi
push esi
call fcn.00558df0
add esp, 0xc
test eax, eax
je 0x5b83c3
push dword [ebp - 0x9c]
push ebx
call fcn.0056ee90
add esp, 8
test eax, eax
je 0x5b83c3
push dword [ebp - 0x88]
push ebx
push esi
push dword [ebp - 0xc8]
push 0
call fcn.0058d260
add esp, 0x14
test eax, eax
je 0x5b83c3
call fcn.0051dc50
push eax
push dword [ebp - 0xc8]
push ebx
call fcn.00558e80
add esp, 0xc
test eax, eax
je 0x5b83c3
push ebx
push esi
mov esi, dword [ebp - 0x90]
push esi
call fcn.00558e80
add esp, 0xc
test eax, eax
je 0x5b83c3
push dword [ebp - 0x8c]
push esi
call fcn.0051d450
add esp, 8
test eax, eax
js 0x5b81a7
mov esi, dword [ebp - 0x94]
push esi
push 1
push dword [ebp - 0x88]
push 0x40
push dword [ebp - 0x90]
call fcn.00594e20
add esp, 0x14
test eax, eax
jg 0x5b81cb
jne 0x5b83c3
mov esi, dword [ebp - 0xb8]
inc esi
mov dword [ebp - 0xb8], esi
cmp esi, 0x1000
jl 0x5b7fe0
mov esi, dword [ebp - 0x98]
jmp 0x5b7e00
push 1
push 2
push esi
call fcn.00594b70
add esp, 0xc
test eax, eax
je 0x5b83c3
call fcn.0051dc50
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
call fcn.00558e80
add esp, 0xc
test eax, eax
je 0x5b83c3
push dword [ebp - 0x88]
push dword [ebp - 0x9c]
push dword [ebp - 0x8c]
push 0
push ebx
call fcn.0058d260
add esp, 0x14
test eax, eax
je 0x5b83c3
push 2
push dword [ebp - 0x8c]
call fcn.0051db90
add esp, 8
test eax, eax
je 0x5b83c3
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push dword [ebp - 0xa4]
call fcn.00553910
add esp, 0xc
test eax, eax
je 0x5b83c3
push dword [ebp - 0xa4]
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.0058b530
add esp, 0x18
test eax, eax
je 0x5b83c3
push dword [ebp - 0xa0]
call fcn.0051d840
add esp, 4
test eax, eax
je 0x5b82f6
call fcn.0051dc50
push eax
mov eax, dword [ebp - 0x8c]
push eax
push eax
call fcn.00558df0
add esp, 0xc
test eax, eax
je 0x5b83c3
push dword [ebp - 0xa4]
inc dword [ebp - 0xbc]
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.0058b530
add esp, 0x18
test eax, eax
jne 0x5b8290
jmp 0x5b83c3
push 1
push 3
push esi
call fcn.00594b70
add esp, 0xc
test eax, eax
je 0x5b83c3
mov dword [ebp - 0xc0], 1
nop word [eax + eax]
mov ebx, dword [ebp - 0xd4]
push dword [ebx + 8]
call fcn.0051d760
push dword [ebx + 0xc]
call fcn.0051d760
push dword [ebx + 0x10]
call fcn.0051d760
push dword [ebp - 0x90]
call fcn.0051d700
push dword [ebp - 0x9c]
mov dword [ebx + 8], eax
call fcn.0051d700
push dword [ebp - 0xa0]
mov dword [ebx + 0xc], eax
call fcn.0051d700
add esp, 0x18
mov dword [ebx + 0x10], eax
cmp dword [ebx + 8], 0
je 0x5b83b9
cmp dword [ebx + 0xc], 0
je 0x5b83b9
test eax, eax
je 0x5b83b9
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x5b838d
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x5b839f
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x5b83c3
push edi
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.005e0960
add esp, 0xc
jmp 0x5b83c3
mov dword [ebp - 0xc0], 0
mov esi, dword [ebp - 0x88]
push esi
call fcn.00558940
push esi
call fcn.00558990
push dword [ebp - 0xa4]
call fcn.00553820
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0xc0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049ae07
mov esp, ebp
pop ebp
ret