Function at 0x1002da30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055b98
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x10069018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
cmp dword [0x1006aee8], 0
je 0x1002e214
push dword [ebp - 0x70]
mov edx, dword [ebx + 0x15c]
lea esi, [ebx + 0x158]
push ecx
mov ecx, dword [esi]
call fcn.1002f450
mov eax, dword [esi]
xor edi, edi
mov dword [esi + 4], eax
add esp, 8
mov ecx, dword [ebx + 0x150]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebx + 0x14c]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
imul ecx
mov dword [ebp - 0x38], edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1002dc7f
xor ebx, ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14c]
mov dword [ebp - 0x3c], eax
cmp word [ebx + eax + 0x60], 0
je 0x1002db42
cmp byte [0x1006afb6], 0
mov eax, dword [0x1006aee8]
mov dword [ebp - 0x30], eax
je 0x1002db30
mov ecx, 0x10b8134
call fcn.100119c0
mov edi, eax
test edi, edi
je 0x1002db27
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002db27
push 4
add edi, 0xc88
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x1002db2a
mov ecx, dword [ebp - 0x30]
mov ax, word [edi]
mov word [ecx + 0x40], ax
mov eax, ecx
jmp 0x1002db2d
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
movzx eax, word [eax + 0x40]
cmp word [ebx + ecx + 0x60], ax
jne 0x1002dc4a
mov eax, dword [edx + 0x14c]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebx + eax + 0x60]
cmp eax, 1
je 0x1002db5a
cmp eax, 2
jne 0x1002dbc4
cmp byte [0x1006afb6], 0
mov eax, dword [0x1006aee8]
mov dword [ebp - 0x30], eax
je 0x1002dbb0
mov ecx, 0x10b8134
call fcn.100119c0
mov edi, eax
test edi, edi
je 0x1002dbaa
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002dbaa
push 4
add edi, 0x6dc
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x1002dbad
mov ecx, dword [ebp - 0x30]
mov al, byte [edi]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x1002dbb0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov al, byte [eax + 0x38]
movzx eax, al
cmp word [ebx + ecx + 0x60], ax
jne 0x1002dc47
mov edi, dword [edx + 0x14c]
mov ecx, dword [esi + 4]
add edi, ebx
cmp edi, ecx
jae 0x1002dc15
mov eax, dword [esi]
cmp eax, edi
ja 0x1002dc15
sub edi, eax
mov eax, 0x4ec4ec4f
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ecx, dword [esi + 8]
jne 0x1002dbf9
push ecx
mov ecx, esi
call fcn.1002f1c0
mov ecx, dword [esi + 4]
imul eax, edi, 0x68
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x3c], ecx
add eax, dword [esi]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1002dc3c
push eax
jmp 0x1002dc37
cmp ecx, dword [esi + 8]
jne 0x1002dc22
push ecx
mov ecx, esi
call fcn.1002f1c0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x1002dc3c
push edi
call fcn.1002f590
mov dword [ebp - 4], 0xffffffff
add dword [esi + 4], 0x68
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
inc edi
add ebx, 0x68
mov dword [ebp - 0x38], edi
mov ecx, dword [eax + 0x150]
sub ecx, dword [eax + 0x14c]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x1002dac1
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x1002dced
mov edi, dword [ebp - 0x34]
mov ebx, 4
add edi, 0xc
mov esi, dword [edi]
test esi, esi
je 0x1002dcad
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002dcad
push eax
mov ecx, esi
call dword [0x100614d0]
add edi, 4
sub ebx, 1
jne 0x1002dc91
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0x144]
test esi, esi
je 0x1002dcde
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002dcde
push edi
mov ecx, esi
call dword [0x10061538]
mov dword [ebx + 0x148], 1
jmp 0x1002e214
mov ecx, dword [esi + 4]
sub esp, 8
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100623c0]
mulsd xmm0, qword [0x100619c8]
movsd qword [ebp - 0x74], xmm0
fld qword [ebp - 0x74]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x74]
call fcn.1002f7a0
mov ecx, dword [ebp - 0x34]
cvttsd2si eax, xmm0
mov dword [ecx + 0x148], eax
cmp dword [ecx + 0x144], eax
jle 0x1002dd61
mov dword [ecx + 0x144], 1
movzx eax, byte [ebp + 8]
lea edx, [ecx + 8]
shl eax, 2
mov dword [ebp - 0x70], eax
add eax, 0xfffffffc
imul edi, eax, 0x68
mov dword [ebp - 0x78], eax
lea eax, [ecx + 0xc]
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x58], edi
mov ecx, dword [ebp - 0x7c]
add edx, 4
inc ecx
mov dword [ebp - 0x38], edx
add eax, 0x18
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x30], eax
cmp ecx, 4
jg 0x1002e1e7
mov ecx, dword [esi + 4]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x78], eax
jle 0x1002dde4
mov edx, dword [ebp - 0x38]
mov edi, dword [edx]
test edi, edi
je 0x1002e1cb
push 4
push edi
call ebx
test eax, eax
jne 0x1002e1c8
push eax
mov ecx, edi
call dword [0x100614d0]
jmp 0x1002e1c8
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push 0xffffffffffffffff
add eax, edi
mov dword [ebp - 0x3c], 0xffc4fc03
push 0
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.100044a0
mov dword [ebp - 4], 2
mov eax, dword [esi]
cmp byte [eax + edi + 0x65], 2
jne 0x1002de80
movaps xmm0, xmmword [str.nN5__v_b]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x71a0f1d
mov dword [ebp - 0x40], 0x330001
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x1002de40
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
jne 0x1002de5b
xor ecx, ecx
jmp 0x1002de6a
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002de61
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10006dd0
mov dword [ebp - 0x3c], 0xff5cb9fe
jmp 0x1002ded9
mov cl, 0x1a
mov dword [ebp - 0x68], 0x4f413a1a
mov dword [ebp - 0x64], 0x687f7e74
xor eax, eax
mov dword [ebp - 0x60], 0x637b6d3a
mov word [ebp - 0x5c], 0x47
nop
xor byte [ebp + eax - 0x67], cl
inc eax
cmp eax, 0xc
jae 0x1002deaf
mov cl, byte [ebp - 0x68]
jmp 0x1002dea0
cmp byte [ebp - 0x67], 0
mov byte [ebp - 0x5b], 0
jne 0x1002debd
xor ecx, ecx
jmp 0x1002decc
lea ecx, [ebp - 0x67]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002dec3
sub ecx, edx
push ecx
lea eax, [ebp - 0x67]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10006dd0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x40], 0xf
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002deff
xor ecx, ecx
jmp 0x1002df0d
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002df04
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100048e0
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 3
mov edi, dword [ecx]
test edi, edi
je 0x1002df39
push 4
push edi
call ebx
test eax, eax
jne 0x1002df39
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x10061534]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002df4f
inc eax
push eax
push dword [ebp - 0x54]
call fcn.100047b0
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
test edi, edi
je 0x1002df6c
push 4
push edi
call ebx
test eax, eax
jne 0x1002df6c
push dword [ebp - 0x3c]
mov ecx, edi
call dword [0x1006153c]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x58]
movaps xmm0, xmmword [str._f_izi____h___h]
movzx eax, byte [ecx + edx + 0x64]
push eax
movzx eax, byte [ecx + edx + 0x63]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x8c], xmm0
nop dword [eax]
mov al, byte [ebp - 0x8c]
xor byte [ebp + ecx - 0x8b], al
inc ecx
cmp ecx, 0xe
jb 0x1002df90
sub esp, 0x18
mov byte [ebp - 0x7d], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1002dfc4
mov eax, dword [edx]
jmp 0x1002dfc6
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x8b], 0
jne 0x1002dfd6
xor ecx, ecx
jmp 0x1002dfe9
lea ecx, [ebp - 0x8b]
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002dfe0
sub ecx, edi
push ecx
lea eax, [ebp - 0x8b]
mov ecx, edx
push eax
call fcn.100048e0
lea eax, [ebp - 0xa4]
push eax
call fcn.10004200
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0x10
jb 0x1002e015
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002e030
xor ecx, ecx
jmp 0x1002e03e
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e035
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100048e0
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 5
mov edi, dword [eax - 4]
test edi, edi
je 0x1002e06b
push 4
push edi
call ebx
test eax, eax
jne 0x1002e06b
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x10061534]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002e07d
inc eax
push eax
push dword [ebp - 0x54]
call fcn.100047b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1002e0ab
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.100047b0
mov eax, dword [esi]
lea ecx, [ebp - 0xa4]
add eax, dword [ebp - 0x58]
mov dx, word [eax + 0x60]
call fcn.100286c0
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0x10
jb 0x1002e0cd
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002e0e8
xor ecx, ecx
jmp 0x1002e0f9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e0f0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100048e0
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 7
mov edi, dword [eax + 8]
test edi, edi
je 0x1002e126
push 4
push edi
call ebx
test eax, eax
jne 0x1002e126
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x10061534]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002e138
inc eax
push eax
push dword [ebp - 0x54]
call fcn.100047b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1002e166
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.100047b0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0xa4], 0
mov dword [ecx - 8], eax
mov edi, dword [edx]
test edi, edi
je 0x1002e1af
push 4
push edi
call ebx
test eax, eax
jne 0x1002e1ac
push 1
mov ecx, edi
call dword [0x100614d0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1002e1cb
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100047b0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x78]
mov edi, dword [ebp - 0x58]
inc eax
add edi, 0x68
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x70]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], edi
jl 0x1002dd84
mov ecx, dword [ebp - 0x34]
mov esi, dword [ecx + 0x134]
mov edi, dword [ecx + 0x144]
test esi, esi
je 0x1002e20f
push 4
push esi
call ebx
test eax, eax
jne 0x1002e20c
push edi
mov ecx, esi
call dword [0x10061538]
mov ecx, dword [ebp - 0x34]
call fcn.1002d1f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100523a0
mov esp, ebp
pop ebp
ret 4