Function at 0x28d80
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 0x78]
push edi
mov edi, 0x80000000
cmp eax, edi
je 0x28dab
mov eax, dword [ebp + 8]
cmp dword [eax + 0x104], edi
je 0x28dab
xor edx, edx
xor eax, eax
jmp 0x28db2
mov eax, 1
xor edx, edx
cmp eax, edx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x120], eax
jne 0x29779
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
mov dword [ebx + 0x120], 1
jbe 0x28df0
mov eax, dword [ebx + 0xfc]
lea ebx, [ebx]
cmp dword [eax], edi
je 0x28dea
mov dword [ebx + 0x120], edx
add eax, 4
dec ecx
jne 0x28de0
cmp dword [ebx + 0x120], edx
jne 0x29779
mov ecx, dword [ebp + 0x10]
cmp ecx, edx
mov dword [ebx + 0x120], 1
jbe 0x28e23
mov eax, dword [ebx + 0x100]
cmp dword [eax], edi
je 0x28e1d
mov dword [ebx + 0x120], edx
add eax, 4
dec ecx
jne 0x28e13
cmp dword [ebx + 0x120], edx
jne 0x29779
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeSaveFloatingPointState]
mov edx, dword [ebx + 0xf4]
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ebx + 0x14c]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0x104]
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ecx
call fcn.00028650
fstp dword [ebp - 0x34]
mov eax, dword [esi + 0x78]
push eax
call fcn.00028650
mov edx, dword [ebx + 0x148]
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x14]
mov edi, dword [edx + 0x18]
mov dword [ebp - 0x28], ecx
xor ecx, ecx
cmp eax, edi
mov ax, word [ebx + 0x78]
setne cl
fmul dword [ebp - 0x34]
fstp dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
xor ecx, ecx
cmp ax, 3
sete cl
cmp ax, 0xfffe
mov dword [ebp - 0x34], ecx
jne 0x28ec1
mov ecx, 4
mov edi, 0x38010
lea esi, [ebx + 0x90]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x28ec1
mov eax, 1
jmp 0x28ec3
xor eax, eax
or eax, dword [ebp - 0x34]
je 0x28ed8
mov eax, dword [ebp - 0x30]
xor esi, esi
cmp eax, esi
jne 0x28ed8
mov eax, 1
jmp 0x28edc
xor esi, esi
xor eax, eax
or dword [ebp - 0x28], eax
je 0x28eed
fld dword [ebp - 0x14]
fmul qword [0x15430]
fstp dword [ebp - 0x14]
movzx eax, word [ebx + 0x86]
cmp dword [ebx + 8], 3
mov dword [ebp - 0x24], eax
jne 0x28f07
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx + 0x5a]
mov dword [ebp - 0x24], eax
cmp eax, 0x18
je 0x28f15
cmp eax, 0x20
je 0x28f15
xor eax, eax
jmp 0x28f1a
mov eax, 1
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp ecx, edi
je 0x28f41
cmp ecx, 2
ja 0x28f41
cmp edi, 2
ja 0x28f41
cmp dword [ebx + 0xd4], esi
jne 0x28f41
cmp eax, esi
mov dword [ebp - 0x20], 1
je 0x28f44
mov dword [ebp - 0x20], esi
cmp dword [ebx + 0xd0], esi
je 0x28f57
mov eax, dword [edx + 0x5c]
cmp eax, dword [edx + 0x60]
je 0x28f57
mov dword [ebp - 0x20], esi
cmp ecx, esi
mov dword [ebp - 8], esi
jbe 0x28fd3
mov edi, edi
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
jbe 0x28fc2
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
nop
mov edx, dword [ebx + 0x100]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00028650
fstp dword [ebp - 0x34]
mov edx, dword [edi]
push edx
call fcn.00028650
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0xfc]
mov eax, dword [eax + edx*4]
fmul dword [ebp - 0x34]
push eax
fstp dword [ebp - 0x34]
call fcn.00028650
fmul dword [ebp - 0x34]
mov eax, dword [ebp + 0x10]
add esi, 4
fst dword [ebp - 0x10]
add edi, 4
fmul dword [ebp - 0x14]
inc ecx
cmp ecx, eax
fstp dword [esi - 4]
jb 0x28f70
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
inc eax
cmp eax, ecx
mov dword [ebp - 8], eax
jb 0x28f60
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x50b8]
test eax, eax
je 0x2912d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [ebx + 0xf4]
jbe 0x2906a
mov esi, ecx
xor edx, edx
cmp edi, 4
jl 0x2904e
lea ecx, [edi - 4]
shr ecx, 2
inc ecx
lea edx, [ecx*4]
jmp 0x29010
fld dword [eax]
add eax, 4
fmul dword [0x15428]
add eax, 4
add eax, 4
add eax, 4
dec ecx
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fmul dword [0x15428]
fstp dword [eax - 0xc]
fld dword [eax - 8]
fmul dword [0x15428]
fstp dword [eax - 8]
fld dword [eax - 4]
fmul dword [0x15428]
fstp dword [eax - 4]
jne 0x29010
cmp edx, edi
jae 0x29067
mov ecx, edi
sub ecx, edx
fld dword [eax]
add eax, 4
dec ecx
fmul dword [0x15428]
fstp dword [eax - 4]
jne 0x29056
dec esi
jne 0x28ff3
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xf4]
xor esi, esi
cmp ecx, 4
jl 0x290fe
add ecx, 0xfffffffc
shr ecx, 2
inc ecx
lea edx, [edi*4]
lea esi, [ecx*4]
fld dword [eax + 8]
fmul dword [0x15424]
fstp dword [eax + 8]
fld dword [eax + 0xc]
fmul dword [0x15424]
fstp dword [eax + 0xc]
add eax, edx
fld dword [eax + 8]
fmul dword [0x15424]
fstp dword [eax + 8]
fld dword [eax + 0xc]
fmul dword [0x15424]
fstp dword [eax + 0xc]
add eax, edx
fld dword [eax + 8]
fmul dword [0x15424]
fstp dword [eax + 8]
fld dword [eax + 0xc]
fmul dword [0x15424]
fstp dword [eax + 0xc]
add eax, edx
fld dword [eax + 8]
fmul dword [0x15424]
fstp dword [eax + 8]
fld dword [eax + 0xc]
fmul dword [0x15424]
fstp dword [eax + 0xc]
add eax, edx
dec ecx
jne 0x29093
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jae 0x2912d
lea edx, [edi*4]
sub ecx, esi
mov edi, edi
fld dword [eax + 8]
fmul dword [0x15424]
fstp dword [eax + 8]
fld dword [eax + 0xc]
fmul dword [0x15424]
fstp dword [eax + 0xc]
add eax, edx
dec ecx
jne 0x29110
mov eax, dword [ebx + 0xf4]
mov dword [ebx + 0x120], 1
mov ecx, dword [section.PAGEDATA]
test ecx, ecx
je 0x29372
test edi, edi
jbe 0x294b3
mov ecx, dword [ebp + 0x10]
lea edx, [eax + 8]
lea eax, [eax + ecx*4 + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ecx - 1]
shr eax, 2
inc eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp + 0x14], 0
jbe 0x29302
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
add esi, 0x10
dec eax
shr eax, 1
inc eax
mov edi, 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffffd
mov dword [esi - 0xc], eax
xor eax, eax
lea edx, [edi - 1]
mov dword [esi - 0x10], edx
mov word [esi], ax
mov word [esi + 4], ax
mov word [esi + 8], ax
mov word [esi + 0xc], ax
mov word [esi + 2], ax
mov word [esi + 6], ax
mov word [esi + 0xa], ax
mov word [esi + 0xe], ax
fld dword [ebx - 8]
fmul dword [0x15420]
call fcn.00012900
mov word [esi], ax
cmp edi, dword [ebp + 0xc]
jae 0x291fc
mov ecx, dword [ebp - 8]
fld dword [ecx - 8]
fmul dword [0x15420]
call fcn.00012900
mov word [esi + 2], ax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
add eax, 0xfffffffe
cmp eax, ecx
jae 0x29235
fld dword [ebx - 4]
fmul dword [0x15420]
call fcn.00012900
mov word [esi + 4], ax
cmp edi, dword [ebp + 0xc]
jae 0x29235
mov edx, dword [ebp - 8]
fld dword [edx - 4]
fmul dword [0x15420]
call fcn.00012900
mov word [esi + 6], ax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
dec eax
cmp eax, ecx
jae 0x2926a
fld dword [ebx]
fmul dword [0x15420]
call fcn.00012900
mov word [esi + 8], ax
cmp edi, dword [ebp + 0xc]
jae 0x2926a
mov eax, dword [ebp - 8]
fld dword [eax]
fmul dword [0x15420]
call fcn.00012900
mov word [esi + 0xa], ax
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 4], ecx
jae 0x2929e
fld dword [ebx + 4]
fmul dword [0x15420]
call fcn.00012900
mov word [esi + 0xc], ax
cmp edi, dword [ebp + 0xc]
jae 0x2929e
mov edx, dword [ebp - 8]
fld dword [edx + 4]
fmul dword [0x15420]
call fcn.00012900
mov word [esi + 0xe], ax
cmp word [esi], 0
jne 0x292d5
cmp word [esi + 4], 0
jne 0x292d5
cmp word [esi + 8], 0
jne 0x292d5
cmp word [esi + 0xc], 0
jne 0x292d5
cmp word [esi + 2], 0
jne 0x292d5
cmp word [esi + 6], 0
jne 0x292d5
cmp word [esi + 0xa], 0
jne 0x292d5
cmp word [esi + 0xe], 0
je 0x292db
inc dword [ebp + 0x14]
add esi, 0x20
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
shl eax, 3
add edx, eax
add ebx, eax
mov eax, dword [ebp - 0x2c]
add edi, 2
dec eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], eax
jne 0x291a1
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x29309
mov edx, 1
jmp 0x29319
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x120], 0
mov esi, dword [ebp - 0xc]
mov eax, edx
shl eax, 5
test edx, edx
mov dword [esi + 8], eax
jbe 0x2933b
lea ecx, [eax + esi]
jmp 0x29330
mov edi, dword [ecx - 0x20]
mov dword [ecx], edi
sub ecx, 0x20
dec edx
jne 0x29330
mov edx, dword [ebp - 0x1c]
lea ecx, [esi + eax + 0x20]
mov esi, dword [ebp - 0x18]
mov eax, 0x10
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
add esi, eax
add edx, eax
mov eax, dword [ebp - 0x30]
add ecx, 4
dec eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], eax
jne 0x29174
jmp 0x294b3
test edi, edi
mov dword [ebp - 4], 0
jbe 0x294b3
mov esi, eax
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, eax
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], eax
jbe 0x2945e
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 4]
mov dword [ecx - 0x10], eax
mov dword [ecx - 0xc], edx
mov dword [ebp - 0x2c], 1
xor edi, edi
mov dword [ebp - 0x30], esi
lea ebx, [ebx]
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
add eax, edi
cmp eax, ebx
mov dword [ecx], 0
jae 0x293fc
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
add eax, edx
cmp eax, ebx
jae 0x293fc
fld dword [esi]
fst dword [ecx]
fld dword [0x153f0]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x293fc
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp + 0x10]
lea eax, [ebx*4]
inc edx
add esi, eax
add ecx, 4
cmp edx, 2
jb 0x293c2
mov esi, dword [ebp - 0x30]
inc edi
add esi, 4
cmp edi, 2
mov dword [ebp - 0x30], esi
jb 0x293c0
mov eax, dword [ebp - 0x2c]
test eax, eax
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x14]
jne 0x29437
inc edi
add ecx, 0x20
mov dword [ebp + 0x14], edi
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
lea edx, [ebx*8]
add esi, edx
mov edx, dword [ebp + 0xc]
add eax, 2
cmp eax, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esi
jb 0x293a5
test edi, edi
jne 0x29465
mov edi, 1
jmp 0x29472
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x120], 0
mov edx, dword [ebp - 0xc]
mov eax, edi
shl eax, 5
test edi, edi
mov dword [edx + 8], eax
jbe 0x2948f
lea ecx, [eax + edx]
mov esi, dword [ecx - 0x20]
mov dword [ecx], esi
sub ecx, 0x20
dec edi
jne 0x29484
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x10]
lea edx, [edx + eax + 0x20]
mov eax, dword [ebp - 4]
add eax, 2
add esi, 8
cmp eax, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], esi
jb 0x29386
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp ecx, eax
mov dword [ebp - 8], ecx
ja 0x294c3
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10c]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jbe 0x2976f
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x2957f
cmp dword [ebp + 0xc], 1
jne 0x2953c
cmp dword [ebp + 0x10], 2
jne 0x2953c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x100]
mov eax, dword [edx + ebx*4]
push eax
call fcn.00028650
fstp dword [ebp - 0x34]
mov edx, dword [ecx + 0xf8]
mov eax, dword [edx + ebx*4]
push eax
call fcn.00028650
fmul dword [ebp - 0x34]
mov edx, dword [ecx + 0xfc]
mov eax, dword [edx]
push eax
fstp dword [ebp - 0x34]
call fcn.00028650
fmul dword [ebp - 0x34]
fmul dword [ebp - 0x14]
fstp dword [ebp - 0x10]
jmp 0x29582
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xfc]
mov eax, dword [edx + ebx*4]
push eax
call fcn.00028650
fstp dword [ebp - 0x34]
mov edx, dword [ecx + 0xf8]
mov eax, dword [edx + ebx*4]
push eax
call fcn.00028650
fmul dword [ebp - 0x34]
mov edx, dword [ecx + 0x100]
mov eax, dword [edx]
push eax
fstp dword [ebp - 0x34]
call fcn.00028650
fmul dword [ebp - 0x34]
fmul dword [ebp - 0x14]
fstp dword [ebp - 0x10]
jmp 0x29582
mov ecx, dword [ebp + 8]
fld dword [ebp - 0x10]
mov dword [ebp - 0x30], 0x7fffffbf
fmul dword [0x153fc]
fstp dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0x4f000000
jge 0x295a4
fld dword [ebp - 0x34]
fistp dword [ebp - 0x30]
mov edx, dword [ecx + 0x110]
mov eax, dword [ebp - 0x30]
mov dword [edx + ebx*4], eax
mov ecx, dword [ecx + 0x110]
mov esi, dword [ecx + ebx*4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
xor edx, edx
cmp esi, 0x8000
setl dl
or ecx, edx
test eax, eax
mov dword [ebp - 0x18], ecx
je 0x2972e
cmp dword [ebp - 0x24], 8
jne 0x296ac
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x29647
mov ecx, 1
mov edi, dword [ebp + 0x14]
mov eax, 0x100
lea esi, [edi + 0x300]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fld dword [ebp - 0x10]
fmulp st(1)
fst dword [ebp - 0xc]
fst dword [edi + ecx*4 + 0x300]
fadd dword [ebp - 0xc]
sub esi, 4
mov ebx, dword [edi + ecx*4 + 0x300]
xor ebx, 0x80000000
mov dword [esi], ebx
inc ecx
cmp ecx, 0x80
jne 0x29609
fst dword [ebp - 0xc]
fistp dword [edi]
mov ebx, dword [ebp - 0xc]
xor ebx, 0x80000000
mov dword [edi + 0x100], ebx
mov ebx, dword [ebp - 4]
jmp 0x29695
mov ecx, 1
mov edi, dword [ebp + 0x14]
mov eax, 0x100
lea esi, [edi + 0x300]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fld dword [ebp - 0x10]
fmulp st(1)
fst dword [ebp - 0xc]
fist dword [edi + ecx*4 + 0x300]
fadd dword [ebp - 0xc]
sub esi, 4
mov eax, dword [edi + ecx*4 + 0x300]
neg eax
mov dword [esi], eax
inc ecx
cmp ecx, 0x80
jne 0x29668
fistp dword [edi]
mov eax, dword [edi]
neg eax
mov dword [edi + 0x100], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x300], 0
add eax, 0x500
jmp 0x2972b
mov ecx, 1
mov edi, dword [ebp + 0x14]
fld dword [ebp - 0x10]
fist dword [edi]
fadd dword [ebp - 0x10]
mov al, byte [edi]
mov byte [edi + ecx], al
inc ecx
cmp ecx, 0x100
jne 0x296b7
fst dword [ebp - 0xc]
lea esi, [edi + 0x500]
mov ecx, 1
fist dword [edi + ecx*4 + 0x100]
fadd dword [ebp - 0xc]
sub esi, 4
mov eax, dword [edi + ecx*4 + 0x100]
neg eax
inc ecx
mov dword [esi], eax
cmp ecx, 0x80
jne 0x296d8
fistp dword [edi + 0x504]
mov eax, dword [edi + 0x504]
mov ebx, dword [ebp - 0x10]
neg eax
mov dword [edi + 0x500], ebx
mov dword [esi - 4], eax
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
mov byte [eax], 0
mov dword [eax + 0x100], 0
add eax, 0x508
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 8]
inc ebx
cmp ebx, eax
mov dword [ebp - 4], ebx
jb 0x294e2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x2976f
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 8]
xor ecx, ecx
lea esp, [esp]
mov eax, dword [edx + 0x110]
mov edi, dword [eax + ecx*4]
cmp edi, 0x7fff
lea eax, [eax + ecx*4]
jle 0x2976a
mov dword [eax], 0x7fff
inc ecx
cmp ecx, esi
jb 0x29750
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeRestoreFloatingPointState]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10