Function at 0x301d020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
mov dword [esp + 8], 0xb34eb195
mov dword [esp + 0xc], 0xb755b52b
mov dword [esp + 0x10], 0xab36a949
mov dword [esp + 0x14], 0xaf3ead6d
mov dword [esp + 0x18], 0xa366a130
mov dword [esp + 0x1c], 0xa732a545
mov dword [esp + 0x20], 0x5b7f59b9
lea eax, [esp + 0x24]
mov word [esp + 0x24], 0x5d5c
mov dword [esp + 0x2a], 0
mov dword [esp + 0x26], 0
mov dword [esp + 0x8c], 0
mov ecx, dword [esp + 0x8c]
cmp ecx, 0x25
ja 0x301d0f7
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x8c]
movzx edx, byte [esp + edx + 8]
lea esi, [ecx + edx]
add esi, 0xc71dde8
add ecx, 0xc71dde8
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0xc0], esi
mov ecx, dword [esp + 0xc0]
add cl, 0xa8
mov edx, dword [esp + 0x8c]
mov byte [esp + edx + 8], cl
inc dword [esp + 0x8c]
mov ecx, dword [esp + 0x8c]
cmp ecx, 0x26
jb 0x301d0a0
lea esi, [esp + 0x8c]
lea edx, [esp + 8]
mov ecx, 7
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xa8]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [esp + 0x7c]
push edi
push 0
push 0
push 0xe
push esi
push 0
call dword [0x3049b34]
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jns 0x301d143
mov eax, 0xffffffff
jmp 0x301d146
lea eax, [ebx + ebx]
push eax
call fcn.03008c00
add esp, 4
push edi
push ebx
mov ebx, eax
push eax
push 0xe
push esi
push 0
call dword [0x3049b34]
mov dword [esp + 8], 0x33e2319c
mov dword [esp + 0xc], 0x37953595
mov dword [esp + 0x10], 0xbab09b3
mov dword [esp + 0x14], 0xfab0dab
mov dword [esp + 0x18], 0x30201b3
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x60]
cmp ecx, 0x17
ja 0x301d203
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x60]
movzx edx, byte [esp + edx + 8]
lea esi, [ecx + 0x58]
add ecx, edx
and esi, edx
add esi, esi
sub ecx, esi
add ecx, 0x8554158
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0xc0]
add cl, 0x98
mov edx, dword [esp + 0x60]
mov byte [esp + edx + 8], cl
mov ecx, dword [esp + 0x60]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x60]
cmp ecx, 0x18
jb 0x301d1b0
lea edi, [esp + 0xac]
lea edx, [esp + 8]
mov ecx, 5
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xc0]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x7c]
mov ecx, eax
add ecx, 9
jns 0x301d239
mov eax, 0xffffffff
jmp 0x301d23e
add eax, eax
add eax, 0x12
push eax
call fcn.03008c00
add esp, 4
mov esi, eax
movzx ecx, word [ebx]
test cx, cx
je 0x301d271
lea edx, [ebx + 2]
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x301d260
mov word [eax], 0
movzx ecx, word [esp + 0xac]
test cx, cx
je 0x301d2a1
lea edx, [esp + 0xae]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x301d290
mov edi, dword [ebp + 8]
mov word [eax], 0
lea eax, [esp + 0x88]
push eax
push esi
call fcn.0303b9f0
add esp, 8
not eax
shr eax, 0x1f
mov eax, dword [eax*4 + 0x3043ab8]
mov ecx, 0x59e4323
xor ecx, dword [0x3043ac0]
add eax, ecx
inc eax
mov dword [esp + 0x80], ebx
jmp eax