Function at 0x1003cc53
Capabilities:
Encode data using xor

Disassembly:
push 0x84
mov eax, 0x10049879
call fcn.10044ac9
mov dword [ebp - 0x50], ecx
and dword [ebp - 4], 0
call fcn.10038cc5
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
xor ecx, ecx
xor edx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp - 0x50]
and dword [ebp - 0x54], ecx
mov byte [ebp - 4], 1
mov eax, dword [edi + 0xec]
sub eax, dword [edi + 0xe8]
sar eax, 6
test eax, eax
je 0x1003ce91
xor esi, esi
mov dword [ebp - 0x44], esi
mov al, byte [ebp + 0xc]
test al, al
je 0x1003ccf0
lea eax, [ebp - 0x3f]
mov word [ebp - 0x40], 0x76
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 0x3f], 0
call fcn.10002989
test eax, eax
jne 0x1003cce5
mov ecx, dword [edi + 0xe8]
movzx eax, byte [ebp + 0xc]
add ecx, esi
cmp dword [ecx + 0x30], eax
jne 0x1003ce67
push ecx
jmp 0x1003ce5f
mov al, byte [ebp + 0xc]
test al, al
jne 0x1003cd9c
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x78
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 0x47], 0
call fcn.10002989
test eax, eax
je 0x1003ce56
mov eax, dword [edi + 0xe8]
push dword [eax + esi + 0x1c]
call fcn.100062d1
mov edx, dword [edi + 0xe8]
pop ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [esi + edx + 0x1c]
test ecx, ecx
je 0x1003cd6d
cmp ecx, 0x5f5e100
jae 0x1003cd6d
sub esp, 0x18
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.1000325c
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xe8]
sub esp, 0x18
add eax, esi
mov ecx, esp
push eax
call fcn.1000325c
mov byte [ebp - 4], 1
call fcn.1000b0da
jmp 0x1003ce4f
test eax, eax
je 0x1003ce67
movzx eax, byte [eax + 4]
push ecx
push eax
call fcn.10006302
sub esp, 0x10
mov esi, eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x58], esp
mov ecx, esp
push eax
call fcn.1000325c
mov byte [ebp - 4], 3
jmp 0x1003ce31
lea eax, [ebp - 0x3b]
mov word [ebp - 0x3c], 0x3a
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 0x3b], 0
call fcn.10002989
test eax, eax
je 0x1003ce56
mov ecx, dword [edi + 0xe8]
movzx eax, byte [ebp + 0xc]
cmp dword [esi + ecx + 0x30], eax
jne 0x1003ce67
push dword [esi + ecx + 0x1c]
call fcn.100062d1
mov edx, dword [edi + 0xe8]
pop ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [esi + edx + 0x1c]
test ecx, ecx
je 0x1003ce0b
cmp ecx, 0x5f5e100
jae 0x1003ce0b
sub esp, 0x18
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.1000325c
mov byte [ebp - 4], 4
jmp 0x1003cd4c
test eax, eax
je 0x1003ce67
movzx eax, byte [eax + 4]
push ecx
push eax
call fcn.10006302
sub esp, 0x10
mov esi, eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x58], esp
mov ecx, esp
push eax
call fcn.1000325c
mov byte [ebp - 4], 5
sub esp, 0x18
mov eax, esp
push esi
push dword [ebp - 0x38]
push eax
call fcn.10007607
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.1000b0da
mov esi, dword [ebp - 0x44]
add esp, 0x30
test al, al
je 0x1003ce67
mov eax, dword [edi + 0xe8]
add eax, esi
push eax
lea ecx, [ebp - 0x34]
call fcn.1003ded6
mov eax, dword [edi + 0xec]
add esi, 0x40
mov edx, dword [ebp - 0x54]
sub eax, dword [edi + 0xe8]
inc edx
sar eax, 6
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x44], esi
cmp edx, eax
jb 0x1003cca9
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov esi, ecx
sub esi, edx
cmp esi, 0x40
jae 0x1003ced9
push 0xc
lea esi, [edi + 0xac]
pop edi
push 0
push dword [esi]
call fcn.1000e8b6
lea esi, [esi + 4]
pop ecx
pop ecx
sub edi, 1
jne 0x1003cea3
mov edi, dword [ebp - 0x50]
push dword [edi + 0x19c]
push dword [edi + 0x194]
call fcn.1000f23a
mov dword [edi + 0x1a0], 1
jmp 0x1003d4ff
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1003dde5
push eax
push ecx
push edx
call fcn.10038238
sar esi, 6
add esp, 4
mov eax, esi
mov dword [ebp - 0x38], esi
shr eax, 0x1f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x1004a9d0]
divsd xmm0, qword [0x10050af0]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x5c]
movsd xmm0, qword [ebp - 0x5c]
andps xmm0, xmmword [0x1004df30]
pop ecx
pop ecx
call fcn.10044db1
imul ecx, dword [ebp + 8], 0xc
mov dword [edi + 0x1a0], eax
mov dword [ebp - 0x58], ecx
lea eax, [ecx - 0xc]
mov dword [ebp - 0x54], eax
cmp eax, ecx
jge 0x1003d4ee
mov edx, dword [ebp - 0x34]
lea ecx, [edi + 0xa8]
push 0xffffffffffffffc8
pop esi
mov dword [ebp - 0x48], ecx
shl eax, 6
lea ecx, [edx + 0x1c]
add ecx, eax
push 0xffffffffffffffe4
pop eax
sub eax, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x48]
add esi, 0x38
add edx, 4
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], edx
cmp esi, 0x310
jg 0x1003d4ee
mov eax, dword [ebp - 0x38]
dec eax
cmp dword [ebp - 0x54], eax
jle 0x1003cfa2
push 0
push dword [edx]
jmp 0x1003d4ce
push dword [ecx]
call fcn.100062d1
mov edx, dword [ebp - 0x3c]
pop ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x1003d18a
cmp ecx, 0x5f5e100
jae 0x1003d18a
mov ecx, dword [edi + 0xdc]
mov eax, dword [edx - 4]
add edx, dword [ebp - 0x78]
mov dword [esi + ecx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + edx + 0x1c]
mov dword [esi + ecx + 0x20], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [edi + 0xdc]
add eax, 0x34
add eax, edx
add ecx, 0x24
push eax
add ecx, esi
call fcn.1003876b
mov eax, dword [ebp - 0x3c]
add eax, 0xffffffe4
push eax
mov eax, dword [edi + 0xdc]
push dword [esi + eax]
call fcn.1000f1a6
mov esi, dword [edi + 0xdc]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + esi + 0x28]
sub eax, dword [ecx + esi + 0x24]
sar eax, 2
push eax
push 1
call fcn.1000ae74
mov ecx, dword [ebp - 0x44]
add esp, 0x10
mov ecx, dword [ecx + esi + 0x24]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1003d275
push eax
call fcn.100062d1
mov esi, eax
mov dword [ebp - 0x50], esi
pop ecx
test esi, esi
je 0x1003d275
mov dword [ebp - 0x14], 0xf
push dword [ebp - 0x40]
movzx eax, byte [esi + 4]
and dword [ebp - 0x18], 0
push eax
mov byte [ebp - 4], 6
mov byte [ebp - 0x28], 0
call fcn.10006302
mov dword [ebp - 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x1003d095
cmp dword [eax + 0x48], 0
je 0x1003d095
push dword [ebp - 0x40]
push eax
push 0
jmp 0x1003d09b
push dword [ebp - 0x40]
push 0
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.100073aa
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.10001cd4
mov eax, dword [edi + 0xdc]
mov esi, dword [ebp - 0x44]
mov eax, dword [esi + eax + 0x18]
test eax, eax
je 0x1003d175
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000aa9f
mov edx, dword [ebp - 0x4c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x50]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x54], edx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x58], 1
test edx, edx
je 0x1003d121
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x1003d125
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0xdc]
mov ecx, dword [esi + eax + 0x18]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
cmp dword [eax], 0
je 0x1003d175
lea ecx, [ebp - 0x28]
push ecx
push dword [eax]
call fcn.1000ed98
mov eax, dword [edi + 0xdc]
push 1
mov eax, dword [esi + eax + 0x18]
push dword [eax]
call fcn.1000e8b6
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10001cd4
jmp 0x1003d278
test eax, eax
jne 0x1003d194
push eax
jmp 0x1003d4c9
mov dword [ebp - 0x14], 0xf
movzx eax, byte [eax + 4]
and dword [ebp - 0x18], 0
push ecx
push eax
mov byte [ebp - 4], 7
mov byte [ebp - 0x28], 0
call fcn.10006302
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x1003d1cd
cmp dword [ecx + 0x48], 0
je 0x1003d1cd
mov eax, dword [ebp - 0x3c]
push dword [eax]
push ecx
push 0
jmp 0x1003d1d7
mov eax, dword [ebp - 0x3c]
push dword [eax]
push 0
push dword [ebp - 0x40]
lea eax, [ebp - 0x74]
push eax
call fcn.100073aa
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.10001cd4
push dword [ebp - 0x50]
lea eax, [ebp - 0x74]
push dword [ebp - 0x40]
push eax
call fcn.10007607
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 8
push dword [esi + eax]
call fcn.1000f1a6
add esp, 0x14
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push 0
push 1
call fcn.10001cd4
mov ecx, dword [edi + 0xdc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx - 4]
mov dword [esi + ecx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [edx]
mov dword [esi + ecx + 0x20], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
test eax, eax
je 0x1003d175
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000aa9f
mov edx, dword [ebp - 0x50]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
jmp 0x1003d0e6
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 8], 1
jne 0x1003d30d
push 0x2e
push dword [eax + 4]
lea eax, [ebp - 0x90]
push eax
call fcn.1000b16c
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x1003d2a5
mov eax, dword [eax]
movaps xmm0, xmmword [str.mM_M.M]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xf
jb 0x1003d2b7
sub esp, 0x18
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x74]
push eax
call fcn.1001b71b
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 0xa
push dword [esi + eax + 4]
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x74]
push 0
push 1
call fcn.10001cd4
lea ecx, [ebp - 0x90]
jmp 0x1003d39a
cmp dword [eax + 8], 2
jne 0x1003d3aa
push 0x2e
push dword [eax + 4]
lea eax, [ebp - 0x74]
push eax
call fcn.1000b16c
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x1003d334
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050cf0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xf
jb 0x1003d346
sub esp, 0x18
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x90]
push eax
call fcn.1001b71b
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 0xc
push dword [esi + eax + 4]
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x90]
push 0
push 1
call fcn.10001cd4
lea ecx, [ebp - 0x74]
push 0
push 1
mov byte [ebp - 4], 1
call fcn.10001cd4
mov eax, dword [ebp - 0x3c]
push 0x2e
push dword [eax + 0xc]
lea eax, [ebp - 0x74]
push eax
call fcn.1000b16c
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x1003d3c7
mov eax, dword [eax]
movaps xmm0, xmmword [0x10050c70]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x4f
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x1003d3db
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x90]
push eax
call fcn.1001b71b
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 0xe
push dword [esi + eax + 8]
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x90]
push 0
push 1
call fcn.10001cd4
push 0
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.10001cd4
mov edx, dword [0x1005afc0]
test edx, edx
je 0x1003d48e
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 8], 1
jne 0x1003d457
mov eax, dword [edx + 0x44]
cmp eax, dword [ecx + 4]
jb 0x1003d465
cmp dword [ecx + 8], 2
jne 0x1003d48e
mov eax, dword [edx + 0x48]
cmp eax, dword [ecx + 4]
jae 0x1003d48e
mov eax, dword [edi + 0xdc]
push 0xffff0000
push dword [esi + eax + 4]
call fcn.1000f180
mov eax, dword [edi + 0xdc]
push 7
push dword [esi + eax + 0xc]
call fcn.1000e831
push 7
jmp 0x1003d4b5
mov eax, dword [edi + 0xdc]
push 0xfffff3ae
push dword [esi + eax + 4]
call fcn.1000f180
mov eax, dword [edi + 0xdc]
push 2
push dword [esi + eax + 0xc]
call fcn.1000e831
push 2
mov eax, dword [edi + 0xdc]
push dword [esi + eax + 0x10]
call fcn.1000e831
add esp, 0x18
push 1
mov ecx, dword [ebp - 0x48]
push dword [ecx]
call fcn.1000e8b6
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
inc eax
add ecx, 0x40
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], ecx
cmp eax, dword [ebp - 0x58]
jl 0x1003cf75
push dword [edi + 0x19c]
push dword [edi + 0x194]
call fcn.1000f23a
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
call fcn.1003dd30
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.10001cd4
call fcn.10044a84
ret 0x20