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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x128
mov qword [rsp + 0x110], 0x5f
mov eax, 0x8c
mov word [rsp + 0x4c], ax
movabs rax, 0xd8feb75f70a82
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0x2a], 0x24
movzx eax, byte [0x1800c3014]
movzx eax, al
mov dword [rsp + 0x50], eax
mov eax, 0xd5162bb4
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x31], 0xa4
movzx eax, word [0x1800c30d4]
mov word [rsp + 0x48], ax
movzx eax, byte [0x1800c3014]
mov byte [rsp + 0x40], al
movzx eax, byte [0x1800c3013]
movzx eax, al
mov qword [rsp + 0xf8], rax
mov rax, qword [0x1800c3170]
mov byte [rsp + 0x29], al
movzx eax, word [0x1800c30d4]
cwde
mov dword [rsp + 0x9c], eax
mov eax, dword [0x1800c307c]
mov dword [rsp + 0xd0], eax
mov rax, qword [0x1800c3148]
mov word [rsp + 0x44], ax
mov eax, dword [0x1800c315c]
mov dword [rsp + 0x54], eax
mov eax, dword [0x1800c3128]
mov dword [rsp + 0xd4], eax
mov dword [rsp + 0x38], 9
mov eax, 0xffffc73e
mov word [rsp + 0x34], ax
mov byte [rsp + 0x28], 0x18
mov eax, 0xe02d
mov word [rsp + 0x94], ax
mov dword [rsp + 0xac], 0x401c
mov eax, dword [0x1800c315c]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xf0], 0x9404b12f
mov byte [rsp + 0x41], 0x75
movzx eax, word [0x1800c3138]
movzx eax, ax
mov qword [rsp + 0x118], rax
mov byte [rsp + 0x42], 0xd7
movzx eax, byte [0x1800c307b]
mov word [rsp + 0x98], ax
movzx eax, byte [0x1800c30bc]
mov byte [rsp + 0x43], al
movzx eax, byte [str.d_vLock_name]
movzx eax, al
mov dword [rsp + 0xd8], eax
mov eax, 0x31d9
mov word [rsp + 0xb0], ax
movabs rax, 0x443ddc984b1e5
xor ecx, ecx
cmp rcx, rax
je 0x18000c8a3
movzx eax, byte [rsp + 0x28]
movsx eax, al
test eax, eax
jne 0x18000c8a3
mov dword [rsp + 0x78], 1
jmp 0x18000c8ab
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
not eax
test eax, eax
je 0x18000c8b7
jmp 0x18000c8f9
mov eax, dword [rsp + 0x38]
cmp qword [rsp + 0xb8], rax
jae 0x18000c8d3
mov qword [rsp + 0xc0], 1
jmp 0x18000c8df
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0xc0], rax
jne 0x18000c8f9
mov eax, dword [0x1800c47e0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
dec rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x24], 0
jmp 0x18000c91a
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 8
jae 0x18000cada
movzx eax, word [0x1800c3134]
movzx eax, ax
test eax, eax
je 0x18000c935
jmp 0x18000c952
mov eax, dword [rsp + 0x50]
sub eax, 0x59a4cd22
movzx ecx, byte [str.d_vLock_name]
movzx ecx, cl
and ecx, eax
mov eax, ecx
mov byte [str.d_vLock_name], al
lea rax, [rsp + 0x100]
lea rcx, str.bad_message
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [0x1800c316c], eax
mov eax, dword [0x1800c47e0]
mov dword [rsp + 0x60], eax
movsx eax, byte [rsp + 0x2a]
sub eax, 0x69
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [0x1800c3128]
add rcx, rax
mov rax, rcx
mov rcx, qword [0x1800c3128]
sub rcx, rax
mov rax, rcx
mov qword [0x1800c3128], rax
mov eax, dword [rsp + 0x60]
add eax, 0x145
mov dword [rsp + 0xdc], eax
mov eax, dword [rsp + 0x50]
sar eax, 1
mov byte [0x1800c303e], al
mov eax, dword [rsp + 0x60]
add eax, 0x16b
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0x60]
add eax, 0xfc
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
add eax, 0x10a
mov ecx, 0x1d0
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x7c]
cmp eax, ecx
je 0x18000cad5
mov eax, dword [rsp + 0x24]
shl eax, 2
mov eax, eax
mov ecx, dword [rsp + 0x24]
shl ecx, 2
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
movzx eax, byte [rdi + rax]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
lea eax, [rax*4 + 1]
mov eax, eax
mov ecx, dword [rsp + 0x24]
lea ecx, [rcx*4 + 1]
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
movzx eax, byte [rdi + rax]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
lea eax, [rax*4 + 2]
mov eax, eax
mov ecx, dword [rsp + 0x24]
lea ecx, [rcx*4 + 2]
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
movzx eax, byte [rdi + rax]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
lea eax, [rax*4 + 3]
mov eax, eax
mov ecx, dword [rsp + 0x24]
lea ecx, [rcx*4 + 3]
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
movzx eax, byte [rdi + rax]
mov byte [rdx + rcx], al
jmp 0x18000c910
mov rax, qword [0x1800c3120]
add rax, 0xfed3
mov ecx, dword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x24], 8
jmp 0x18000cb09
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x3c
jae 0x18000d215
mov eax, dword [0x1800c47e0]
mov dword [0x1800c3158], eax
movsx eax, byte [0x1800c3067]
movzx ecx, byte [0x1800c3013]
movzx ecx, cl
and eax, ecx
mov byte [0x1800c3067], al
mov eax, dword [0x1800c47e0]
mov dword [rsp + 0x64], eax
movzx eax, word [0x1800c3134]
movzx eax, ax
cmp eax, dword [rsp + 0x38]
jbe 0x18000cb60
mov dword [rsp + 0x84], 1
jmp 0x18000cb6b
mov dword [rsp + 0x84], 0
movzx eax, byte [0x1800c3016]
movsx rax, al
mov rcx, qword [rsp + 0x58]
not rcx
cmp rax, rcx
je 0x18000cb90
mov dword [rsp + 0x80], 1
jmp 0x18000cb9b
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x84], eax
jg 0x18000cbdf
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x18000cbdd
mov eax, 0x3ef2
mov word [rsp + 0x34], ax
mov eax, dword [0x1800c3140]
imul eax, dword [rsp + 0x9c]
mov ecx, dword [0x1800c3140]
add ecx, eax
mov eax, ecx
mov dword [0x1800c3140], eax
jmp 0x18000cc1f
mov eax, dword [0x1800c316c]
test eax, eax
je 0x18000cc1f
movzx eax, byte [rsp + 0x28]
movsx eax, al
test eax, eax
je 0x18000cc03
movzx eax, byte [rsp + 0x29]
mov dword [rsp + 0x88], eax
jmp 0x18000cc11
movsx eax, word [0x1800c3130]
mov dword [rsp + 0x88], eax
movzx eax, byte [rsp + 0x88]
mov byte [0x1800c3067], al
mov eax, dword [rsp + 0x64]
add eax, 0x336
mov dword [rsp + 0xa0], eax
movsx eax, byte [0x1800c3067]
imul eax, eax, 0x36fa3bbd
mov word [0x1800c3164], ax
movzx eax, byte [rsp + 0x28]
movsx eax, al
shl eax, 8
mov byte [0x1800c307b], al
mov eax, dword [rsp + 0x64]
add eax, 0x287
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0x64]
add eax, 0x45e
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0xa0]
cmp eax, 0x33a
je 0x18000d210
mov eax, dword [rsp + 0x24]
lea eax, [rax*4 - 4]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov eax, eax
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x140]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x20], al
mov eax, dword [rsp + 0x2c]
inc eax
mov eax, eax
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x140]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x20], al
mov eax, dword [rsp + 0x2c]
add eax, 2
mov eax, eax
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x140]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x20], al
mov eax, dword [rsp + 0x2c]
add eax, 3
mov eax, eax
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x140]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x20], al
xor edx, edx
mov eax, dword [rsp + 0x24]
mov ecx, 8
div ecx
mov eax, edx
test eax, eax
jne 0x18000cfa4
mov eax, dword [0x1800c47e0]
mov dword [rsp + 0x68], eax
movzx eax, byte [rsp + 0x28]
movsx rax, al
movabs rcx, 0x7b0650fb240ea
sub rax, rcx
mov word [rsp + 0x44], ax
movzx eax, word [0x1800c3114]
cwde
sub eax, 0x2634
mov word [0x1800c3144], ax
mov eax, dword [rsp + 0x68]
add eax, 0x2e9
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x68]
add eax, 0x2ab
mov dword [rsp + 0xec], eax
movzx eax, word [0x1800c3114]
cwde
sub eax, 0x6380403c
mov byte [str.NCritical], al
mov rax, qword [0x1800c3128]
shl rax, 7
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x68]
add eax, 0x344
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x8c]
mov ecx, 0x7f
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x8c]
mov edx, dword [rsp + 0xa4]
sub ecx, edx
sub eax, ecx
cmp eax, 0x6e4
je 0x18000cfa4
movsx rax, byte [0x1800c3067]
cmp rax, qword [0x1800c3128]
ja 0x18000ce07
mov dword [rsp + 0x70], 1
jmp 0x18000ce0f
mov dword [rsp + 0x70], 0
movsx eax, byte [0x1800c3067]
cmp eax, 8
jg 0x18000ce28
mov dword [rsp + 0x90], 1
jmp 0x18000ce33
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x90]
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + 0x30], al
mov eax, 1
imul rax, rax, 1
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
mov eax, 1
imul rax, rax, 2
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
mov eax, 1
imul rax, rax, 3
mov ecx, 1
imul rcx, rcx, 2
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
mov eax, 1
imul rax, rax, 3
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + rax + 0x20], cl
movzx eax, word [0x1800c3134]
movzx eax, ax
add eax, 0x1283
mov word [0x1800c3130], ax
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 0
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 1
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 2
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 3
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x20]
mov dword [rsp + 0xa8], eax
xor edx, edx
mov eax, dword [rsp + 0x24]
mov ecx, 8
div ecx
mov eax, eax
lea rcx, [0x18009f5c0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0xa8]
xor ecx, eax
mov eax, ecx
mov ecx, 1
imul rcx, rcx, 0
mov byte [rsp + rcx + 0x20], al
xor edx, edx
mov eax, dword [rsp + 0x24]
mov ecx, 8
div ecx
mov eax, edx
cmp eax, 4
jne 0x18000d054
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 0
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 1
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, 1
imul rax, rax, 2
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 2
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x20]
lea rcx, str.cw
mov edx, 1
imul rdx, rdx, 3
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, dword [rsp + 0x24]
shl eax, 2
mov dword [rsp + 0x3c], eax
mov eax, 2
mov word [0x1800c3138], ax
mov eax, dword [0x1800c30ec]
xor eax, 0xcc12
mov word [rsp + 0x48], ax
movzx eax, word [0x1800c3138]
movzx eax, ax
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x18000d0a3
cmp dword [rsp + 0x6c], 1
je 0x18000d0c5
cmp dword [rsp + 0x6c], 2
je 0x18000d113
jmp 0x18000d125
movzx eax, word [rsp + 0x4c]
sub eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
sub eax, ecx
not eax
mov dword [rsp + 0x54], eax
mov eax, dword [0x1800c47e0]
mov qword [rsp + 0x58], rax
jmp 0x18000d125
movzx eax, word [0x1800c3114]
movsx rax, ax
mov rcx, qword [rsp + 0xb8]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x54]
sub eax, dword [0x1800c315c]
test eax, eax
jne 0x18000d0fe
mov dword [rsp + 0x74], 1
jmp 0x18000d106
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0xac], eax
jmp 0x18000d125
movzx eax, byte [rsp + 0x29]
imul rax, qword [rsp + 0xf8]
mov byte [rsp + 0x29], al
mov eax, dword [rsp + 0x24]
lea eax, [rax*4 - 0x20]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov eax, eax
mov rcx, qword [rsp + 0x140]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
movzx ecx, byte [rsp + rcx + 0x20]
xor eax, ecx
mov ecx, dword [rsp + 0x3c]
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x2c]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x140]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 1
movzx ecx, byte [rsp + rcx + 0x20]
xor eax, ecx
mov ecx, dword [rsp + 0x3c]
inc ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x2c]
add eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x140]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 2
movzx ecx, byte [rsp + rcx + 0x20]
xor eax, ecx
mov ecx, dword [rsp + 0x3c]
add ecx, 2
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x2c]
add eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x140]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 3
movzx ecx, byte [rsp + rcx + 0x20]
xor eax, ecx
mov ecx, dword [rsp + 0x3c]
add ecx, 3
mov ecx, ecx
mov rdx, qword [rsp + 0x140]
mov byte [rdx + rcx], al
jmp 0x18000caff
movzx eax, byte [rsp + 0x31]
movzx eax, al
test eax, eax
je 0x18000d223
jmp 0x18000d248
movzx eax, word [0x1800c3134]
movzx eax, ax
test eax, eax
je 0x18000d248
mov eax, 0xba
mov word [0x1800c30d4], ax
movzx eax, word [0x1800c3114]
mov byte [rsp + 0x2a], al
xor eax, eax
add rsp, 0x128
pop rdi
pop rsi
ret