Function at 0x4378a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4378c0
sar ecx, 1
mov edx, ecx
and edx, 2
mov ebx, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and ebx, 0xfffd
imul ebx, edx
add ecx, ebx
mov word [esp + 0x14], cx
mov edx, ecx
and edx, 2
xor ecx, 2
lea ecx, [ecx + edx*2]
mov word [esp + 0x16], cx
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x3a393837
mov word [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x43794e
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0x770d8c27
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xef
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x437920
mov ebx, dword [esp + 4]
mov ecx, dword [0x441e1c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x4379af
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0xf81c0144
je 0x437981
add eax, 8
cmp eax, ecx
jne 0x437970
jmp 0x4379af
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4379af
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push dword [0x441e20]
push eax
call fcn.00434480
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0x9350513b
mov dword [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x4379fe
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0xb8874673
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xdb
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x4379d0
cmp ebx, dword [esp + 4]
jne 0x437b4e
push dword [esp + 0x10]
call fcn.004326e0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0x3a393837
mov word [esp + 8], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 5
ja 0x437a70
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov ebx, dword [esp]
movzx ebx, byte [esp + ebx + 4]
add edx, 0x770d8c27
xor edx, ebx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0xef
mov ebx, dword [esp]
mov byte [esp + ebx + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 6
jb 0x437a40
mov ebx, dword [esp + 4]
mov ebp, dword [0x441e1c]
mov edx, dword [ebp]
mov ebp, dword [ebp + 4]
cmp edx, ebp
je 0x437ad1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx], 0xf81c0144
je 0x437aa1
add edx, 8
cmp edx, ebp
jne 0x437a90
jmp 0x437ad1
mov edx, dword [edx + 4]
cmp edx, ebx
je 0x437ad1
lea ebx, [esp + 0x10]
lea ebp, [esp + 0x14]
push ebx
push ecx
push eax
push 2
push ebp
push dword [esp + 0x48]
push 6
push dword [0x441e20]
push edx
mov ebp, eax
call fcn.00434480
add esp, 0x24
mov ebx, eax
mov eax, ebp
test ebx, ebx
js 0x437b45
test esi, esi
je 0x437ade
mov ecx, dword [eax + 4]
mov dword [esi], ecx
cmp dword [esp + 0x44], 0
je 0x437b45
test edi, edi
je 0x437b3c
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x437af8
mov edx, ecx
lea ebp, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov esi, edi
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ecx, edx
and ecx, 0xfffffffc
add esi, ecx
lea ebp, [eax + ecx]
add ebp, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 0x1c], ebp
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test dl, 1
je 0x437b3c
and edx, 2
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [ecx + edx]
mov byte [esi + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x44]
mov dword [edx], ecx
push eax
call fcn.00432760
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret