Function at 0x43e060
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x3c]
xor ecx, ecx
test eax, eax
je 0x43e093
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 0x43e080
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x43e0a3
add ecx, 2
mov edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0x504f4e4d
lea eax, [esp + 4]
mov ecx, 0x9618f2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [eax]
mov ebx, ecx
and ebx, 0x8210d7
lea edx, [ecx - 0x5a000000]
and edx, 0xa6140828
or edx, ebx
mov ebx, edi
xor ebx, 0xd7
mov ebp, edx
xor ebp, 0x28
or ebp, ebx
xor edi, 8
xor edx, 0xd7
or edx, edi
and edx, ebp
add dl, 0xbf
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0x9618ee
jne 0x43e0d0
mov ebx, dword [esp + 4]
mov eax, dword [0x44a890]
test eax, eax
je 0x43e16f
xor ecx, ecx
mov edx, dword [0x44a894]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43e140
inc ecx
cmp eax, ecx
jne 0x43e130
jmp 0x43e16f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43e16f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x4c]
push 0x18
push eax
push dword [0x44a898]
call fcn.00439540
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0x579699c7
mov byte [esp + 8], 0
xor eax, eax
nop
nop
movzx ecx, byte [esp + eax + 4]
lea edi, [eax + 0x26]
and edi, ecx
mov esi, edi
and esi, 0x2d
mov ebp, edi
and ebp, 2
mov edx, edi
or edx, 0xfd
inc edx
imul edx, esi
or edi, 2
imul edi, ebp
sub edx, edi
add ecx, eax
add ecx, 0x26
add ecx, edx
add cl, 0x42
mov byte [esp + eax + 4], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 5
jb 0x43e180
cmp ebx, dword [esp + 4]
jne 0x43e3ae
push dword [esp + 0x10]
call fcn.00436070
add esp, 4
mov dword [esp], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0x898a8b92
lea edx, [esp + 0x14]
xor eax, eax
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx]
mov esi, eax
and esi, 0x156d52ba
mov edi, ebp
xor edi, 0xf54956a2
sub edi, esi
mov esi, 0xfffffffe
sub esi, edi
mov ebx, esi
and ebx, 0xf4dc8518
or esi, 0xb237ae7
add esi, edi
add esi, 2
or esi, ebx
xor ecx, 0xf4dc8518
mov edi, ecx
and edi, esi
add ecx, esi
add edi, edi
sub ecx, edi
add cl, 0xd1
mov byte [edx], cl
inc edx
dec ebp
add eax, 0xfffffffe
cmp ebp, 0xfffffffc
jne 0x43e200
mov edx, dword [esp + 0x14]
mov dword [esp + 4], 0x504f4e4d
lea ebx, [esp + 4]
mov ebp, 0x9618f2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ebx]
mov eax, ebp
and eax, 0x8210d7
lea ecx, [ebp - 0x5a000000]
and ecx, 0xa6140828
or ecx, eax
mov eax, edi
xor eax, 0xd7
mov esi, ecx
xor esi, 0x28
or esi, eax
xor edi, 8
xor ecx, 0xd7
or ecx, edi
and ecx, esi
add cl, 0xbf
mov byte [ebx], cl
inc ebx
dec ebp
cmp ebp, 0x9618ee
jne 0x43e270
mov ebx, dword [esp + 4]
mov ecx, dword [0x44a890]
test ecx, ecx
je 0x43e314
xor edi, edi
mov ebp, dword [0x44a894]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + edi*8], 0xc0a4c970
je 0x43e2e1
inc edi
cmp ecx, edi
jne 0x43e2d0
jmp 0x43e314
mov ecx, dword [ebp + edi*8 + 4]
cmp ecx, ebx
je 0x43e314
lea eax, [esp + 0x10]
lea esi, [esp + 0x18]
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 8]
push eax
push edx
push esi
push dword [esp + 0x4c]
push 0x18
push ecx
push dword [0x44a898]
call fcn.00439540
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov ecx, dword [esp + 0x44]
js 0x43e3a3
mov edx, dword [esp + 0x40]
test edx, edx
je 0x43e330
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [edx], eax
cmp dword [esp + 0x48], 0
je 0x43e3a3
test ecx, ecx
je 0x43e397
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
mov eax, dword [esp]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x43e34d
mov edx, ecx
mov eax, dword [esp]
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, dword [esp + 0x44]
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add dword [esp + 0xc], ecx
lea ebp, [eax + ecx]
add ebp, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov eax, ebp
mov edi, dword [esp + 0xc]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [esp + 0xc]
test dl, 1
je 0x43e397
and edx, 2
movzx eax, byte [ebp + edx]
mov byte [ecx + edx], al
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
push dword [esp]
call fcn.00436100
add esp, 4
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret