Function at 0x43c750
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
add ebx, esi
sub ebx, edi
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ebx, esi
jbe 0x43cc42
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], ebx
jmp 0x43c7ed
push edi
push ebx
push eax
call fcn.00408380
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov dword [ecx + eax], esi
mov edx, dword [esp + 8]
add edx, 4
mov eax, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edi, dword [esp + 0x50]
add esi, edi
dec esi
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x54]
inc esi
mov eax, ecx
mov dword [esp], ecx
cmp esi, ebx
jae 0x43cc42
test ebp, ebp
je 0x43c82c
movzx eax, byte [ebp]
mov byte [esp + 0x18], 0x4b
lea ecx, [esp + 0x19]
mov word [ecx + 4], 0
mov dword [ecx], 0
xor ecx, ecx
nop
nop
nop
nop
mov edx, ecx
add dl, 0x62
xor dl, byte [esp + ecx + 0x18]
add dl, 0x16
mov byte [esp + ecx + 0x18], dl
inc ecx
cmp ecx, 7
jne 0x43c810
cmp al, byte [esp + 0x18]
je 0x43c83b
movzx eax, byte [esi]
mov ecx, dword [esp + 0x4c]
cmp al, byte [ecx]
jne 0x43c8e0
cmp edi, 2
jb 0x43c8b0
mov eax, 1
jmp 0x43c866
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x4c]
cmp cl, byte [edx + eax]
jne 0x43ca02
inc eax
cmp eax, edi
je 0x43c8b0
test ebp, ebp
je 0x43c850
movzx ecx, byte [ebp + eax]
mov byte [esp + 0x18], 0x65
lea edx, [esp + 0x19]
mov byte [edx + 4], 0
mov dword [edx], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ch, dl
add ch, 9
xor ch, byte [esp + edx + 0x18]
add ch, 0xd3
mov byte [esp + edx + 0x18], ch
inc edx
cmp edx, 6
jne 0x43c890
cmp cl, byte [esp + 0x18]
jne 0x43c850
jmp 0x43c861
mov edi, dword [esp]
mov eax, edi
mov ebx, dword [esp + 0x14]
xor eax, ebx
mov ebp, edi
not ebp
and ebp, ebx
add ebp, ebp
sub ebp, eax
cmp ebx, dword [esp + 0x10]
je 0x43c8e8
mov eax, ebx
sub eax, edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
jmp 0x43cb32
mov ecx, dword [esp]
jmp 0x43c7df
mov dword [esp + 0x24], ebp
mov edx, ebp
sar edx, 2
inc edx
mov ecx, ebx
sub ecx, edi
mov dword [esp + 4], ecx
sar ecx, 2
mov eax, ecx
shr eax, 1
add eax, ecx
cmp eax, edx
ja 0x43c909
mov eax, edx
mov ebp, eax
and ebp, 4
mov ecx, eax
or ecx, 4
imul ecx, ebp
xor ebp, 4
mov dword [esp + 0x10], eax
and eax, 0xfffffffb
imul eax, ebp
add ecx, eax
push ecx
call fcn.00408300
add esp, 4
mov ecx, eax
test edi, edi
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x24]
je 0x43cb10
cmp ecx, edi
mov edx, dword [esp + 4]
jbe 0x43ca0d
cmp ebx, ecx
jbe 0x43ca0d
test edx, edx
je 0x43cafd
mov eax, dword [esp]
mov edx, dword [esp + 4]
add eax, edx
dec eax
mov ecx, dword [esp + 0xc]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43c994
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43c980
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov edi, dword [esp]
sub edi, dword [esp + 0x14]
cmp edi, 0xfffffff8
ja 0x43cafd
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43c9b0
jmp 0x43cafd
add esi, eax
dec esi
mov ecx, dword [esp]
jmp 0x43c7df
mov ebx, ecx
mov ecx, edx
shr ecx, 2
mov eax, edi
mov dword [esp], edi
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
and edx, 0xfffffffc
lea eax, [ebx + edx]
add edx, dword [esp]
and ecx, 3
mov dword [esp + 0x20], ecx
shr ecx, 1
mov dword [esp + 8], edx
mov edi, eax
mov ebx, dword [esp + 8]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, dword [esp + 0x20]
mov edi, ecx
not edi
or edi, 1
add edi, ecx
mov ebx, edi
inc ebx
je 0x43cafd
xor ecx, 1
and ecx, dword [esp + 4]
add eax, ecx
add edx, ecx
mov ecx, ebx
and ecx, 7
je 0x43ca9a
mov dword [esp + 0x20], edi
mov dword [esp + 8], ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
mov byte [eax + edi], bl
inc edi
cmp ecx, edi
jne 0x43ca80
add edx, edi
add eax, edi
mov ebx, dword [esp + 8]
sub ebx, edi
mov edi, dword [esp + 0x20]
cmp edi, 7
jb 0x43cafd
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + edi]
mov byte [eax + edi], cl
movzx ecx, byte [edx + edi + 1]
mov byte [eax + edi + 1], cl
movzx ecx, byte [edx + edi + 2]
mov byte [eax + edi + 2], cl
movzx ecx, byte [edx + edi + 3]
mov byte [eax + edi + 3], cl
movzx ecx, byte [edx + edi + 4]
mov byte [eax + edi + 4], cl
movzx ecx, byte [edx + edi + 5]
mov byte [eax + edi + 5], cl
movzx ecx, byte [edx + edi + 6]
mov byte [eax + edi + 6], cl
movzx ecx, byte [edx + edi + 7]
mov byte [eax + edi + 7], cl
add edi, 8
cmp ebx, edi
jne 0x43cab0
push dword [esp]
call fcn.00408310
add esp, 4
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
mov dword [eax], ecx
lea edx, [ecx + ebp]
mov dword [esp + 8], edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
lea ecx, [ecx + edx*4]
mov dword [esp + 0x10], ecx
mov dword [eax + 8], ecx
mov eax, dword [esp + 4]
mov ecx, eax
mov dword [esp + 4], eax
cmp eax, ebp
jae 0x43c7b3
mov edi, dword [esp]
add edi, ebp
sub edi, ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
lea ebx, [ecx + eax]
add eax, ecx
add eax, 4
cmp edi, 4
jg 0x43c7a8
mov ecx, edi
shr ecx, 2
mov edx, ebx
mov ebp, edi
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebp
and edx, 0xfffffffc
add eax, edx
add edx, ebx
mov dword [esp], ebp
mov ebx, ebp
and ebx, 3
mov ecx, ebx
shr ecx, 1
mov ebp, edx
mov edi, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov edi, ebx
not edi
or edi, 1
add edi, ebx
mov ecx, edi
inc ecx
je 0x43c7b3
xor ebx, 1
and ebx, dword [esp]
add edx, ebx
mov ebp, ecx
and ebp, 7
je 0x43cbe2
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [edx + ebx]
mov byte [edx + ebx + 4], al
inc ebx
cmp ebp, ebx
jne 0x43cbc0
lea eax, [edx + ebx]
add eax, 4
add edx, ebx
sub ecx, ebx
cmp edi, 7
jb 0x43c7b3
jmp 0x43cbed
add eax, ebx
cmp edi, 7
jb 0x43c7b3
xor edi, edi
nop
movzx ebx, byte [edx + edi]
mov byte [eax + edi], bl
movzx ebx, byte [edx + edi + 1]
mov byte [eax + edi + 1], bl
movzx ebx, byte [edx + edi + 2]
mov byte [eax + edi + 2], bl
movzx ebx, byte [edx + edi + 3]
mov byte [eax + edi + 3], bl
movzx ebx, byte [edx + edi + 4]
mov byte [eax + edi + 4], bl
movzx ebx, byte [edx + edi + 5]
mov byte [eax + edi + 5], bl
movzx ebx, byte [edx + edi + 6]
mov byte [eax + edi + 6], bl
movzx ebx, byte [edx + edi + 7]
mov byte [eax + edi + 7], bl
add edi, 8
cmp ecx, edi
jne 0x43cbf0
jmp 0x43c7b3
mov eax, dword [esp + 0x40]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret