Function at 0x105db00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x518
mov edi, dword [ebp + 8]
mov dword [esp + 0x188], 0x80b0a0d
mov word [esp + 0x18c], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x188]
mov edx, eax
and edx, 5
xor edx, 0x7668e27d
mov esi, eax
and esi, 2
sub esi, edx
xor esi, ecx
mov ecx, esi
and ecx, 1
xor esi, 1
lea ecx, [esi + ecx*2]
add cl, 0x70
mov byte [esp + eax + 0x188], cl
inc eax
cmp eax, 6
jne 0x105db30
mov eax, dword [esp + 0x188]
mov ecx, dword [0xefa7f4]
test ecx, ecx
je 0x105dbba
xor edx, edx
mov esi, dword [0xefa7f8]
cmp dword [esi + edx*8], 0x89c57e52
je 0x105db90
inc edx
cmp ecx, edx
jne 0x105db80
jmp 0x105dbba
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x105dbba
lea eax, [esp + 0x10]
push 2
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x1c
push ecx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x28
test eax, eax
js 0x105de66
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x188], 0x80b0a0d
mov word [esp + 0x18c], 0
xor ecx, ecx
nop
nop
nop
movzx eax, byte [esp + ecx + 0x188]
mov edx, ecx
and edx, 5
xor edx, 0x7668e27d
mov esi, ecx
and esi, 2
sub esi, edx
xor esi, eax
mov eax, esi
and eax, 1
xor esi, 1
lea eax, [esi + eax*2]
add al, 0x70
mov byte [esp + ecx + 0x188], al
inc ecx
cmp ecx, 6
jne 0x105dbe0
mov esi, dword [esp + 0x188]
mov ecx, dword [0xefa7f4]
test ecx, ecx
je 0x105dc6e
xor eax, eax
mov edx, dword [0xefa7f8]
nop
cmp dword [edx + eax*8], 0xc3cdc4a6
je 0x105dc40
inc eax
cmp ecx, eax
jne 0x105dc30
jmp 0x105dc6e
mov eax, dword [edx + eax*8 + 4]
cmp eax, esi
je 0x105dc6e
lea ecx, [esp + 0x188]
push 0
push 0x30
push ecx
push 0
push ebx
push 0x14
push eax
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x20
mov esi, eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x190]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov dword [esp + 0x68], 0x80b0a0d
mov word [esp + 0x6c], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ecx + 0x68]
mov edx, ecx
and edx, 5
xor edx, 0x7668e27d
mov ebx, ecx
and ebx, 2
sub ebx, edx
xor ebx, eax
mov eax, ebx
and eax, 1
xor ebx, 1
lea eax, [ebx + eax*2]
add al, 0x70
mov byte [esp + ecx + 0x68], al
inc ecx
cmp ecx, 6
jne 0x105dca0
mov ecx, dword [0xefa7f4]
test ecx, ecx
je 0x105dd1d
mov edx, dword [esp + 0x68]
xor eax, eax
mov ebx, dword [0xefa7f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + eax*8], 0xb62b8d10
je 0x105dd00
inc eax
cmp ecx, eax
jne 0x105dcf0
jmp 0x105dd1d
mov eax, dword [ebx + eax*8 + 4]
cmp eax, edx
je 0x105dd1d
push dword [esp + 0xc]
push 4
push eax
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x10
test esi, esi
js 0x105de66
lea eax, [esp + 0x188]
push 0x20
push eax
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105de66
lea eax, [esp + 0x10]
push 0x20
push eax
push dword [esp + 0x1ac]
push dword [esp + 0x1ac]
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105de66
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a4]
add eax, 0x10
mov dword [esp + 8], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
jmp 0x105dddd
movzx eax, cx
movzx ecx, dx
mov edx, ecx
xor edx, eax
not ecx
and ecx, eax
add ecx, ecx
cmp ecx, edx
je 0x105de72
push esi
call fcn.01059070
add esp, 4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, ecx
xor edx, dword [esp + 4]
mov esi, eax
xor esi, dword [esp + 8]
or esi, edx
je 0x105de66
push 0x68
lea edx, [esp + 0x6c]
push edx
push ecx
push eax
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105de66
movzx eax, word [esp + 0xc2]
push eax
call fcn.01059030
add esp, 4
mov esi, eax
movzx eax, word [esp + 0xc2]
push eax
push esi
push dword [esp + 0xd4]
push dword [esp + 0xd4]
call fcn.0105d910
add esp, 0x10
test eax, eax
js 0x105ddb8
xor eax, eax
nop
nop
nop
nop
nop
movzx ecx, word [edi + eax]
lea edx, [ecx - 0x41]
cmp dx, 0x1a
jae 0x105de40
or ecx, 0x20
movzx edx, word [esi + eax]
lea ebx, [edx - 0x41]
cmp bx, 0x1a
jae 0x105de50
or edx, 0x20
test cx, cx
je 0x105dda0
add eax, 2
cmp cx, dx
je 0x105de30
jmp 0x105dda0
xor eax, eax
xor edx, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
push esi
call fcn.01059070
mov edx, ebx
mov eax, edi
add esp, 4
jmp 0x105de6a