Function at 0x1002e390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
test ax, ax
je 0x1002e890
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.ucrtbase.dll_towlower]
xor ebx, ebx
nop
lea esi, [esi]
mov dword [esp], eax
rol ebx, 4
add edi, 2
call esi
movzx eax, ax
xor ebx, eax
movzx eax, word [edi]
test ax, ax
jne 0x1002e3b8
lea eax, [ebp - 0x14]
mov dword [esp], 0
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
call sym._find_prop_name
test eax, eax
js 0x1002e47c
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x1002e488
mov eax, dword [edx + 8]
sub eax, 2
and eax, 0xfffffffd
jne 0x1002e562
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x1002e6c0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x1002e6e8
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x1002e6e8
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], 0
mov edi, dword [eax + 8]
test edi, edi
je 0x1002e8f2
add edx, 0x10
mov dword [esp + 8], edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._jsval_copy
test eax, eax
js 0x1002e47c
test byte [0x1008a0fc], 8
jne 0x1002e8fe
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x1002e6c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, edx
je 0x1002e9e5
shl edx, 5
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
test eax, eax
je 0x1002ebaf
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], 4
mov dword [edx + 0xc], 0
movzx eax, word [eax]
test ax, ax
je 0x1002eb40
mov ecx, dword [ebp + 0xc]
mov esi, dword [sym.imp.ucrtbase.dll_towlower]
xor ebx, ebx
mov edi, ecx
lea esi, [esi]
mov dword [esp], eax
rol ebx, 4
add edi, 2
call esi
movzx eax, ax
xor ebx, eax
movzx eax, word [edi]
test ax, ax
jne 0x1002e4f8
imul eax, ebx, 0x9e3779b9
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ebp - 0x14], edx
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x18], ecx
sub ecx, 1
and eax, ecx
mov ecx, dword [ebp + 8]
shl eax, 5
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + eax + 0x18]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
lea ebx, [ecx + 1]
mov dword [esi + 0x10], ebx
mov ebx, dword [esi + 0x14]
mov dword [ebx + eax + 0x18], ecx
mov eax, dword [edx + 8]
sub eax, 2
and eax, 0xfffffffd
je 0x1002e41a
test byte [0x1008a0fc], 8
jne 0x1002e8a0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0xc]
mov ecx, edx
and ecx, 0x1000
mov edi, ecx
jne 0x1002e5b8
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 4]
test ch, 0x10
je 0x1002e5a0
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
and esi, 0x1000
jne 0x1002e86d
and ch, 4
je 0x1002e5b8
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
xor ecx, edx
and ch, 4
jne 0x1002e86d
lea esi, [esi]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x1002e668
mov esi, dword [ebp + 0x10]
mov ebx, dword [esi + 4]
test bh, 8
jne 0x1002e668
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + 0x18]
test esi, esi
je 0x1002e950
mov ecx, dword [eax + 8]
cmp ecx, 3
je 0x1002e960
test edi, edi
je 0x1002e86d
test ecx, ecx
je 0x1002eb49
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], 3
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x1002e9a5
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x1002e641
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x1002eb70
add dword [edx + 4], 1
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0xc]
mov ebx, dword [ecx + 4]
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
xor ecx, edx
and ebx, ecx
xor edx, ebx
mov dword [eax + 0xc], edx
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [eax + 8]
cmp esi, 3
je 0x1002e760
test dh, 0x18
jne 0x1002e826
mov edi, dword [ebp + 0x10]
mov ebx, dword [edi + 4]
test bh, 8
je 0x1002e7dc
mov edi, dword [edi]
mov dword [ebp - 0x18], edi
and edi, 0x800
je 0x1002e7dc
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x800a13d7
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sym._throw_error
jmp 0x1002e47c
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x800a13d5
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sym._throw_error
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], 3
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x1002e6fd
add dword [eax + 4], 1
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x1002e70e
add dword [ebx + 4], 1
mov dword [edx + 0x14], ebx
test byte [0x1008a0fc], 8
je 0x1002e47a
mov eax, dword [ebp + 0xc]
mov esi, dword [edx + 0x10]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s__accessor__get:__p_set:__p__n
mov dword [esp + 8], str.jsdisp_define_property
mov dword [esp + 4], 0x1008a0fc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
xor eax, eax
jmp 0x1002e47c
test edi, edi
je 0x1002e86d
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1002e780
sub dword [edx + 4], 1
jne 0x1002e780
mov dword [esp], edx
call sym._jsdisp_free
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1002e7a0
sub dword [edx + 4], 1
jne 0x1002e7a0
mov dword [esp], edx
call sym._jsdisp_free
mov eax, dword [ebp - 0x14]
nop
lea esi, [esi]
mov dword [eax + 8], 0
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._jsval_copy
test eax, eax
js 0x1002eaef
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0xc]
mov ebx, dword [ecx + 4]
jmp 0x1002e64a
test ecx, ecx
je 0x1002e64a
test esi, esi
je 0x1002eafe
test byte [0x1008a0fc], 1
je 0x1002e7a0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.redefinition_of_property_type__d_n
mov dword [esp + 8], str.jsdisp_define_property
mov dword [esp + 4], 0x1008a0fc
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x1002e641
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x1002e7a0
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._jsval_release
mov eax, dword [ebp - 0x14]
jmp 0x1002e7a7
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x1002e64a
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
cmp dword [ecx + 0x24], edx
je 0x1002e9c4
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x800a13d6
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sym._throw_error
jmp 0x1002e47c
xor ebx, ebx
jmp 0x1002e3d0
mov eax, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov esi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_1
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.existing_prop__s_prop_flags__lx_desc_flags__x_desc_mask__x_n
mov dword [esp + 8], str.jsdisp_define_property
mov dword [esp + 4], 0x1008a0fc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x1002e56f
mov dword [edx + 0x14], 0x7ff90001
jmp 0x1002e46d
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._debugstr_jsval
mov ebx, eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x1008f4a3
mov dword [esp + 8], str.jsdisp_define_property
mov dword [esp + 4], 0x1008a0fc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
xor eax, eax
jmp 0x1002e47c
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x1002e64a
jmp 0x1002e5e3
test edi, edi
jne 0x1002eb63
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1002e853
mov edx, dword [eax + 0x10]
cmp dword [ecx + 0x1c], edx
jne 0x1002e86d
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + 0x20]
test ebx, ebx
jne 0x1002eb9b
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1002e9a5
sub dword [edx + 4], 1
je 0x1002eb7b
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x1002e9b6
add dword [edx + 4], 1
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x1002e641
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1002e62c
sub dword [edx + 4], 1
je 0x1002eb8b
mov dword [eax + 0x14], 0
jmp 0x1002e62c
shl ecx, 6
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x1002ebaf
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
lea edx, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
test edx, edx
je 0x1002ea61
mov dword [eax + 0x18], 0xffffffff
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 0x1c], 0xffffffff
cmp dword [ecx + 0xc], 1
mov eax, 1
jbe 0x1002ea5b
lea esi, [esi]
mov ebx, dword [edx + 0x14]
mov ecx, eax
add eax, 1
shl ecx, 5
mov dword [ebx + ecx + 0x18], 0xffffffff
mov ebx, dword [edx + 0x14]
mov dword [ebx + ecx + 0x1c], 0xffffffff
cmp dword [edx + 0xc], eax
ja 0x1002ea38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x1002e4a9
mov ecx, dword [ecx + 0xc]
mov ebx, dword [ebp + 8]
lea edx, [ecx - 1]
mov dword [ebp - 0x18], ecx
imul ecx, dword [eax + 4], 0x9e3779b9
and edx, ecx
shl edx, 5
mov ecx, dword [eax + edx + 0x18]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp + 8]
mov ecx, 1
mov eax, dword [eax + 0x14]
mov dword [eax + edx + 0x18], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
cmp edx, 1
jbe 0x1002eae4
lea esi, [esi]
mov esi, dword [ebx + 0x14]
mov edx, ecx
mov edi, dword [ebx + 0xc]
shl edx, 5
add edx, esi
sub edi, 1
imul eax, dword [edx + 4], 0x9e3779b9
and eax, edi
shl eax, 5
mov esi, dword [esi + eax + 0x18]
mov dword [edx + 0x1c], esi
mov edx, dword [ebx + 0x14]
mov dword [edx + eax + 0x18], ecx
mov edx, dword [ebx + 0x10]
add ecx, 1
cmp edx, ecx
ja 0x1002eab0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
jmp 0x1002e4a9
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], 0x7ff90001
jmp 0x1002e47c
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._jsval_strict_equal
test eax, eax
js 0x1002e47c
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x1002e81d
jmp 0x1002e69d
xor eax, eax
xor ebx, ebx
jmp 0x1002e519
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._jsval_release
mov eax, dword [ebp - 0x14]
jmp 0x1002e5ff
test esi, esi
jne 0x1002e98d
jmp 0x1002e9b6
mov edx, dword [eax + 0xc]
mov ebx, dword [ecx + 4]
jmp 0x1002e64a
mov dword [esp], edx
call sym._jsdisp_free
mov eax, dword [ebp - 0x14]
jmp 0x1002e99e
mov dword [esp], edx
call sym._jsdisp_free
mov eax, dword [ebp - 0x14]
jmp 0x1002e9d9
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
cmp dword [ecx + 0x24], edx
je 0x1002e98d
jmp 0x1002e86d
mov eax, 0x8007000e
jmp 0x1002e47c