Function at 0x1003d454
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1030b908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xd4], eax
mov ecx, dword [edi + 8]
call fcn.10025bdb
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push dword [ebp - 0xd4]
push dword [ebp + 0xc]
push esi
push dword [edi + 0xc]
call fcn.1003d007
add esp, 0x1c
cmp dword [edi + 0xc], ebx
je 0x1003d4d9
push 0x1014e330
lea ecx, [ebp - 0xd0]
call fcn.100139c3
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.1001f0e3
push 3
jmp 0x1003d4e6
lea ecx, [ebp - 0xe0]
call fcn.10030bbc
push 4
pop ecx
mov dword [ebp - 0xcc], ecx
lea ecx, [ebp - 0xd8]
push eax
call fcn.100138f7
mov eax, dword [ebp - 0xcc]
test al, 4
je 0x1003d51d
and eax, 0xfffffffb
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xcc], eax
call fcn.10013aa3
mov eax, dword [ebp - 0xcc]
test al, 2
je 0x1003d53b
and eax, 0xfffffffd
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xcc], eax
call fcn.10013aa3
mov eax, dword [ebp - 0xcc]
test al, 1
je 0x1003d54a
lea ecx, [ebp - 0xd0]
call fcn.10013aa3
mov edx, dword [ebp - 0xd8]
test edx, edx
je 0x1003d559
mov eax, dword [edx + 4]
jmp 0x1003d55b
mov eax, ebx
cmp eax, 0x10
jl 0x1003d703
cmp dword [edi + 4], 2
jne 0x1003d5bc
push 8
pop ecx
push dword [ebp + 0x18]
lea eax, [ebp - 0x24]
mov esi, 0x101556b0
push dword [ebp - 0xd4]
lea edi, [ebp - 0x24]
push 0x20
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10149e80
mov eax, dword [ebp - 0xd8]
add esp, 0x10
lea edx, [eax + 0xc]
test eax, eax
jne 0x1003d5a0
mov edx, 0x1014e2b4
lea esi, [ebp - 0x24]
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x1003d703
inc ecx
cmp ecx, 4
jne 0x1003d5a5
jmp 0x1003d700
push 0x20
pop esi
test edx, edx
je 0x1003d5c8
mov eax, dword [edx + 4]
jmp 0x1003d5ca
mov eax, ebx
cmp eax, 0x20
jae 0x1003d5da
test edx, edx
je 0x1003d5d8
mov esi, dword [edx + 4]
jmp 0x1003d5da
mov esi, ebx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x44]
push 8
pop ecx
rep stosd dword es:[edi], eax
mov edi, 0x1014e2b4
test edx, edx
je 0x1003d5fa
add edx, 0xc
jmp 0x1003d5fc
mov edx, edi
push esi
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.10128bc0
mov edi, dword [ebp - 0xd4]
add esp, 0xc
mov dword [ebp - 0xcc], 0x13
mov edx, ebx
cmp dword [ebp + 0x18], edx
jle 0x1003d63e
mov esi, edi
lea eax, [ebp - 0x44]
sub esi, eax
lea ecx, [ebp - 0x44]
add ecx, edx
mov al, byte [esi + ecx]
xor al, byte [ebp - 0xcc]
inc edx
mov byte [ecx], al
cmp edx, dword [ebp + 0x18]
jl 0x1003d628
push dword [ebp + 0x18]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push 0x20
push eax
call fcn.10149e80
add esp, 0x10
sub dword [ebp - 0xcc], 1
jns 0x1003d61a
lea eax, [ebp - 0xc8]
push eax
call fcn.1014a06d
push 0x20
lea eax, [ebp - 0xc8]
push 0x101556b0
push eax
call fcn.1014a098
mov ecx, dword [ebp - 0xe4]
add esp, 0x10
mov ecx, dword [ecx + 8]
call fcn.10025bdb
mov edi, 0x1014e2b4
test eax, eax
je 0x1003d6d8
push ebx
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, eax
call fcn.10022d52
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x1003d6b3
mov ecx, dword [eax + 4]
jmp 0x1003d6b5
mov ecx, ebx
test eax, eax
je 0x1003d6bc
lea edi, [eax + 0xc]
push ecx
lea eax, [ebp - 0xc8]
push edi
push eax
call fcn.1014a098
add esp, 0xc
lea ecx, [ebp - 0xd0]
call fcn.10013aa3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.10149f39
pop ecx
pop ecx
lea edx, [ebp - 0x64]
mov ecx, ebx
lea esi, [ebp - 0x24]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x1003d703
inc ecx
cmp ecx, 4
jne 0x1003d6f2
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0xd8]
call fcn.10013aa3
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10127041
mov esp, ebp
pop ebp
ret 0x14