Function at 0x1400029e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 0xc8
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0xc4], r9d
mov qword [rsp + 0xb8], r8
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xa8], rcx
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
xor eax, eax
cmp rax, qword [rsp + 0xb0]
jne 0x140002a30
jmp 0x14000352d
mov eax, 0x10
cmp eax, dword [rsp + 0xc4]
je 0x140002a6b
mov eax, 0x18
cmp eax, dword [rsp + 0xc4]
je 0x140002a6b
mov eax, 0x20
cmp eax, dword [rsp + 0xc4]
je 0x140002a6b
jmp 0x14000352d
mov eax, 0x10
cmp eax, dword [rsp + 0xf0]
je 0x140002aa6
mov eax, 0x18
cmp eax, dword [rsp + 0xf0]
je 0x140002aa6
mov eax, 0x20
cmp eax, dword [rsp + 0xf0]
je 0x140002aa6
jmp 0x14000352d
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0xc4]
mov dword [rax + 0x3cc], ecx
mov ecx, dword [rsp + 0xf0]
mov dword [rax + 0x3d0], ecx
mov rcx, rax
add rcx, 0x3d8
mov rdx, qword [rsp + 0xb8]
movsxd r8, dword [rax + 0x3d0]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x68]
mov rcx, rax
add rcx, 0x3f8
mov rdx, qword [rsp + 0xb8]
movsxd r8, dword [rax + 0x3d0]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x3cc]
mov dword [rsp + 0x64], eax
sub eax, 0x10
je 0x140002b35
jmp 0x140002b23
mov eax, dword [rsp + 0x64]
sub eax, 0x18
je 0x140002b88
jmp 0x140002bb0
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x3d0], 0x10
jne 0x140002b55
mov eax, 0xa
mov dword [rsp + 0x60], eax
jmp 0x140002b74
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0x3d0]
mov eax, 0xe
mov ecx, 0xc
cmp edx, 0x18
cmove eax, ecx
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x3d4], ecx
jmp 0x140002bbf
mov rax, qword [rsp + 0x68]
mov r8d, dword [rax + 0x3d0]
mov ecx, 0xe
mov edx, 0xc
cmp r8d, 0x20
cmovne ecx, edx
mov dword [rax + 0x3d4], ecx
jmp 0x140002bbf
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x3d4], 0xe
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x3d0]
mov ecx, 4
cdq
idiv ecx
mov dword [rsp + 0xa4], eax
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0xa0]
cmp eax, dword [rcx + 0x3d4]
jg 0x140002c73
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0x9c]
cmp eax, dword [rsp + 0xa4]
jge 0x140002c58
mov rax, qword [rsp + 0x68]
add rax, 0xc
movsxd rcx, dword [rsp + 0xa0]
shl rcx, 5
add rax, rcx
movsxd rcx, dword [rsp + 0x9c]
mov dword [rax + rcx*4], 0
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
jmp 0x140002c07
jmp 0x140002c5d
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
jmp 0x140002be4
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0xa0]
cmp eax, dword [rcx + 0x3d4]
jg 0x140002d0f
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0x9c]
cmp eax, dword [rsp + 0xa4]
jge 0x140002cf4
mov rax, qword [rsp + 0x68]
add rax, 0x1ec
movsxd rcx, dword [rsp + 0xa0]
shl rcx, 5
add rax, rcx
movsxd rcx, dword [rsp + 0x9c]
mov dword [rax + rcx*4], 0
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
jmp 0x140002ca1
jmp 0x140002cf9
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
jmp 0x140002c7e
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x3d4]
add ecx, 1
imul ecx, dword [rsp + 0xa4]
mov dword [rsp + 0x98], ecx
mov eax, dword [rax + 0x3cc]
mov ecx, 4
cdq
idiv ecx
mov ecx, eax
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x94], ecx
add rax, 0x418
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
cmp eax, dword [rsp + 0x94]
jge 0x140002e49
mov rax, qword [rsp + 0x80]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x80], rcx
movzx ecx, byte [rax]
shl ecx, 0x18
mov rax, qword [rsp + 0x88]
mov dword [rax], ecx
mov rax, qword [rsp + 0x80]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x80], rcx
movzx ecx, byte [rax]
shl ecx, 0x10
mov rax, qword [rsp + 0x88]
or ecx, dword [rax]
mov dword [rax], ecx
mov rax, qword [rsp + 0x80]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x80], rcx
movzx ecx, byte [rax]
shl ecx, 8
mov rax, qword [rsp + 0x88]
or ecx, dword [rax]
mov dword [rax], ecx
mov rax, qword [rsp + 0x80]
mov rcx, rax
add rcx, 1
mov qword [rsp + 0x80], rcx
movzx ecx, byte [rax]
mov rax, qword [rsp + 0x88]
mov rdx, rax
add rdx, 4
mov qword [rsp + 0x88], rdx
or ecx, dword [rax]
mov dword [rax], ecx
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
jmp 0x140002d71
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x9c], 0
mov ecx, dword [rsp + 0x9c]
xor eax, eax
cmp ecx, dword [rsp + 0x94]
mov byte [rsp + 0x5f], al
jge 0x140002e88
mov eax, dword [rsp + 0x7c]
cmp eax, dword [rsp + 0x98]
setl al
mov byte [rsp + 0x5f], al
mov al, byte [rsp + 0x5f]
test al, 1
jne 0x140002e99
jmp 0x140002f69
mov rcx, qword [rsp + 0x68]
movsxd rax, dword [rsp + 0x9c]
mov r8d, dword [rcx + rax*4 + 0x418]
add rcx, 0xc
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
cdqe
shl rax, 5
add rcx, rax
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
mov rax, qword [rsp + 0x68]
movsxd rdx, edx
mov dword [rcx + rdx*4], r8d
movsxd rcx, dword [rsp + 0x9c]
mov ecx, dword [rax + rcx*4 + 0x418]
mov dword [rsp + 0x58], ecx
mov rcx, rax
add rcx, 0x1ec
mov qword [rsp + 0x48], rcx
mov ecx, dword [rax + 0x3d4]
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
mov edx, eax
mov rax, qword [rsp + 0x48]
sub ecx, edx
movsxd rcx, ecx
shl rcx, 5
add rax, rcx
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
mov rax, qword [rsp + 0x50]
mov ecx, edx
mov edx, dword [rsp + 0x58]
movsxd rcx, ecx
mov dword [rax + rcx*4], edx
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x7c]
add eax, 1
mov dword [rsp + 0x7c], eax
jmp 0x140002e5c
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x7c]
cmp eax, dword [rsp + 0x98]
jge 0x14000340e
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x94]
sub ecx, 1
movsxd rcx, ecx
mov ecx, dword [rax + rcx*4 + 0x418]
mov dword [rsp + 0x78], ecx
mov ecx, dword [rsp + 0x78]
sar ecx, 0x10
and ecx, 0xff
movsxd rdx, ecx
lea rcx, str.cw
movsx ecx, byte [rcx + rdx]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [rsp + 0x78]
sar edx, 8
and edx, 0xff
movsxd r8, edx
lea rdx, str.cw
movsx edx, byte [rdx + r8]
and edx, 0xff
shl edx, 0x10
xor ecx, edx
mov edx, dword [rsp + 0x78]
and edx, 0xff
movsxd r8, edx
lea rdx, str.cw
movsx edx, byte [rdx + r8]
and edx, 0xff
shl edx, 8
xor ecx, edx
mov edx, dword [rsp + 0x78]
sar edx, 0x18
and edx, 0xff
movsxd r8, edx
lea rdx, str.cw
movsx edx, byte [rdx + r8]
and edx, 0xff
xor ecx, edx
mov edx, dword [rsp + 0x74]
mov r8d, edx
add r8d, 1
mov dword [rsp + 0x74], r8d
movsxd r8, edx
lea rdx, [0x140008260]
movsx edx, byte [rdx + r8]
and edx, 0xff
shl edx, 0x18
xor ecx, edx
xor ecx, dword [rax + 0x418]
mov dword [rax + 0x418], ecx
cmp dword [rsp + 0x94], 8
je 0x1400030f3
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0xa0]
cmp eax, dword [rsp + 0x94]
jge 0x1400030ee
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x9c]
mov edx, ecx
add edx, 1
mov dword [rsp + 0x9c], edx
movsxd rcx, ecx
mov edx, dword [rax + rcx*4 + 0x418]
mov ecx, dword [rsp + 0xa0]
mov r8d, ecx
add r8d, 1
mov dword [rsp + 0xa0], r8d
movsxd rcx, ecx
xor edx, dword [rax + rcx*4 + 0x418]
mov dword [rax + rcx*4 + 0x418], edx
jmp 0x14000308c
jmp 0x1400032f1
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x94]
mov ecx, 2
cdq
idiv ecx
mov ecx, eax
mov eax, dword [rsp + 0x44]
cmp eax, ecx
jge 0x14000317f
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x9c]
mov edx, ecx
add edx, 1
mov dword [rsp + 0x9c], edx
movsxd rcx, ecx
mov edx, dword [rax + rcx*4 + 0x418]
mov ecx, dword [rsp + 0xa0]
mov r8d, ecx
add r8d, 1
mov dword [rsp + 0xa0], r8d
movsxd rcx, ecx
xor edx, dword [rax + rcx*4 + 0x418]
mov dword [rax + rcx*4 + 0x418], edx
jmp 0x140003109
mov eax, dword [rsp + 0x94]
mov ecx, 2
cdq
idiv ecx
mov ecx, eax
mov rax, qword [rsp + 0x68]
sub ecx, 1
movsxd rcx, ecx
mov eax, dword [rax + rcx*4 + 0x418]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
and eax, 0xff
movsxd rcx, eax
lea rax, str.cw
movsx eax, byte [rax + rcx]
and eax, 0xff
mov ecx, dword [rsp + 0x78]
sar ecx, 8
and ecx, 0xff
movsxd rdx, ecx
lea rcx, str.cw
movsx ecx, byte [rcx + rdx]
and ecx, 0xff
shl ecx, 8
xor eax, ecx
mov ecx, dword [rsp + 0x78]
sar ecx, 0x10
and ecx, 0xff
movsxd rdx, ecx
lea rcx, str.cw
movsx ecx, byte [rcx + rdx]
and ecx, 0xff
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [rsp + 0x78]
sar ecx, 0x18
and ecx, 0xff
movsxd rdx, ecx
lea rcx, str.cw
movsx ecx, byte [rcx + rdx]
and ecx, 0xff
shl ecx, 0x18
xor eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x94]
mov ecx, 2
cdq
idiv ecx
mov edx, dword [rsp + 0x40]
mov ecx, eax
mov rax, qword [rsp + 0x68]
movsxd rcx, ecx
xor edx, dword [rax + rcx*4 + 0x418]
mov dword [rax + rcx*4 + 0x418], edx
mov eax, dword [rsp + 0x94]
mov ecx, 2
cdq
idiv ecx
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xa0]
cmp eax, dword [rsp + 0x94]
jge 0x1400032ec
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x9c]
mov edx, ecx
add edx, 1
mov dword [rsp + 0x9c], edx
movsxd rcx, ecx
mov edx, dword [rax + rcx*4 + 0x418]
mov ecx, dword [rsp + 0xa0]
mov r8d, ecx
add r8d, 1
mov dword [rsp + 0xa0], r8d
movsxd rcx, ecx
xor edx, dword [rax + rcx*4 + 0x418]
mov dword [rax + rcx*4 + 0x418], edx
jmp 0x14000328a
jmp 0x1400032f1
mov dword [rsp + 0x9c], 0
mov ecx, dword [rsp + 0x9c]
xor eax, eax
cmp ecx, dword [rsp + 0x94]
mov byte [rsp + 0x3f], al
jge 0x140003328
mov eax, dword [rsp + 0x7c]
cmp eax, dword [rsp + 0x98]
setl al
mov byte [rsp + 0x3f], al
mov al, byte [rsp + 0x3f]
test al, 1
jne 0x140003339
jmp 0x140003409
mov rcx, qword [rsp + 0x68]
movsxd rax, dword [rsp + 0x9c]
mov r8d, dword [rcx + rax*4 + 0x418]
add rcx, 0xc
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
cdqe
shl rax, 5
add rcx, rax
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
mov rax, qword [rsp + 0x68]
movsxd rdx, edx
mov dword [rcx + rdx*4], r8d
movsxd rcx, dword [rsp + 0x9c]
mov ecx, dword [rax + rcx*4 + 0x418]
mov dword [rsp + 0x38], ecx
mov rcx, rax
add rcx, 0x1ec
mov qword [rsp + 0x28], rcx
mov ecx, dword [rax + 0x3d4]
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
mov edx, eax
mov rax, qword [rsp + 0x28]
sub ecx, edx
movsxd rcx, ecx
shl rcx, 5
add rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x7c]
cdq
idiv dword [rsp + 0xa4]
mov rax, qword [rsp + 0x30]
mov ecx, edx
mov edx, dword [rsp + 0x38]
movsxd rcx, ecx
mov dword [rax + rcx*4], edx
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x7c]
add eax, 1
mov dword [rsp + 0x7c], eax
jmp 0x1400032fc
jmp 0x140002f71
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x70]
cmp eax, dword [rcx + 0x3d4]
jge 0x140003524
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0x9c]
cmp eax, dword [rsp + 0xa4]
jge 0x14000350f
mov rax, qword [rsp + 0x68]
mov rcx, rax
add rcx, 0x1ec
movsxd rdx, dword [rsp + 0x70]
shl rdx, 5
add rcx, rdx
movsxd rdx, dword [rsp + 0x9c]
mov ecx, dword [rcx + rdx*4]
mov dword [rsp + 0x78], ecx
mov ecx, dword [rsp + 0x78]
sar ecx, 0x18
and ecx, 0xff
movsxd rdx, ecx
lea rcx, [0x140008280]
mov edx, dword [rcx + rdx*4]
mov ecx, dword [rsp + 0x78]
sar ecx, 0x10
and ecx, 0xff
movsxd r8, ecx
lea rcx, [0x140008680]
xor edx, dword [rcx + r8*4]
mov ecx, dword [rsp + 0x78]
sar ecx, 8
and ecx, 0xff
movsxd r8, ecx
lea rcx, [0x140008a80]
xor edx, dword [rcx + r8*4]
mov ecx, dword [rsp + 0x78]
and ecx, 0xff
movsxd r8, ecx
lea rcx, [0x140008e80]
xor edx, dword [rcx + r8*4]
add rax, 0x1ec
movsxd rcx, dword [rsp + 0x70]
shl rcx, 5
add rax, rcx
movsxd rcx, dword [rsp + 0x9c]
mov dword [rax + rcx*4], edx
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
jmp 0x140003436
jmp 0x140003514
mov eax, dword [rsp + 0x70]
add eax, 1
mov dword [rsp + 0x70], eax
jmp 0x140003416
mov rax, qword [rsp + 0x68]
mov byte [rax + 8], 1
add rsp, 0xc8
ret