Function at 0x8003bc9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov al, byte [0x80060ba0]
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
inc esi
cmp al, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov byte [0x80060ba3], al
jne 0x8003bcc6
lea eax, [ebp + 0x10]
push eax
call fcn.8003a72a
cmp dword [ebp + 0x10], edi
jne 0x8003bcd2
mov dword [ebp + 0x10], 0xf010101
push dword [sym.xboxkrnl.exe_Ordinal_356]
call fcn.8003a13c
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
shr ecx, 0x18
and cl, 0xf
mov byte [ebp - 3], cl
movzx ecx, byte [ebp + 0x12]
mov dword [ebp - 0x20], ecx
movzx ecx, bh
mov dword [ebp - 0x2c], ecx
mov ecx, ebx
and ecx, 0x7f
mov edx, ebx
mov dword [ebp - 8], ecx
mov cl, byte [0x80060ba3]
and edx, 0xc0000000
test cl, cl
mov dword [ebp - 0x28], edx
jne 0x8003bd38
cmp byte [0x80044a18], cl
jne 0x8003bd27
cmp eax, 5
je 0x8003bd27
mov dword [ebp - 0x14], edi
jmp 0x8003bd35
cmp edx, 0x80000000
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
je 0x8003bd38
mov dword [ebp - 0xc], edi
mov eax, dword [ebp + 0x14]
sub eax, 0x10
je 0x8003bd62
dec eax
je 0x8003bd55
dec eax
je 0x8003bd4f
sub eax, 0xa
je 0x8003bd62
dec eax
dec eax
jne 0x8003bd6d
mov byte [ebp + 0x17], 3
jmp 0x8003bd66
mov dword [ebp - 0x10], 0x101030
mov byte [ebp + 0x17], 2
jmp 0x8003bd6d
mov byte [ebp + 0x17], 2
mov dword [ebp - 0x10], 0x100030
mov eax, dword [ebp + 0x18]
shr eax, 3
cmp dword [0x80060b90], ebx
mov dword [ebp + 0x18], eax
jne 0x8003be22
cmp dword [0x80060b9c], 2
je 0x8003be22
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x680600], ecx
mov byte [esi + 0x6013d4], 0x1f
mov byte [esi + 0x6013d5], 0x57
mov byte [esi + 0x6013d4], 0x13
mov byte [esi + 0x6013d5], al
shr eax, 3
and ax, 0xe0
mov byte [esi + 0x6013d4], 0x19
mov byte [esi + 0x6013d5], al
mov al, byte [ebp + 0x17]
push edi
or al, 0x80
push 5
mov byte [esi + 0x6013d4], 0x28
mov byte [esi + 0x6013d5], al
mov eax, dword [ebp + 0x1c]
push 0xb
push esi
mov dword [esi + 0x600800], eax
call sym.xboxkrnl.exe_Ordinal_2
push edi
push edi
push 0xe
push esi
call sym.xboxkrnl.exe_Ordinal_2
cmp dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x10]
mov dword [0x80060b90], eax
je 0x8003c2c3
mov dword [esi + 0x680630], edi
mov dword [esi + 0x6808c4], edi
mov dword [esi + 0x68084c], edi
jmp 0x8003c2c3
cmp cl, 1
jne 0x8003be2f
push esi
push 0x60
call fcn.8003a394
mov esi, dword [ebp + 8]
mov dx, 0x80d3
mov al, 5
out dx, al
mov eax, dword [esi + 0x6806a0]
mov ecx, eax
shr ecx, 4
mov dword [ebp - 0x30], eax
not ecx
not eax
xor ecx, eax
test cl, 1
jne 0x8003be39
mov byte [esi + 0x6013d4], 0x1f
mov byte [esi + 0x6013d5], 0x57
push 0x80
mov byte [esi + 0x6013d4], 0x21
push 0
mov byte [esi + 0x6013d5], 0xff
mov ebx, 0xba
mov byte [esi + 0x6013d4], 0x28
push ebx
mov edi, 0x8a
mov byte [esi + 0x6013d5], 0
push edi
mov dword [esi + 0x680880], 0x21121111
call sym.xboxkrnl.exe_Ordinal_50
push 0x3f
push 0
push ebx
push edi
call sym.xboxkrnl.exe_Ordinal_50
push 0x46
xor ebx, ebx
push ebx
push 0x6c
push edi
call sym.xboxkrnl.exe_Ordinal_50
push 1
call sym.xboxkrnl.exe_Ordinal_151
push 0xc6
push ebx
push 0x6c
push edi
call sym.xboxkrnl.exe_Ordinal_50
cmp dword [ebp - 0xc], ebx
je 0x8003bf13
mov ebx, dword [ebp - 8]
imul ebx, ebx, 0xd
lea ebx, [ebx - 0x7ffe83f0]
lea eax, [ebx + 0xd]
cmp ebx, eax
mov dword [ebp - 0xc], eax
jae 0x8003c006
mov dword [ebp + 8], 0x80017c10
sub dword [ebp + 8], ebx
movzx eax, byte [ebx]
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + ebx]
push 0
push eax
push edi
call sym.xboxkrnl.exe_Ordinal_50
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x8003bef4
jmp 0x8003c006
cmp dword [ebp - 0x28], 0x80000000
jne 0x8003bf5f
mov ebx, dword [ebp - 8]
imul ebx, ebx, 0xd
lea ebx, [ebx - 0x7ffe8424]
lea eax, [ebx + 0xd]
cmp ebx, eax
mov dword [ebp - 0xc], eax
jae 0x8003c006
mov dword [ebp + 8], 0x80017bdc
sub dword [ebp + 8], ebx
movzx eax, byte [ebx]
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + ebx]
push 0
push eax
push edi
call sym.xboxkrnl.exe_Ordinal_50
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x8003bf40
jmp 0x8003c006
mov ebx, 0x8001745e
movzx eax, byte [ebx]
push eax
xor eax, eax
mov al, byte [ebx - 0x16]
push 0
push eax
push edi
call sym.xboxkrnl.exe_Ordinal_50
inc ebx
cmp ebx, 0x80017474
jb 0x8003bf64
mov ebx, dword [ebp - 8]
imul ebx, ebx, 0x3f
lea ebx, [ebx - 0x7ffe8b88]
lea eax, [ebx + 0x3f]
cmp ebx, eax
mov dword [ebp - 0xc], eax
jae 0x8003bfb9
mov dword [ebp + 8], 0x80017478
sub dword [ebp + 8], ebx
movzx eax, byte [ebx]
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + ebx]
push 0
push eax
push edi
call sym.xboxkrnl.exe_Ordinal_50
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x8003bf9f
cmp dword [0x80056d08], 2
jne 0x8003c006
cmp dword [ebp - 8], 0xd
je 0x8003bfd4
cmp dword [ebp - 8], 0xe
je 0x8003bfd4
cmp dword [ebp - 8], 0x12
jne 0x8003c006
push 8
xor ebx, ebx
push ebx
push 0xa2
push edi
call sym.xboxkrnl.exe_Ordinal_50
push pe_nt_image_headers32
push ebx
push 0xa4
push edi
call sym.xboxkrnl.exe_Ordinal_50
push 0x9a
push ebx
push 0xac
push edi
call sym.xboxkrnl.exe_Ordinal_50
test byte [ebp + 0x13], 0x20
je 0x8003c015
push dword [ebp - 8]
push esi
call fcn.8003bc5b
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x20]
shr eax, 0x1c
imul ebx, ebx, 0x68
and al, 1
or al, 4
mov dx, 0x80d6
out dx, al
add dx, 2
mov al, 4
out dx, al
lea ecx, [esi + 0x68050c]
mov eax, dword [ecx]
or eax, 0x10020000
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov byte [esi + 0xc03c3], 1
add ebx, 0x80017e00
mov byte [esi + 0xc03c2], 0xe3
mov dword [esi + 0x680600], eax
lea eax, [ebx + 0x68]
xor edx, edx
cmp ebx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp + 8], edx
jae 0x8003c0c7
cmp byte [0x80060ba3], 1
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 - 0x7ffe8200]
mov dword [ebp - 0x1c], eax
jne 0x8003c0b3
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebp + 8]
add al, 0x1a
shl al, 2
push eax
push 1
call fcn.8003a4ca
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
mov al, byte [ebp + 8]
shl al, 2
push eax
push 1
call fcn.8003a4ca
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add ebx, 4
inc dword [ebp + 8]
cmp ebx, dword [ebp - 0x28]
mov dword [ecx + esi], eax
jb 0x8003c06c
test byte [ebp + 0x13], 0x20
jne 0x8003c0d2
cmp dword [ebp - 0x14], edx
je 0x8003c0e4
mov dword [esi + 0x680630], edx
mov dword [esi + 0x6808c4], edx
mov dword [esi + 0x68084c], edx
mov ecx, 0x80010ac0
mov al, byte [ecx]
mov byte [esi + 0xc03c4], dl
inc ecx
inc edx
cmp ecx, 0x80010ac5
mov byte [esi + 0xc03c5], al
jb 0x8003c0e9
mov ecx, 0x80010ab4
xor edx, edx
mov al, byte [ecx]
mov byte [esi + 0xc03ce], dl
inc ecx
inc edx
cmp ecx, 0x80010abd
mov byte [esi + 0xc03cf], al
jb 0x8003c108
mov ecx, 0x80010a9c
xor ebx, ebx
lea eax, [esi + 0x6013c0]
mov dl, byte [ecx]
mov byte [eax], bl
inc ecx
inc ebx
cmp ecx, 0x80010ab1
mov byte [eax], dl
jb 0x8003c12d
and dword [ebp + 8], 0
mov byte [eax], 0x20
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x22
lea eax, [eax - 0x7ffe7a48]
lea ecx, [eax + 0x22]
cmp eax, ecx
mov byte [esi + 0x6013d4], 0x11
mov byte [esi + 0x6013d5], 0
mov dword [ebp - 0xc], ecx
jae 0x8003c1f6
mov dword [ebp - 0x14], 0x800185b8
sub dword [ebp - 0x14], eax
mov ebx, eax
cmp byte [0x80060ba3], 1
mov eax, dword [ebp - 0x14]
mov al, byte [eax + ebx]
mov cl, byte [ebx]
mov byte [ebp - 2], al
mov byte [ebp - 1], cl
jne 0x8003c1b3
lea eax, [ebp - 2]
push eax
push dword [ebp + 8]
push 5
call fcn.8003a4a9
lea eax, [ebp - 1]
push eax
xor eax, eax
mov al, byte [ebp + 8]
add al, 0x22
push eax
push 5
call fcn.8003a4a9
mov al, byte [ebp - 2]
cmp al, 0x13
jne 0x8003c1bf
mov cl, byte [ebp + 0x18]
mov byte [ebp - 1], cl
jmp 0x8003c1de
cmp al, 0x19
jne 0x8003c1ce
mov ecx, dword [ebp + 0x18]
shr ecx, 3
and cl, 0xe0
jmp 0x8003c1db
cmp al, 0x25
jne 0x8003c1de
mov ecx, dword [ebp + 0x18]
shr ecx, 6
and cl, 0x20
or byte [ebp - 1], cl
inc dword [ebp + 8]
mov cl, byte [ebp - 1]
inc ebx
cmp ebx, dword [ebp - 0xc]
mov byte [esi + 0x6013d4], al
mov byte [esi + 0x6013d5], cl
jb 0x8003c178
mov eax, dword [ebp - 0x30]
not eax
and eax, 1
mov dword [esi + 0x6806a0], eax
mov al, byte [ebp + 0x17]
or al, 0x80
mov byte [esi + 0x6013d4], 0x28
mov byte [esi + 0x6013d5], al
xor ecx, ecx
lea eax, [esi + 0x6013da]
test byte [eax], 8
jne 0x8003c21e
test byte [eax], 8
je 0x8003c223
inc ecx
cmp ecx, 3
jb 0x8003c21e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax*4 - 0x7ffef5b0]
xor ebx, ebx
cmp byte [0x80060ba3], 1
mov dword [ebp - 0x24], eax
jne 0x8003c252
lea eax, [ebp - 0x24]
push eax
push ebx
push 6
call fcn.8003a4ca
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x680880], eax
push 1
call sym.xboxkrnl.exe_Ordinal_151
lea eax, [ebp + 0x18]
push eax
push ebx
push 0x6c
push edi
call sym.xboxkrnl.exe_Ordinal_45
mov al, byte [ebp + 0x18]
mov byte [ebp - 1], al
movzx eax, al
or eax, 0x80
push eax
push ebx
push 0x6c
push edi
call sym.xboxkrnl.exe_Ordinal_50
movzx eax, byte [ebp - 3]
or eax, 0x20
push eax
push ebx
push 0xba
push edi
call sym.xboxkrnl.exe_Ordinal_50
mov eax, dword [ebp + 0x1c]
push esi
mov dword [esi + 0x600800], eax
call fcn.8003a01a
cmp byte [0x80060ba3], 1
jne 0x8003c2bb
push ebx
push 0x60
call fcn.8003a394
mov eax, dword [ebp + 0x10]
mov dword [0x80060b90], eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x18