Function at 0x10001850
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x1003d500]
xor eax, esp
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
add edx, 8
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x2c], ebp
lea esi, [esp + 0x31]
mov ecx, 4
movzx eax, byte [edx - 8]
lea edx, [edx + 1]
mov byte [esi - 1], al
lea esi, [esi + 4]
movzx eax, byte [edx - 5]
mov byte [esi - 4], al
movzx eax, byte [edx - 1]
mov byte [esi - 3], al
movzx eax, byte [edx + 3]
mov byte [esi - 2], al
sub ecx, 1
jne 0x10001880
mov edi, dword [ebp + 4]
lea ebx, [esp + 0x32]
mov esi, edi
mov dword [esp + 0x20], edi
shl esi, 4
lea ebp, [esp + 0x30]
add esi, dword [esp + 0x60]
lea edi, [esp + 0x33]
lea edx, [esi + 0xc]
jmp 0x100018d0
movzx eax, byte [ecx + esi]
lea edx, [edx + 1]
xor byte [ebp + ecx*4], al
movzx eax, byte [esi + ecx + 4]
xor byte [esp + ecx*4 + 0x31], al
movzx eax, byte [edx - 5]
xor byte [ebx + ecx*4], al
movzx eax, byte [edx - 1]
xor byte [edi + ecx*4], al
inc ecx
cmp ecx, 4
jb 0x100018d0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
dec ebp
mov dword [esp + 0x20], ebp
cmp ebp, 1
jb 0x10001acb
mov edi, ebp
lea ebx, [esp + 0x30]
shl edi, 4
lea esi, [esp + 0x32]
add edi, dword [esp + 0x60]
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
call fcn.10001d40
movzx eax, byte [esp + 0x37]
xor edx, edx
mov byte [esp + 0x18], al
movzx eax, byte [esp + 0x34]
mov byte [esp + 0x19], al
movzx eax, byte [esp + 0x35]
mov byte [esp + 0x1a], al
movzx eax, byte [esp + 0x36]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
movzx eax, byte [esp + 0x3a]
mov byte [esp + 0x1c], al
movzx eax, byte [esp + 0x3b]
mov byte [esp + 0x1d], al
movzx eax, byte [esp + 0x38]
mov byte [esp + 0x1e], al
movzx eax, byte [esp + 0x39]
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x3e]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x3f]
mov byte [esp + 0x10], ch
mov byte [esp + 0x13], cl
mov ecx, edi
mov byte [esp + 0x12], al
lea edi, [esp + 0x33]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [ebx + edx*4], al
movzx eax, byte [ecx + 3]
xor byte [esp + edx*4 + 0x31], al
movzx eax, byte [ecx + 7]
xor byte [esi + edx*4], al
movzx eax, byte [ecx + 0xb]
xor byte [edi + edx*4], al
inc edx
cmp edx, 4
jb 0x100019b7
mov edi, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x40], eax
xor esi, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov cl, byte [esp + esi + 0x42]
xor eax, eax
mov bl, byte [esp + esi + 0x40]
mov bh, byte [esp + esi + 0x41]
mov byte [esp + 0x15], cl
mov cl, byte [esp + esi + 0x43]
mov byte [esp + 0x16], cl
mov edi, edi
movzx edx, byte [esi + eax + 0x10031370]
movzx ecx, byte [esp + eax*4 + 0x30]
shl edx, 8
xor bl, byte [ecx + edx + 0x10030460]
movzx ecx, byte [esp + eax*4 + 0x31]
mov byte [esp + 0x17], bl
mov bl, byte [esp + 0x15]
xor bh, byte [ecx + edx + 0x10030460]
movzx ecx, byte [esp + eax*4 + 0x32]
xor bl, byte [ecx + edx + 0x10030460]
movzx ecx, byte [esp + eax*4 + 0x33]
inc eax
mov byte [esp + 0x15], bl
mov bl, byte [esp + 0x16]
xor bl, byte [ecx + edx + 0x10030460]
mov byte [esp + 0x16], bl
mov bl, byte [esp + 0x17]
cmp eax, 4
jb 0x10001a10
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
mov byte [esp + esi + 0x40], bl
mov byte [esp + esi + 0x41], bh
mov byte [esp + esi + 0x42], al
mov byte [esp + esi + 0x43], cl
add esi, 4
cmp esi, 0x10
jb 0x100019f4
mov eax, dword [esp + 0x40]
lea ebx, [esp + 0x30]
mov dword [esp + 0x30], eax
lea esi, [esp + 0x32]
mov eax, dword [esp + 0x44]
sub edi, 0x10
sub dword [esp + 0x20], 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], edi
jne 0x10001923
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
call fcn.10001d40
movzx eax, byte [esp + 0x37]
mov esi, 4
mov byte [esp + 0x10], al
movzx eax, byte [esp + 0x34]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x35]
mov byte [esp + 0x12], al
movzx eax, byte [esp + 0x36]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x34], eax
add edx, 8
movzx eax, byte [esp + 0x3a]
mov byte [esp + 0x10], al
movzx eax, byte [esp + 0x3b]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x38]
mov byte [esp + 0x12], al
movzx eax, byte [esp + 0x39]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x3e]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x3f]
mov byte [esp + 0x10], ch
mov byte [esp + 0x13], cl
lea ecx, [esp + 0x31]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
jmp 0x10001b70
movzx eax, byte [edx - 8]
lea edx, [edx + 1]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
xor byte [ecx - 4], al
movzx eax, byte [edx - 1]
xor byte [ecx - 3], al
movzx eax, byte [edx + 3]
xor byte [ecx - 2], al
sub esi, 1
jne 0x10001b70
xor ecx, ecx
lea edx, [esp + 0x30]
lea esi, [esp + 0x32]
lea edi, [esp + 0x33]
jmp 0x10001bb0
movzx eax, byte [edx + ecx*4]
mov byte [ebx + ecx], al
movzx eax, byte [esp + ecx*4 + 0x31]
mov byte [ebx + ecx + 4], al
movzx eax, byte [esi + ecx*4]
mov byte [ebx + ecx + 8], al
movzx eax, byte [edi + ecx*4]
mov byte [ebx + ecx + 0xc], al
inc ecx
cmp ecx, 4
jb 0x10001bb0
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10011142
add esp, 0x44
ret 0xc