Function at 0x61dc70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
push 0x44
xor ebx, ebx
lea edx, [ebp - 0x48]
push ebx
push edx
mov dword [ebp - 0x558], eax
mov dword [ebp - 0x570], ecx
mov dword [ebp - 0x588], esi
mov dword [ebp - 0x584], edi
mov byte [0x720880], 0
call fcn.005236f0
mov edx, dword [ebp - 0x570]
add esp, 0xc
cmp edx, 0x100
jbe 0x61dce4
mov eax, dword [ebp - 0x558]
mov ecx, dword [eax + 0x400]
mov dword [ebp - 0x580], ecx
jmp 0x61dcee
mov dword [ebp - 0x580], 0x10
mov ecx, dword [ebp - 0x558]
mov eax, dword [ecx]
inc dword [ebp + eax*4 - 0x48]
lea eax, [ebp + eax*4 - 0x48]
add ecx, 4
dec edx
jne 0x61dcf4
mov edx, dword [ebp - 0x570]
cmp dword [ebp - 0x48], edx
jne 0x61dd26
mov dword [esi], ebx
mov dword [edi], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
mov ecx, 1
jmp 0x61dd30
cmp dword [ebp + ecx*4 - 0x48], ebx
jne 0x61dd3c
inc ecx
cmp ecx, 0x10
jbe 0x61dd30
mov edx, ecx
mov dword [ebp - 0x55c], edx
cmp dword [edi], ecx
jae 0x61dd4a
mov dword [edi], ecx
mov eax, 0x10
nop
cmp dword [ebp + eax*4 - 0x48], ebx
jne 0x61dd59
dec eax
jne 0x61dd50
mov dword [ebp - 0x574], eax
cmp dword [edi], eax
jbe 0x61dd65
mov dword [edi], eax
mov esi, 1
shl esi, cl
cmp ecx, eax
jae 0x61dd81
sub esi, dword [ebp + ecx*4 - 0x48]
js 0x61dfd7
inc ecx
add esi, esi
cmp ecx, eax
jb 0x61dd70
mov ecx, dword [ebp + eax*4 - 0x48]
sub esi, ecx
mov dword [ebp - 0x58c], esi
js 0x61dfd7
add ecx, esi
mov dword [ebp + eax*4 - 0x48], ecx
xor ecx, ecx
dec eax
mov dword [ebp - 0xcc], ebx
je 0x61ddb7
xor esi, esi
add ecx, dword [ebp + esi - 0x44]
add esi, 4
dec eax
mov dword [ebp + esi - 0xcc], ecx
jne 0x61dda6
mov edi, dword [ebp - 0x558]
xor esi, esi
nop
mov eax, dword [edi]
add edi, 4
cmp eax, ebx
je 0x61dde1
mov ecx, dword [ebp + eax*4 - 0xd0]
lea eax, [ebp + eax*4 - 0xd0]
mov dword [ebp + ecx*4 - 0x550], esi
inc ecx
mov dword [eax], ecx
inc esi
cmp esi, dword [ebp - 0x570]
jb 0x61ddc0
lea ecx, [ebp - 0x550]
or esi, 0xffffffff
xor edi, edi
mov dword [ebp - 0x578], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0x56c], ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x5d4], ebx
mov dword [ebp - 0x57c], ebx
cmp edx, dword [ebp - 0x574]
jg 0x61e186
lea eax, [ebp + edx*4 - 0x48]
mov dword [ebp - 0x558], eax
jmp 0x61de40
mov eax, dword [ebp - 0x558]
mov eax, dword [eax]
mov dword [ebp - 0x560], eax
test eax, eax
je 0x61e16c
jmp 0x61de60
mov eax, dword [ebp + esi*4 - 0x88]
dec dword [ebp - 0x560]
add eax, ebx
cmp edx, eax
jle 0x61e014
mov ecx, dword [ebp - 0x560]
inc ecx
mov dword [ebp - 0x590], ecx
lea ecx, [ebp - 0x5d4]
sub ecx, 4
mov dword [ebp - 0x594], ecx
jmp 0x61dea0
mov edx, dword [ebp - 0x574]
mov edi, eax
mov eax, dword [ebp - 0x584]
mov eax, dword [eax]
sub edx, edi
inc esi
mov dword [ebp - 0x554], edi
cmp edx, eax
jbe 0x61debf
mov edx, eax
mov ebx, dword [ebp - 0x55c]
sub ebx, edi
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x590]
jbe 0x61df09
mov edi, dword [ebp - 0x558]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x560]
inc ebx
add eax, ecx
cmp ebx, edx
jae 0x61df03
mov edi, edi
mov ecx, dword [edi + 4]
add edi, 4
add eax, eax
cmp eax, ecx
jbe 0x61df03
inc ebx
sub eax, ecx
cmp ebx, edx
jb 0x61def0
mov edi, dword [ebp - 0x554]
mov eax, dword [ebp - 0x580]
lea edx, [edi + ebx]
cmp edx, eax
jbe 0x61df1e
cmp edi, eax
jae 0x61df1e
mov ebx, eax
sub ebx, edi
mov ecx, ebx
mov edi, 1
shl edi, cl
xor ecx, ecx
mov edx, 8
mov dword [ebp + esi*4 - 0x88], ebx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419f69
mov edx, dword [ebp - 0x588]
lea ecx, [eax + 8]
add eax, 4
add esp, 4
mov dword [edx], ecx
mov dword [ebp - 0x588], eax
mov dword [eax], 0
mov dword [ebp - 0x57c], ecx
mov dword [ebp + esi*4 - 0x5d4], ecx
test esi, esi
je 0x61dfed
mov al, byte [ebp + esi*4 - 0x8c]
mov edx, dword [ebp - 0x578]
add bl, 0x10
mov byte [ebp - 0x567], al
mov dword [ebp - 0x564], ecx
mov byte [ebp - 0x568], bl
mov ebx, dword [ebp - 0x554]
mov ecx, ebx
mov eax, 1
shl eax, cl
sub ecx, dword [ebp + esi*4 - 0x8c]
mov dword [ebp + esi*4 - 0xd0], edx
dec eax
and eax, edx
mov edx, dword [ebp - 0x568]
shr eax, cl
mov ecx, dword [ebp - 0x594]
mov ecx, dword [ecx + esi*4]
mov dword [ecx + eax*8], edx
mov edx, dword [ebp - 0x564]
mov dword [ecx + eax*8 + 4], edx
jmp 0x61dff3
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x554]
mov eax, dword [ebp + esi*4 - 0x88]
add eax, ebx
cmp dword [ebp - 0x55c], eax
jg 0x61dea0
mov ebx, dword [ebp - 0x554]
mov ecx, dword [ebp - 0x56c]
mov eax, dword [ebp - 0x570]
mov dl, byte [ebp - 0x55c]
sub dl, bl
lea eax, [ebp + eax*4 - 0x550]
mov byte [ebp - 0x567], dl
cmp ecx, eax
jb 0x61e03c
mov byte [ebp - 0x568], 0x63
jmp 0x61e09b
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x10]
jae 0x61e05f
mov dx, word [ecx]
cmp eax, 0x100
setb al
add al, 0xf
mov byte [ebp - 0x568], al
mov word [ebp - 0x564], dx
jmp 0x61e092
cmp dword [ebp + 0x18], 0
je 0x61e1bd
cmp dword [ebp + 0x14], 0
je 0x61e1bd
sub eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
add eax, eax
mov dl, byte [eax + edx]
mov byte [ebp - 0x568], dl
mov edx, dword [ebp + 0x14]
mov ax, word [eax + edx]
mov word [ebp - 0x564], ax
add ecx, 4
mov dword [ebp - 0x56c], ecx
mov ecx, dword [ebp - 0x55c]
mov eax, dword [ebp - 0x578]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x61e0e7
mov ecx, dword [ebp - 0x57c]
lea ecx, [ecx + eax*8]
mov ebx, dword [ebp - 0x568]
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x564]
mov dword [ecx + 4], ebx
lea ebx, [edx*8]
add eax, edx
add ecx, ebx
cmp eax, edi
jb 0x61e0c1
mov ebx, dword [ebp - 0x554]
mov ecx, dword [ebp - 0x55c]
mov edx, dword [ebp - 0x578]
dec ecx
mov eax, 1
shl eax, cl
test edx, eax
je 0x61e108
nop
xor edx, eax
shr eax, 1
test edx, eax
jne 0x61e100
xor edx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
mov dword [ebp - 0x578], edx
dec eax
and eax, edx
cmp eax, dword [ebp + esi*4 - 0xd0]
je 0x61e153
jmp 0x61e130
sub ebx, dword [ebp + esi*4 - 0x8c]
dec esi
mov eax, 1
mov ecx, ebx
shl eax, cl
dec eax
and eax, edx
cmp eax, dword [ebp + esi*4 - 0xd0]
jne 0x61e130
mov dword [ebp - 0x554], ebx
cmp dword [ebp - 0x560], 0
mov ecx, dword [ebp - 0x56c]
mov edx, dword [ebp - 0x55c]
jne 0x61de60
add dword [ebp - 0x558], 4
inc edx
mov dword [ebp - 0x55c], edx
cmp edx, dword [ebp - 0x574]
jle 0x61de40
cmp dword [ebp - 0x58c], 0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x584]
mov dword [edx], ecx
je 0x61e1aa
mov eax, 1
cmp dword [ebp - 0x574], eax
jne 0x61e1ac
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [0x720880], 1
xor eax, eax
pop ebx
call fcn.00521602
mov esp, ebp
pop ebp
ret