Function at 0x10039270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x1003929b
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003929b
mov eax, dword [0x100735e4]
mov ecx, edi
call eax
mov edi, eax
jmp 0x1003929d
xor edi, edi
mov ebx, dword [esi]
or edi, 0x20
test ebx, ebx
je 0x100392bc
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100392bc
push edi
mov ecx, ebx
call dword [0x100735e8]
mov edi, dword [esi]
mov al, 0x1a
mov byte [ebp - 0x14], 0x78
mov cl, 0xc
xor al, byte [ebp - 0x14]
mov dl, 0x16
mov byte [ebp - 0x13], al
mov bl, 0x27
mov al, byte [ebp - 0x14]
mov ch, 0x14
xor cl, al
mov byte [ebp - 1], 0x1d
xor dl, al
mov byte [ebp - 0x12], cl
xor bl, al
mov byte [ebp - 0x11], dl
xor ch, al
mov byte [ebp - 0xa], 0
mov dh, 0x17
mov byte [ebp - 0xe], ch
xor dh, al
mov byte [ebp - 0x10], bl
mov bh, 0xb
mov byte [ebp - 0xd], dh
xor bh, al
mov byte [ebp - 0xa], 0
mov ah, 0x1b
mov byte [ebp - 0xc], bh
xor ah, al
lea edx, [ebp - 0x13]
mov al, byte [ebp - 1]
lea ebx, [edx + 1]
xor al, byte [ebp - 0x14]
xorps xmm0, xmm0
sub esp, 0x18
mov byte [ebp - 0xf], ah
mov ecx, esp
mov byte [ebp - 0xb], al
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10039332
sub edx, ebx
lea eax, [ebp - 0x13]
push edx
push eax
call fcn.100051a0
mov ecx, edi
call fcn.10012c60
mov ebx, dword [esi]
add esp, 0x18
mov dword [esi + 4], eax
mov cl, 0x78
mov dword [ebp - 0x18], 0x160c1a78
xor eax, eax
mov dword [ebp - 0x14], 0xa190f27
mov dword [ebp - 0x10], 0xa17110a
mov byte [ebp - 0xc], 0
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0xb
jae 0x10039380
mov cl, byte [ebp - 0x18]
jmp 0x10039371
sub esp, 0x18
mov byte [ebp - 0xc], 0
mov ecx, esp
lea edx, [ebp - 0x17]
xorps xmm0, xmm0
lea edi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x100393a3
sub edx, edi
lea eax, [ebp - 0x17]
push edx
push eax
call fcn.100051a0
mov ecx, ebx
call fcn.10012c60
mov edi, dword [esi]
mov cl, 0x6c
mov dword [esi + 8], eax
mov ch, 0x77
mov byte [ebp - 0x14], 0x18
mov al, 0x7a
xor al, byte [ebp - 0x14]
mov dl, 0x76
mov byte [ebp - 0x13], al
mov bl, 0x47
mov al, byte [ebp - 0x14]
mov dh, 0x7f
xor cl, al
mov byte [ebp - 1], 0x7d
xor ch, al
mov byte [ebp - 0x12], cl
mov bh, 0x6d
mov byte [ebp - 0xe], ch
xor dl, al
mov byte [ebp - 0xa], 0
xor bl, al
mov byte [ebp - 0x11], dl
xor dh, al
mov byte [ebp - 0x10], bl
xor bh, al
mov byte [ebp - 0xd], dh
mov ecx, esp
mov byte [ebp - 0xc], bh
mov ah, 0x6a
mov byte [ebp - 0xa], 0
xor ah, al
lea edx, [ebp - 0x13]
mov al, byte [ebp - 1]
lea ebx, [edx + 1]
xor al, byte [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xb], al
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10039433
sub edx, ebx
lea eax, [ebp - 0x13]
push edx
push eax
call fcn.100051a0
mov ecx, edi
call fcn.10012c60
mov edi, dword [esi]
mov cl, 0x23
mov dword [esi + 0xc], eax
mov ch, 0x36
mov byte [ebp - 0x14], 0x57
mov al, 0x35
xor al, byte [ebp - 0x14]
mov dl, 0x39
mov byte [ebp - 0x13], al
mov dh, 0x30
mov al, byte [ebp - 0x14]
mov bl, 8
xor cl, al
mov byte [ebp - 0xb], 0
xor ch, al
mov byte [ebp - 0x12], cl
xor dl, al
mov byte [ebp - 0xe], ch
mov ecx, esp
mov byte [ebp - 0x11], dl
xor dh, al
mov byte [ebp - 0xb], 0
mov ah, 0x3a
mov byte [ebp - 0xd], dh
mov bh, 0x32
lea edx, [ebp - 0x13]
xor bl, al
xor ah, al
xor bh, al
mov byte [ebp - 0x10], bl
xorps xmm0, xmm0
mov byte [ebp - 0xc], bh
movups xmmword [ecx], xmm0
mov byte [ebp - 0xf], ah
lea ebx, [edx + 1]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x100394b6
sub edx, ebx
lea eax, [ebp - 0x13]
push edx
push eax
call fcn.100051a0
mov ecx, edi
call fcn.10012c60
mov edi, dword [esi]
mov cl, 0x1d
mov dword [esi + 0x10], eax
xor dh, dh
mov byte [ebp - 2], cl
mov al, 0xb
mov byte [ebp - 0x14], 0x69
mov ch, 0x1b
xor al, byte [ebp - 0x14]
mov dl, 7
xor cl, byte [ebp - 0x14]
mov bl, 0x36
mov byte [ebp - 0x13], al
mov bh, 0xc
mov byte [ebp - 0x12], cl
mov ah, 0x19
mov cl, byte [ebp - 0x14]
xorps xmm0, xmm0
mov byte [ebp - 1], 0x1a
xor dl, cl
mov al, byte [ebp - 1]
xor bl, cl
xor al, cl
mov byte [ebp - 9], dh
xor ch, cl
mov byte [ebp - 0xb], al
mov al, byte [ebp - 2]
xor dh, cl
xor bh, cl
mov byte [ebp - 0xe], ch
xor ah, cl
mov byte [ebp - 0x11], dl
xor al, cl
mov byte [ebp - 0xd], dh
mov ecx, esp
mov byte [ebp - 0x10], bl
lea edx, [ebp - 0x13]
mov byte [ebp - 0xc], bh
mov byte [ebp - 0xf], ah
lea ebx, [edx + 1]
mov byte [ebp - 0xa], al
movups xmmword [ecx], xmm0
mov byte [ebp - 9], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10039550
sub edx, ebx
lea eax, [ebp - 0x13]
push edx
push eax
call fcn.100051a0
mov ecx, edi
call fcn.10012c60
movaps xmm0, xmmword [0x10074a80]
add esp, 0x18
mov ebx, dword [esi]
xor ecx, ecx
mov dword [esi + 0x14], eax
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x141c18
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x12
jb 0x10039586
sub esp, 0x18
mov byte [ebp - 9], 0
mov ecx, esp
lea edx, [ebp - 0x1b]
xorps xmm0, xmm0
lea edi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x100395b6
sub edx, edi
lea eax, [ebp - 0x1b]
push edx
push eax
call fcn.100051a0
mov ecx, ebx
call fcn.10012c60
movaps xmm0, xmmword [0x10075750]
add esp, 0x18
mov ebx, dword [esi]
xor ecx, ecx
mov dword [esi + 0x18], eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x4b504a46
mov word [ebp - 0xc], 0x51
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x14
jb 0x100395f2
sub esp, 0x18
mov byte [ebp - 0xb], 0
mov ecx, esp
lea edx, [ebp - 0x1f]
xorps xmm0, xmm0
lea edi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10039622
sub edx, edi
lea eax, [ebp - 0x1f]
push edx
push eax
call fcn.100051a0
mov ecx, ebx
call fcn.10012c60
movaps xmm0, xmmword [0x10075790]
add esp, 0x18
mov ebx, dword [esi]
xor ecx, ecx
mov dword [esi + 0x1c], eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x7975497a
mov dword [ebp - 0xc], 0x627863
nop
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x16
jb 0x10039660
sub esp, 0x18
mov byte [ebp - 9], 0
mov ecx, esp
lea edx, [ebp - 0x1f]
xorps xmm0, xmm0
lea edi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10039690
sub edx, edi
lea eax, [ebp - 0x1f]
push edx
push eax
call fcn.100051a0
mov ecx, ebx
call fcn.10012c60
add esp, 0x18
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret