Function at 0x446040
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], 0
je 0x4460fb
cmp esi, 0x10
jb 0x446112
lea edi, [esi - 0x10]
mov ebp, edx
mov dword [esp], edi
and edi, 0xfffffff0
mov dword [esp + 4], edi
mov edi, esi
mov esi, ecx
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [eax]
xor ecx, dword [esi]
mov dword [ebp], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [esi + 4]
mov dword [ebp + 4], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [esi + 8]
mov dword [ebp + 8], ecx
mov eax, dword [eax + 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
push ebx
push ebp
push ebp
call sym.adb.exe_AES_encrypt
add esp, 0xc
add edi, 0xfffffff0
add esi, 0x10
mov eax, ebp
lea ebp, [ebp + 0x10]
cmp edi, 0xf
ja 0x446090
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 4]
mov edx, dword [esp]
mov ecx, dword [esp + 0x38]
mov edi, eax
lea eax, [eax + esi + 0x10]
sub edx, esi
lea ecx, [ecx + esi + 0x10]
add edi, esi
mov esi, edx
mov edx, eax
mov eax, dword [esp + 0x48]
test esi, esi
jne 0x44611c
jmp 0x44629f
push sym.adb.exe_AES_decrypt
push eax
push ebx
push esi
push edx
push ecx
call fcn.004465c0
add esp, 0x3c
jmp 0x4462b4
mov edi, eax
test esi, esi
je 0x44629f
lea ebp, [edx + 0x11]
xor eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp], edx
mov dword [esp + 0x14], edx
jmp 0x446164
add eax, 0xfffffff0
mov ebp, dword [esp + 0x20]
add dword [esp + 0x10], 0x10
mov edx, dword [esp + 0x14]
mov edi, esi
lea esi, [esi + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], esi
add ebp, 0x10
inc eax
mov dword [esp + 0x1c], eax
shl eax, 4
mov dword [esp + 4], edi
xor esi, esi
mov dword [esp + 0x20], ebp
lea eax, [edx + eax + 0x10]
lea edx, [edi + 0x11]
mov edi, 0x10
mov dword [esp + 0x18], eax
nop word cs:[eax + eax]
nop
mov eax, edx
mov edx, dword [esp + 4]
mov ecx, esi
mov ebx, ebp
dec edi
movzx edx, byte [edx + esi]
mov esi, dword [esp + 0x10]
xor dl, byte [esi + ecx]
mov esi, dword [esp]
mov byte [esi + ecx], dl
lea esi, [ecx + 1]
cmp esi, 0xf
ja 0x4461c0
cmp esi, dword [esp + 0xc]
lea edx, [eax + 1]
lea ebp, [ebx + 1]
jb 0x446190
mov ebp, dword [esp + 4]
mov edx, dword [esp]
cmp esi, 0xf
ja 0x44627c
mov dword [esp + 8], 0x10
sub dword [esp + 8], esi
cmp dword [esp + 8], 0x1f
jbe 0x446260
mov edx, dword [esp]
mov ebp, dword [esp + 4]
lea edx, [edx + esi]
lea ebp, [ebp + 0x10]
cmp edx, ebp
mov edx, dword [esp]
mov ebp, dword [esp + 4]
jae 0x446208
lea edx, [ebp + esi]
cmp edx, dword [esp + 0x18]
mov edx, dword [esp]
jb 0x446260
mov ebp, dword [esp + 8]
and edi, 0xffffffe0
add esi, edi
mov edi, 0xf
sub edi, ecx
and edi, 0xffffffe0
and ebp, 0xffffffe0
mov dword [esp], ebp
nop word cs:[eax + eax]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [eax]
add eax, 0x20
movups xmmword [ebx - 0x10], xmm0
movups xmmword [ebx], xmm1
add ebx, 0x20
add edi, 0xffffffe0
jne 0x446230
mov eax, dword [esp]
mov ebp, dword [esp + 4]
cmp dword [esp + 8], eax
je 0x44627c
nop word cs:[eax + eax]
add esi, 0xfffffff0
nop word cs:[eax + eax]
nop dword [eax]
movzx eax, byte [ebp + esi + 0x10]
mov byte [edx + esi + 0x10], al
inc esi
jne 0x446270
push dword [esp + 0x44]
push edx
push edx
mov esi, edx
call sym.adb.exe_AES_encrypt
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp eax, 0x11
jae 0x446140
mov eax, dword [esp + 0x48]
mov edi, esi
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret