Function at 0x43e940
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 4], 0x94959a9b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x43e9b9
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
mov edx, eax
xor edx, 0x4bdb47a6
and eax, 0xcbdb47a6
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xc2
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x43e980
mov eax, dword [esp + 4]
mov ecx, dword [0x44f128]
test ecx, ecx
je 0x43ea0e
xor edx, edx
mov esi, dword [0x44f12c]
nop
cmp dword [esi + edx*8], 0x633c81d
je 0x43e9e0
inc edx
cmp ecx, edx
jne 0x43e9d0
jmp 0x43ea0e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43ea0e
lea eax, [esp + 0x24]
lea edx, [esp + 0xc]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x44f130]
push ecx
call fcn.0043fbf0
add esp, 0x24
test eax, eax
js 0x43ea73
mov ecx, dword [esp + 0x3c]
push 0
push 0
push dword [edi + 8]
push dword [esp + 0x18]
push dword [edi + 4]
mov dword [esp + 0x2c], edi
push dword [edi]
call fcn.0043dc00
mov ecx, eax
xor eax, eax
mov edx, 0
cmp ecx, 0xbfffffff
ja 0x43eb00
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
add esi, ecx
sub esi, edi
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], esi
cmp esi, ecx
jbe 0x43eb00
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
jmp 0x43ea94
xor eax, eax
xor edx, edx
jmp 0x43ebd2
xor edx, 1
and eax, 0xfffffffc
sub eax, edx
add ebp, eax
inc ebp
xor eax, eax
mov edx, 0
cmp ebp, dword [esp + 0x1c]
jae 0x43eb00
test ecx, ecx
je 0x43ea9d
cmp byte [ecx], 0x3f
je 0x43eaa9
movzx eax, byte [ebp]
mov edx, dword [esp + 0x40]
cmp al, byte [edx]
jne 0x43ea86
cmp edi, 2
jb 0x43eae2
mov edx, 1
mov eax, 2
jmp 0x43ead6
movzx ebx, byte [ebp + edx]
mov esi, dword [esp + 0x40]
cmp bl, byte [esi + edx]
jne 0x43ea7c
inc edx
add eax, 2
cmp edi, edx
je 0x43eae2
test ecx, ecx
je 0x43eac0
cmp byte [ecx + edx], 0x3f
jne 0x43eac0
jmp 0x43eace
test ebp, ebp
je 0x43eafc
sub ebp, dword [esp + 0x14]
mov edx, ebp
sar edx, 0x1f
mov eax, dword [esp + 0x18]
add ebp, dword [eax]
adc edx, dword [eax + 4]
mov eax, ebp
jmp 0x43eb00
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], 0
mov dword [esp + 4], 0x94959a9b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 6
ja 0x43eb6b
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 4]
mov edi, ecx
xor edi, 0x4bdb47a6
and ecx, 0xcbdb47a6
lea ecx, [edi + ecx*2]
xor ecx, esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0xc2
mov esi, dword [esp]
mov byte [esp + esi + 4], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 7
jb 0x43eb30
mov ecx, dword [0x44f128]
test ecx, ecx
je 0x43ebd2
mov esi, dword [esp + 4]
xor edi, edi
mov ebx, dword [0x44f12c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x44caaeb6
je 0x43eba0
inc edi
cmp ecx, edi
jne 0x43eb90
jmp 0x43ebd2
mov ecx, dword [ebx + edi*8 + 4]
cmp ecx, esi
je 0x43ebd2
lea esi, [esp + 0x20]
lea edi, [esp + 0xc]
push 0x8000
push esi
push edi
push 0xffffffffffffffff
push 4
push dword [0x44f130]
push ecx
mov esi, eax
mov edi, edx
call fcn.0043fbf0
mov edx, edi
mov eax, esi
add esp, 0x1c
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x10