Function at 0x437380
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, esi
sub eax, dword [esp + 0x44]
mov dword [ebp + 8], 0
mov dword [ebp + 4], 0
mov dword [ebp], 0
mov dword [esp + 0x1c], eax
cmp eax, esi
jbe 0x4376e8
mov edi, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
jmp 0x437410
mov ecx, dword [esp]
mov ebx, ecx
mov eax, dword [esp + 4]
sub ebx, eax
cmp ecx, dword [esp + 8]
je 0x437548
mov dword [eax + ebx], esi
add ecx, 4
mov dword [ebp + 4], ecx
mov eax, dword [esp + 0x44]
add esi, eax
dec esi
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x4376e8
mov dword [esp], ecx
test edi, edi
je 0x43749f
movzx ecx, byte [edi]
mov byte [esp + 0x10], 0xcb
lea eax, [esp + 0x11]
mov byte [eax + 2], 0
mov word [eax], 0
mov edx, 0x1e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx - 0xe]
mov edi, edx
and edi, eax
lea ebx, [edx - 0x2c1a6800]
or ebx, eax
xor ebx, edi
mov eax, ebx
not eax
lea edi, [ebx + ebx]
mov ebp, edi
and ebp, 0xd2
and edi, 0xa10800d2
neg edi
add edi, ebx
add edi, 0xdc840769
add ebx, 0xdc840769
add edi, ebp
and ebx, 1
xor edi, 1
or edi, ebx
and eax, 1
add eax, edi
mov byte [esp + edx - 0xe], al
inc edx
cmp edx, 0x22
jne 0x437440
cmp cl, byte [esp + 0x10]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
je 0x4374ae
movzx eax, byte [esi]
mov ecx, dword [esp + 0x40]
cmp al, byte [ecx]
jne 0x437540
cmp dword [esp + 0x44], 2
jb 0x4373e0
mov ecx, 1
jmp 0x4374dc
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x40]
cmp al, byte [edx + ecx]
jne 0x43763f
inc ecx
cmp ecx, dword [esp + 0x44]
je 0x4373e0
test edi, edi
je 0x4374c0
movzx edx, byte [edi + ecx]
mov byte [esp + 0xc], 0x45
lea eax, [esp + 0xd]
mov byte [eax + 2], 0
mov word [eax], 0
mov eax, 0xa9277c3f
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 0x56d883cd]
xor edi, eax
mov ebx, edi
and ebx, 1
xor edi, 1
lea ebx, [edi + ebx*2]
add bl, 0xc4
mov byte [esp + eax + 0x56d883cd], bl
inc eax
cmp eax, 0xa9277c43
jne 0x437500
cmp dl, byte [esp + 0xc]
mov edi, dword [esp + 0x48]
jne 0x4374c0
jmp 0x4374d1
mov ecx, dword [esp]
jmp 0x437405
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43755c
mov edx, eax
mov dword [esp + 8], edx
lea eax, [edx*4]
push eax
call fcn.00408210
add esp, 4
mov ebp, eax
mov edx, dword [esp + 4]
test edx, edx
je 0x4376bd
cmp ebp, edx
mov eax, dword [esp]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
jbe 0x437655
cmp eax, ebp
jbe 0x437655
test ebx, ebx
je 0x4376a5
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
add eax, edx
dec eax
mov ecx, dword [esp + 0x18]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x4375d4
neg edi
xor edx, edx
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x4375c0
add eax, edx
add ecx, edx
add edx, dword [esp + 0x14]
mov edi, dword [esp + 4]
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x4376a5
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x4375f0
jmp 0x4376a5
mov eax, ecx
xor eax, 1
and ecx, 0xfffffffe
add ecx, ecx
sub ecx, eax
add esi, ecx
mov ecx, dword [esp]
jmp 0x437405
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
not eax
or eax, 0xfffffffc
add eax, ebx
add ebp, eax
inc ebp
lea edi, [edx + eax]
inc edi
mov ecx, ebx
xor ecx, 0xfffffffc
mov eax, ebx
or eax, 3
and eax, ecx
mov ecx, eax
shr ecx, 1
mov edx, ebx
mov dword [esp], edi
mov ebx, edi
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x4376a5
and eax, 0xfffffffe
mov ecx, dword [esp]
movzx ecx, byte [ecx + eax]
mov byte [ebp + eax], cl
push dword [esp + 4]
call fcn.00408220
add esp, 4
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov dword [edx], ebp
mov eax, dword [esp + 8]
lea eax, [eax*4]
add eax, ebp
mov ecx, ebp
add ecx, ebx
mov dword [esp + 8], eax
mov dword [edx + 8], eax
mov eax, ebp
mov dword [esp + 4], ebp
mov ebp, edx
jmp 0x4373f5
mov eax, ebp
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret