Function at 0x10003b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1001a028]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40], edi
mov byte [ebp - 0x39], al
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x14], 0x494d4e4f
mov word [ebp - 0x10], 0x524b
call fcn.10002150
movzx ebx, ax
mov ecx, 0x9000
add esp, 4
cmp bx, cx
jne 0x10003f07
mov ax, word [ebp + 0x10]
mov ecx, 0xca31
cmp ax, cx
je 0x10003bee
mov ecx, 0xca32
cmp ax, cx
je 0x10003bee
movzx edx, byte [ebp - 0x39]
mov esi, dword [0x1001a7cc]
lea ecx, [edx*4]
mov esi, dword [ecx + esi + 0x1002a7e0]
jmp 0x10003d4d
mov eax, dword [0x1001a7cc]
lea ebx, [ebp - 0x24]
movzx ecx, byte [ebp - 0x39]
xorps xmm0, xmm0
mov dword [ebp - 0xc], ecx
mov edx, 0x10
shl ecx, 2
lea eax, [eax + 0x1002a7e0]
mov dword [ebp - 0x38], ecx
add eax, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1001a7dc]
movups xmmword [ebp - 0x24], xmm0
lea esi, [eax + 0x1002a7e0]
sub esi, ecx
sub ebx, ecx
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edx, 1
jne 0x10003c30
lea eax, [ebp - 0x24]
mov ecx, 0x10
nop word [eax + eax]
lea eax, [eax + 1]
sub ecx, 1
jne 0x10003c50
lea ecx, [ebp - 0x24]
movzx eax, byte [ecx]
lea edx, [ebp - 0x21]
cmp al, byte [edx]
jne 0x10003c7b
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10003c7b
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10003c7b
xor eax, eax
jmp 0x10003c80
sbb eax, eax
or eax, 1
cmp eax, 1
je 0x10003efd
lea ecx, [ebp - 0x24]
movzx eax, byte [ecx]
lea edx, [ebp - 0x1e]
cmp al, byte [edx]
jne 0x10003cac
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10003cac
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10003cac
xor eax, eax
jmp 0x10003cb1
sbb eax, eax
or eax, 1
cmp eax, 1
je 0x10003efd
lea ecx, [ebp - 0x24]
movzx eax, byte [ecx]
lea edx, [ebp - 0x1b]
cmp al, byte [edx]
jne 0x10003cdd
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10003cdd
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10003cdd
xor eax, eax
jmp 0x10003ce2
sbb eax, eax
or eax, 1
cmp eax, 1
je 0x10003efd
lea ecx, [ebp - 0x24]
movzx eax, byte [ecx]
lea edx, [ebp - 0x18]
cmp al, byte [edx]
jne 0x10003d0e
movzx eax, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10003d0e
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10003d0e
xor eax, eax
jmp 0x10003d13
sbb eax, eax
or eax, 1
cmp eax, 1
je 0x10003efd
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x43]
lea esi, [ebp - 0x22]
mov edi, 3
mov al, byte [edx]
inc edx
mov byte [ebp - 0x44], al
mov al, byte [edx]
lea edx, [edx + 1]
xor al, byte [esi]
lea esi, [esi - 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x10003d30
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x1001a7b8]
push dword [ebp - 0x40]
mov di, word [eax + edx*2 + 0x1002a7e0]
mov eax, dword [0x1001a7b4]
mov word [ebp - 0x1c], di
mov eax, dword [ecx + eax + 0x1002a7e0]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1a], eax
mov eax, dword [0x1001a7bc]
movzx eax, word [eax + edx*2 + 0x1002a7e0]
mov word [ebp - 0x34], ax
mov eax, dword [0x1001a7c0]
movzx eax, word [eax + edx*2 + 0x1002a7e0]
mov word [ebp - 0x32], ax
mov eax, dword [0x1001a7c4]
mov eax, dword [ecx + eax + 0x1002a7e0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x1001a7c8]
mov eax, dword [ecx + eax + 0x1002a7e0]
mov dword [ebp - 0x2c], eax
call fcn.10001d70
movzx ebx, ax
mov ecx, 0x9000
add esp, 4
cmp bx, cx
jne 0x10003f04
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x40]
call fcn.10001e10
movzx ebx, ax
mov ecx, 0x9000
add esp, 8
cmp bx, cx
jne 0x10003f04
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call fcn.100032e0
movzx ebx, ax
mov ecx, 0x9000
add esp, 8
cmp bx, cx
jne 0x10003f04
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push dword [ebp - 0x40]
call fcn.100030d0
movzx ebx, ax
mov ecx, 0x9000
add esp, 0x14
cmp bx, cx
jne 0x10003f04
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
mov word [ebp - 0x36], di
mov edi, dword [ebp - 0x40]
push eax
push 2
push edi
mov word [ebp - 0x38], 0
call fcn.100030d0
movzx ebx, ax
mov ecx, 0x9000
add esp, 0x14
cmp bx, cx
jne 0x10003f07
mov eax, dword [ebp - 0x1c]
mov edx, 0xe
push dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov ecx, 8
mov ax, word [ebp - 0x18]
mov word [ebp - 8], ax
mov al, byte [0x1003b81b]
and al, 0xf0
mov dword [ebp - 0x38], esi
cmp al, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
cmove ecx, edx
push eax
push 3
push edi
mov byte [ebp - 0x38], cl
call fcn.100030d0
movzx ebx, ax
mov ecx, 0x9000
add esp, 0x14
cmp bx, cx
jne 0x10003f07
mov al, byte [0x1003b81b]
and al, 0xf0
cmp al, 0x10
push 1
setne al
lea eax, [eax*2 + 0x82]
mov byte [ebp - 0x38], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
push 4
push edi
call fcn.100030d0
add esp, 0x14
movzx ebx, ax
mov ecx, 0x9000
jmp 0x10003f07
mov ebx, 0xe02a
jmp 0x10003f47
mov edi, dword [ebp - 0x40]
mov eax, 0xe02b
cmp bx, ax
jne 0x10003f16
lea ebx, [eax - 0xa]
jmp 0x10003f47
mov eax, 0xe02c
cmp bx, ax
jne 0x10003f25
lea ebx, [eax - 6]
jmp 0x10003f47
cmp bx, cx
jne 0x10003f47
push dword [ebp + 0x18]
mov ebx, 0x9000
push 0x1002a7e0
push dword [ebp - 0x4c]
push 0x1003b818
call fcn.10002960
add esp, 0x10
push 0x1f4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 1
lea eax, [ebp - 0xc]
mov dword [0x1001a7b0], 0
push eax
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 2
push eax
push edi
call fcn.10002730
push 0
push 1
push 1
push edi
call dword [0x1003c83c]
mov ecx, dword [ebp - 4]
add esp, 0x2c
movzx eax, bx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10008251
mov esp, ebp
pop ebp
ret