Function at 0x43d580
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov dword [esp], 0x66676869
xor eax, eax
mov ecx, eax
add cl, 0x46
xor cl, byte [esp + eax]
add cl, 0xd0
mov byte [esp + eax], cl
inc eax
cmp eax, 4
jne 0x43d5a0
mov ebp, dword [esp]
mov eax, dword [0x4486a8]
test eax, eax
je 0x43d60e
xor ecx, ecx
mov edx, dword [0x4486ac]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xcf2d66db
je 0x43d5e0
inc ecx
cmp eax, ecx
jne 0x43d5d0
jmp 0x43d60e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x43d60e
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0x18
push eax
push dword [0x4486b0]
call fcn.0043a9b0
add esp, 0x24
mov ebp, eax
mov dword [esp], 0x4e8d8ca8
mov eax, 0xa7bb1613
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x5844e9ed]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0x68
mov byte [esp + eax + 0x5844e9ed], cl
inc eax
cmp eax, 0xa7bb1617
jne 0x43d620
cmp ebp, dword [esp]
jne 0x43d818
push dword [esp + 0xc]
call fcn.00438e30
add esp, 4
mov dword [esp + 4], eax
mov ebx, dword [esp + 0xc]
mov dword [esp], 0x66676869
xor edx, edx
nop
nop
nop
mov ecx, edx
add cl, 0x46
xor cl, byte [esp + edx]
add cl, 0xd0
mov byte [esp + edx], cl
inc edx
cmp edx, 4
jne 0x43d670
mov ebp, dword [esp]
mov edx, dword [0x4486a8]
test edx, edx
je 0x43d6eb
xor esi, esi
mov ecx, dword [0x4486ac]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0xcf2d66db
je 0x43d6b0
inc esi
cmp edx, esi
jne 0x43d6a0
jmp 0x43d6e7
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebp
mov esi, dword [esp + 0x34]
je 0x43d6eb
lea ecx, [esp + 0xc]
push ecx
push ebx
push dword [esp + 0xc]
push 1
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0x18
push edx
push dword [0x4486b0]
mov esi, eax
call fcn.0043a9b0
add esp, 0x24
mov ebp, eax
mov eax, esi
mov esi, dword [esp + 0x34]
test ebp, ebp
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 4]
js 0x43d80f
mov edx, dword [esp + 0x30]
test edx, edx
je 0x43d798
test edi, edi
je 0x43d791
mov ecx, dword [ecx + 0x10]
shr ecx, 1
mov edx, dword [edx]
cmp edx, ecx
jb 0x43d71c
mov edx, ecx
test edx, edx
je 0x43d784
add eax, 0x14
mov ecx, edx
test dl, 1
je 0x43d74b
not ecx
lea ecx, [ecx + edx*2]
movzx esi, word [eax]
xor ebx, ebx
test si, si
setne bl
lea eax, [eax + ebx*2]
mov word [edi], si
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
add edi, 2
cmp edx, 1
je 0x43d784
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx edx, word [eax + ebx*2]
xor eax, eax
test dx, dx
setne al
lea eax, [esi + eax*2]
mov word [edi + 2], dx
add edi, 4
add ecx, 0xfffffffe
jne 0x43d750
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov word [edi], 0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x10]
shr eax, 1
mov dword [edx], eax
test esi, esi
je 0x43d7a1
mov eax, dword [ecx + 4]
mov dword [esi], eax
test ebx, ebx
je 0x43d80f
cmp dword [esp + 0x38], 0
je 0x43d80a
mov eax, dword [ebx]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x43d7b7
mov eax, ecx
mov ebx, dword [esp + 4]
mov esi, dword [ebx + 8]
add esi, ebx
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov edi, dword [esp + 0x38]
add dword [esp + 8], edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, dword [esp + 8]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, ebx
mov esi, dword [esp + 8]
test al, 1
mov ebx, dword [esp + 0x3c]
je 0x43d80a
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
push ecx
call fcn.00438e70
add esp, 4
mov eax, ebp
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret