Function at 0x43d680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x43d6a0
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x20], cx
add ecx, 2
mov word [esp + 0x22], cx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0x68696e6f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x43d735
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0xdf085692
add eax, 0x92
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 2
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x43d6f0
mov esi, dword [esp + 0x10]
mov eax, dword [0x448ad4]
test eax, eax
je 0x43d78e
xor ecx, ecx
mov edx, dword [0x448ad8]
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x36e97270
je 0x43d760
inc ecx
cmp eax, ecx
jne 0x43d750
jmp 0x43d78e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43d78e
lea ecx, [esp + 8]
lea edx, [esp + 0x20]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x448adc]
push eax
call fcn.00439d10
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43d8ea
push dword [esp + 8]
call fcn.00437e80
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], 0x68696e6f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 8
ja 0x43d827
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + edx]
add esi, 0xdf085692
add ecx, 0x92
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, esi
not ecx
and ecx, esi
add ecx, ecx
sub ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 2
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 9
jb 0x43d7e0
mov esi, dword [esp + 0x10]
mov ecx, dword [0x448ad4]
test ecx, ecx
je 0x43d854
mov ebx, edi
xor edx, edx
mov edi, dword [0x448ad8]
nop
cmp dword [edi + edx*8], 0x36e97270
je 0x43d8f4
inc edx
cmp ecx, edx
jne 0x43d840
mov edi, ebx
mov edx, dword [esp + 4]
test esi, esi
js 0x43d8e1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43d86c
mov eax, dword [edx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43d8e1
cmp dword [ebp + 0x14], 0
je 0x43d8dc
mov eax, dword [edi]
mov ecx, dword [edx + 8]
cmp eax, ecx
jb 0x43d881
mov eax, ecx
mov ecx, dword [esp + 4]
lea edx, [ecx + 0xc]
mov ecx, eax
shr ecx, 2
mov ebx, dword [ebp + 0x14]
mov edi, ebx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add ebx, ecx
mov edx, dword [esp + 4]
add edx, ecx
add edx, 0xc
mov ecx, eax
not ecx
or ecx, 3
add eax, ecx
inc eax
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x28], edx
mov edi, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, dword [esp + 4]
test al, 1
mov edi, dword [ebp + 0x18]
je 0x43d8dc
and eax, 0xfffffffe
mov ecx, dword [esp + 0x28]
movzx ecx, byte [ecx + eax]
mov byte [ebx + eax], cl
mov eax, dword [edx + 8]
mov dword [edi], eax
push edx
call fcn.00437f10
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
mov edi, ebx
mov edx, dword [esp + 4]
je 0x43d858
lea edx, [esp + 8]
lea esi, [esp + 0x20]
push edx
push eax
push dword [esp + 0xc]
push 2
push esi
push dword [ebp + 8]
push 6
push dword [0x448adc]
push ecx
call fcn.00439d10
mov edx, dword [esp + 0x28]
add esp, 0x24
mov esi, eax
jmp 0x43d858