Function at 0x43e6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x284
mov ebx, dword [0x4542e4]
mov ebp, dword [0x4542e0]
mov eax, ebp
or eax, ebx
jne 0x43e79e
mov dword [esp + 0x54], 0xb72a891a
mov dword [esp + 0x58], 0xb326b558
mov dword [esp + 0x5c], 0xbf6cb124
mov dword [esp + 0x60], 0xbb2ebd50
mov dword [esp + 0x64], 0xa7a6b92c
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x54]
mov esi, eax
and esi, 0x1c
mov edx, eax
and edx, 2
mov edi, edx
xor edi, 2
imul edi, esi
or esi, 2
imul esi, edx
mov edx, eax
xor edx, 0xc12f25de
add edx, edi
add edx, esi
mov esi, edx
and esi, ecx
add edx, ecx
add esi, esi
sub edx, esi
add dl, 0xaa
mov byte [esp + eax + 0x54], dl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x14
jb 0x43e730
lea eax, [esp + 0x54]
push eax
call fcn.0043e370
add esp, 4
mov ebp, eax
mov dword [0x4542e4], edx
mov dword [0x4542e0], eax
or eax, edx
je 0x43e878
mov ebx, edx
lea eax, [esp + 0x154]
push 0x40
push eax
push ebx
push ebp
call fcn.0043e1b0
add esp, 0x10
test eax, eax
js 0x43e878
mov eax, dword [esp + 0x190]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x194]
push 0xf0
push edx
push ecx
push eax
call fcn.0043e1b0
add esp, 0x10
xor edi, edi
test eax, eax
js 0x43e87a
cmp dword [esp + 0x208], 0
je 0x43e87a
mov eax, dword [esp + 0x204]
mov esi, 0
test eax, eax
je 0x43e87c
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x2c]
push 0x28
push edx
push ecx
push eax
call fcn.0043e1b0
add esp, 0x10
test eax, eax
js 0x43e878
mov ecx, dword [esp + 0x40]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x43e841
mov eax, esi
push eax
call fcn.0040cdc0
add esp, 4
mov edx, dword [esp + 0x48]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push ecx
push edx
call fcn.0043e1b0
add esp, 0x10
test eax, eax
js 0x43e88b
mov eax, dword [esp + 0x40]
test eax, eax
jns 0x43e894
mov eax, 0xffffffff
jmp 0x43e896
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x284
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x43eac2
add eax, eax
push eax
call fcn.0040cdc0
add esp, 4
mov esi, dword [esp + 0x44]
add esi, esi
mov ecx, dword [esp + 0x50]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push edx
push ecx
call fcn.0043e1b0
add esp, 0x10
test eax, eax
js 0x43eab2
mov esi, dword [esp + 0x44]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x43e8e0
lea eax, [esi*4]
push eax
call fcn.0040cdc0
add esp, 4
mov edi, eax
mov eax, esi
and eax, 4
mov ecx, esi
or esi, 4
imul esi, eax
xor eax, 4
and ecx, 0xfffffffb
imul ecx, eax
add esi, ecx
mov eax, dword [esp + 0x4c]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.0043e1b0
add esp, 0x10
test eax, eax
mov dword [esp + 4], edi
js 0x43eaa0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
cmp esi, eax
jb 0x43e934
mov esi, eax
test esi, esi
je 0x43eaa0
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
jmp 0x43e973
mov ebp, 0x36c0b43e
cmp ebp, dword [esp + 0x298]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
je 0x43ead3
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
je 0x43eaa0
mov dword [esp + 0x10], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x58]
push edx
push ecx
push eax
call fcn.0043e1b0
add esp, 0x10
test eax, eax
jns 0x43e9a0
cmp eax, 0x8000000d
jne 0x43e966
mov eax, 0xffffffff
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
cmp byte [esp + eax + 0x55], 0
lea eax, [eax + 1]
lea edx, [edx + 1]
jne 0x43e9b0
mov dword [esp + 0x14], 0x2020093
lea edx, [esp + 0x18]
mov byte [edx + 2], 0
mov word [edx], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
add bl, 0xc0
xor bl, byte [esp + edx + 0x14]
add bl, 0x40
mov byte [esp + edx + 0x14], bl
inc edx
cmp edx, 7
jne 0x43e9e0
test eax, eax
je 0x43e94c
mov edx, dword [esp + 0x14]
mov ebx, edx
not ebx
mov dword [esp], ebx
mov ebp, 0x36c0b43e
lea ebx, [esp + 0x54]
cmp eax, 1
je 0x43ea75
and ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x28], ebx
movsx edi, byte [ebx]
xor edi, ebp
mov ebp, edi
or ebp, edx
mov esi, edi
and esi, edx
imul esi, ebp
mov ebp, edi
not ebp
and ebp, edx
and edi, dword [esp]
mov ebx, dword [esp + 0x28]
imul edi, ebp
add edi, esi
movsx ebp, byte [ebx + 1]
add ebx, 2
xor ebp, edi
mov esi, ebp
or esi, edx
mov edi, ebp
and edi, edx
imul edi, esi
mov esi, ebp
not esi
and esi, edx
and ebp, dword [esp]
imul ebp, esi
add ebp, edi
add ecx, 0xfffffffe
jne 0x43ea20
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x1c]
test al, 1
je 0x43e951
movsx eax, byte [ebx]
xor ebp, eax
mov eax, ebp
or eax, edx
mov ecx, ebp
and ecx, edx
imul ecx, eax
mov eax, ebp
not eax
and eax, edx
and ebp, dword [esp]
imul ebp, eax
add ebp, ecx
jmp 0x43e951
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.0040cdd0
add esp, 4
jmp 0x43eab6
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0040cdd0
add esp, 4
push dword [esp + 0xc]
call fcn.0040cdd0
add esp, 4
jmp 0x43e87c
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0xc]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x43eaa4