Function at 0x1002b560
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080044
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 0
cmp dword [0x100933d4], 0
je 0x1002be5a
cmp byte [0x100910c1], 0
je 0x1002be5a
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea edi, [eax + 0x10]
mov eax, 0xa
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], eax
nop word [eax + eax]
mov edi, dword [edi]
test edi, edi
je 0x1002b60b
push 4
push edi
call esi
test eax, eax
jne 0x1002b608
push eax
mov ecx, edi
call dword [0x10088b1c]
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x18]
add edi, 4
sub eax, 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], eax
jne 0x1002b5f0
mov edi, dword [ebp - 0x5c]
mov ecx, dword [edi + 4]
call dword [0x10088c00]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x88]
mov ax, word [ecx]
cmp ax, word [edx]
jb 0x1002b8fc
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jb 0x1002b8fc
mov ax, word [ecx + 4]
cmp ax, word [edx + 4]
jb 0x1002b8fc
mov ax, word [ecx + 6]
cmp ax, word [edx + 6]
jb 0x1002b8fc
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x1002b695
push 4
push eax
call esi
test eax, eax
jne 0x1002b695
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x24]
push eax
call dword [0x10088b10]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x1002b6c3
push 4
push eax
call esi
test eax, eax
jne 0x1002b6c3
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x1c]
push eax
call dword [0x10088b10]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x1002b6e7
push 4
push eax
call esi
test eax, eax
jne 0x1002b6e7
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xe8]
sub ecx, dword [eax + 0xe0]
jmp 0x1002b6e9
xor ecx, ecx
mov eax, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x1002b719
push 4
push eax
call esi
test eax, eax
jne 0x1002b719
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x88]
push dword [ebp - 0x1c]
call dword [0x10088b14]
cmp dword [ebx + 0x28], 0xf
lea eax, [ebx + 0x14]
mov dl, 0x22
mov byte [ebp - 0x59], 0
cmova eax, dword [ebx + 0x14]
mov cl, 0x51
push eax
mov al, 7
mov byte [ebp - 0x5c], dl
xor al, dl
mov byte [ebp - 0x59], 0
xor cl, dl
mov byte [ebp - 0x5b], al
sub esp, 0x18
mov byte [ebp - 0x5a], cl
mov edx, esp
lea ecx, [ebp - 0x5b]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b762
sub ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x5b]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0xd0]
push eax
call fcn.10006910
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [edi + 8]
call fcn.10014db0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0xf
jbe 0x1002b7d5
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b7cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002b7cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
movaps xmm0, xmmword [0x10089990]
xor ecx, ecx
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x90], 0x363f233e
mov dword [ebp - 0x8c], 0x723627
nop dword [eax]
mov al, byte [ebp - 0xa0]
xor byte [ebp + ecx - 0x9f], al
inc ecx
cmp ecx, 0x16
jb 0x1002b800
sub esp, 0x18
mov byte [ebp - 0x89], 0
mov edx, esp
lea ecx, [ebp - 0x9f]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b840
sub ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x9f]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0xb8]
push eax
call fcn.10006910
add esp, 0x1c
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [edi + 0x38]
call fcn.10014db0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x1002b8b6
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b8ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002b8ac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov dword [ebp - 0x58], eax
test eax, eax
je 0x1002be4f
push 4
push eax
call esi
test eax, eax
jne 0x1002be4f
mov ecx, dword [ebp - 0x58]
push 1
call dword [0x10088b1c]
jmp 0x1002be4f
cmp dword [ebx + 0x28], 0xf
lea eax, [ebx + 0x14]
mov dl, 0x7b
mov byte [ebp - 0x51], 0
cmova eax, dword [ebx + 0x14]
mov cl, 8
push eax
mov al, 0x5e
mov byte [ebp - 0x54], dl
xor al, dl
mov byte [ebp - 0x51], 0
xor cl, dl
mov byte [ebp - 0x53], al
sub esp, 0x18
mov byte [ebp - 0x52], cl
mov edx, esp
lea ecx, [ebp - 0x53]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b945
sub ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0xb8]
push eax
call fcn.10006910
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [edi + 8]
call fcn.10014db0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x1002b9b8
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b9ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002b9ae
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebx + 8]
xor al, al
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov byte [ebp - 0x4d], al
nop dword [eax + eax]
movzx eax, al
lea eax, [ecx + eax*2]
mov dword [ebp - 0x54], eax
movzx eax, word [eax]
test ax, ax
je 0x1002be3f
mov dword [ebp - 0x18], eax
mov ecx, 0x10091114
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.10004f10
mov ecx, dword [ebp - 0x8c]
cmp byte [ecx + 0xd], 0
jne 0x1002ba21
mov eax, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x10]
jae 0x1002ba27
mov ecx, dword [0x10091114]
xor edx, edx
mov byte [ebp - 0x6c], 0x1a
cmp ecx, dword [0x10091114]
lea eax, [ecx + 0x14]
mov cl, 0x74
mov byte [ebp - 0x64], 0
cmovne edx, eax
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x18], edx
mov al, 0x4f
xor al, byte [ebp - 0x6c]
mov ah, cl
mov byte [ebp - 0x6b], al
mov dl, 0x71
mov al, byte [ebp - 0x6c]
mov ch, 0x75
mov dh, 0x6d
mov byte [ebp - 0x4e], ah
xor cl, al
mov dword [ebp - 0x3c], 0
xor dl, al
mov byte [ebp - 0x6a], cl
xor ch, al
mov byte [ebp - 0x69], dl
xor dh, al
mov byte [ebp - 0x67], ch
xor ah, al
mov byte [ebp - 0x66], dh
mov al, byte [ebp - 0x4e]
lea ecx, [ebp - 0x6b]
xor al, byte [ebp - 0x6c]
lea edx, [ecx + 1]
xorps xmm0, xmm0
mov byte [ebp - 0x68], ah
mov byte [ebp - 0x65], al
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002baa0
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.100024a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002bae1
add eax, 4
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x1002bc04
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x1002bada
mov eax, dword [eax]
push ecx
push eax
jmp 0x1002bbfc
mov eax, dword [ebp - 0x54]
cmp word [eax], 1
jne 0x1002bc04
cmp byte [0x100933e2], 0
mov eax, dword [0x100933d4]
mov dword [ebp - 0x54], eax
je 0x1002bb39
mov ecx, 0xd78c9c
call fcn.10014f70
mov edi, eax
test edi, edi
je 0x1002bb33
push 4
push edi
call esi
test eax, eax
jne 0x1002bb33
push 4
add edi, 0x6a0
push edi
call esi
test eax, eax
jne 0x1002bb33
mov ecx, dword [ebp - 0x54]
mov al, byte [edi]
mov byte [ecx + 0x34], al
mov eax, ecx
jmp 0x1002bb36
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x5c]
cmp byte [eax + 0x34], 1
jne 0x1002bbaf
mov byte [ebp - 0x84], 0x1b
mov al, 0x5e
xor al, byte [ebp - 0x84]
mov cl, 0x77
xor cl, byte [ebp - 0x84]
mov dl, 0x3b
mov byte [ebp - 0x83], al
mov dh, 0x69
mov byte [ebp - 0x4e], 0x7a
mov ah, 0x56
mov al, byte [ebp - 0x4e]
mov ch, 0x74
mov byte [ebp - 0x82], cl
mov cl, byte [ebp - 0x84]
xor al, cl
mov byte [ebp - 0x5d], 0x7f
mov byte [ebp - 0x7d], al
xor dl, cl
mov al, byte [ebp - 0x5d]
xor dh, cl
xor ah, cl
mov byte [ebp - 0x7b], 0
xor ch, cl
mov byte [ebp - 0x81], dl
xor al, cl
mov byte [ebp - 0x7e], dh
mov byte [ebp - 0x80], ah
lea edx, [ebp - 0x83]
mov byte [ebp - 0x7f], ch
mov byte [ebp - 0x7c], al
mov byte [ebp - 0x7b], 0
jmp 0x1002bbe2
mov dh, 0x64
mov byte [ebp - 0x1e], 0
mov dl, 0x16
mov byte [ebp - 0x24], dh
mov al, 0x2f
mov byte [ebp - 0x1e], 0
mov cl, 5
mov ah, 0x11
xor al, dh
xor cl, dh
xor dl, dh
mov byte [ebp - 0x23], al
xor ah, dh
mov byte [ebp - 0x21], dl
mov ch, 0x17
mov byte [ebp - 0x22], cl
xor ch, dh
mov byte [ebp - 0x20], ah
mov byte [ebp - 0x1f], ch
lea edx, [ebp - 0x23]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bbf0
sub ecx, dword [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.10003620
movzx eax, byte [ebp - 0x4d]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x38], 0xf
mov byte [ebp - 0x78], 0x38
movzx edx, word [edx + eax*2]
movzx eax, byte [ebp - 0x4d]
push edx
mov dl, 0x18
mov byte [ebp - 0x6f], 0
mov dh, 0x17
mov byte [ebp - 0x6f], 0
movzx ecx, word [ecx + eax*2]
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
push ecx
push eax
mov al, 0x1d
mov cl, 0x4b
xor cl, byte [ebp - 0x78]
mov ah, al
xor al, byte [ebp - 0x78]
mov ch, 0x5c
mov byte [ebp - 0x77], al
mov byte [ebp - 0x5d], ah
mov al, byte [ebp - 0x5d]
mov byte [ebp - 0x76], cl
mov cl, byte [ebp - 0x78]
xor al, cl
mov byte [ebp - 0x4e], ch
mov byte [ebp - 0x71], al
xor dl, cl
mov al, byte [ebp - 0x4e]
xor ah, cl
xor dh, cl
mov byte [ebp - 0x75], dl
xor al, cl
mov byte [ebp - 0x72], dh
xor ch, cl
mov byte [ebp - 0x74], ah
sub esp, 0x18
mov byte [ebp - 0x73], ch
mov edx, esp
mov byte [ebp - 0x70], al
lea ecx, [ebp - 0x77]
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bca0
sub ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x77]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0xd0]
push eax
call fcn.10006910
add esp, 0x28
movzx ecx, byte [ebp - 0x4d]
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, dword [edi + ecx*4 + 0x38]
call fcn.10014db0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0xf
jbe 0x1002bd16
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002bd0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b7c5
push ecx
push edx
call fcn.1007d105
add esp, 8
movzx eax, byte [ebp - 0x4d]
add eax, 4
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
mov dword [ebp - 0x28], 0
lea eax, [edi + eax*4]
mov dword [ebp - 0x2c], 0
mov edi, dword [eax]
mov dword [ebp - 0x18], eax
test edi, edi
je 0x1002bd67
push 4
push edi
call esi
test eax, eax
jne 0x1002bd67
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call dword [0x10088b10]
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov edi, dword [edi + 0xc]
test edi, edi
je 0x1002bd94
push 4
push edi
call esi
test eax, eax
jne 0x1002bd94
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call dword [0x10088b10]
mov edi, dword [ebp - 0x18]
mov edi, dword [edi]
test edi, edi
je 0x1002bdb4
push 4
push edi
call esi
test eax, eax
jne 0x1002bdb4
mov ecx, dword [edi + 0xe8]
sub ecx, dword [edi + 0xe0]
jmp 0x1002bdb6
xor ecx, ecx
mov eax, dword [ebp - 0x28]
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x1002bddf
push 4
push edi
call esi
test eax, eax
jne 0x1002bddf
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x34]
call dword [0x10088b14]
movzx eax, byte [ebp - 0x4d]
mov edi, dword [ebp - 0x5c]
mov edi, dword [edi + eax*4 + 0x10]
test edi, edi
je 0x1002be01
push 4
push edi
call esi
test eax, eax
jne 0x1002be01
push 1
mov ecx, edi
call dword [0x10088b1c]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x1002be39
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002be2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b7c5
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebx + 8]
mov edi, dword [ebp - 0x5c]
mov al, byte [ebp - 0x4d]
inc al
mov byte [ebp - 0x4d], al
cmp al, 4
jb 0x1002b9e0
mov ecx, dword [edi + 4]
push 1
call dword [0x10088c04]
mov ecx, dword [ebx + 0x28]
cmp ecx, 0xf
jbe 0x1002be90
mov edx, dword [ebx + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002be86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002be86
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007d0a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x24