Function at 0x43afa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x27c
mov ebx, dword [0x451894]
mov ebp, dword [0x451890]
mov eax, ebp
or eax, ebx
jne 0x43b05f
mov dword [esp + 0x4c], 0xf966fb6e
mov dword [esp + 0x50], 0xe572e714
mov dword [esp + 0x54], 0xe130e370
mov dword [esp + 0x58], 0xed7aef0c
mov dword [esp + 0x5c], 0xe9eaeb78
mov word [esp + 0x60], 0
mov byte [esp + 0x62], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x4c]
mov ecx, 0x6e487b54
sub ecx, eax
or ecx, edx
mov esi, 0x54
sub esi, eax
and esi, edx
not ecx
or ecx, esi
mov edx, ecx
and edx, 0x28
add edx, edx
xor ecx, 0x57
sub edx, ecx
mov byte [esp + eax + 0x4c], dl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x17
jb 0x43b000
lea eax, [esp + 0x4c]
push eax
call fcn.0043ab70
add esp, 4
mov ebp, eax
mov dword [0x451894], edx
mov dword [0x451890], eax
or eax, edx
je 0x43b139
mov ebx, edx
lea eax, [esp + 0x14c]
push 0x40
push eax
push ebx
push ebp
call fcn.0043a930
add esp, 0x10
test eax, eax
js 0x43b139
mov eax, dword [esp + 0x188]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x18c]
push 0xf0
push edx
push ecx
push eax
call fcn.0043a930
add esp, 0x10
xor edi, edi
test eax, eax
js 0x43b13b
cmp dword [esp + 0x200], 0
je 0x43b13b
mov eax, dword [esp + 0x1fc]
mov esi, 0
test eax, eax
je 0x43b13d
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x24]
push 0x28
push edx
push ecx
push eax
call fcn.0043a930
add esp, 0x10
test eax, eax
js 0x43b139
mov ecx, dword [esp + 0x38]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x43b102
mov eax, esi
push eax
call fcn.004084c0
add esp, 4
mov edx, dword [esp + 0x40]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push ecx
push edx
call fcn.0043a930
add esp, 0x10
test eax, eax
js 0x43b14c
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x43b155
mov eax, 0xffffffff
jmp 0x43b157
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x43b376
add eax, eax
push eax
call fcn.004084c0
add esp, 4
mov esi, dword [esp + 0x3c]
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
mov ecx, dword [esp + 0x48]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 8], eax
push eax
push edx
push ecx
call fcn.0043a930
add esp, 0x10
test eax, eax
js 0x43b366
mov esi, dword [esp + 0x3c]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x43b1b7
lea eax, [esi*4]
push eax
call fcn.004084c0
add esp, 4
mov edi, eax
mov eax, esi
and eax, 0xfffffffb
mov ecx, esi
and ecx, 4
or esi, 4
imul esi, ecx
xor ecx, 4
imul ecx, eax
add esi, ecx
mov eax, dword [esp + 0x44]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.0043a930
add esp, 0x10
test eax, eax
mov dword [esp], edi
js 0x43b355
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jb 0x43b20a
mov esi, eax
test esi, esi
je 0x43b355
xor ecx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x43b257
mov eax, 0x36c0b43e
cmp eax, dword [esp + 0x290]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
je 0x43b387
mov ecx, dword [esp + 0xc]
mov eax, ecx
and eax, 1
xor ecx, 1
lea ecx, [ecx + eax*2]
cmp ecx, esi
jae 0x43b355
mov dword [esp + 0xc], ecx
mov eax, dword [edi + ecx*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.0043a930
add esp, 0x10
test eax, eax
jns 0x43b284
cmp eax, 0x8000000d
jne 0x43b240
mov ecx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
mov ebx, eax
cmp byte [esp + ecx + 0x4d], 0
lea ecx, [ecx + 1]
lea eax, [eax + 1]
jne 0x43b290
mov dword [esp + 0x10], 0xc2c2c073
lea eax, [esp + 0x14]
mov byte [eax + 2], 0
mov word [eax], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
add dl, 0xd0
xor dl, byte [esp + eax + 0x10]
add dl, 0xf0
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 7
jne 0x43b2c0
test ecx, ecx
je 0x43b222
mov edx, dword [esp + 0x10]
mov ebp, 0x36c0b43e
lea esi, [esp + 0x4c]
cmp ecx, 4
jb 0x43b32e
mov eax, ebx
and eax, 0xfffffffc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx edi, byte [esi]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 1]
xor ebp, edi
imul ebp, edx
movsx edi, byte [esi + 2]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 3]
add esi, 4
xor ebp, edi
imul ebp, edx
add eax, 0xfffffffc
jne 0x43b300
mov edi, dword [esp]
mov eax, ebp
test cl, 3
je 0x43b227
and ebx, 3
xor ecx, ecx
nop
nop
movsx eax, byte [esi + ecx]
xor eax, ebp
imul eax, edx
inc ecx
mov ebp, eax
cmp ebx, ecx
jne 0x43b340
jmp 0x43b227
xor edi, edi
xor esi, esi
push dword [esp]
call fcn.004084d0
add esp, 4
jmp 0x43b36a
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.004084d0
add esp, 4
push dword [esp + 8]
call fcn.004084d0
add esp, 4
jmp 0x43b13d
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 8]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x43b359