Function at 0x43d380
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 0x10], 0x60676665
mov ebx, dword [esp + 0x30]
mov eax, 0xff319399
mov ecx, 0x66
nop
nop
nop
movzx edx, byte [esp + eax + 0xce6c77]
mov esi, eax
or esi, edx
not edx
or edx, ecx
lea ebp, [edx + esi]
lea edi, [edx + esi]
inc edi
lea esi, [ebp*2 + 2]
mov ebp, esi
and ebp, 4
mov edx, edi
xor edx, 2
add edx, ebp
and esi, 2
and edi, 1
and edx, 0xfe
or edx, edi
xor edx, 1
add edx, esi
mov byte [esp + eax + 0xce6c77], dl
inc eax
dec ecx
cmp eax, 0xff31939d
jne 0x43d3a0
mov esi, dword [esp + 0x10]
mov eax, dword [0x4491f4]
test eax, eax
je 0x43d44a
xor ecx, ecx
mov edx, dword [0x4491f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xdd26b4f7
je 0x43d420
inc ecx
cmp eax, ecx
jne 0x43d410
jmp 0x43d44a
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43d44a
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 2
push dword [esp + 0x3c]
push 0x14
push eax
push dword [0x4491fc]
call fcn.00438f20
add esp, 0x20
mov esi, eax
cmp esi, 0xc0000023
jne 0x43d6a9
mov dword [esp], ebx
push dword [esp + 0xc]
call fcn.00435ff0
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], 0x60676665
mov edx, 0xff319399
mov esi, 0x66
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx + 0xce6c7b]
mov edi, edx
or edi, ecx
not ecx
or ecx, esi
lea ebx, [ecx + edi]
lea ebp, [ecx + edi]
inc ebp
lea edi, [ebx*2 + 2]
mov ebx, edi
and ebx, 4
mov ecx, ebp
xor ecx, 2
add ecx, ebx
and edi, 2
and ebp, 1
and ecx, 0xfe
or ecx, ebp
xor ecx, 1
add ecx, edi
mov byte [esp + edx + 0xce6c7b], cl
inc edx
dec esi
cmp edx, 0xff31939d
jne 0x43d490
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4491f4]
test ecx, ecx
je 0x43d510
xor edx, edx
mov edi, dword [0x4491f8]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 8]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xdd26b4f7
je 0x43d51a
inc edx
cmp ecx, edx
jne 0x43d500
jmp 0x43d549
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 8]
jmp 0x43d549
mov edx, dword [edi + edx*8 + 4]
cmp edx, esi
je 0x43d549
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 8]
push ebp
push 2
push dword [esp + 0x3c]
push 0x14
push edx
push dword [0x4491fc]
mov edi, eax
call fcn.00438f20
add esp, 0x20
mov esi, eax
mov eax, edi
test esi, esi
js 0x43d6a0
mov edx, dword [esp + 0x34]
test edx, edx
je 0x43d650
cmp dword [esp + 0x30], 0
je 0x43d649
mov ecx, dword [ebp + 0x10]
shr ecx, 1
mov edi, dword [edx]
cmp edi, ecx
jb 0x43d575
mov edi, ecx
test edi, edi
je 0x43d63d
add eax, 0x2c
mov ecx, edi
and ecx, 3
je 0x43d5d6
mov dword [esp + 4], edi
xor edi, edi
mov ebp, dword [esp + 0x30]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, word [eax]
xor edx, edx
test bx, bx
setne dl
lea eax, [eax + edx*2]
mov word [ebp], bx
add ebp, 2
inc edi
cmp ecx, edi
jne 0x43d5a0
mov dword [esp], ebp
mov ecx, dword [esp + 4]
mov ebp, ecx
sub ebp, edi
mov edi, ecx
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
cmp edi, 4
jae 0x43d5dd
jmp 0x43d63d
mov ebp, edi
cmp edi, 4
jb 0x43d63d
mov ebx, dword [esp]
movzx edx, word [eax]
xor ecx, ecx
test dx, dx
setne cl
lea edi, [eax + ecx*2]
mov word [ebx], dx
movzx eax, word [eax + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [edi + ecx*2]
mov word [ebx + 2], ax
movzx eax, word [edi + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edi, [edx + ecx*2]
mov word [ebx + 4], ax
movzx ecx, word [edx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [ebx + 6], cx
add ebx, 8
lea eax, [edi + eax*2]
add ebp, 0xfffffffc
jne 0x43d5e0
mov dword [esp], ebx
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp]
mov word [eax], 0
mov ebp, dword [esp + 8]
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x43d65d
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x43d66c
mov eax, dword [ebp + 0x18]
shr eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x43d67b
mov eax, dword [ebp + 0x1c]
shr eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x43d688
mov eax, dword [ebp + 0x20]
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x43d697
mov eax, dword [ebp + 0x24]
shr eax, 1
mov dword [ecx], eax
test ebx, ebx
je 0x43d6a0
mov eax, dword [ebp + 0x28]
mov dword [ebx], eax
push ebp
call fcn.00436140
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret