Function at 0x43e320
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x34]
xor ecx, ecx
test eax, eax
je 0x43e353
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 0x43e340
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x43e363
add ecx, 2
mov edx, ecx
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0xe0e7e6e5
mov eax, 0xc6579329
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x39a86cd7]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov edx, ecx
and edx, 0x30
mov edi, ecx
and edi, 2
mov ebx, edi
xor ebx, 2
imul ebx, edx
or edx, 2
imul edx, edi
xor ecx, 0x32
add ecx, ebx
add ecx, edx
inc cl
mov byte [esp + eax + 0x39a86cd7], cl
inc eax
cmp eax, 0xc657932d
jne 0x43e380
mov ebx, dword [esp]
mov eax, dword [0x44a3a4]
test eax, eax
je 0x43e41f
xor ecx, ecx
mov edx, dword [0x44a3a8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43e3f0
inc ecx
cmp eax, ecx
jne 0x43e3e0
jmp 0x43e41f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43e41f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x44]
push 0x18
push eax
push dword [0x44a3ac]
call fcn.00439600
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xd3121133
mov byte [esp + 4], 0
mov eax, 0x51e79004
movzx ecx, byte [esp + eax - 0x51e79004]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xec
mov byte [esp + eax - 0x51e79004], cl
inc eax
cmp eax, 0x51e79009
jne 0x43e430
cmp ebx, dword [esp]
jne 0x43e5f0
push dword [esp + 0xc]
call fcn.00436c80
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp], 0x494a4b72
mov dword [esp + 4], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x93
xor dl, byte [esp + ecx]
add dl, 0x21
mov byte [esp + ecx], dl
inc ecx
cmp ecx, 8
jne 0x43e490
mov edx, dword [esp]
mov dword [esp + 0x10], 0xe0e7e6e5
mov ebx, 0xc6579329
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebx + 0x39a86ce7]
mov edi, ebx
and edi, ecx
add edi, edi
sub ecx, edi
add ecx, ebx
mov edi, ecx
and edi, 0x30
mov esi, ecx
and esi, 2
mov ebp, esi
xor ebp, 2
imul ebp, edi
or edi, 2
imul edi, esi
xor ecx, 0x32
add ecx, ebp
add ecx, edi
inc cl
mov byte [esp + ebx + 0x39a86ce7], cl
inc ebx
cmp ebx, 0xc657932d
jne 0x43e4c0
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x44a3a4]
test ecx, ecx
je 0x43e531
xor edi, edi
mov ebp, dword [0x44a3a8]
mov esi, dword [esp + 0x40]
nop
nop
nop
cmp dword [ebp + edi*8], 0xc0a4c970
je 0x43e537
inc edi
cmp ecx, edi
jne 0x43e520
jmp 0x43e56e
mov esi, dword [esp + 0x40]
jmp 0x43e56e
mov ecx, dword [ebp + edi*8 + 4]
cmp ecx, ebx
je 0x43e56e
lea esi, [esp + 0xc]
lea edi, [esp + 0x14]
push esi
mov esi, dword [esp + 0x44]
push dword [esp + 0xc]
push eax
push edx
push edi
push dword [esp + 0x44]
push 0x18
push ecx
push dword [0x44a3ac]
mov edi, eax
call fcn.00439600
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
mov edx, dword [esp + 0x38]
js 0x43e5e7
test edx, edx
je 0x43e57f
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test esi, esi
je 0x43e5e7
cmp dword [esp + 0x3c], 0
je 0x43e5e2
mov edx, dword [esi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x43e595
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x3c]
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 esi, dword [esp + 0x40]
je 0x43e5e2
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 [esi], ecx
push eax
call fcn.00436ce0
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret