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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x482156
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x38]
mov rdx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov r11, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rax, rdi
sar rdi, 0x3f
shr rdi, 0x3e
add rdi, rax
sar rdi, 2
xor ecx, ecx
cmp rcx, rdi
jge 0x481dea
mov rbp, rcx
shl rbp, 2
cmp rbp, rax
jae 0x48214f
lea rbx, [rdx + rbp]
movzx ebx, byte [rbx]
shl ebx, 0x18
mov r8, rcx
shl r8, 2
inc r8
cmp r8, rax
jae 0x482148
lea rbp, [rdx + r8]
movzx ebp, byte [rbp]
shl ebp, 0x10
or ebx, ebp
mov r8, rcx
shl r8, 2
add r8, 2
cmp r8, rax
jae 0x482141
lea rbp, [rdx + r8]
movzx ebp, byte [rbp]
shl ebp, 8
or ebx, ebp
mov r8, rcx
shl r8, 2
add r8, 3
cmp r8, rax
jae 0x48213a
lea rbp, [rdx + r8]
movzx ebp, byte [rbp]
or ebx, ebp
cmp rcx, rsi
jae 0x482133
lea rbp, [r11 + rcx*4]
mov dword [rbp], ebx
inc rcx
cmp rcx, rdi
jl 0x481d55
cmp rcx, rsi
jge 0x481f16
mov rbx, rcx
dec rbx
cmp rbx, rsi
jae 0x48212c
lea rbp, [r11 + rbx*4]
mov r10d, dword [rbp]
mov rax, rcx
cmp rdi, 0xffffffffffffffff
je 0x482125
cqo
idiv rdi
mov rbx, rdx
cmp rbx, 0
jne 0x482074
mov ebp, r10d
rol ebp, 8
mov r8d, ebp
shr ebp, 0x18
lea rbx, str.cw
lea rbx, [rbx + rbp]
movzx ebx, byte [rbx]
shl ebx, 0x18
mov eax, r8d
shr r8d, 0x10
and r8d, 0xff
lea rbp, str.cw
lea rbp, [rbp + r8]
movzx ebp, byte [rbp]
shl ebp, 0x10
or ebx, ebp
mov r8d, eax
shr r8d, 8
and r8d, 0xff
lea rbp, str.cw
lea rbp, [rbp + r8]
movzx ebp, byte [rbp]
shl ebp, 8
or ebx, ebp
mov r8d, eax
and r8d, 0xff
lea rbp, str.cw
lea rbp, [rbp + r8]
movzx ebp, byte [rbp]
or ebx, ebp
mov rax, rcx
cmp rdi, 0xffffffffffffffff
je 0x482069
cqo
idiv rdi
mov r8, rax
dec r8
lea rbp, [0x005ee4f0]
cmp r8, 0x10
jae 0x482062
lea rbp, [rbp + r8]
movzx ebp, byte [rbp]
shl ebp, 0x18
xor ebx, ebp
mov r10d, ebx
cmp rcx, rsi
jae 0x48205b
lea rbx, [r11 + rcx*4]
mov r8, rcx
sub r8, rdi
cmp r8, rsi
jae 0x482054
lea rbp, [r11 + r8*4]
mov ebp, dword [rbp]
xor ebp, r10d
mov dword [rbx], ebp
inc rcx
cmp rcx, rsi
jl 0x481df3
cmp r12, 0
jne 0x481f1d
ret
mov rdi, rsi
xor edx, edx
cmp rdx, rdi
jge 0x482045
mov r10, rdi
sub r10, rdx
sub r10, 4
xor ecx, ecx
cmp rcx, 4
jge 0x482038
mov rbx, r10
add rbx, rcx
cmp rbx, rsi
jae 0x48204d
lea rbp, [r11 + rbx*4]
mov eax, dword [rbp]
cmp rdx, 0
jle 0x48201a
mov rbx, rdx
add rbx, 4
cmp rbx, rdi
jge 0x48201a
mov ebp, eax
shr ebp, 0x18
lea r8, str.cw
lea r8, [r8 + rbp]
movzx ebp, byte [r8]
lea rbx, [0x005f6e40]
lea rbx, [rbx + rbp*4]
mov ebx, dword [rbx]
mov r8d, eax
shr r8d, 0x10
and r8d, 0xff
lea r9, str.cw
lea r9, [r9 + r8]
movzx r8d, byte [r9]
lea rbp, [0x005f7240]
lea rbp, [rbp + r8*4]
mov ebp, dword [rbp]
xor ebx, ebp
mov r8d, eax
shr r8d, 8
and r8d, 0xff
lea r9, str.cw
lea r9, [r9 + r8]
movzx r8d, byte [r9]
lea rbp, [0x005f7640]
lea rbp, [rbp + r8*4]
mov ebp, dword [rbp]
xor ebx, ebp
mov r8d, eax
and r8d, 0xff
lea r9, str.cw
lea r9, [r9 + r8]
movzx r8d, byte [r9]
lea rbp, [0x005f7a40]
lea rbp, [rbp + r8*4]
mov ebp, dword [rbp]
xor ebx, ebp
mov eax, ebx
mov rbp, rdx
add rbp, rcx
cmp rbp, r13
jae 0x482046
lea rbx, [r12 + rbp*4]
mov dword [rbx], eax
inc rcx
cmp rcx, 4
jl 0x481f41
add rdx, 4
cmp rdx, rdi
jl 0x481f2b
ret
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
neg rax
mov r8, rax
jmp 0x481ebd
cmp rdi, 6
jle 0x481ee2
mov rax, rcx
cmp rdi, 0xffffffffffffffff
je 0x48211e
cqo
idiv rdi
mov rbx, rdx
cmp rbx, 4
jne 0x481ee2
mov ebp, r10d
shr ebp, 0x18
lea rbx, str.cw
lea rbx, [rbx + rbp]
movzx ebx, byte [rbx]
shl ebx, 0x18
mov r8d, r10d
shr r8d, 0x10
and r8d, 0xff
lea rbp, str.cw
lea rbp, [rbp + r8]
movzx ebp, byte [rbp]
shl ebp, 0x10
or ebx, ebp
mov r8d, r10d
shr r8d, 8
and r8d, 0xff
lea rbp, str.cw
lea rbp, [rbp + r8]
movzx ebp, byte [rbp]
shl ebp, 8
or ebx, ebp
mov r8d, r10d
and r8d, 0xff
lea rbp, str.cw
lea rbp, [rbp + r8]
movzx ebp, byte [rbp]
or ebx, ebp
mov r10d, ebx
jmp 0x481ee2
xor ebx, ebx
jmp 0x482093
xor ebx, ebx
jmp 0x481e1f
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.00459520
jmp fcn.00481d00