Function at 0x1813b0173
Capabilities:
Execute anti-debugging instructions
Manually build aes constants

Disassembly:
xor rdx, rdi
xor cl, 0x8e
sub cl, 0xb1
btr dx, 0xa0
rol cl, 1
xadd r11b, dl
xor bpl, cl
bts r11w, 0x22
sar si, 0x6d
jb 0x18138f98d
mov ebx, 0x270b50af
movzx edi, bl
lea rax, [rdi + rbx*4 - 0x56e71953]
mov rbx, qword [rsi + rbx - 0x270b50af]
push rax
push rax
xor dil, byte [rsp + rdi - 0xae]
mov rdx, qword [rsi + rdi*4 - 0x20c]
dec qword [rsp + rdi*2 - 0x102]
lea rcx, [rax + rax*4 - 0x7d6db4d1]
not al
mov cl, byte [rsi + rdi*2 - 0xfa]
push rax
mov r8d, 0xb80b8f20
lea rsi, [rdi + rsi - 0x7b]
add byte [rsp + rdi - 0x72], 0x1f
bswap r8
shrd rbx, rdx, cl
mov qword [rsi + rax - 0x45462ae7], rbx
shr r8w, 0xc
xor byte [rsp + rdi*2 - 0xf5], 0x99
dec byte [rsp + rdi - 0x70]
lea r11, [rdi + r11 - 0x89]
mul dword [rsp + rdi*8 - 0x416]
call fcn.1813bdade
inc dx
or qword [rsp + rdi - 0x4403d8], 0x5d8cdfb3
seto r8b
dec r9w
rol dx, 1
add word [rsp + rdi - 0x4403eb], r9w
jno 0x1813ed1d3
inc ecx
cqo
rol ecx, 1
neg ecx
cwde
sal dx, 0x2d
call fcn.1813d2dc4
mov edx, 0xb433f099
mov r10, qword [r9 + riz]
mov r11d, dword ss:[r10 + riz]
lea rcx, [rdx*4 + 0x182a5638]
push rdx
call fcn.1813c7810
sub dx, 0x6e24
movsx r9d, word [rsp + rdi*2 - 0x8807e4]
mov qword [rsp + rdi*2 - 0x880800], rbx
inc qword [rsp + rdi*2 - 0x8807e1]
xor dx, 0xeca0
inc word [rsp + rdi - 0x440400]
ror bx, 0x61
rol cx, 0xe2
sbb dx, 0xf2a5
push rcx
not r9b
movsx eax, word [rsp + rdi - 0x4403d5]
not dx
dec dx
not dx
jmp 0x1813fdda9
neg word [rsp + r9*4 - 0x3f5]
xor bp, dx
cdqe
lea rdx, [rsp + rdx + 0x30]
mov r9b, byte [rdi + rdx - 0x440400]
or dword [rsp + rdi*2 - 0x8807d4], ebx
xchg bx, ax
add qword [rsp + rdi - 0x4403f9], 0xffffffffe737d18a
mov word [rsi + rdi*4 - 0x1101004], r9w
lea rsi, [rsi + rdi*4 - 0x1101004]
xadd byte [rsp + rdi*2 - 0x8807f3], dil
movzx r9d, byte [rsp + rdi - 0x4403e0]
pop rax
pop rdi
pop rax
pop rcx
pop r9
pop rbx
jno fcn.181381c17
mov word [r9 + r10*8 - 0x7b868], dx
xadd rax, rsi
movzx edi, r10b
movzx edx, r11b
mov esi, dword [rbx + r10 - 0xf70d]
lea rbx, [rbx + r10*2 - 0x1ee16]
xor esi, ebp
sar r10b, 1
lea rdx, [rdi*4 + 0x81c9581]
bts dx, r11w
neg esi
bts dx, 0x86
rol esi, 1
sar rax, 0xe6
jns 0x1813ed4e2
not r11d
shr ax, 0xe6
inc r11d
dec ax
shr rsi, 0x77
rol rcx, 0xab
mov qword [rsp + rsi*2], rbp
xor dword [rsp + rsi*4], r11d
movzx r10d, al
pop rbp
bts esi, 0xa7
not si
movsxd r11, r11d
setae al
bt rcx, 0x1b
adc r8, r11
and rdi, rax
mov r11, r9
lea r9, [r9 + rsi*2 - 0x1ff00]
shl dl, 0x67
idiv rsi
or ax, cx
mov word [r9 + rsi*8 - 0x7fbf8], r11w
xadd si, cx
jno fcn.18134300b
movzx eax, word [rbx]
mov edx, 0x798001a4
xor ax, bp
add ax, 0x626
push rdx
ror ax, 1
ror byte [rsp + rdx - 0x798001a3], 0x21
adc ax, 0x7a7f
movsx r11d, dx
movsx esi, dx
xor ax, 0x641a
rol dx, 0xc1
shr qword [rsp + r11 - 0x1a4], 3
not ax
pop rsi
mov ecx, edx
xor bp, ax
add rax, rsp
mov edi, r11d
or sil, dl
mov r10d, 0x56bddb8f
mov edx, dword [rax + r11 - 0x1a4]
sbb rdi, rcx
mov dword [r9 + r11*4 - 0x694], edx
movzx ecx, byte [rbx + rsi*4 - 0x3cc0416e]
lea rdx, [r10*4 + 0x73b9ff89]
movzx eax, r11b
inc sil
xor cl, bpl
cqo
xadd eax, edx
dec sil
ror cl, 1
jmp 0x18134de23
shl r10d, 0x74
sbb esi, 0x9f1dfcbe
btr rdx, r11
cwde
jae 0x18138fe09
neg esi
not edx
not esi
lea esi, [rax + rsi + 0x4b3253b3]
movzx ecx, r10w
cbw
not cl
bswap esi
and ax, 0x52a0
push r11
mov qword [rsp + rax], rbp
movsx ebp, r10b
add rdx, rdi
push r11
xor dword [rsp + rax*2 + 8], esi
or byte [rsp + rax + 6], cl
mov rbp, qword [rsp + rax + 8]
movsxd rsi, esi
call fcn.18134f9bd
mov esi, 0xab8ff1ab
movzx si, byte [r9 + riz]
mov edi, 0xb51b1a10
movzx edx, dil
movzx eax, di
mov r10b, byte [r9 + rdx*8 - 0x7e]
add edx, 0x71092221
movsx ecx, dl
and sil, r10b
movsx r10d, di
not sil
mov word [r9 + rdx - 0x7109222f], si
sar rdx, 0x13
mov rsi, qword [r9 + rdx*2 - 0x1c40]
mov cl, byte [r9 + rdx*2 - 0x1c38]
setne dil
xor r10w, dx
div rax
shr rsi, cl
movsx ecx, r10w
cdq
mov qword [r10 + r9 - 0x142d], rsi
bts rcx, 0x96
movsx esi, r10w
add rsi, rdi
lea r9, [r9 + r10*2 - 0x285e]
movzx r11d, cx
mov ecx, dword [rbx + rcx*2 - 0x802862]
lea rbx, [rbx + r10 - 0x142d]
bt di, r11w
xor ecx, ebp
rol ecx, 1
imul rax
lea ecx, [rcx + r10*2 - 0x4208ce17]
neg sil
neg ecx
lea ecx, [rdi + rcx - 0x65ff79f3]
cdq
push rbp
call fcn.18137a898
shl r8d, 4
js 0x18139250f
shld dx, ax, cl
mov word [r9 + r11*2 - 0x2066], dx
shr r11, 0x32
mov ecx, dword [r11 + rbx]
lea rbx, [r11 + rbx + 4]
movzx eax, r11w
xor ecx, ebp
not ecx
xor r11, r11
sal al, 4
je 0x181397b6a