Function at 0x416410
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf8a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4e0
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x4ec], ecx
mov dword [ebp - 0x4e0], ecx
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x4e0], ecx
lea ecx, [ebp - 0x44]
push eax
call fcn.00411530
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00411530
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00416310
lea ecx, [ebp - 0x2c]
call fcn.00416310
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x4e0], esi
shr esi, 4
lea eax, [esi + 1]
shl eax, 4
mov dword [ebp - 0x4e4], eax
inc eax
push eax
mov dword [ebp - 0x4dc], eax
call fcn.004a4f29
add esp, 4
mov dword [ebp - 0x4e8], eax
push dword [ebp - 0x4dc]
push 0
push eax
call fcn.004a68e0
add esp, 0xc
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x4164e1
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4164e4
sub ecx, edx
cmp ecx, dword [ebp - 0x4dc]
jbe 0x4165cd
mov esi, dword [ebp - 0x4ec]
xor ecx, ecx
mov dword [esi], 0
lea edx, [ecx + 1]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], al
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416520
sub ecx, edx
push ecx
push 0
mov ecx, esi
call fcn.0040a470
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x416567
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41655d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416834
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x4165ad
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4165a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416834
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [edi + 0x14], 0x10
jb 0x4165d5
mov edi, dword [edi]
mov edx, dword [ebp - 0x4e8]
mov ecx, edx
sub ecx, edi
nop
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x4165e0
mov ecx, dword [ebp - 0x4e0]
mov eax, 0x10
and ecx, 0xf
sub eax, ecx
test eax, eax
jle 0x416619
shl esi, 4
push eax
add esi, ecx
add esi, edx
push eax
push esi
call fcn.004a68e0
mov edx, dword [ebp - 0x4e8]
add esp, 0xc
mov esi, dword [ebp - 0x4e4]
lea edi, [esi + 1]
mov byte [esi + edx], 0
push edi
call fcn.004a4f29
add esp, 4
mov dword [ebp - 0x4e0], eax
push edi
push 0
push eax
call fcn.004a68e0
mov dword [ebp - method.BBUtils::AES.virtual_0], vtable.BBUtils::AES.0
mov byte [ebp - 0x4d4], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 0x10
cmovae eax, dword [ebp - 0x44]
add esp, 4
push ecx
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00415e90
cmp byte [ebp - 0x4d4], 0
je 0x416758
test esi, esi
je 0x416758
mov ecx, dword [ebp - 0x10c]
xor edx, edx
mov eax, esi
div ecx
test edx, edx
jne 0x416758
mov esi, dword [ebp - 0x4e8]
mov edi, dword [ebp - 0x4e0]
mov dword [ebp - 0x4dc], edx
test eax, eax
je 0x416752
nop word [eax + eax]
cmp byte [ebp - 0x4d4], 0
lea edx, [ebp - 0xe4]
je 0x416707
xor eax, eax
test ecx, ecx
jle 0x416707
mov cl, byte [eax + esi]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, dword [ebp - 0x10c]
jl 0x4166f5
push edi
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x4d8]
call fcn.004158d0
push dword [ebp - 0x10c]
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.004a6ab0
mov ecx, dword [ebp - 0x10c]
xor edx, edx
mov eax, dword [ebp - 0x4e4]
add esp, 0xc
div ecx
inc dword [ebp - 0x4dc]
add esi, ecx
add edi, ecx
cmp dword [ebp - 0x4dc], eax
jb 0x4166e0
mov esi, dword [ebp - 0x4e4]
push esi
mov esi, dword [ebp - 0x4e0]
lea ecx, [ebp - 0x5c]
mov edx, esi
call fcn.00416da0
add esp, 4
push dword [ebp - 0x4e8]
call fcn.004a4f24
add esp, 4
push esi
call fcn.004a4f24
mov esi, dword [ebp - 0x4ec]
add esp, 4
movups xmm0, xmmword [ebp - 0x5c]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x5c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
cmp edx, 0x10
jb 0x4167f0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4167e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416834
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x4165ad
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4165a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4165a3
call fcn.004aae73
int3