Function at 0x43c820
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x34]
mov dword [esp + 4], 0x5c5d5e5f
mov byte [esp + 8], 0
mov eax, 0xda106b6f
mov ecx, 0xa5ef9490
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 0x5a106b74]
mov ebx, eax
and ebx, 0x64
mov edx, ecx
and edx, 0x13
or edx, ebx
xor edx, esi
xor edx, 0xe4
add dl, 0x30
mov byte [esp + ecx + 0x5a106b74], dl
dec eax
inc ecx
cmp eax, 0xda106b6a
jne 0x43c850
mov ebp, dword [esp + 4]
mov eax, dword [0x44839c]
test eax, eax
je 0x43c8de
xor ecx, ecx
mov edx, dword [0x4483a0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3602324e
je 0x43c8b0
inc ecx
cmp eax, ecx
jne 0x43c8a0
jmp 0x43c8de
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x43c8de
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push eax
push dword [0x4483a4]
call fcn.00437ec0
add esp, 0x24
mov ebp, eax
cmp ebp, 0xc0000023
jne 0x43caf7
push dword [esp + 0x14]
call fcn.00434e40
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x5c5d5e5f
mov byte [esp + 8], 0
mov edx, 0xda106b6f
mov ebx, 0xa5ef9490
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ebx + 0x5a106b74]
mov ebp, edx
and ebp, 0x64
mov ecx, ebx
and ecx, 0x13
or ecx, ebp
xor ecx, esi
xor ecx, 0xe4
add cl, 0x30
mov byte [esp + ebx + 0x5a106b74], cl
dec edx
inc ebx
cmp edx, 0xda106b6a
jne 0x43c920
mov ebp, dword [esp + 4]
mov edx, dword [0x44839c]
test edx, edx
je 0x43c980
xor esi, esi
mov ecx, dword [0x4483a0]
mov ebx, dword [esp + 0x44]
nop
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0x3602324e
je 0x43c986
inc esi
cmp edx, esi
jne 0x43c970
jmp 0x43c9bc
mov ebx, dword [esp + 0x44]
jmp 0x43c9bc
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebp
je 0x43c9bc
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x10]
push dword [esp + 8]
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push edx
push dword [0x4483a4]
mov esi, eax
call fcn.00437ec0
add esp, 0x24
mov ebp, eax
mov eax, esi
test ebp, ebp
js 0x43caec
mov esi, dword [esp + 0x38]
test esi, esi
je 0x43ca73
test edi, edi
je 0x43ca69
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x10]
shr ecx, 1
mov edx, dword [esi]
cmp edx, ecx
jb 0x43c9e8
mov edx, ecx
test edx, edx
je 0x43ca64
add eax, 0x14
mov ecx, edx
test dl, 1
je 0x43ca26
not ecx
lea ecx, [ecx + edx*2]
movzx esi, word [eax]
mov word [esp + 0xc], si
test si, si
mov ebx, 0
setne bl
mov esi, ebx
mov ebx, dword [esp + 0x44]
lea eax, [eax + esi*2]
movzx esi, word [esp + 0xc]
mov word [edi], si
mov esi, dword [esp + 0x38]
add edi, 2
cmp edx, 1
je 0x43ca64
nop
nop
nop
nop
nop
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 0x43ca30
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov word [edi], 0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [esi], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x43ca83
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test ebx, ebx
je 0x43caec
cmp dword [esp + 0x40], 0
je 0x43cae4
mov eax, dword [ebx]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x43ca9c
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, ecx
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov edi, dword [esp + 0x40]
add dword [esp + 0x10], 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 + 0x10]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 0x10]
test al, 1
je 0x43cae4
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
push dword [esp]
call fcn.00434ed0
add esp, 4
mov eax, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret