Function at 0x416b00
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
xor edx, edx
xor eax, eax
mov dh, byte [edi + 3]
mov al, byte [edi + 1]
mov dl, byte [edi + 2]
mov esi, dword [ebp + 4]
shl edx, 8
or edx, eax
mov eax, dword [esi]
xor ecx, ecx
add esi, 4
mov cl, byte [edi]
add esi, 4
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [edi + 5]
xor edx, eax
xor eax, eax
mov ebx, dword [esi + 4]
mov ah, byte [edi + 7]
mov ebp, dword [ebp]
mov al, byte [edi + 6]
add esi, 4
shl eax, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [edi + 4]
add esi, 4
shl eax, 8
or eax, ecx
mov ecx, dword [esi - 0xc]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edi + 9]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x18], edx
mov ah, byte [edi + 0xb]
mov al, byte [edi + 0xa]
shl eax, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [edi + 8]
shl eax, 8
or eax, ecx
mov ecx, dword [esi - 8]
xor eax, ecx
xor ecx, ecx
mov cl, byte [edi + 0xd]
mov dword [esp + 0x20], eax
xor eax, eax
mov ah, byte [edi + 0xf]
mov al, byte [edi + 0xe]
shl eax, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [edi + 0xc]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x24]
xor eax, ebx
test ecx, ecx
mov dword [esp + 0x28], eax
jne 0x417067
sar ebp, 1
dec ebp
je 0x416dfe
xor ecx, ecx
xor ebx, ebx
mov bl, byte [esp + 0x22]
mov cl, ah
add esi, 4
mov ecx, dword [ecx*4 + 0x422614]
mov edi, dword [ebx*4 + 0x422a14]
xor ecx, edi
mov edi, dword [esp + 0x10]
shr edi, 0x18
add esi, 4
mov ebx, dword [edi*4 + 0x422e14]
mov edi, edx
and edi, 0xff
xor ecx, ebx
add esi, 4
mov ebx, dword [edi*4 + 0x422214]
add esi, 4
xor ecx, ebx
mov ebx, dword [esi - 0x10]
xor ecx, ebx
xor ebx, ebx
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov cl, byte [esp + 0x2a]
mov bl, dh
shr edx, 0x18
mov edi, dword [ecx*4 + 0x422a14]
mov ecx, dword [ebx*4 + 0x422614]
xor edi, ecx
mov ecx, dword [esp + 0x20]
shr ecx, 0x18
mov ebx, dword [ecx*4 + 0x422e14]
mov ecx, dword [esp + 0x10]
xor edi, ebx
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x422214]
mov ebx, dword [esi - 0xc]
xor edi, ebx
xor ebx, ebx
mov bl, ch
mov dword [esp + 0x24], edi
shr edi, 0x18
mov ecx, dword [ebx*4 + 0x422614]
xor ebx, ebx
mov bl, byte [esp + 0x1a]
xor ecx, dword [ebx*4 + 0x422a14]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor ecx, dword [ebx*4 + 0x422e14]
mov ebx, dword [esp + 0x20]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x422214]
mov ebx, dword [esi - 8]
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esp + 0x12]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cl, byte [esp + 0x21]
mov ecx, dword [ecx*4 + 0x422614]
xor ecx, dword [ebx*4 + 0x422a14]
mov ebx, dword [edx*4 + 0x422e14]
mov edx, dword [esi - 4]
xor ecx, ebx
mov ebx, dword [eax*4 + 0x422214]
xor ecx, ebx
xor eax, eax
mov al, byte [esp + 0x2a]
xor ecx, edx
xor edx, edx
mov dword [esp + 0x10], ecx
mov ebx, dword [eax*4 + 0x422a14]
mov eax, dword [edi*4 + 0x422e14]
mov dl, ch
mov edx, dword [edx*4 + 0x422614]
xor edx, ebx
xor edx, eax
mov eax, dword [esp + 0x14]
mov edi, eax
add esi, 4
and edi, 0xff
add esi, 4
add esi, 4
mov ebx, dword [edi*4 + 0x422214]
add esi, 4
xor edx, ebx
mov ebx, dword [esi - 0x10]
xor edx, ebx
xor ebx, ebx
mov dword [esp + 0x18], edx
xor edx, edx
mov dl, byte [esp + 0x12]
mov bl, ah
shr eax, 0x18
mov edi, dword [edx*4 + 0x422a14]
mov edx, dword [ebx*4 + 0x422614]
xor edi, edx
mov edx, dword [esp + 0x28]
shr edx, 0x18
mov ebx, dword [edx*4 + 0x422e14]
mov edx, dword [esp + 0x24]
xor edi, ebx
mov ebx, edx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x422214]
mov ebx, dword [esi - 0xc]
xor edi, ebx
xor ebx, ebx
mov bl, dh
xor edx, edx
mov dl, byte [esp + 0x16]
mov dword [esp + 0x10], edi
mov edi, dword [ebx*4 + 0x422614]
mov ebx, dword [edx*4 + 0x422a14]
mov edx, ecx
shr edx, 0x18
xor edi, ebx
and ecx, 0xff
mov ebx, dword [edx*4 + 0x422e14]
mov edx, dword [esp + 0x28]
xor edi, ebx
mov ebx, edx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x422214]
mov ebx, dword [esi - 8]
xor edi, ebx
xor ebx, ebx
mov bl, dh
xor edx, edx
mov dl, byte [esp + 0x26]
mov dword [esp + 0x20], edi
mov edi, dword [ebx*4 + 0x422614]
mov ebx, dword [edx*4 + 0x422a14]
mov edx, dword [esp + 0x18]
xor edi, ebx
mov ebx, dword [eax*4 + 0x422e14]
mov eax, dword [ecx*4 + 0x422214]
xor edi, ebx
mov ebx, dword [esi - 4]
xor edi, eax
xor edi, ebx
dec ebp
mov eax, edi
mov dword [esp + 0x28], eax
jne 0x416bc8
xor ecx, ecx
xor ebx, ebx
mov bl, byte [esp + 0x22]
mov cl, ah
add esi, 4
mov edi, dword [ecx*4 + 0x422614]
mov ecx, dword [esp + 0x10]
mov ebp, dword [ebx*4 + 0x422a14]
mov ebx, dword [esi - 4]
shr ecx, 0x18
xor edi, ebp
add esi, 4
mov ebp, dword [ecx*4 + 0x422e14]
mov ecx, edx
and ecx, 0xff
xor edi, ebp
add esi, 4
mov ebp, dword [ecx*4 + 0x422214]
xor ecx, ecx
mov cl, byte [esp + 0x2a]
xor edi, ebp
xor edi, ebx
xor ebx, ebx
mov bl, dh
mov dword [esp + 0x14], edi
mov edi, dword [ecx*4 + 0x422a14]
add esi, 4
mov ecx, dword [ebx*4 + 0x422614]
xor edi, ecx
mov ecx, dword [esp + 0x20]
shr ecx, 0x18
shr edx, 0x18
mov ebx, dword [ecx*4 + 0x422e14]
mov ecx, dword [esp + 0x10]
xor edi, ebx
mov ebx, ecx
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x422214]
mov ebx, dword [esi - 0xc]
xor edi, ebp
xor edi, ebx
xor ebx, ebx
mov bl, ch
xor ecx, ecx
mov cl, byte [esp + 0x1a]
mov dword [esp + 0x24], edi
mov ebp, dword [ebx*4 + 0x422614]
mov ebx, dword [ecx*4 + 0x422a14]
mov ecx, eax
shr ecx, 0x18
xor ebp, ebx
and eax, 0xff
mov ebx, dword [ecx*4 + 0x422e14]
mov ecx, dword [esp + 0x20]
xor ebp, ebx
mov ebx, ecx
and ebx, 0xff
shr edi, 0x18
xor ebp, dword [ebx*4 + 0x422214]
mov ebx, dword [esi - 8]
xor ebp, ebx
xor ebx, ebx
mov bl, ch
mov dword [esp + 0x28], ebp
mov ecx, dword [ebx*4 + 0x422614]
xor ebx, ebx
mov bl, byte [esp + 0x12]
xor ecx, dword [ebx*4 + 0x422a14]
mov ebx, dword [edx*4 + 0x422e14]
mov edx, dword [eax*4 + 0x422214]
mov eax, dword [esi - 4]
xor ecx, ebx
xor ecx, edx
xor edx, edx
mov dl, byte [esp + 0x2a]
xor ecx, eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov al, byte [edx + 0x421114]
xor edx, edx
mov dh, byte [edi + 0x421114]
xor eax, edx
xor edx, edx
mov dl, ch
xor ecx, ecx
shl eax, 8
mov cl, byte [edx + 0x421114]
mov edx, dword [esp + 0x14]
xor eax, ecx
mov ecx, edx
and ecx, 0xff
xor ebx, ebx
shl eax, 8
mov bl, byte [ecx + 0x421114]
mov ecx, dword [esi]
xor eax, ebx
xor ebx, ebx
xor eax, ecx
xor ecx, ecx
mov cl, byte [esp + 0x12]
add esi, 4
shr ebp, 0x18
mov bl, byte [ecx + 0x421114]
add esi, 4
mov ecx, ebx
xor ebx, ebx
mov bh, byte [ebp + 0x421114]
xor ecx, ebx
xor ebx, ebx
mov bl, dh
xor edx, edx
shl ecx, 8
mov dl, byte [ebx + 0x421114]
xor ebx, ebx
xor ecx, edx
mov edx, dword [esp + 0x24]
and edx, 0xff
shl ecx, 8
mov bl, byte [edx + 0x421114]
mov edx, dword [esi - 4]
xor ecx, ebx
xor ebx, ebx
xor ecx, edx
xor edx, edx
mov dl, byte [esp + 0x16]
mov bl, byte [edx + 0x421114]
mov edx, dword [esp + 0x10]
mov edi, ebx
xor ebx, ebx
shr edx, 0x18
mov bh, byte [edx + 0x421114]
xor edx, edx
mov dl, byte [esp + 0x25]
xor edi, ebx
xor ebx, ebx
mov bl, byte [edx + 0x421114]
mov edx, dword [esp + 0x28]
shl edi, 8
mov dword [esp + 0x20], edi
xor edi, ebx
and edx, 0xff
xor ebx, ebx
shl edi, 8
mov bl, byte [edx + 0x421114]
mov edx, dword [esi]
xor edi, ebx
xor ebx, ebx
xor edi, edx
xor edx, edx
mov dl, byte [esp + 0x26]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x14]
mov bl, byte [edx + 0x421114]
xor edx, edx
shr edi, 0x18
mov dword [esp + 0x24], ebx
mov dh, byte [edi + 0x421114]
mov edi, ebx
xor edi, edx
shl edi, 8
mov dword [esp + 0x24], edi
xor edx, edx
mov dl, byte [esp + 0x29]
xor ebx, ebx
mov bl, byte [edx + 0x421114]
mov edx, edi
mov edi, dword [esp + 0x10]
xor edx, ebx
shl edx, 8
mov dword [esp + 0x24], edx
and edi, 0xff
xor edx, edx
mov dl, byte [edi + 0x421114]
mov edi, edx
mov edx, dword [esp + 0x24]
jmp 0x417528
sar ebp, 1
dec ebp
je 0x4172b1
xor edx, edx
xor ecx, ecx
mov dl, byte [esp + 0x11]
mov cl, byte [esp + 0x22]
add esi, 4
mov edi, dword [edx*4 + 0x421614]
mov ecx, dword [ecx*4 + 0x421a14]
mov edx, eax
xor ecx, edi
shr edx, 0x18
add esi, 4
mov edi, dword [edx*4 + 0x421e14]
mov edx, dword [esp + 0x18]
and edx, 0xff
xor ecx, edi
add esi, 4
mov edi, dword [edx*4 + 0x421214]
mov edx, dword [esi - 0xc]
xor ecx, edi
add esi, 4
xor ecx, edx
xor edx, edx
mov dl, byte [esp + 0x21]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov cl, byte [esp + 0x2a]
mov edi, dword [edx*4 + 0x421614]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx*4 + 0x421a14]
xor ecx, edi
mov edi, edx
shr edi, 0x18
mov ebx, dword [edi*4 + 0x421e14]
mov edi, dword [esp + 0x10]
xor ecx, ebx
mov ebx, edi
and ebx, 0xff
shr edi, 0x18
xor ecx, dword [ebx*4 + 0x421214]
mov ebx, dword [esi - 0xc]
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov cl, ah
and eax, 0xff
mov ecx, dword [ecx*4 + 0x421614]
xor ecx, dword [ebx*4 + 0x421a14]
mov ebx, dword [edi*4 + 0x421e14]
mov edi, dword [esp + 0x20]
and edi, 0xff
xor ecx, ebx
mov ebx, dword [edi*4 + 0x421214]
xor ecx, ebx
mov ebx, dword [esi - 8]
xor ecx, ebx
xor ebx, ebx
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cl, byte [esp + 0x12]
mov bl, dh
mov ecx, dword [ecx*4 + 0x421a14]
mov edx, dword [ebx*4 + 0x421614]
xor ecx, edx
mov edx, dword [esp + 0x20]
shr edx, 0x18
mov edi, dword [edx*4 + 0x421e14]
mov edx, dword [esi - 4]
xor ecx, edi
mov edi, dword [eax*4 + 0x421214]
xor ecx, edi
xor eax, eax
mov al, byte [esp + 0x2a]
xor ecx, edx
xor edx, edx
mov dword [esp + 0x10], ecx
mov dl, byte [esp + 0x25]
mov eax, dword [eax*4 + 0x421a14]
xor eax, dword [edx*4 + 0x421614]
mov edx, ecx
mov edi, dword [esi]
shr edx, 0x18
add esi, 4
mov ebx, dword [edx*4 + 0x421e14]
mov edx, dword [esp + 0x14]
and edx, 0xff
xor eax, ebx
add esi, 4
mov ebx, dword [edx*4 + 0x421214]
xor edx, edx
xor eax, ebx
mov dl, byte [esp + 0x29]
xor eax, edi
add esi, 4
mov dword [esp + 0x18], eax
xor eax, eax
mov al, byte [esp + 0x12]
add esi, 4
mov ebx, dword [eax*4 + 0x421a14]
mov eax, dword [edx*4 + 0x421614]
xor ebx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
mov edi, dword [edx*4 + 0x421e14]
xor ebx, edi
mov edi, dword [esp + 0x24]
mov edx, edi
and edx, 0xff
shr edi, 0x18
xor ebx, dword [edx*4 + 0x421214]
mov edx, dword [esi - 0xc]
xor ebx, edx
xor edx, edx
mov dword [esp + 0x10], ebx
mov dl, ch
xor ebx, ebx
and ecx, 0xff
mov bl, byte [esp + 0x16]
mov edx, dword [edx*4 + 0x421614]
xor edx, dword [ebx*4 + 0x421a14]
mov ebx, dword [edi*4 + 0x421e14]
mov edi, dword [esp + 0x28]
and edi, 0xff
xor edx, ebx
mov ebx, dword [edi*4 + 0x421214]
mov edi, dword [esi - 8]
xor edx, ebx
xor ebx, ebx
xor edx, edi
mov bl, ah
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esp + 0x26]
mov eax, dword [ebx*4 + 0x421614]
mov ebx, dword [ecx*4 + 0x421214]
mov edx, dword [edx*4 + 0x421a14]
xor edx, eax
mov eax, dword [esp + 0x28]
shr eax, 0x18
mov edi, dword [eax*4 + 0x421e14]
xor edx, edi
mov edi, dword [esi - 4]
xor edx, ebx
xor edx, edi
dec ebp
mov eax, edx
mov dword [esp + 0x28], eax
jne 0x417070
xor edx, edx
xor ecx, ecx
mov dl, byte [esp + 0x11]
mov cl, byte [esp + 0x22]
add esi, 4
mov ebx, dword [edx*4 + 0x421614]
mov ecx, dword [ecx*4 + 0x421a14]
mov edx, eax
xor ecx, ebx
shr edx, 0x18
add esi, 4
mov ebp, dword [edx*4 + 0x421e14]
mov edx, dword [esp + 0x18]
and edx, 0xff
xor ecx, ebp
mov ebp, dword [esi - 8]
add esi, 4
mov edi, dword [edx*4 + 0x421214]
xor edx, edx
mov dl, byte [esp + 0x21]
xor ecx, edi
xor ecx, ebp
add esi, 4
mov edi, dword [edx*4 + 0x421614]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov cl, byte [esp + 0x2a]
mov ecx, dword [ecx*4 + 0x421a14]
xor ecx, edi
mov edi, edx
shr edi, 0x18
mov ebx, dword [edi*4 + 0x421e14]
mov edi, dword [esp + 0x10]
xor ecx, ebx
mov ebx, edi
and ebx, 0xff
shr edi, 0x18
mov ebp, dword [ebx*4 + 0x421214]
mov ebx, dword [esi - 0xc]
xor ecx, ebp
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov ebp, dword [ebx*4 + 0x421a14]
mov ebx, dword [edi*4 + 0x421e14]
mov edi, dword [esp + 0x20]
mov cl, ah
and edi, 0xff
and eax, 0xff
mov ecx, dword [ecx*4 + 0x421614]
xor ecx, ebp
xor ecx, ebx
mov ebx, dword [edi*4 + 0x421214]
mov edi, dword [esi - 8]
xor ecx, ebx
xor ecx, edi
xor ebx, ebx
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cl, byte [esp + 0x12]
mov bl, dh
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx*4 + 0x421a14]
mov ebp, dword [ebx*4 + 0x421614]
mov ebx, dword [esi - 4]
xor ecx, ebp
mov ebp, dword [eax*4 + 0x421214]
xor eax, eax
shr edx, 0x18
mov edi, dword [edx*4 + 0x421e14]
xor edx, edx
mov dl, byte [esp + 0x2a]
xor ecx, edi
xor ecx, ebp
mov al, byte [edx + 0x421014]
xor ecx, ebx
mov dword [esp + 0x10], ecx
shr ecx, 0x18
mov edi, dword [esp + 0x14]
xor edx, edx
mov dh, byte [ecx + 0x421014]
xor ecx, ecx
mov cl, byte [esp + 0x25]
xor eax, edx
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx + 0x421014]
mov ecx, edi
shl eax, 8
xor eax, edx
and ecx, 0xff
xor edx, edx
add esi, 4
mov dl, byte [ecx + 0x421014]
mov ecx, dword [esi - 4]
shl eax, 8
xor eax, edx
xor edx, edx
xor eax, ecx
xor ecx, ecx
mov cl, byte [esp + 0x12]
add esi, 4
shr edi, 0x18
mov dl, byte [ecx + 0x421014]
mov ecx, edx
xor edx, edx
mov dh, byte [edi + 0x421014]
mov edi, dword [esp + 0x24]
xor ecx, edx
xor edx, edx
mov dl, byte [esp + 0x29]
shl ecx, 8
mov bl, byte [edx + 0x421014]
mov edx, dword [esp + 0x24]
xor ecx, ebx
and edx, 0xff
xor ebx, ebx
mov bl, byte [edx + 0x421014]
xor edx, edx
mov dl, byte [esp + 0x16]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [esi - 4]
xor ecx, ebx
xor ebx, ebx
mov bl, byte [edx + 0x421014]
xor edx, edx
shr edi, 0x18
mov dword [esp + 0x20], ebx
mov dh, byte [edi + 0x421014]
mov edi, ebx
xor edi, edx
xor edx, edx
mov dl, byte [esp + 0x11]
xor ebx, ebx
shl edi, 8
mov bl, byte [edx + 0x421014]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], edi
xor edi, ebx
and edx, 0xff
xor ebx, ebx
shl edi, 8
mov bl, byte [edx + 0x421014]
mov edx, dword [esi]
xor edi, ebx
xor ebx, ebx
xor edi, edx
xor edx, edx
mov dl, byte [esp + 0x26]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x28]
mov bl, byte [edx + 0x421014]
xor edx, edx
shr edi, 0x18
mov dword [esp + 0x24], ebx
mov dh, byte [edi + 0x421014]
mov edi, ebx
xor edi, edx
xor edx, edx
xor ebx, ebx
mov dl, byte [esp + 0x15]
shl edi, 8
mov bl, byte [edx + 0x421014]
mov edx, edi
xor edx, ebx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x10]
shl edx, 8
mov dword [esp + 0x24], edx
and edi, 0xff
xor edx, edx
mov dl, byte [edi + 0x421014]
mov edi, edx
mov edx, dword [esp + 0x24]
xor edx, edi
mov edi, dword [esi + 4]
mov esi, dword [esp + 0x2c]
mov ebx, eax
shr ebx, 8
mov byte [esi + 1], bl
mov byte [esi], al
mov ebx, eax
mov byte [esi + 4], cl
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, dword [esp + 0x20]
shr ecx, 0x18
mov byte [esi + 7], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 9], cl
mov ecx, eax
mov byte [esi + 8], al
xor edx, edi
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + 0xa], cl
mov byte [esi + 0xb], al
mov eax, edx
mov ecx, edx
shr ebx, 0x10
mov byte [esi + 0xc], dl
mov byte [esi + 2], bl
shr eax, 8
shr ecx, 0x10
shr edx, 0x18
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10