Function at 0x1000419a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x10004345
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x10004345
test eax, eax
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
jge 0x100040c0
fadd dword [0x1015ba54]
test ebx, ebx
fstp dword [ebp - 0x1c]
mov dword [ebp - 0x3c], ebx
fild dword [ebp - 0x3c]
jge 0x100040d3
fadd dword [0x1015ba54]
fst dword [ebp - 0x30]
xor eax, eax
fld dword [ebp - 0x1c]
cmp dword [ebp + 0x10], edi
fdiv st(1)
push 0x10
setne al
cmp ebx, edi
pop esi
fst dword [ebp - 0x28]
fstp st(1)
fld dword [0x1018a828]
fdiv st(1)
fstp dword [ebp - 0x34]
jbe 0x10004145
test eax, eax
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
jge 0x1000410a
fadd dword [0x1015ba54]
test edi, edi
mov dword [ebp - 0x3c], edi
fild dword [ebp - 0x3c]
jge 0x1000411a
fadd dword [0x1015ba54]
fsub dword [0x1018a828]
fmul st(2)
fld st(0)
fadd st(3)
fsub st(1)
fadd st(2)
fadd dword [0x1018a864]
call fcn.101197e0
fstp st(0)
shl eax, 4
inc edi
cmp edi, ebx
lea esi, [esi + eax + 0xc]
jb 0x1000410a
fstp st(0)
push esi
fstp st(0)
call fcn.100fc8e5
mov edi, eax
test edi, edi
pop ecx
je 0x10004345
xor ebx, ebx
fldz
and dword [ebp - 0x18], ebx
fstp dword [ebp - 4]
cmp dword [ebp + 8], ebx
push 4
pop esi
jbe 0x1000433f
and dword [ebp - 0xc], 0
fild dword [ebp - 0x18]
lea eax, [esi + edi]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], esi
add esi, 4
test eax, eax
jge 0x1000418e
fadd dword [0x1015ba54]
fstp dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
fild dword [ebp - 0xc]
test eax, eax
jge 0x100041a1
fadd dword [0x1015ba54]
cmp dword [ebp + 0x10], 0
fadd dword [ebp - 0x2c]
fsub dword [0x1018a828]
fst dword [ebp - 0x10]
fmul dword [ebp - 0x28]
fst dword [ebp - 0x20]
fld dword [ebp - 0x28]
fadd st(1)
fstp dword [ebp - 8]
jne 0x100041e8
fcom dword [0x1018a7d8]
fnstsw ax
test ah, 5
jp 0x100041d5
fstp st(0)
fldz
fst dword [ebp - 0x20]
fld dword [ebp - 8]
fcomp dword [ebp - 0x1c]
fnstsw ax
test ah, 0x41
jne 0x100041e8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
push ecx
push ecx
fstp qword [esp]
call fcn.10119a60
pop ecx
pop ecx
call fcn.101197e0
mov edx, eax
mov dword [ebp - 0x14], edx
fild dword [ebp - 0x14]
fcom dword [ebp - 8]
fnstsw ax
test ah, 5
jp 0x100042f4
mov ecx, edx
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x1000421c
mov ecx, dword [ebp - 0x24]
test edx, edx
fld dword [0x1018a864]
fadd st(1)
fstp dword [ebp - 0x14]
jge 0x10004233
mov eax, dword [ebp + 0xc]
lea ecx, [edx + eax]
jmp 0x1000423a
cmp edx, dword [ebp + 0xc]
jge 0x1000423a
mov ecx, edx
cmp ecx, ebx
je 0x10004263
fld dword [ebp - 4]
fcomp dword [0x1018a7ec]
fnstsw ax
test ah, 0x41
jne 0x1000425c
lea eax, [esi + edi]
mov dword [eax], ebx
mov ebx, dword [ebp - 4]
add esi, 8
mov dword [eax + 4], ebx
fldz
mov ebx, ecx
fstp dword [ebp - 4]
fcom dword [ebp - 0x20]
fnstsw ax
test ah, 5
jp 0x10004272
fstp st(0)
fld dword [ebp - 0x20]
fld dword [ebp - 0x14]
fcomp dword [ebp - 8]
fnstsw ax
test ah, 0x41
jne 0x10004285
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
jne 0x100042b6
fld dword [ebp - 0x10]
fcomp dword [0x1018a7d8]
fnstsw ax
test ah, 5
jp 0x1000429f
fld1
jmp 0x100042c1
fld dword [ebp - 0x10]
fadd dword [0x1018a864]
fcomp dword [ebp - 0x30]
fnstsw ax
test ah, 1
jne 0x100042b6
fldz
jmp 0x100042c1
fld dword [ebp - 0x14]
fadd st(1)
fmul dword [ebp - 0x34]
fsub dword [ebp - 0x10]
cmp dword [ebp - 0xc], 0
je 0x100042cb
fld1
fsubrp st(1)
fld dword [ebp - 0x14]
inc edx
fsub st(2)
inc dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
fmul st(1)
fadd dword [ebp - 4]
fstp dword [ebp - 4]
fstp st(0)
fstp st(0)
fild dword [ebp - 0x14]
fcom dword [ebp - 8]
fnstsw ax
test ah, 5
jnp 0x10004219
inc dword [ebp - 0xc]
fstp st(0)
cmp dword [ebp - 0xc], 2
jb 0x10004191
fld dword [ebp - 4]
fcomp dword [0x1018a7ec]
fnstsw ax
test ah, 0x41
jne 0x10004321
mov ecx, dword [ebp - 4]
lea eax, [esi + edi]
add esi, 8
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x3c]
fldz
mov eax, esi
fstp dword [ebp - 4]
sub eax, dword [ebp - 0x38]
inc dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
jb 0x1000416e
mov dword [edi], esi
mov eax, edi
jmp 0x10004347
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret