Function at 0x43c840
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
xor ecx, ecx
test eax, eax
je 0x43c873
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x43c860
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x43c883
add ecx, 2
mov edx, ecx
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp], 0xdcdddedf
mov byte [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xd0
xor cl, byte [esp + eax]
add cl, 0xf0
mov byte [esp + eax], cl
inc eax
cmp eax, 5
jne 0x43c8b0
mov ebx, dword [esp]
mov eax, dword [0x448588]
test eax, eax
je 0x43c91f
xor ecx, ecx
mov edx, dword [0x44858c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43c8f0
inc ecx
cmp eax, ecx
jne 0x43c8e0
jmp 0x43c91f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43c91f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push eax
push dword [0x448590]
call fcn.00437d80
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xc3020123
mov word [esp + 4], 0
xor eax, eax
nop
movzx ecx, byte [esp + eax]
mov edx, eax
and edx, ecx
add ecx, eax
add edx, edx
sub ecx, edx
mov byte [esp + eax], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 6
jb 0x43c930
cmp ebx, dword [esp]
jne 0x43caac
push dword [esp + 0xc]
call fcn.004353b0
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0xb9babb82
mov word [esp + 0x14], 0
xor edx, edx
nop
mov ebx, edx
add bl, 0x5f
xor bl, byte [esp + edx + 0x10]
add bl, 0x25
mov byte [esp + edx + 0x10], bl
inc edx
cmp edx, 6
jne 0x43c980
mov edx, dword [esp + 0x10]
mov dword [esp], 0xdcdddedf
mov byte [esp + 4], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebx
add cl, 0xd0
xor cl, byte [esp + ebx]
add cl, 0xf0
mov byte [esp + ebx], cl
inc ebx
cmp ebx, 5
jne 0x43c9b0
mov ebx, dword [esp]
mov ebp, dword [0x448588]
test ebp, ebp
je 0x43ca2f
mov ecx, edi
xor edi, edi
mov esi, dword [0x44858c]
nop
nop
nop
nop
nop
cmp dword [esi + edi*8], 0xc0a4c970
je 0x43c9f2
inc edi
cmp ebp, edi
jne 0x43c9e0
mov edi, ecx
jmp 0x43ca2b
mov ebp, dword [esi + edi*8 + 4]
cmp ebp, ebx
mov edi, ecx
mov esi, dword [esp + 0x40]
je 0x43ca2f
lea ecx, [esp + 0xc]
lea esi, [esp + 0x18]
push ecx
push dword [esp + 0xc]
push eax
push edx
push esi
push dword [esp + 0x48]
push 6
push ebp
push dword [0x448590]
mov esi, eax
call fcn.00437d80
add esp, 0x24
mov ebx, eax
mov eax, esi
mov esi, dword [esp + 0x40]
test ebx, ebx
js 0x43caa3
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x43ca40
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test edi, edi
je 0x43caa3
test esi, esi
je 0x43ca9e
mov ebp, esi
mov edx, dword [edi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x43ca55
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov edi, dword [esp + 0x44]
je 0x43ca9e
and edx, 2
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [edi], ecx
push eax
call fcn.00435470
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret