Function at 0x43afb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add ecx, esi
sub ecx, dword [esp + 0x4c]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x24], ecx
cmp ecx, esi
jbe 0x43b2db
mov ebx, dword [esp + 0x50]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
jmp 0x43b018
add esi, ecx
dec esi
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, dword [esp + 0x24]
jae 0x43b2db
test ebx, ebx
je 0x43b05c
movzx eax, byte [ebx]
mov byte [esp + 0x14], 0x34
lea ecx, [esp + 0x15]
mov byte [ecx + 2], 0
mov word [ecx], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x63
xor dl, byte [esp + ecx + 0x14]
add dl, 0xe8
mov byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 4
jne 0x43b040
cmp al, byte [esp + 0x14]
je 0x43b067
movzx eax, byte [esi]
mov ecx, dword [esp + 0x48]
cmp al, byte [ecx]
jne 0x43b009
cmp dword [esp + 0x4c], 2
jb 0x43b110
mov ecx, 1
mov dword [esp + 0x18], esi
jmp 0x43b098
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x48]
cmp al, byte [edx + ecx]
jne 0x43b006
inc ecx
cmp ecx, dword [esp + 0x4c]
je 0x43b110
test ebx, ebx
je 0x43b080
mov esi, ebx
movzx eax, byte [ebx + ecx]
mov byte [esp + 0x1c], al
mov word [esp + 0xa], 0x52
xor ebx, ebx
mov al, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ebx + 0xa]
lea ebp, [ebx - 0x19f28c4b]
and ebp, edi
add edi, ebx
add edi, 0xe60d73b5
add ebp, ebp
sub edi, ebp
mov ebp, edi
and ebp, 0x57
xor edi, 0x57
lea edx, [edi + ebp*2]
inc dl
mov byte [esp + ebx + 0xa], dl
mov ebx, 1
test al, 1
mov eax, 0
jne 0x43b0c0
movzx eax, byte [esp + 0x1c]
cmp al, byte [esp + 0xa]
mov ebx, esi
mov esi, dword [esp + 0x18]
jne 0x43b080
jmp 0x43b091
mov edx, dword [esp]
mov edi, edx
mov ebp, dword [esp + 4]
sub edi, ebp
cmp edx, dword [esp + 0x10]
je 0x43b12a
mov eax, dword [esp + 0x3c]
jmp 0x43b2c2
mov ecx, edi
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43b13e
mov edx, eax
mov dword [esp + 0x1c], edx
lea eax, [edx*4]
push eax
call fcn.00408620
add esp, 4
mov ebp, eax
mov edx, dword [esp + 4]
test edx, edx
je 0x43b29e
mov dword [esp + 0x10], edi
mov eax, dword [esp]
mov edi, eax
not edi
and edi, edx
mov ecx, edx
not ecx
and ecx, eax
mov dword [esp], ecx
sub ecx, edi
cmp ebp, edx
mov dword [esp + 0x20], ebp
jbe 0x43b23f
lea eax, [edx + ecx]
cmp eax, ebp
jbe 0x43b23f
test ecx, ecx
je 0x43b28a
mov edx, ecx
mov eax, dword [esp + 4]
add eax, ecx
dec eax
mov ecx, dword [esp + 0x20]
add ecx, edx
dec ecx
mov dword [esp + 0xc], edx
and edx, 7
je 0x43b1dc
mov ebp, edi
mov dword [esp + 0x18], esi
mov esi, ebx
neg edx
xor edi, edi
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
dec edi
cmp edx, edi
jne 0x43b1c0
add eax, edi
add ecx, edi
add dword [esp + 0xc], edi
mov ebx, esi
mov esi, dword [esp + 0x18]
mov edi, ebp
sub edi, dword [esp]
cmp edi, 0xfffffff8
mov ebp, dword [esp + 0xc]
ja 0x43b28a
neg ebp
xor edi, edi
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
movzx edx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], dl
movzx edx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], dl
movzx edx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], dl
movzx edx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], dl
movzx edx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], dl
movzx edx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], dl
movzx edx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], dl
add edi, 0xfffffff8
cmp ebp, edi
jne 0x43b1f0
jmp 0x43b28a
mov eax, edx
mov dword [esp + 4], edx
mov edx, ecx
shr ecx, 2
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
add ebp, eax
add eax, dword [esp + 4]
mov ecx, edx
shr ecx, 1
and ecx, 1
mov edi, eax
mov dword [esp], eax
mov dword [esp + 0xc], ebp
mov edi, ebp
mov ebp, dword [esp]
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test dl, 1
je 0x43b28a
and edx, 2
movzx eax, byte [eax + edx]
mov ecx, dword [esp + 0xc]
mov byte [ecx + edx], al
push dword [esp + 4]
call fcn.00408630
add esp, 4
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [eax], ebp
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx*4]
add ecx, ebp
mov edx, ebp
add edx, edi
mov dword [esp + 0x10], ecx
mov dword [eax + 8], ecx
mov ecx, ebp
mov dword [esp + 4], ebp
mov dword [ebp + edi], esi
add edx, 4
mov dword [esp], edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x4c]
add esi, ecx
dec esi
jmp 0x43b00d
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret