Function at 0x43c310
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov ebx, ecx
mov eax, dword [esp + 0x70]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0x100000
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], 0x4c4d4a4b
mov word [esp + 0x38], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x34]
mov esi, 0xd
sub esi, eax
mov ecx, esi
or ecx, edx
and esi, edx
not ecx
add ecx, esi
add cl, 0x46
mov byte [esp + eax + 0x34], cl
add eax, 0xc3f96a2f
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
add eax, 0x3c0695d1
cmp eax, 6
jb 0x43c360
mov eax, dword [esp + 0x34]
mov ecx, dword [0x44cd1c]
test ecx, ecx
je 0x43c3ee
xor edx, edx
mov esi, dword [0x44cd20]
nop
nop
nop
cmp dword [esi + edx*8], 0x98d5a07f
je 0x43c3c0
inc edx
cmp ecx, edx
jne 0x43c3b0
jmp 0x43c3ee
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43c3ee
lea eax, [esp + 0x20]
lea edx, [esp + 0x14]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x44cd24]
call fcn.0043e470
add esp, 0x24
test eax, eax
js 0x43caea
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 4], 0xcfcfc9c8
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 4]
lea edx, [eax + 0xd2]
lea esi, [eax + 0x12]
or esi, edx
and esi, ecx
lea edx, [eax - 0xef7e12e]
or edx, ecx
xor edx, esi
add edx, 0x4ad765e5
mov ecx, edx
and ecx, 1
xor edx, 1
lea ecx, [edx + ecx*2]
mov byte [esp + eax + 4], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 7
jb 0x43c450
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
cmp eax, 0x7ffffffe
ja 0x43ca41
mov dword [esp], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], ebx
jmp 0x43c4e2
mov ebx, dword [esp + 0x24]
mov edx, dword [esp]
mov dword [esp], edx
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
cmp eax, 0x7fffffff
jae 0x43ca41
mov ecx, dword [ebx]
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 4]
mov edi, 0xd
sub edi, eax
mov edx, edi
or edx, esi
and edi, esi
not edx
add edx, edi
add dl, 0x46
mov byte [esp + eax + 4], dl
add eax, 0xc3f96a2f
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
add eax, 0x3c0695d1
cmp eax, 6
jb 0x43c500
mov eax, dword [esp + 4]
mov edx, dword [0x44cd1c]
test edx, edx
je 0x43c590
xor esi, esi
mov edi, dword [0x44cd20]
nop
nop
nop
cmp dword [edi + esi*8], 0xc18bc4ba
je 0x43c560
inc esi
cmp edx, esi
jne 0x43c550
jmp 0x43c590
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x43c590
push 0
push 0x1c
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
push ecx
push 0x18
push edx
push dword [0x44cd24]
call fcn.0043e470
add esp, 0x24
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xbfffffff
ja 0x43ca41
test eax, eax
js 0x43c4cb
cmp dword [esp + 0x44], 0x1000
jne 0x43c4cb
test byte [esp + 0x48], 0x66
je 0x43c4cb
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jbe 0x43c72a
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor ecx, ecx
nop
nop
nop
movzx esi, byte [esp + ecx + 4]
mov edi, 0xd
sub edi, ecx
mov edx, edi
or edx, esi
and edi, esi
not edx
add edx, edi
add dl, 0x46
mov byte [esp + ecx + 4], dl
add ecx, 0xc3f96a2f
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
add ecx, 0x3c0695d1
cmp ecx, 6
jb 0x43c5e0
mov ecx, dword [0x44cd1c]
test ecx, ecx
je 0x43c66e
mov edx, dword [esp + 4]
xor esi, esi
mov edi, dword [0x44cd20]
nop
cmp dword [edi + esi*8], 0x6dbc3610
je 0x43c640
inc esi
cmp ecx, esi
jne 0x43c630
jmp 0x43c66e
mov ecx, dword [edi + esi*8 + 4]
cmp ecx, edx
je 0x43c66e
push 0x8000
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push 0x10
push ecx
push dword [0x44cd24]
call fcn.0043e470
add esp, 0x1c
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 4]
mov esi, 0xd
sub esi, eax
mov ecx, esi
or ecx, edx
and esi, edx
not ecx
add ecx, esi
add cl, 0x46
mov byte [esp + eax + 4], cl
add eax, 0xc3f96a2f
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
add eax, 0x3c0695d1
cmp eax, 6
jb 0x43c690
mov eax, dword [esp + 4]
mov ecx, dword [0x44cd1c]
test ecx, ecx
je 0x43c71e
xor edx, edx
mov esi, dword [0x44cd20]
nop
nop
nop
cmp dword [esi + edx*8], 0x98d5a07f
je 0x43c6f0
inc edx
cmp ecx, edx
jne 0x43c6e0
jmp 0x43c71e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43c71e
push 4
push 0x3000
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x44cd24]
call fcn.0043e470
add esp, 0x24
test eax, eax
js 0x43ca41
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx]
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 4]
mov ebp, 0xd
sub ebp, eax
mov ebx, ebp
or ebx, edi
and ebp, edi
not ebx
add ebx, ebp
add bl, 0x46
mov byte [esp + eax + 4], bl
add eax, 0xc3f96a2f
mov edi, eax
and edi, 1
xor eax, 1
lea eax, [eax + edi*2]
add eax, 0x3c0695d1
cmp eax, 6
jb 0x43c750
mov eax, dword [esp + 4]
mov ebx, dword [0x44cd1c]
test ebx, ebx
je 0x43c7e0
xor edi, edi
mov ebp, dword [0x44cd20]
nop
nop
nop
cmp dword [ebp + edi*8], 0xe6c7f7c6
je 0x43c7b1
inc edi
cmp ebx, edi
jne 0x43c7a0
jmp 0x43c7e0
mov ebx, dword [ebp + edi*8 + 4]
cmp ebx, eax
je 0x43c7e0
lea eax, [esp + 0x58]
push eax
push ecx
push esi
push dword [esp + 0x28]
push edx
push 0x14
push ebx
push dword [0x44cd24]
call fcn.0043e470
add esp, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
test eax, eax
jns 0x43c7ef
cmp eax, 0x8000000d
jne 0x43c4c1
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x64]
push dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.0043cb00
add esp, 0x18
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
cmp esi, eax
je 0x43ca14
mov dword [esp + 0x50], esi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
jmp 0x43c877
push dword [esp + 0x18]
call fcn.004086f0
add esp, 4
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
mov ebx, eax
lea edx, [eax + edi*4]
mov ecx, eax
mov edi, dword [esp]
add ecx, edi
mov eax, dword [esp + 0x1c]
mov dword [ebx + edi], ebp
add ecx, 4
add esi, 4
cmp esi, dword [esp + 0x2c]
je 0x43c9d0
mov ebp, dword [esi]
add ebp, eax
sub ebp, dword [esp + 0x14]
mov edi, ecx
sub edi, ebx
cmp ecx, edx
jne 0x43c864
mov dword [esp + 0x10], ecx
mov dword [esp], edi
mov ecx, edi
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x43c8a2
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.004086e0
add esp, 4
test ebx, ebx
je 0x43c854
mov dword [esp + 0x54], edi
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jbe 0x43c982
cmp ecx, eax
jbe 0x43c982
cmp dword [esp], 0
je 0x43c840
mov ebx, dword [esp + 0x18]
mov edx, dword [esp]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x28]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43c917
neg edi
xor edx, edx
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43c900
add eax, edx
add ecx, edx
add edx, dword [esp]
mov ebx, dword [esp + 0x18]
mov edi, ebx
sub edi, dword [esp + 0x10]
cmp edi, 0xfffffff8
ja 0x43c840
neg edx
xor edi, edi
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 0x43c930
jmp 0x43c840
mov ecx, dword [esp]
shr ecx, 2
mov edx, ebx
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, dword [esp]
mov edx, ecx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, ebx
mov ebx, ecx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 0x10], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x43c840
mov eax, dword [esp]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x10]
mov byte [edx + eax], cl
jmp 0x43c840
mov eax, dword [esp + 0x70]
mov dword [eax + 4], ecx
mov dword [esp + 0x18], ebx
mov dword [eax], ebx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x43ca34
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
je 0x43c4c8
push eax
mov esi, edx
call fcn.004086f0
mov edx, esi
add esp, 4
mov dword [esp + 4], 0
jmp 0x43c4c8
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov edx, dword [esp]
mov dword [eax + 8], edx
mov ebx, dword [esp + 0x24]
jmp 0x43c4c8
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x24]
jmp 0x43c4c8
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 4]
mov esi, 0xd
sub esi, eax
mov ecx, esi
or ecx, edx
and esi, edx
not ecx
add ecx, esi
add cl, 0x46
mov byte [esp + eax + 4], cl
add eax, 0xc3f96a2f
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
add eax, 0x3c0695d1
cmp eax, 6
jb 0x43ca60
mov eax, dword [0x44cd1c]
test eax, eax
je 0x43caea
mov ecx, dword [esp + 4]
xor edx, edx
mov esi, dword [0x44cd20]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x6dbc3610
je 0x43cac0
inc edx
cmp eax, edx
jne 0x43cab0
jmp 0x43caea
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43caea
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x44cd24]
call fcn.0043e470
add esp, 0x1c
mov eax, dword [esp + 0x70]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10