Function at 0x100125b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
push edi
mov ebp, dword [edi + 0x130]
call fcn.10002b40
push edi
mov dword [esp + 0x44], eax
call fcn.10002b50
mov esi, dword [edi + 0x8c]
mov dword [esp + 0x48], eax
mov ecx, dword [edi + 0x28]
mov eax, 0xa
sub eax, esi
add esp, 8
lea eax, [eax + eax*4]
shl eax, 1
sub eax, ecx
mov dword [esp + 0x18], eax
call fcn.10004e70
fild dword [edi + 0xa0]
mov dword [esp + 0x38], eax
mov byte [esp + 0x44], 1
mov byte [esp + 0x45], 5
mov byte [esp + 0x46], 3
fmul qword [0x1002e248]
mov byte [esp + 0x47], 2
mov byte [esp + 0x48], 4
mov byte [esp + 0x49], 0
mov byte [esp + 0x4a], 3
fadd qword [0x1002e1c0]
fcom qword [0x100308e8]
fnstsw ax
test ah, 0x41
jne 0x10012646
fstp st(0)
fld qword [0x100308e8]
call fcn.100239a0
mov byte [esp + 0x17], al
mov eax, dword [edi + 0x130]
xor edx, edx
mov cl, byte [eax + 0x7ce0]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x16], cl
mov ecx, dword [eax + 0xcec8]
test cl, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
je 0x10012685
test cl, 8
mov dword [esp + 0x28], 1
je 0x10012689
mov dword [esp + 0x28], edx
mov ecx, dword [edi + 0x70]
mov esi, dword [eax + 0x21d28]
mov eax, dword [eax + 0x21d2c]
mov dl, byte [edi + 0x70]
shr ecx, 1
mov dword [esp + 0x30], esi
mov esi, dword [edi + 0x88]
mov dword [esp + 0x34], eax
mov al, byte [edi + 0xc8]
and dl, 1
and cl, 1
xor bl, bl
mov byte [esp + 0x14], dl
test esi, esi
mov byte [esp + 0x13], cl
mov byte [esp + 0x50], 0
mov byte [esp + 0x15], al
je 0x100126e3
cmp esi, 3
je 0x100126db
mov eax, dword [edi + 0x94]
jmp 0x100126e6
mov eax, dword [edi + 0x90]
jmp 0x100126e6
mov eax, dword [edi + 0x44]
test esi, esi
mov dword [esp + 0x20], eax
jl 0x100126fd
cmp esi, 7
jae 0x100126fd
mov al, byte [esp + esi + 0x44]
mov byte [esp + 0x12], al
jmp 0x10012702
mov byte [esp + 0x12], 0
mov eax, dword [ebp + 0x21d30]
test al, 2
je 0x10012750
mov esi, 0x1fe
cmp dword [ebp + 0x21d38], esi
jle 0x1001271f
mov dword [ebp + 0x21d38], esi
mov esi, 0xfffffe02
cmp dword [ebp + 0x21d38], esi
jge 0x10012732
mov dword [ebp + 0x21d38], esi
mov esi, dword [ebp + 0x21d38]
test esi, esi
jl 0x10012743
or si, 0x2c00
jmp 0x1001274c
neg si
or esi, 0x2e00
mov dword [esp + 0x1c], esi
test al, 4
je 0x1001278f
fld qword [0x1002e100]
fld qword [0x100308e0]
call fcn.10024c50
fld dword [ebp + 0x21d34]
fmul qword [0x1002e318]
fmulp st(1)
fadd qword [0x1002e1c0]
call fcn.100239a0
mov cl, byte [esp + 0x13]
cdq
xor eax, edx
sub eax, edx
mov dl, byte [esp + 0x14]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x30]
cmp esi, 0xffffffff
je 0x100127ac
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x100127a2
mov bl, 1
dec esi
cmp eax, esi
jge 0x100127ac
mov byte [esp + 0x50], 1
mov al, byte [esp + 0x50]
shl bl, 1
add bl, al
mov eax, dword [esp + 0x18]
shl bl, 1
add bl, cl
shl bl, 1
add bl, dl
mov dl, byte [esp + 0x15]
shl bl, 4
add bl, dl
test eax, eax
mov byte [esp + 0x50], bl
jge 0x100127d9
mov dword [esp + 0x18], 0
mov eax, dword [edi + 0x2c]
cmp eax, 3
ja case.default.0x100127e1
jmp dword [eax*4 + 0x10012a28]
xor bl, bl
jmp 0x10012803
mov bl, 1
jmp 0x10012803
mov bl, 2
jmp 0x10012803
mov ecx, dword [edi + 0x34]
test ecx, ecx
setne bl
add ebx, 3
jmp 0x10012803
mov bl, 7
mov esi, dword [edi + 8]
cmp esi, 0x7d00
jg 0x10012812
xor cl, cl
jmp 0x10012826
cmp esi, 0xbb80
jne 0x1001281e
mov cl, 2
jmp 0x10012826
setle cl
dec ecx
and ecx, 2
inc ecx
mov eax, dword [edi + 0xe4]
cmp eax, 3
je 0x10012886
cmp eax, 2
je 0x10012886
or eax, 0xffffffff
cmp dword [edi + 0xa0], eax
jne 0x10012849
cmp dword [edi + 0xa4], eax
je 0x10012886
fld dword [edi + 0x14]
fcomp dword [edi + 0x18]
fnstsw ax
test ah, 0x40
je 0x10012886
mov eax, dword [edi + 0x60]
test eax, eax
je 0x10012866
cmp dword [edi + 0x44], 0x140
jl 0x10012886
mov eax, dword [edi + 0xc4]
test eax, eax
jne 0x10012886
mov eax, dword [edi + 0xbc]
test eax, eax
jne 0x10012886
test dl, dl
je 0x10012886
cmp esi, 0x7d00
jg 0x1001288e
mov dword [esp + 0x24], 1
mov al, byte [esp + 0x24]
mov esi, dword [esp + 0x54]
shl cl, 1
add cl, al
push 2
shl cl, 3
add cl, bl
mov bl, byte [esp + 0x1a]
shl cl, 2
add cl, bl
push 0
push esi
mov byte [esp + 0x22], cl
call fcn.10024ecf
push esi
call fcn.10025391
mov ecx, dword [esp + 0x6c]
mov ebx, eax
mov eax, dword [esp + 0x38]
add esp, 0x10
sub ebx, ecx
test eax, eax
je 0x100128d5
sub ebx, 0x80
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x58]
mov bp, word [ebp + 0xcee8]
mov ecx, eax
mov edx, eax
mov byte [esi + 3], al
sar ecx, 0x18
sar edx, 0x10
mov byte [esi], cl
mov byte [esi + 1], dl
mov edx, dword [esp + 0x38]
mov ecx, eax
push 9
lea eax, [esi + 4]
sar ecx, 8
push edx
push eax
mov byte [esi + 2], cl
call fcn.10023b80
mov cl, byte [esp + 0x1e]
mov eax, dword [esp + 0x38]
mov dl, byte [esp + 0x23]
mov byte [esi + 0xd], cl
mov ecx, eax
mov byte [esi + 0xe], dl
sar ecx, 0x18
mov byte [esi + 0xf], cl
mov edx, eax
mov ecx, eax
mov byte [esi + 0x12], al
mov eax, dword [esp + 0x28]
add esp, 0xc
sar edx, 0x10
and eax, 0xffff
mov byte [esi + 0x10], dl
sar ecx, 8
mov edx, eax
mov byte [esi + 0x11], cl
sar edx, 8
mov byte [esi + 0x14], al
mov al, byte [esp + 0x50]
mov byte [esi + 0x13], dl
mov byte [esi + 0x15], 0
mov byte [esi + 0x16], 0
mov byte [esi + 0x17], al
mov eax, dword [esp + 0x20]
cmp eax, 0xff
jl 0x10012972
mov byte [esi + 0x18], 0xff
jmp 0x10012975
mov byte [esi + 0x18], al
mov eax, dword [esp + 0x3c]
and ebp, 0xffff
mov ecx, eax
sar ecx, 4
mov byte [esi + 0x19], cl
mov ecx, dword [esp + 0x40]
mov edx, ecx
sar edx, 8
shl al, 4
add dl, al
mov al, byte [esp + 0x16]
mov byte [esi + 0x1a], dl
mov byte [esi + 0x1b], cl
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], 0
mov eax, dword [edi + 0x84]
mov edx, ebx
mov ecx, eax
mov byte [esi + 0x1f], al
mov eax, ebx
sar ecx, 8
sar eax, 0x10
mov byte [esi + 0x1e], cl
mov byte [esi + 0x21], al
sar edx, 0x18
mov ecx, ebx
mov eax, ebp
mov byte [esi + 0x20], dl
mov edx, eax
sar ecx, 8
mov byte [esi + 0x22], cl
mov byte [esi + 0x23], bl
sar edx, 8
mov byte [esi + 0x25], al
mov eax, dword [esp + 0x60]
mov byte [esi + 0x24], dl
xor ecx, ecx
and eax, 0xffff
xor edx, edx
mov dl, byte [ecx + esi]
mov edi, eax
and edi, 0xff
xor edx, edi
sar eax, 8
mov edx, dword [edx*4 + 0x10038a8c]
xor eax, edx
inc ecx
cmp ecx, 0x26
jl 0x100129e5
and eax, 0xffff
pop edi
mov ecx, eax
mov byte [esi + 0x27], al
sar ecx, 8
mov byte [esi + 0x26], cl
pop esi
pop ebp
mov eax, 0x28
pop ebx
add esp, 0x3c
ret