Function at 0x10071e70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov cl, byte [ebp + 0x3030]
push 4
push 0xffffffffffffffff
mov byte [esp + 0x40], cl
test eax, eax
lea edi, [esi + 0x10]
push edi
mov ecx, ebx
mov dword [esp + 0x28], eax
seta byte [esp + 0x1d]
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10071ed5
mov eax, dword [edi]
mov edx, eax
mov ecx, eax
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
shr eax, 8
and eax, 0xff00
shl edx, 8
add edx, eax
movzx eax, byte [esi + 0x13]
add edx, eax
mov dword [edi], edx
mov eax, dword [edi]
mov cl, byte [esp + 0x11]
test eax, eax
seta byte [esp + 0x13]
test eax, eax
je 0x10071f01
test cl, cl
je 0x10071efd
cmp eax, dword [esp + 0x1c]
je 0x10071efd
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret 0xc
test eax, eax
jne 0x10071f11
test cl, cl
je 0x10071f0d
mov ecx, dword [esp + 0x1c]
mov dword [edi], ecx
jmp 0x10071f1b
test eax, eax
je 0x10071f1b
test cl, cl
jne 0x10071f1b
mov dword [edi], 0
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x1a]
push edx
mov ecx, ebx
call fcn.1006d020
mov al, byte [esp + 0x12]
cmp al, 0x59
jne 0x10071f39
mov byte [esi + 0x20], 1
jmp 0x10071f41
cmp al, 0x4e
jne 0x10071f41
mov byte [esi + 0x20], 0
push 4
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10071f7a
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 3]
add ecx, eax
mov dword [esi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 4]
push edi
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10071fb6
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 8]
push edi
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10071ff2
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0xb]
add ecx, eax
mov dword [edi], ecx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
add esp, 4
cmp byte [esi + 0x20], 0
mov dword [esp + 0x18], eax
je 0x10072053
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x14]
push edi
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10072053
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x17]
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x18]
push edi
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x1007208f
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1b]
add ecx, eax
mov dword [edi], ecx
cmp byte [esi + 0x20], 0
je 0x100720f1
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x24], eax
call fcn.1006d020
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x28], eax
call fcn.1006d020
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x2c], eax
call fcn.1006d020
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x30], eax
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10072213
xor ecx, ecx
cmp dword [esi], ecx
jbe 0x10072213
cmp byte [esi + 0x20], 0
je 0x100721b9
mov edx, dword [esi + 0x24]
lea eax, [edx + ecx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov edx, eax
shl edx, 0x10
mov edi, eax
and edi, 0xff00
add edx, edi
mov edi, dword [esp + 0x1c]
movzx edi, byte [edi + 3]
shl edx, 8
add edx, edi
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esi + 0x28]
mov di, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx dx, byte [eax + 1]
shl di, 8
xor dx, di
mov word [eax], dx
mov eax, dword [esi + 0x2c]
lea eax, [eax + ecx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov edx, eax
shl edx, 0x10
mov edi, eax
and edi, 0xff00
add edx, edi
mov edi, dword [esp + 0x1c]
movzx edi, byte [edi + 3]
shl edx, 8
add edx, edi
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esi + 0x30]
mov di, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx dx, byte [eax + 1]
shl di, 8
xor dx, di
inc ecx
mov word [eax], dx
cmp ecx, dword [esi]
jb 0x10072162
cmp byte [esi + 0x20], 0
je 0x10072236
mov eax, dword [esi + 0x14]
push eax
call fcn.100791e9
mov ecx, dword [esi + 0x14]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x3c], eax
call fcn.1006d020
mov edx, dword [esi + 0x18]
push edx
call fcn.100791e9
mov ecx, dword [esi + 0x18]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x40], eax
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x1007228f
mov ecx, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x1007228f
jmp 0x10072270
movzx dx, byte [ecx + eax*2 + 1]
mov di, word [ecx + eax*2]
shl di, 8
xor dx, di
mov word [ecx + eax*2], dx
mov edx, dword [esi + 0x18]
inc eax
shr edx, 1
cmp eax, edx
jb 0x10072270
cmp byte [esi + 0x20], 0
je 0x10072556
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [esi + 8]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x54], eax
call fcn.1006d020
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
add edx, edx
add edx, edx
push edx
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10072344
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x10072344
lea esp, [esp]
mov edx, dword [esi + 0x54]
mov di, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx dx, byte [eax + 1]
shl di, 8
xor dx, di
mov word [eax], dx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
mov edx, eax
mov edi, eax
shl edx, 0x10
and edi, 0xff00
add edx, edi
mov edi, dword [esp + 0x18]
movzx edi, byte [edi + ecx*4 + 3]
shl edx, 8
shr eax, 8
and eax, 0xff00
add edx, edi
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, dword [esi + 8]
jb 0x100722f0
cmp byte [esi + 0x20], 0
je 0x10072556
xor edi, edi
mov dword [esp + 0x24], edi
cmp dword [esi + 8], edi
jbe 0x10072556
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x54]
movzx eax, word [edx + edi]
mov edx, dword [esp + 0x1c]
lea eax, [eax + eax*2]
mov ecx, dword [ebp + eax*4 + 0x40]
mov ebx, dword [ebp + eax*4 + 0x3c]
lea eax, [ebp + eax*4 + 0x38]
mov eax, dword [edx]
mov dword [esp + 0x20], ecx
xor ecx, ecx
add eax, ebx
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x28], ebx
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
add esp, 4
cmp byte [esp + 0x11], 0
lea edx, [ecx + ecx*2]
mov dword [ebp + edx*4 + 0x40], eax
je 0x100723ea
xor eax, eax
test ebx, ebx
jbe 0x100723dd
nop
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, ebx
jb 0x100723c0
mov eax, dword [esp + 0x20]
push eax
call fcn.1007af67
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + edi]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4 + 0x3c]
mov edx, dword [ecx]
add dword [eax], edx
cmp dword [ecx], 0
mov dword [esp + 0x20], 0
jbe 0x10072538
add ebx, ebx
add ebx, ebx
mov ecx, dword [esp + 0x30]
push 4
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x1007245c
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 0x10
mov edx, ecx
and edx, 0xff00
add eax, edx
mov edx, ecx
shr edx, 8
shl eax, 8
and edx, 0xff00
add eax, edx
shr ecx, 0x18
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x10072460
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x10072478
cmp byte [esp + 0x11], 0
je 0x1007247f
mov ecx, dword [esi + 0x10]
add ecx, eax
jmp 0x1007250f
cmp byte [esp + 0x11], 0
jne 0x10072495
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov dword [ebx + ecx], eax
jmp 0x10072520
mov edx, dword [esi + 0x30]
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x28]
push ecx
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x24]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x54]
push ecx
movzx ecx, word [edx + edi]
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp + ecx*4 + 0x40]
mov ecx, dword [esp + 0x38]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.10070fe0
test al, al
je 0x10072508
mov edx, dword [esi + 0x28]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov word [edx + ecx*2], ax
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x14]
mov word [edx + ecx*2], ax
mov edx, dword [esi + 0x54]
movzx eax, word [edx + edi]
lea eax, [eax + eax*2]
dec dword [ebp + eax*4 + 0x3c]
dec dword [esi + 4]
lea eax, [ebp + eax*4 + 0x3c]
jmp 0x10072523
mov ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x54]
movzx eax, word [edx + edi]
lea eax, [eax + eax*2]
mov edx, dword [ebp + eax*4 + 0x40]
mov dword [ebx + edx], ecx
add ebx, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [ecx]
jb 0x10072415
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 4
inc eax
add edi, 2
mov dword [esp + 0x24], eax
cmp eax, dword [esi + 8]
jb 0x10072365
mov ebx, dword [esp + 0x30]
push 4
push 0xffffffffffffffff
lea edi, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x10072592
mov eax, dword [edi]
mov edx, eax
mov ecx, eax
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
shr eax, 8
and eax, 0xff00
shl edx, 8
add edx, eax
movzx eax, byte [esi + 0xf]
add edx, eax
mov dword [edi], edx
cmp dword [edi], 0
je 0x1007274e
push 4
push 0xffffffffffffffff
lea ebp, [esi + 0x1c]
push ebp
mov ecx, ebx
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x100725d9
mov eax, dword [ebp]
mov ecx, eax
mov edx, eax
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1f]
add ecx, eax
mov dword [ebp], ecx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.1006d020
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x34], eax
call fcn.1006d020
mov eax, dword [edi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
mov ecx, dword [edi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x38], eax
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x100726fb
xor ecx, ecx
cmp dword [edi], ecx
jbe 0x100726fb
lea esp, [esp]
mov edx, dword [esi + 0x38]
mov bx, word [edx + ecx*2]
lea eax, [edx + ecx*2]
movzx dx, byte [eax + 1]
shl bx, 8
xor dx, bx
mov word [eax], dx
mov eax, dword [esi + 0x34]
lea edx, [eax + ecx*4]
mov eax, dword [edx]
mov ebx, eax
shl ebx, 0x10
mov ebp, eax
and ebp, 0xff00
add ebx, ebp
movzx ebp, byte [edx + 3]
shl ebx, 8
add ebx, ebp
shr eax, 8
and eax, 0xff00
add ebx, eax
mov dword [edx], ebx
mov edx, dword [esi + 0x58]
mov eax, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
mov ebx, eax
shl ebx, 0x10
mov ebp, eax
and ebp, 0xff00
add ebx, ebp
movzx ebp, byte [edx + 3]
shl ebx, 8
shr eax, 8
add ebx, ebp
and eax, 0xff00
add ebx, eax
inc ecx
mov dword [edx], ebx
cmp ecx, dword [edi]
jb 0x10072680
mov ebx, dword [esp + 0x30]
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push eax
call fcn.100791e9
mov ecx, dword [edi]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x44], eax
call fcn.1006d020
cmp byte [esp + 0x38], 0
je 0x1007274e
mov esi, dword [esi + 0x44]
xor eax, eax
test dword [edi], 0xfffffffe
jbe 0x1007274e
mov edi, edi
movzx dx, byte [esi + eax*2 + 1]
mov cx, word [esi + eax*2]
shl cx, 8
xor dx, cx
mov word [esi + eax*2], dx
mov edx, dword [edi]
inc eax
shr edx, 1
cmp eax, edx
jb 0x10072730
mov eax, dword [esp + 0x18]
push eax
call fcn.1007af67
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc