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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov qword [rsp + 0x18], rdx
mov r11d, 0x626c357f
xor r8d, r8d
lea rsi, str.cw
jmp 0x180001120
mov r10d, dword [rsp + 0xc]
lea ebp, [r10*4]
mov r11d, dword [rsp + 0xc]
lea eax, [r11*4 - 0x20]
movzx eax, byte [rcx + rax]
mov ebx, r13d
not bl
and bl, al
not al
and al, r13b
or bl, al
mov byte [rcx + rbp], bl
lea eax, [r11*4 - 0x1f]
movzx eax, byte [rcx + rax]
mov ebx, r14d
not bl
and bl, al
not al
and al, r14b
or bl, al
mov edx, r13d
mov r13, rsi
mov esi, ebp
not esi
mov eax, esi
and eax, 0x9b71e64d
mov edi, ebp
and edi, 0x648e19b0
or edi, eax
xor edi, 0x9b71e64c
mov byte [rcx + rdi], bl
lea eax, [r11*4 - 0x1e]
movzx edi, byte [rcx + rax]
mov ebx, edi
not bl
and bl, 0x8f
and dil, 0x70
or dil, bl
mov ebx, r12d
not bl
and bl, 0x8f
mov eax, r12d
and al, 0x70
or al, bl
xor al, dil
lea ebx, [r10*4 + 2]
mov byte [rcx + rbx], al
lea eax, [r11*4 - 0x1d]
movzx eax, byte [rcx + rax]
mov ebx, r9d
not bl
and bl, al
not al
and al, r9b
or bl, al
and esi, 0xf3051611
and ebp, 0xcfae9ec
or ebp, esi
mov rsi, r13
mov r13d, edx
xor ebp, 0xf3051612
mov byte [rcx + rbp], bl
mov r10d, dword [rsp + 0xc]
add r10d, 1
mov r11d, 0x54f49139
nop word cs:[rax + rax]
nop
cmp r11d, 0xe3ccf566
jle 0x180001180
cmp r11d, 0x525c835f
jle 0x180001210
cmp r11d, 0x525c8360
je 0x18000130d
cmp r11d, 0x54f49139
je 0x180001396
cmp r11d, 0x626c357f
jne 0x180001120
mov dword [rsp + 0x10], r8d
mov eax, dword [rsp + 0x10]
cmp eax, 8
mov r11d, 0xa74e7ce2
mov eax, 0xed675ca5
cmovb r11d, eax
jmp 0x180001120
cmp r11d, 0xb682f269
jg 0x1800012a0
cmp r11d, 0xa74e7ce2
je 0x1800013b6
cmp r11d, 0xa898081b
jne 0x1800013fa
movzx eax, byte [rsp + 1]
movzx eax, byte [rsp + 5]
movzx r15d, byte [rax + rsi]
movzx eax, byte [rsp + 6]
movzx eax, byte [rax + rsi]
mov byte [rsp + 4], al
movzx eax, byte [rsp + 7]
movzx eax, byte [rax + rsi]
mov byte [rsp + 3], al
movzx eax, byte [rsp + 1]
movzx eax, byte [rax + rsi]
mov byte [rsp + 2], al
mov eax, dword [rsp + 0xc]
shr rax, 3
lea rdx, [0x180039450]
movzx ebx, byte [rax + rdx]
mov eax, ebx
not al
and al, r15b
not r15b
and r15b, bl
or r15b, al
mov r11d, 0xc596f391
jmp 0x180001120
cmp r11d, 0xe3ccf567
je 0x1800013c7
cmp r11d, 0xed675ca5
jne 0x180001120
mov ebp, dword [rsp + 0x10]
lea edi, [rbp*4]
mov rdx, qword [rsp + 0x18]
movzx ebx, byte [rdx + rdi]
mov byte [rcx + rdi], bl
lea ebp, [rbp*4 + 1]
movzx ebx, byte [rdx + rbp]
mov byte [rcx + rbp], bl
mov ebp, edi
not ebp
mov ebx, ebp
and ebx, 0x15f7d4bf
mov eax, edi
and eax, 0xea082b40
or eax, ebx
xor eax, 0x15f7d4bd
movzx ebx, byte [rdx + rax]
mov byte [rcx + rax], bl
and ebp, 0xc025bbfb
and edi, 0x3fda4404
or edi, ebp
xor edi, 0xc025bbf8
movzx eax, byte [rdx + rdi]
mov byte [rcx + rdi], al
mov r8d, dword [rsp + 0x10]
add r8d, 1
mov r11d, 0x626c357f
jmp 0x180001120
cmp r11d, 0xb682f26a
je 0x18000102a
cmp r11d, 0xc596f391
jne 0x180001120
mov byte [rsp + 8], r15b
movzx eax, byte [rsp + 4]
mov byte [rsp + 9], al
movzx eax, byte [rsp + 3]
mov byte [rsp + 0xa], al
movzx eax, byte [rsp + 2]
mov byte [rsp + 0xb], al
mov eax, dword [rsp + 0x14]
cmp eax, 4
mov r11d, 0xb682f26a
mov eax, 0xe3ccf567
cmove r11d, eax
movzx r9d, byte [rsp + 0xb]
movzx r12d, byte [rsp + 0xa]
movzx r14d, byte [rsp + 9]
movzx r13d, byte [rsp + 8]
jmp 0x180001120
mov eax, dword [rsp + 0xc]
lea ebp, [rax*4 - 4]
movzx ebx, byte [rcx + rbp]
mov byte [rsp + 1], bl
lea ebp, [rax*4 - 3]
movzx ebx, byte [rcx + rbp]
mov byte [rsp + 5], bl
lea ebp, [rax*4 - 2]
movzx ebx, byte [rcx + rbp]
mov byte [rsp + 6], bl
lea eax, [rax*4 - 1]
movzx eax, byte [rcx + rax]
mov byte [rsp + 7], al
mov ebp, dword [rsp + 0xc]
mov eax, ebp
xor eax, 0xfffffff8
and eax, ebp
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 0
mov r11d, 0xc596f391
mov eax, 0xa898081b
cmove r11d, eax
movzx r15d, byte [rsp + 1]
movzx eax, byte [rsp + 5]
mov byte [rsp + 4], al
movzx eax, byte [rsp + 6]
mov byte [rsp + 3], al
movzx eax, byte [rsp + 7]
mov byte [rsp + 2], al
jmp 0x180001120
mov dword [rsp + 0xc], r10d
mov eax, dword [rsp + 0xc]
cmp eax, 0x3c
mov r11d, 0x896bc9ac
mov eax, 0x525c8360
cmovb r11d, eax
jmp 0x180001120
mov r11d, 0x54f49139
mov r10d, 8
jmp 0x180001120
movzx eax, byte [rsp + 8]
movzx r13d, byte [rax + rsi]
movzx eax, byte [rsp + 9]
movzx r14d, byte [rax + rsi]
movzx eax, byte [rsp + 0xa]
movzx r12d, byte [rax + rsi]
movzx eax, byte [rsp + 0xb]
movzx r9d, byte [rax + rsi]
mov r11d, 0xb682f26a
jmp 0x180001120
cmp r11d, 0x896bc9ac
jne 0x180001120
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret