Function at 0x1003b590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x1003b5ba
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003b5ba
mov ecx, edi
call dword [0x10066574]
mov edi, eax
jmp 0x1003b5bc
xor edi, edi
mov ebx, dword [esi]
test ebx, ebx
je 0x1003b5db
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003b5db
or edi, 0x20
mov ecx, ebx
push edi
call dword [0x10066578]
mov byte [ebp - 0x14], 0x7e
mov al, 0x1c
xor al, byte [ebp - 0x14]
mov dl, 0x10
mov byte [ebp - 0x13], al
mov dh, 0x11
mov al, byte [ebp - 0x14]
mov cl, 0xa
xor dl, al
mov byte [ebp - 0xa], 0
xor dh, al
mov byte [ebp - 0x11], dl
mov byte [ebp - 0xd], dh
xor cl, al
mov bl, 0x21
mov byte [ebp - 1], 0x1b
xor bl, al
mov byte [ebp - 0x12], cl
mov ah, 0x1d
mov byte [ebp - 0x10], bl
xor ah, al
mov byte [ebp - 0xa], 0
mov ch, 0x12
mov byte [ebp - 0xf], ah
xor ch, al
mov bh, 0xd
xor bh, al
mov byte [ebp - 0xe], ch
mov al, byte [ebp - 1]
sub esp, 0x18
xor al, byte [ebp - 0x14]
mov edx, esp
mov byte [ebp - 0xc], bh
mov byte [ebp - 0xb], al
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003b65b
mov eax, dword [edx]
jmp 0x1003b65d
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x13], 0
jne 0x1003b66a
xor ecx, ecx
jmp 0x1003b679
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b670
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
add esp, 0x18
mov dword [esi + 4], eax
mov cl, 0x6a
mov dword [ebp - 0x18], 0x41e086a
mov dword [ebp - 0x14], 0x180b1d35
xor eax, eax
mov dword [ebp - 0x10], 0x18050318
mov byte [ebp - 0xc], 0
nop
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0xb
jae 0x1003b6bf
mov cl, byte [ebp - 0x18]
jmp 0x1003b6b0
sub esp, 0x18
mov byte [ebp - 0xc], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003b6ee
mov eax, dword [edx]
jmp 0x1003b6f0
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x17], 0
jne 0x1003b6fd
xor ecx, ecx
jmp 0x1003b70c
lea ecx, [ebp - 0x17]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b703
sub ecx, edi
push ecx
lea eax, [ebp - 0x17]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
mov dword [esi + 8], eax
mov dl, 0x50
mov byte [ebp - 0x14], 0x3e
mov al, 0x5c
xor al, byte [ebp - 0x14]
mov dh, 0x59
mov byte [ebp - 0x13], al
mov cl, 0x4a
mov al, byte [ebp - 0x14]
mov bl, 0x61
xor dl, al
mov byte [ebp - 0xa], 0
xor dh, al
mov byte [ebp - 0x11], dl
mov byte [ebp - 0xd], dh
xor cl, al
xor bl, al
mov byte [ebp - 1], 0x5b
mov edx, esp
mov byte [ebp - 0x12], cl
mov ah, 0x4c
mov byte [ebp - 0x10], bl
xor ah, al
mov byte [ebp - 0xa], 0
mov ch, 0x51
mov byte [ebp - 0xf], ah
xor ch, al
mov bh, 0x4b
xor bh, al
mov byte [ebp - 0xe], ch
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x14]
mov byte [ebp - 0xc], bh
mov byte [ebp - 0xb], al
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003b79f
mov eax, dword [edx]
jmp 0x1003b7a1
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x13], 0
jne 0x1003b7ae
xor ecx, ecx
jmp 0x1003b7bd
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b7b4
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
mov dword [esi + 0xc], eax
mov dl, 0x42
mov byte [ebp - 0x14], 0x2c
mov al, 0x4e
xor al, byte [ebp - 0x14]
mov dh, 0x4b
mov byte [ebp - 0x13], al
mov cl, 0x58
mov al, byte [ebp - 0x14]
mov bl, 0x73
xor dl, al
mov byte [ebp - 0xb], 0
mov byte [ebp - 0x11], dl
xor dh, al
mov byte [ebp - 0xd], dh
mov ah, 0x41
mov edx, esp
mov byte [ebp - 0xb], 0
mov ch, 0x4d
mov bh, 0x49
xor cl, al
xor bl, al
mov byte [ebp - 0x12], cl
xor ah, al
mov byte [ebp - 0x10], bl
xor ch, al
mov byte [ebp - 0xf], ah
xor bh, al
mov byte [ebp - 0xe], ch
mov byte [ebp - 0xc], bh
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003b843
mov eax, dword [edx]
jmp 0x1003b845
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x13], 0
jne 0x1003b852
xor ecx, ecx
jmp 0x1003b861
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b858
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
mov dword [esi + 0x10], eax
mov cl, 0x16
xor al, al
mov byte [ebp - 0x14], 0x62
mov byte [ebp - 9], al
mov dl, 0xc
xor al, byte [ebp - 0x14]
mov dh, 0xb
mov byte [ebp - 0x13], al
mov bl, 0x3d
mov byte [ebp - 2], cl
mov ah, 0x12
xor cl, byte [ebp - 0x14]
mov ch, 0x10
mov byte [ebp - 0x12], cl
mov bh, 7
mov cl, byte [ebp - 0x14]
mov byte [ebp - 1], 0x11
xor dl, cl
mov al, byte [ebp - 1]
xor dh, cl
mov byte [ebp - 0x11], dl
xor al, cl
mov byte [ebp - 0xb], al
xor bl, cl
mov al, byte [ebp - 2]
xor ah, cl
mov byte [ebp - 0xd], dh
xor ch, cl
mov edx, esp
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], ah
xor bh, cl
mov byte [ebp - 0xe], ch
xor al, cl
mov byte [ebp - 0xc], bh
mov byte [ebp - 0xa], al
mov byte [ebp - 9], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003b8fe
mov eax, dword [edx]
jmp 0x1003b900
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x13], 0
jne 0x1003b90d
xor ecx, ecx
jmp 0x1003b91c
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b913
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
movaps xmm0, xmmword [0x100680f0]
add esp, 0x18
mov dword [esi + 0x14], eax
xor ecx, ecx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x2b2327
nop dword [eax]
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x12
jb 0x1003b950
sub esp, 0x18
mov byte [ebp - 9], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003b98c
mov eax, dword [edx]
jmp 0x1003b98e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1b], 0
jne 0x1003b99b
xor ecx, ecx
jmp 0x1003b9aa
lea ecx, [ebp - 0x1b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b9a1
sub ecx, edi
push ecx
lea eax, [ebp - 0x1b]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
movaps xmm0, xmmword [0x100683a0]
add esp, 0x18
mov dword [esi + 0x18], eax
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x7c677d71
mov word [ebp - 0xc], 0x66
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x14
jb 0x1003b9e0
sub esp, 0x18
mov byte [ebp - 0xb], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003ba1c
mov eax, dword [edx]
jmp 0x1003ba1e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x1003ba2b
xor ecx, ecx
jmp 0x1003ba3a
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ba31
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
movaps xmm0, xmmword [0x10068180]
add esp, 0x18
mov dword [esi + 0x1c], eax
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x3e320e3d
mov dword [ebp - 0xc], 0x253f24
nop
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x16
jb 0x1003ba70
sub esp, 0x18
mov byte [ebp - 9], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x1003baa1
xor ecx, ecx
jmp 0x1003bab0
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003baa7
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10005550
mov ecx, dword [esi]
call fcn.10010890
add esp, 0x18
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret