Function at 0x43bfe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add ecx, esi
sub ecx, dword [esp + 0x48]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x20], ecx
cmp ecx, esi
jbe 0x43c3ae
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0xc], 0
xor edi, edi
mov dword [esp + 0x10], 0
jmp 0x43c067
push ecx
push ebp
push eax
call fcn.00409830
add esp, 0xc
mov edx, dword [esp + 4]
mov dword [edi + edx], esi
add ebx, 4
mov eax, dword [esp + 0x38]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x48]
add esi, eax
dec esi
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x4c]
inc esi
cmp esi, dword [esp + 0x20]
jae 0x43c3ae
mov dword [esp], edi
test ebp, ebp
je 0x43c0c1
movzx eax, byte [ebp]
mov byte [esp + 0x14], 0xfd
lea ecx, [esp + 0x15]
mov word [ecx + 4], 0
mov dword [ecx], 0
mov ecx, 0x75
mov edx, 0x8a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx - 0x61]
mov ebx, edx
xor ebx, ecx
and ebx, edi
xor ebx, ecx
add bl, 0xb7
mov byte [esp + ecx - 0x61], bl
inc ecx
dec edx
cmp ecx, 0x7c
jne 0x43c0a0
cmp al, byte [esp + 0x14]
je 0x43c0d0
movzx eax, byte [esi]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx]
jne 0x43c190
cmp dword [esp + 0x48], 2
jb 0x43c150
mov eax, 1
jmp 0x43c0f8
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x44]
cmp cl, byte [edx + eax]
jne 0x43c29f
inc eax
cmp eax, dword [esp + 0x48]
je 0x43c150
test ebp, ebp
je 0x43c0e0
movzx ecx, byte [ebp + eax]
mov byte [esp + 0x14], 0x3f
mov dword [esp + 0x15], 0
mov edx, 0x40
mov edi, 0xbf
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edx - 0x2c]
mov ebx, edi
xor ebx, edx
and ebx, ebp
xor ebx, edx
add bl, 0xc0
mov byte [esp + edx - 0x2c], bl
inc edx
dec edi
cmp edx, 0x45
jne 0x43c120
cmp cl, byte [esp + 0x14]
mov ebp, dword [esp + 0x4c]
jne 0x43c0e0
jmp 0x43c0f1
mov ecx, dword [esp]
mov eax, ecx
mov edx, dword [esp + 0xc]
xor eax, edx
mov ebp, ecx
not ebp
and ebp, edx
add ebp, ebp
sub ebp, eax
mov eax, edx
cmp edx, dword [esp + 0x10]
je 0x43c198
mov edx, eax
sub edx, ecx
mov edi, ecx
mov ebx, eax
cmp edx, ebp
jae 0x43c040
jmp 0x43c334
mov edi, dword [esp]
jmp 0x43c05c
mov edx, eax
mov eax, ebp
sar eax, 2
inc eax
sub edx, ecx
mov dword [esp + 4], edx
mov ecx, edx
sar ecx, 2
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43c1b7
mov edx, eax
mov dword [esp + 0x10], edx
lea eax, [edx*4]
push eax
call fcn.004097b0
add esp, 4
mov edi, eax
mov ecx, dword [esp]
test ecx, ecx
je 0x43c30a
cmp edi, ecx
mov dword [esp + 8], edi
jbe 0x43c2aa
cmp dword [esp + 0xc], edi
jbe 0x43c2aa
cmp dword [esp + 4], 0
je 0x43c2f8
mov eax, dword [esp]
mov edx, dword [esp + 4]
add eax, edx
dec eax
mov ecx, dword [esp + 8]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43c234
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43c220
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov edi, dword [esp]
sub edi, dword [esp + 0xc]
cmp edi, 0xfffffff8
ja 0x43c2f8
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 0x43c250
jmp 0x43c2f8
add esi, eax
dec esi
mov edi, dword [esp]
jmp 0x43c05c
mov ecx, dword [esp + 4]
shr ecx, 2
mov ebx, dword [esp]
mov edx, ebx
mov eax, edi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, dword [esp + 4]
mov edx, ecx
and edx, 0xfffffffc
add eax, edx
add edx, ebx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov dword [esp + 0x1c], eax
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test byte [esp + 4], 1
je 0x43c2f8
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [edx + ecx]
mov eax, dword [esp + 0x1c]
mov byte [eax + ecx], dl
mov edi, dword [esp]
push edi
call fcn.004097c0
mov ecx, edi
add esp, 4
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x38]
mov dword [eax], edi
lea ebx, [edi + ebp]
mov dword [eax + 4], ebx
mov edx, dword [esp + 0x10]
lea edx, [edi + edx*4]
mov dword [esp + 0x10], edx
mov dword [eax + 8], edx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
cmp edx, ebp
jae 0x43c040
add ecx, ebp
sub ecx, eax
lea ebp, [edi + edx]
mov dword [esp + 4], edx
lea eax, [edi + edx]
add eax, 4
cmp ecx, 4
jg 0x43c031
mov dword [esp], ecx
mov ecx, dword [esp]
shr ecx, 2
mov edx, ebp
mov dword [esp + 8], edi
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, ebp
mov ebp, dword [esp]
and ebp, 0xfffffffc
add eax, ebp
add ebp, ecx
mov ecx, dword [esp]
shr ecx, 1
and ecx, 1
mov edx, ebp
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, dword [esp + 8]
mov ecx, dword [esp]
test cl, 1
mov edx, dword [esp + 4]
je 0x43c040
and ecx, 2
mov edi, ecx
movzx ecx, byte [ebp + ecx]
mov byte [eax + edi], cl
mov edi, dword [esp + 8]
jmp 0x43c040
mov eax, dword [esp + 0x38]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret