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

Disassembly:
sub esp, 0x20
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
cmp byte [edi + 4], 0
je 0x10046888
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebp, dword [edi + 0x3d0]
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 5]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [esi + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 3]
movzx edx, byte [esi + 8]
shl ecx, 0x10
or ebx, eax
movzx eax, byte [esi + 4]
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
or eax, ecx
movzx ecx, byte [esi + 9]
shl edx, 0x18
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or edx, ecx
movzx ecx, byte [esi + 0xb]
or edx, ecx
xor edx, dword [edi + 0x10]
movzx ecx, byte [esi + 0xd]
xor ebx, dword [edi + 8]
xor eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
movzx edx, byte [esi + 0xc]
shl ecx, 0x10
shl edx, 0x18
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, byte [esi + 0xf]
or dword [esp + 0x34], ecx
or dword [esp + 0x34], edx
mov edx, dword [esp + 0x34]
xor edx, dword [edi + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], ebp
cmp ebp, 1
jle 0x100466e6
mov ecx, dword [esp + 0x1c]
dec ecx
lea ebp, [edi + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
sar ecx, 0x10
and ecx, 0xff
sar edx, 8
and edx, 0xff
mov edi, dword [edx*4 + 0x10058a30]
xor edi, dword [ecx*4 + 0x10058630]
mov edx, dword [esp + 0x34]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
sar edx, 0x10
xor edi, dword [ecx*4 + 0x10058230]
movzx ecx, bl
and edx, 0xff
xor edi, dword [ecx*4 + 0x10058e30]
mov esi, dword [edx*4 + 0x10058630]
mov ecx, dword [esp + 0x10]
sar ecx, 0x18
and ecx, 0xff
mov edx, dword [esp + 0x34]
xor esi, dword [ecx*4 + 0x10058230]
mov ecx, ebx
sar ecx, 8
and ecx, 0xff
sar edx, 0x18
xor esi, dword [ecx*4 + 0x10058a30]
movzx ecx, al
and edx, 0xff
xor esi, dword [ecx*4 + 0x10058e30]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x10058230]
xor esi, dword [ecx]
mov ecx, eax
sar ecx, 8
and ecx, 0xff
xor edi, dword [ebp - 4]
xor edx, dword [ecx*4 + 0x10058a30]
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xff
mov ebp, dword [esp + 0x14]
xor edx, dword [ecx*4 + 0x10058630]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
sar eax, 0x10
xor edx, dword [ecx*4 + 0x10058e30]
mov ecx, dword [esp + 0x10]
xor edx, dword [ebp + 4]
sar ecx, 8
and ecx, 0xff
and eax, 0xff
mov ecx, dword [ecx*4 + 0x10058a30]
xor ecx, dword [eax*4 + 0x10058630]
mov eax, dword [esp + 0x34]
sar ebx, 0x18
and ebx, 0xff
movzx eax, al
xor ecx, dword [ebx*4 + 0x10058230]
add ebp, 0x20
xor ecx, dword [eax*4 + 0x10058e30]
mov eax, edi
xor ecx, dword [ebp - 0x28]
dec dword [esp + 0x18]
mov ebx, ecx
mov ecx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ebp
jne 0x100465a1
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
sar edx, 0x18
and edx, 0xff
shl ebp, 5
mov ebx, dword [edi + ebp + 8]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + str.cw]
mov edx, eax
mov byte [esi], cl
sar edx, 0x10
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + str.cw]
mov edx, dword [esp + 0x10]
mov byte [esi + 1], cl
sar edx, 8
and edx, 0xff
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + str.cw]
mov edx, eax
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x34]
movzx ecx, cl
sar edx, 0x18
movzx ecx, byte [ecx + str.cw]
xor cl, bl
mov byte [esi + 3], cl
mov ebx, dword [edi + ebp + 0xc]
and edx, 0xff
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + str.cw]
mov edx, dword [esp + 0x10]
mov byte [esi + 4], cl
sar edx, 0x10
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + str.cw]
mov edx, dword [esp + 0x34]
mov byte [esi + 5], cl
sar edx, 8
and edx, 0xff
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + str.cw]
mov edx, dword [esp + 0x10]
mov byte [esi + 6], cl
mov ecx, dword [esp + 0x14]
movzx ecx, cl
sar edx, 0x18
movzx ecx, byte [ecx + str.cw]
xor cl, bl
mov byte [esi + 7], cl
mov ebx, dword [edi + ebp + 0x10]
and edx, 0xff
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + str.cw]
mov edx, dword [esp + 0x34]
mov byte [esi + 8], cl
sar edx, 0x10
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + str.cw]
mov edx, dword [esp + 0x14]
mov byte [esi + 9], cl
sar edx, 8
and edx, 0xff
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + str.cw]
mov byte [esi + 0xa], cl
movzx ecx, al
movzx ecx, byte [ecx + str.cw]
xor cl, bl
mov ebx, dword [esp + 0x34]
mov byte [esi + 0xb], cl
mov edx, dword [edi + ebp + 0x14]
sar ebx, 0x18
and ebx, 0xff
mov ecx, edx
sar ecx, 0x18
xor cl, byte [ebx + str.cw]
mov ebx, dword [esp + 0x14]
mov byte [esi + 0xc], cl
sar ebx, 0x10
and ebx, 0xff
mov ecx, edx
sar ecx, 0x10
xor cl, byte [ebx + str.cw]
sar eax, 8
mov byte [esi + 0xd], cl
and eax, 0xff
mov ecx, edx
sar ecx, 8
xor cl, byte [eax + str.cw]
mov eax, dword [esp + 0x10]
movzx eax, al
mov byte [esi + 0xe], cl
mov al, byte [eax + str.cw]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret 8
push 0x100692f8
lea ecx, [esp + 0x1c]
call fcn.100266f4
push 0x10065018
lea eax, [esp + 0x1c]
push eax
call fcn.10026abe
int3