Function at 0x2996000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [ebp + 0xc]
mov edi, 0xfffffffe
nop word [eax + eax]
cmp word [eax + edi + 2], 0
lea edi, [edi + 2]
jne 0x2996020
sar edi, 1
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push edi
push eax
push 0
call dword [0x29c97f4]
mov ebx, dword [esp + 0x44]
lea eax, [ebx + ebx]
test ebx, ebx
mov esi, 0xffffffff
cmovs eax, esi
push eax
call fcn.02989550
add esp, 4
lea ecx, [esp + 0x44]
push ecx
push ebx
mov dword [esp + 0x84], eax
push eax
push edi
push dword [ebp + 0xc]
push 0
call dword [0x29c97f4]
movaps xmm0, xmmword [0x29bdb80]
movups xmmword [esp + 0x48], xmm0
movsd xmm0, qword [0x29bdb90]
movsd qword [esp + 0x58], xmm0
movaps xmm0, xmmword [0x29bdba0]
movups xmmword [esp + 0x60], xmm0
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp + 0x90], 0
mov ecx, dword [esp + 0x90]
cmp ecx, 0x27
ja 0x2996126
nop dword [eax]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x90]
movzx edx, byte [esp + edx + 0x48]
lea edi, [ecx - 0x4d189d2d]
mov ebx, edx
not ebx
or ebx, edi
lea eax, [edx + ebx]
inc eax
and edi, edx
mov ebx, eax
and ebx, edi
xor edi, eax
lea eax, [ecx + edx]
add eax, 0xb2e762d3
lea ecx, [edi + ebx*2]
sub eax, ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xac]
add al, 0x3b
mov ecx, dword [esp + 0x90]
mov byte [esp + ecx + 0x48], al
inc dword [esp + 0x90]
mov eax, dword [esp + 0x90]
cmp eax, 0x28
jb 0x29960c0
lea edi, [esp + 0x90]
lea eax, [esp + 0x48]
mov ecx, 7
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esp + 0xac]
xor ecx, ecx
mov eax, dword [esp + 4]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x44]
mov ecx, eax
add ecx, 0xd
lea eax, [eax + eax + 0x1a]
cmovns esi, eax
push esi
call fcn.02989550
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x7c]
movzx ecx, word [edx]
test cx, cx
je 0x2996191
add edx, 2
mov eax, esi
nop dword [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x2996180
mov word [eax], 0
movzx ecx, word [esp + 0x90]
test cx, cx
je 0x29961c1
lea edx, [esp + 0x92]
nop word [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x29961b0
mov word [eax], 0
lea eax, [esp + 0x18]
push 0x60
push 3
push 0x120089
push eax
push esi
call fcn.029bac20
add esp, 0x14
not eax
shr eax, 0x1f
mov eax, dword [eax*4 + 0x29c2584]
mov ecx, 0xf6a19480
xor ecx, dword [case.0x29961f7.2]
add eax, ecx
inc eax
jmp eax
add byte [eax], al
mov byte [esi + 0x180], 0xc2
mov byte [esi + 0x181], 0x21
add dword [ecx], 0xc6210000
xchg byte [edx - 0x4fffffff], al
add dword [ecx], 0xc6210000
xchg byte [edx - 0x4fffffff], al
mov byte [esi + 0x183], 0x23
mov byte [esi + 0x184], 0xb0
mov byte [esi + 0x185], 0xdd
mov byte [esi + 0x186], 0x43
mov byte [esi + 0x187], 0xdf
mov byte [esi + 0x188], 0x40
mov byte [esi + 0x189], 0xd9
mov byte [esi + 0x18a], 0x55
mov byte [esi + 0x18b], 0xdb
mov byte [esi + 0x18c], 0xc
mov byte [esi + 0x18d], 0xd5
mov byte [esi + 0x18e], 0x4e
mov byte [esi + 0x18f], 0xd7
mov byte [esi + 0x190], 0x5b
mov byte [esi + 0x191], 0xd1
mov byte [esi + 0x192], 0xd0
mov byte [esi + 0x193], 0xd3
mov dword [esi + 0x198], 0
mov dword [esi + 0x194], 0
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x2c]
cmp eax, 0x1c
jae 0x299a505
jmp 0x299a4b4
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x2c]
movzx ecx, byte [esi + ecx + 0x180]
mov edx, eax
and edx, 0x33bbff7b
xor eax, 0x33bbff7b
lea eax, [eax + edx*2]
mov edx, eax
add edx, ecx
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esi + 0x398], edx
mov eax, dword [esi + 0x398]
add al, 0xa3
mov ecx, dword [esi + 0x2c]
mov byte [esi + ecx + 0x180], al
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
cmp eax, 0x1c
jb 0x299a4b4
jmp 0x299a505
lea ebx, [esi + 0x39c]
lea eax, [esi + 0x180]
mov edi, ebx
mov ecx, 5
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esi + 0x3b0]
lea eax, [esi + 0x194]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub esp, 4
mov dword [esp], eax
call fcn.02998c90
add esp, 4
add eax, 0xa
add eax, eax
mov ecx, 0xffffffff
cmovb eax, ecx
sub esp, 4
mov dword [esp], eax
call fcn.02989550
add esp, 4
mov dword [esi + 0x60], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x60]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0298b610
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0298b610
add esp, 8
mov eax, dword [esi + 0x60]
sub esp, 0x14
lea ecx, [esi + 0x5c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0x60
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x120089
call fcn.029bac20
add esp, 0x14
not eax
shr eax, 0x1f
mov ecx, dword [esi + 0x200]
mov dword [ecx], eax
mov eax, dword [esi + 0x204]
mov eax, dword [eax]
mov ecx, dword [ecx]
mov eax, dword [eax + ecx*4]
mov ecx, dword [case.0x29961f7.8]
xor ecx, 0xe19dda4c
sub eax, ecx
jmp eax
wait
add cl, byte [edi]
adc dword [esp + 0x20], eax
movaps xmm0, xmmword [0x29bde40]
movups xmmword [esp + 0x30], xmm0
lea eax, [esp + 0x40]
mov word [esp + 0x40], 0x9596
mov dword [esp + 0x46], 0
mov dword [esp + 0x42], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x29
ja 0x299aad2
nop word cs:[eax + eax]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x20]
lea esi, [ecx + edx]
add ecx, 0x99
and ecx, edx
add ecx, ecx
sub esi, ecx
add esi, 0x96f08f99
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x70]
add cl, 0xd1
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x2a
jb 0x299aa90
lea edi, [esp + 0x70]
lea edx, [esp + 0x20]
mov ecx, 8
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x90]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x299ab00
lea ecx, [eax + 0x22]
cmp eax, 0xffffffdd
mov eax, 0xffffffff
cmovge eax, ecx
push eax
call fcn.02989550
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x299ab51
add edi, 2
mov eax, esi
nop word cs:[eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x299ab40
mov word [eax], 0
movzx ecx, word [esp + 0x70]
test cx, cx
je 0x299ab81
lea edx, [esp + 0x72]
nop word cs:[eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x299ab70
mov word [eax], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x29bde50]
movups xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [0x29bde60]
movups xmmword [esp + 0x30], xmm0
movaps xmm0, xmmword [0x29bde70]
movups xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [0x29bde80]
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0x4b545508
mov dword [esp + 0x64], 0
mov dword [esp + 0x67], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x4a
ja 0x299ac3d
nop dword [eax]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax - 0x70b14753]
add eax, 0xad
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
add al, 0x45
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x4b
jb 0x299ac00
lea eax, [esp + 8]
push eax
push 0x299a390
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0299b6e0
add esp, 0x10
mov ebx, eax
mov eax, dword [0x29c2eac]
mov ecx, 0x3bc5fc70
xor ecx, dword [0x29c2eb4]
add eax, ecx
inc eax
jmp eax
enter 0xffffffffffffe0ff, 0xffffffffffffff8b
xchg esi, eax
in al, 0
add byte [eax], al
xor edx, 0x2d488bd8
mov edi, dword [esi + 0x17c]
mov edx, dword [edi + edx*4]
mov edi, dword [0x29c31a4]
xor edi, 0x9972f1df
sub edx, edi
jmp edx
xchg byte [ecx + eax - 0x71750000], cl
mov byte [ecx], al
add byte [eax], al
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x29c3190]
xor ecx, 0x1f9d7fe5
sub eax, ecx
jmp eax
test edi, edi
sete cl
mov dword [esi + 0x180], 1
mov edx, dword [esi + 0x184]
mov ebx, dword [esi + 0x180]
mov edx, dword [edx + ebx*4]
mov ebx, dword [0x29c319c]
xor ebx, 0x11394185
sub edx, ebx
jmp edx
or dword [ebx - 0x63ceabf3], 0x1af18102
sub byte [edx - 0x37d645], ah
loopne 0x299bc72
rol dword [ebx - 0x7176fe1f], 0xd4
add dword [eax], eax
add byte [ebx + 0x1d886], cl
add byte [ebx + 0x1d48e], cl
add byte [eax], al
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x29c3114]
xor eax, 0x5523a707
add byte [eax], al
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x29c3114]
xor eax, 0x5523a707
sub ecx, eax
xor eax, eax
jmp ecx
imul edi, dword [0xb4868b48], 0
add byte [eax], al
dec eax
mov eax, dword [esi + 0xb4]
xor eax, 0x3dd48917
mov ecx, dword [esi + 0x114]
adc al, 1
add byte [eax], al
adc al, 1
add byte [eax], al
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x29c3260]
xor ecx, 0xb0c19ed9
sub eax, ecx
jmp eax
cmp al, 0x24
call fcn.02989560
add esp, 4
mov dword [esi + 0x1b0], 0
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0x1b0]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x29c314c]
xor ecx, 0x3db58a6c
sub eax, ecx
jmp eax
add dword [eax], eax
add byte [ebx + 0x158b8a0c], cl
fdiv dword [ecx]
pushfd
add al, byte [ecx + 0x5ffea6f2]
pop es
sub ecx, edx
jmp ecx
add byte [eax], al
add byte [ebx + 0x1e886], cl
add byte [ebx + 0x1e48e], cl
add byte [ebx + 0xd8b8804], cl
cld
xor byte [edx + eax - 0x30830e7f], bl
lodsd eax, dword [esi]
sub ebp, dword [ecx]
enter 0x5e8b, 0xc
jmp eax
pop ebp
sub esp, 4
mov dword [esp], 0x4800
call fcn.02989550
add esp, 4
mov dword [esi + 0x10], eax
mov edx, dword [esi + 0x10]
push esi
adc byte [ecx], dh
ror byte [ecx + 0x1200b9d7], 0
add bl, dh
stosd dword es:[edi], eax
push esi
adc byte [ecx], dh
ror byte [ecx + 0x1200b9d7], 0
add bl, dh
stosd dword es:[edi], eax
add edx, 0x4800
xor eax, eax
mov edi, edx
xor ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [esi + 0x38]
sub esp, 4
mov dword [esp], eax
call fcn.02998c90
add esp, 4
add eax, eax
mov word [esi + 0x30], ax
mov eax, dword [esi + 0x30]
add eax, 2
mov word [esi + 0x32], ax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], eax
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x44]
inc esp
inc esp
mov byte [esi + 0x58], 7
mov byte [esi + 0x59], 0
mov byte [esi + 0x5a], 1
mov byte [esi + 0x5b], 2
mov dword [esi + 0x60], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
cmp eax, 0x10
adc byte [ebx + 0x3a], dh
adc byte [ebx + 0x3a], dh
jmp 0x299bffe
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x18]
movzx edx, byte [esi + edx + 0x58]
add eax, 0xd887af2b
xor eax, edx
mov dword [esi + 0x254], eax
mov eax, dword [esi + 0x254]
add al, byte [eax]
add byte [ebx + edx*8], al
add al, byte [eax]
add byte [ebx + edx*8], al
mov edx, dword [esi + 0x18]
mov byte [esi + edx + 0x58], al
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
cmp eax, 0x10
jb 0x299bffe
jmp 0x299c036
mov edx, dword [esi + 0x58]
mov edi, dword [0x29ca800]
cmp edi, 0
jne 0x299c049
jmp 0x299c0f4
stosd dword es:[edi], eax
add byte [eax], al
add byte [ecx + 0x909e], cl
add byte [ebx - 0x6357fbe3], cl
add dh, byte [ecx]
rol byte [ecx - 0x389a3cc4], 0xa8
mov ch, 0x75
push cs
mov dword [esi + 0x90], ebx
mov ebx, dword [0x29ca804]
xor eax, eax
cmp dword [ebx + eax*8], 0xb5a8c765
jne 0x299c06e
mov eax, dword [ebx + eax*8 + 4]
cmp eax, edx
je 0x299c0f4
mov byte [eax], al
add byte [eax], al
mov byte [eax], al
add byte [eax], al
jmp 0x299c077
add eax, 1
cmp eax, edi
je 0x299c0f2
jmp 0x299c057
mov edi, dword [0x29ca808]
xor edx, edx
lea ebx, [esi + 0x268]
lea edx, [esi + 0x30]
sub esp, 0x38
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], 0xb
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
adc al, 0
add byte [eax], al
add bh, al
inc esp
and al, 0x18
add byte [eax], al
add byte [eax], al
adc al, 0
add byte [eax], al
add bh, al
inc esp
and al, 0x18
add byte [eax], al
add byte [eax], al
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x90]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x4800
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 1
call fcn.029b7d60
add esp, 0x38
jmp 0x299c0f4
jmp 0x299c0f4
mov eax, dword [esi + 0x98]
xor eax, 0x23015a6c
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x29c3238]
xor ecx, 0x61ef49a1
sub eax, ecx
jmp eax
mov dword [esi + 0x32], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], eax
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x44]
mov byte [esi + 0x68], 7
mov byte [esi + 0x69], 0
mov byte [esi + 0x6a], 1
add esi, eax
inc esi
imul eax, dword [edx], 0xffffffc7
inc esi
jo 0x299c339
add byte [eax], al
add bh, al
inc esi
insb byte es:[edi], dx
add byte [eax], al
add byte [eax], al
add esi, eax
inc esi
imul eax, dword [edx], 0xffffffc7
inc esi
jo 0x299c339
add byte [eax], al
add bh, al
inc esi
insb byte es:[edi], dx
add byte [eax], al
add byte [eax], al
mov dword [esi + 0x74], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
jae 0x299c393
jmp 0x299c35b
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x1c]
movzx ecx, byte [esi + ecx + 0x68]
add eax, 0xd887af2b
xor eax, ecx
mov dword [esi + 0x258], eax
mov eax, dword [esi + 0x258]
add al, 0xd3
mov ecx, dword [esi + 0x1c]
mov byte [esi + ecx + 0x68], al
mov eax, dword [esi + 0x1c]
inc eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
jb 0x299c35b
jmp 0x299c393
mov eax, dword [esi + 0x68]
mov edi, dword [0x29ca800]
cmp edi, 0
jne 0x299c3a6
jmp 0x299c451
mov dword [esi + 0x94], ebx
mov ebx, dword [0x29ca804]
xor ecx, ecx
cmp dword [ebx + ecx*8], 0xb5a8c765
jne 0x299c3cb
mov ecx, dword [ebx + ecx*8 + 4]
cmp ecx, eax
je 0x299c451
jmp 0x299c3d4
add ecx, 1
cmp ecx, edi
je 0x299c44f
jmp 0x299c3b4
mov edi, dword [0x29ca808]
xor eax, eax
lea ebx, [esi + 0x268]
push 0x8d000002
inc esi
xor byte [ebx + 0xc8938ec], al
and al, 0x89
jl 0x299c412
add al, 0xc7
inc esp
and al, 8
or eax, dword [eax]
add byte [eax], al
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x4800
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 1
call fcn.029b7d60
add esp, 0x38
jmp 0x299c451
jmp 0x299c451
xor ecx, ecx
test eax, eax
setns al
mov dword [esi + 0x21c], 1
mov edx, dword [esi + 0x220]
mov edi, dword [esi + 0x21c]
mov edx, dword [edx + edi*4]
mov edi, dword [0x29c30a0]
xor edi, 0xd26b7e07
sub edx, edi
jmp edx