Function at 0x43df50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43df9a
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x43df70
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
add ecx, esi
jmp 0x43df9c
xor ecx, ecx
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x43dfac
add ecx, 2
mov edx, ecx
mov esi, dword [esp + 0x3c]
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0x2c2d2e2f
mov dword [esp + 4], 0
mov eax, 0x8062a388
nop
nop
nop
movzx ecx, byte [esp + eax + 0x7f9d5c78]
xor ecx, eax
mov edx, ecx
and edx, 0x57
xor ecx, 0x57
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax + 0x7f9d5c78], cl
inc eax
cmp eax, 0x8062a390
jne 0x43dfd0
mov ebp, dword [esp]
mov eax, dword [0x44a598]
test eax, eax
je 0x43e04f
xor ecx, ecx
mov edx, dword [0x44a59c]
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43e020
inc ecx
cmp eax, ecx
jne 0x43e010
jmp 0x43e04f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x43e04f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x44]
push 0x18
push eax
push dword [0x44a5a0]
call fcn.004391b0
add esp, 0x24
mov ebp, eax
mov dword [esp], 0x718e8fa9
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x9d
xor cl, byte [esp + eax]
add cl, 0xef
mov byte [esp + eax], cl
inc eax
cmp eax, 7
jne 0x43e070
cmp ebp, dword [esp]
jne 0x43e220
push dword [esp + 0x10]
call fcn.00436730
add esp, 4
mov dword [esp + 8], eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], 0xe1e6e7e6
mov edx, 0x5bb78659
nop
nop
movzx eax, byte [esp + edx - 0x5bb7864d]
lea ecx, [edx - 0x5bb78600]
and ecx, edx
and ecx, eax
mov ebp, eax
mov eax, ecx
not eax
and eax, 2
mov ebx, ecx
and ebx, 0x5d
imul ebx, eax
mov eax, ebp
sub al, bl
mov ebx, eax
mov eax, ecx
shr al, 1
and al, 1
or cl, 2
mul cl
add al, al
mov ecx, ebx
sub cl, al
movzx eax, cl
add eax, edx
add al, 0x43
mov byte [esp + edx - 0x5bb7864d], al
inc edx
cmp edx, 0x5bb7865d
jne 0x43e0b0
mov eax, dword [esp + 0xc]
mov dword [esp], 0x2c2d2e2f
mov dword [esp + 4], 0
mov ecx, 0x8062a388
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x7f9d5c78]
xor edx, ecx
mov ebx, edx
and ebx, 0x57
xor edx, 0x57
lea edx, [edx + ebx*2]
inc dl
mov byte [esp + ecx + 0x7f9d5c78], dl
inc ecx
cmp ecx, 0x8062a390
jne 0x43e120
mov ebp, dword [esp]
mov ecx, dword [0x44a598]
test ecx, ecx
je 0x43e19f
xor edx, edx
mov ebx, dword [0x44a59c]
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0xc0a4c970
je 0x43e170
inc edx
cmp ecx, edx
jne 0x43e160
jmp 0x43e19f
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, ebp
je 0x43e19f
lea edx, [esp + 0x10]
lea ebx, [esp + 0x14]
push edx
push edi
push dword [esp + 0x10]
push eax
push ebx
push dword [esp + 0x44]
push 0x18
push ecx
push dword [0x44a5a0]
call fcn.004391b0
add esp, 0x24
mov ebp, eax
test ebp, ebp
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 8]
js 0x43e217
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x43e1b8
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43e217
mov eax, esi
test esi, esi
je 0x43e212
mov eax, dword [edi]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jb 0x43e1cd
mov eax, ecx
lea edx, [ebx + 0xc]
mov ecx, eax
shr ecx, 2
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add esi, ecx
lea edx, [ebx + ecx]
add edx, 0xc
mov ecx, eax
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 8]
test al, 1
mov edi, dword [esp + 0x40]
je 0x43e212
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov eax, dword [ebx + 8]
mov dword [edi], eax
push ebx
call fcn.004367a0
add esp, 4
mov eax, ebp
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret