Function at 0x49db70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041db40
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dcc0
test eax, eax
mov dword [esp + 0x24], eax
je 0x49dbf8
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dcc0
test eax, eax
mov dword [esp + 0x28], eax
je 0x49dbf8
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dcc0
test eax, eax
mov esi, eax
mov dword [esp + 0x2c], eax
je 0x49dbf8
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dcc0
test eax, eax
mov dword [esp + 0x30], eax
je 0x49dbf8
mov eax, dword [esp + 0x68]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.0049daf0
test eax, eax
je 0x49dbf8
mov eax, dword [esi + 4]
test eax, eax
jne 0x49dc10
xor ebx, ebx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dc40
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0041e2c0
test eax, eax
je 0x49dbf8
mov edi, dword [esp + 0x2c]
mov dword [esp], edi
call fcn.0041e0d0
mov dword [esp], esi
mov dword [esp + 0x10], eax
call fcn.0041e0d0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov esi, eax
cmp esi, dword [edi + 8]
mov dword [esp + 0x20], eax
jg 0x49df34
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
cmp dword [esp + 0x20], eax
jle 0x49dc7e
lea esi, [esi]
mov dword [ebx + eax*4], 0
add eax, 1
cmp eax, edx
jne 0x49dc70
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov esi, dword [esp + 0x24]
cmp eax, dword [esi + 8]
jg 0x49df62
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ebp, dword [eax]
cmp esi, 1
mov dword [ebp], 1
lea eax, [ebp + 4]
lea edx, [ebp + esi*4]
jle 0x49dcc0
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x49dcb3
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov esi, dword [esp + 0x28]
cmp eax, dword [esi + 8]
jg 0x49df49
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, dword [eax]
test edi, edi
mov eax, esi
lea edx, [esi + edi*4]
jle 0x49dcfd
nop
lea esi, [esi]
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x49dcf0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov edi, dword [esp + 0x30]
shl eax, 2
mov dword [esp + 0x18], eax
sub eax, 4
mov dword [esp + 0x3c], eax
mov eax, esi
mov edi, dword [edi]
mov esi, edi
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx]
test eax, eax
jne 0x49de21
cmp ecx, 1
je 0x49deed
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jge 0x49dd87
mov eax, dword [esp + 0x10]
mov ebp, edi
mov ebx, esi
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [edx]
mov edi, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [esp + 0x20]
test edx, edx
jle 0x49dda9
mov edx, dword [esi + eax*4]
xor dword [ebx + eax*4], edx
mov edx, dword [edi + eax*4]
xor dword [ebp + eax*4], edx
add eax, 1
cmp eax, ecx
jne 0x49dd95
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jne 0x49dd22
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x1e]
sub eax, 1
cmovns ecx, eax
sar ecx, 5
mov edx, dword [ebx + ecx*4]
mov eax, ecx
test edx, edx
jne 0x49df7b
test ecx, ecx
jne 0x49dde8
jmp 0x49dee0
test eax, eax
je 0x49dee0
sub eax, 1
mov edx, dword [ebx + eax*4]
test edx, edx
je 0x49dde0
shl eax, 5
mov dword [esp + 0x14], eax
mov dword [esp], edx
call fcn.0041e080
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49dd30
mov eax, ecx
and eax, 1
je 0x49de38
cmp dword [esp + 0x10], 0x20
jg 0x49dd39
jmp 0x49dd30
mov edx, dword [ebp]
mov dword [esp + 0x38], eax
mov eax, edx
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
neg dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov eax, dword [eax]
mov edx, eax
mov eax, dword [esp + 0x14]
and eax, dword [edx]
mov edx, dword [esp + 0x34]
xor edx, eax
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x20], 1
jle 0x49decb
mov dword [esp + 0x38], edi
mov eax, 4
mov edi, edx
mov dword [esp + 0x34], esi
jmp 0x49de84
mov edi, edx
mov ecx, esi
mov esi, dword [ebx + eax]
shr ecx, 1
shr edi, 1
mov edx, esi
shl edx, 0x1f
or edx, ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + eax - 4], edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
and ecx, dword [edx + eax]
mov edx, dword [ebp + eax]
xor edx, ecx
mov ecx, edx
shl ecx, 0x1f
or ecx, edi
mov dword [ebp + eax - 4], ecx
add eax, 4
cmp eax, dword [esp + 0x18]
jne 0x49de80
mov ecx, esi
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
shr ecx, 1
shr edx, 1
mov dword [ebx + eax], ecx
sub dword [esp + 0x10], 1
mov dword [ebp + eax], edx
jmp 0x49dd22
mov dword [esp + 0x14], 0
jmp 0x49ddf9
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
test eax, eax
jle 0x49df14
mov esi, dword [esi]
mov dword [esp + 0x10], esi
lea edx, [esi - 4]
mov ecx, dword [edx + eax*4]
test ecx, ecx
jne 0x49df0d
sub eax, 1
jne 0x49df01
mov esi, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0041e2c0
test eax, eax
setne bl
jmp 0x49dbfa
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041e270
jmp 0x49dc5a
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041e270
jmp 0x49dcd8
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0041e270
jmp 0x49dc96
shl ecx, 5
mov dword [esp + 0x14], ecx
jmp 0x49ddf9