Function at 0x10029770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
movzx eax, byte [esi]
cmp eax, 8
ja case.default.0x10029790
jmp dword [eax*4 + 0x10029ed8]
mov eax, dword [esi + 8]
mov ecx, dword [edi]
cmp dword [eax + 4], 0
mov eax, dword [ecx]
jne 0x100297b6
push 2
push 0x10041044
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x10029952
push 2
push 0x10041048
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x250]
add eax, dword [ebp + 0x18]
mov edx, dword [edi + 0x260]
cmp edx, eax
jae 0x100297f1
push 0x20
lea eax, [edx + edx]
push eax
call fcn.1002a500
lea ecx, [edi + 0x250]
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x10], esi
sub eax, 1
je 0x100298af
cmp dword [ecx + 0x14], 0x10
mov edx, dword [edi]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, ecx
jb 0x10029825
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x18]
push ecx
push eax
mov ecx, edx
call dword [esp + 0x20]
mov edi, dword [esp + 0xc]
push 0x22
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1002a630
mov ecx, dword [edi]
push 3
push 0x1004104c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
add esi, 0x28
mov eax, dword [ebp + 0x18]
add eax, ecx
push eax
push ecx
push 0
push 1
push esi
mov ecx, edi
call fcn.10029770
mov ecx, dword [edi]
push 2
push 0x10041050
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
inc esi
mov dword [esp + 0x14], esi
call fcn.1002be10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [esp + 0x10]
jae 0x100298af
lea ecx, [edi + 0x250]
jmp 0x10029810
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov eax, dword [edi]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jb 0x100298cf
mov edx, dword [edi + 0x250]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov edi, dword [esp + 0xc]
push eax
push edx
mov ecx, dword [edi]
call dword [esp + 0x24]
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1002a630
mov ecx, dword [edi]
push 3
push 0x1004104c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
add esi, 0x28
mov eax, dword [ebp + 0x18]
add eax, ecx
push eax
push ecx
push 0
push 1
push esi
mov ecx, edi
call fcn.10029770
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [edi + 0x264], 0x10
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edi + 0x250]
jb 0x1002993c
mov eax, dword [eax]
push dword [ebp + 0x18]
push eax
call edx
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x7b
call dword [eax]
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x10], esi
sub eax, 1
je 0x100299d4
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1002a630
mov ecx, dword [edi]
push 2
push 0x10041054
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 0
push esi
call fcn.10029770
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
inc esi
mov dword [esp + 0x14], esi
call fcn.1002be10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [esp + 0x10]
jb 0x10029971
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1002a630
mov ecx, dword [edi]
push 2
push 0x10041054
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push 0
push 0
push esi
call fcn.10029770
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esi + 8]
mov ecx, dword [edi]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
mov eax, dword [ecx]
jne 0x10029a3b
push 2
push 0x10041058
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x10029b66
push 2
push 0x1004105c
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x250]
add eax, dword [ebp + 0x18]
mov edx, dword [edi + 0x260]
cmp edx, eax
jae 0x10029a76
push 0x20
lea eax, [edx + edx]
push eax
call fcn.1002a500
lea ecx, [edi + 0x250]
mov eax, dword [esi + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x10029ae9
cmp dword [ecx + 0x14], 0x10
mov edx, dword [edi]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, ecx
jb 0x10029a9a
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x18]
push ecx
push eax
mov ecx, edx
call dword [esp + 0x20]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0xc]
add eax, ecx
push eax
push ecx
push 0
push 1
push esi
mov ecx, edi
call fcn.10029770
mov ecx, dword [edi]
push 2
push 0x10041050
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x250]
add esi, 0x10
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
jne 0x10029a85
cmp dword [edi + 0x264], 0x10
lea esi, [edi + 0x250]
mov eax, dword [edi]
mov edx, esi
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jb 0x10029b07
mov edx, dword [esi]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov edi, dword [esp + 0xc]
push eax
push edx
mov ecx, dword [edi]
call dword [esp + 0x24]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
add eax, ecx
push eax
mov eax, dword [ebp + 8]
push ecx
push 0
push 1
mov eax, dword [eax + 8]
mov ecx, edi
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.10029770
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, dword [edi]
mov eax, dword [ecx]
jb 0x10029b4f
mov esi, dword [esi]
push dword [ebp + 0x18]
push esi
call dword [eax + 4]
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0x5b
call dword [eax]
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
je 0x10029baf
nop
push eax
push edx
push 0
push 0
push esi
mov ecx, edi
call fcn.10029770
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 8]
add esi, 0x10
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
jne 0x10029b80
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
push edx
push 0
push 0
sub eax, 0x10
push eax
call fcn.10029770
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push ecx
push dword [esi + 8]
mov ecx, edi
call fcn.1002a630
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 8], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
je 0x10029c12
push 4
push str.true
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 5
push str.false
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 8]
mov eax, ecx
mov esi, dword [esi + 0xc]
or eax, esi
jne 0x10029c40
mov ecx, dword [edi]
push 0x30
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
test esi, esi
jg 0x10029c51
jl 0x10029c4a
test ecx, ecx
jne 0x10029c51
mov byte [esp + 0xb], 1
jmp 0x10029c56
mov byte [esp + 0xb], 0
lea eax, [edi + 8]
xor edx, edx
mov dword [esp + 0x10], edx
mov edi, ecx
mov dword [esp + 0x14], eax
push 0
push 0xa
push esi
push edi
call fcn.10039090
mov esi, eax
mov dword [esp + 0x1c], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub edi, ecx
mov ecx, dword [esp + 0x10]
mov eax, edi
inc ecx
cdq
mov edi, esi
mov esi, dword [esp + 0x1c]
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x14]
add al, 0x30
mov byte [edx], al
inc edx
mov eax, edi
mov dword [esp + 0x14], edx
or eax, esi
jne 0x10029c65
mov edi, dword [esp + 0xc]
cmp byte [esp + 0xb], al
je 0x10029cba
mov byte [ecx + edi + 8], 0x2d
inc ecx
mov dword [esp + 0x10], ecx
lea esi, [edi + 8]
lea eax, [ecx + esi]
push eax
push esi
call fcn.10038df0
mov ecx, dword [edi]
add esp, 8
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
je 0x10029c30
lea eax, [edi + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov eax, edx
mov esi, 0xcccccccd
mul esi
lea edi, [esi - 1]
mov dword [esp + 0x30], eax
mov esi, edx
mov eax, dword [esp + 0x14]
mul edi
mov edi, eax
mov dword [esp + 0x2c], edx
mov eax, ecx
mov ecx, 0xcccccccd
mul ecx
mov ecx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x10]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
adc edx, 0
add edi, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
adc ecx, 0
mov dword [esp + 0x20], edi
xor eax, eax
mov edi, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x30]
adc eax, eax
add ecx, edx
mov edx, dword [esp + 0x14]
adc esi, eax
inc edi
shrd ecx, esi, 3
mov dword [esp + 0x18], edi
shr esi, 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea eax, [ecx + ecx*4]
add eax, eax
sub edx, eax
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x1c]
add al, 0x30
mov byte [edx], al
inc edx
mov dword [esp + 0x1c], edx
mov edx, ecx
mov eax, edx
mov ecx, esi
or eax, esi
jne 0x10029d10
mov esi, dword [esp + 0x38]
lea eax, [edi + esi]
push eax
push esi
call fcn.10038df0
mov ecx, dword [esp + 0x14]
add esp, 8
mov ecx, dword [ecx]
push edi
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
movsd xmm0, qword [esi + 8]
movsd qword [esp + 0x38], xmm0
call fcn.1002ee30
test al, al
je case.0x10029790.0
movsd xmm0, qword [esp + 0x38]
lea esi, [edi + 8]
sub esp, 8
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__dsign]
movsd xmm0, qword [esp + 0x40]
add esp, 8
test eax, eax
je 0x10029e2d
xorps xmm0, xmmword [0x10043230]
lea esi, [edi + 9]
mov byte [edi + 8], 0x2d
ucomisd xmm0, qword [0x10042c30]
lahf
test ah, 0x44
jp 0x10029e5d
mov word [esi], 0x2e30
lea eax, [edi + 8]
mov byte [esi + 2], 0x30
add esi, 3
mov ecx, dword [edi]
sub esi, eax
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
movaps xmm3, xmm0
mov dword [esp + 0x20], 0
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.1002f960
mov edx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x24]
mov ecx, esi
call fcn.10025c30
mov ecx, dword [edi]
add esp, 0xc
mov esi, eax
lea eax, [edi + 8]
sub esi, eax
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0xb
push str._discarded_
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 4
push str.null
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14