Function at 0x43d530
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add ecx, esi
sub ecx, dword [esp + 0x54]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x28], ecx
cmp ecx, esi
jbe 0x43d895
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, ecx
not eax
and eax, 1
and ecx, 0xfffffffe
sub ecx, eax
mov dword [esp + 0x24], ecx
xor edx, edx
xor ecx, ecx
mov dword [esp + 8], 0
jmp 0x43d5a3
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 4]
inc esi
cmp esi, dword [esp + 0x28]
jae 0x43d895
mov dword [esp + 4], ecx
test ebp, ebp
je 0x43d5fe
mov edi, edx
movzx ecx, byte [ebp]
mov byte [esp + 0xc], 0x4d
lea eax, [esp + 0xd]
mov dword [eax + 3], 0
mov dword [eax], 0
mov eax, 0xa573abd
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0xa573ab1]
xor edx, eax
mov ebx, edx
and ebx, 1
or edx, 1
add edx, ebx
add dl, 0x4e
mov byte [esp + eax - 0xa573ab1], dl
inc eax
cmp eax, 0xa573ac5
jne 0x43d5d0
cmp cl, byte [esp + 0xc]
mov edx, edi
je 0x43d609
movzx eax, byte [esi]
mov ecx, dword [esp + 0x50]
cmp al, byte [ecx]
jne 0x43d590
mov dword [esp], edx
cmp dword [esp + 0x54], 2
jb 0x43d6c0
mov ecx, 1
mov dword [esp + 0x2c], esi
jmp 0x43d648
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x50]
cmp al, byte [edx + ecx]
jne 0x43d7f0
inc ecx
cmp ecx, dword [esp + 0x54]
je 0x43d6c0
test ebp, ebp
je 0x43d630
mov esi, ebp
movzx edx, byte [ebp + ecx]
mov byte [esp + 0xc], 0xb
lea eax, [esp + 0xd]
mov byte [eax + 4], 0
mov dword [eax], 0
mov edi, 0xa4ef72e
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edi - 0xa4ef722]
mov eax, edi
or eax, ebx
lea ebp, [edi - 0xa4ef700]
and ebp, ebx
sub eax, ebp
add eax, 0xcc752c19
mov ebx, eax
and ebx, 1
xor eax, 1
lea eax, [eax + ebx*2]
mov byte [esp + edi - 0xa4ef722], al
inc edi
cmp edi, 0xa4ef734
jne 0x43d670
cmp dl, byte [esp + 0xc]
mov ebp, esi
mov esi, dword [esp + 0x2c]
jne 0x43d630
jmp 0x43d641
mov edx, dword [esp]
mov edi, edx
mov ecx, dword [esp + 4]
sub edi, ecx
cmp edx, dword [esp + 8]
je 0x43d6dc
mov ebx, ecx
mov eax, dword [esp + 0x44]
jmp 0x43d883
mov ecx, edi
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43d6f0
mov edx, eax
mov dword [esp + 8], edx
lea eax, [edx*4]
push eax
call fcn.00408ac0
add esp, 4
mov ebx, eax
mov edx, dword [esp + 4]
test edx, edx
je 0x43d869
mov eax, edx
xor eax, dword [esp]
mov ecx, edx
not ecx
and ecx, dword [esp]
add ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
sub ecx, eax
cmp ebx, edx
mov dword [esp + 0x1c], ebx
jbe 0x43d80e
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x43d80e
test ecx, ecx
je 0x43d859
mov edx, ecx
mov eax, dword [esp + 0x1c]
add eax, ecx
dec eax
mov ecx, dword [esp + 4]
add ecx, edx
dec ecx
mov dword [esp], edx
and edx, 7
je 0x43d787
mov dword [esp + 0x18], edi
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [ecx + edi]
mov byte [eax + edi], bl
dec edi
cmp edx, edi
jne 0x43d770
add ecx, edi
add eax, edi
add dword [esp], edi
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0x20]
cmp edx, 0xfffffff8
ja 0x43d859
neg dword [esp]
xor edx, edx
nop
nop
nop
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
movzx ebx, byte [ecx + edx - 1]
mov byte [eax + edx - 1], bl
movzx ebx, byte [ecx + edx - 2]
mov byte [eax + edx - 2], bl
movzx ebx, byte [ecx + edx - 3]
mov byte [eax + edx - 3], bl
movzx ebx, byte [ecx + edx - 4]
mov byte [eax + edx - 4], bl
movzx ebx, byte [ecx + edx - 5]
mov byte [eax + edx - 5], bl
movzx ebx, byte [ecx + edx - 6]
mov byte [eax + edx - 6], bl
movzx ebx, byte [ecx + edx - 7]
mov byte [eax + edx - 7], bl
add edx, 0xfffffff8
cmp dword [esp], edx
jne 0x43d7a0
jmp 0x43d859
mov eax, ecx
xor eax, 1
and ecx, 0xfffffffe
add ecx, ecx
sub ecx, eax
add esi, ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
jmp 0x43d598
mov dword [esp], ecx
shr ecx, 2
mov dword [esp + 0x18], edi
mov edi, ebx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov eax, dword [esp]
mov edx, eax
and edx, 0xfffffffc
lea edi, [ebx + edx]
add edx, dword [esp + 4]
mov ecx, eax
shr ecx, 1
and ecx, 1
mov ebx, edx
mov dword [esp + 0x14], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x18]
test al, 1
je 0x43d859
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x14]
mov byte [edx + eax], cl
push dword [esp + 4]
call fcn.00408ad0
add esp, 4
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov dword [eax], ebx
mov ecx, dword [esp + 8]
lea ecx, [ebx + ecx*4]
mov edx, ebx
add edx, edi
mov dword [esp + 8], ecx
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [ebx + edi], esi
add edx, 4
mov dword [eax + 4], edx
add esi, dword [esp + 0x24]
jmp 0x43d598
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret