Function at 0x1800042d0
Capabilities:
Check os version
Create new key via cryptacquirecontext
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x18009a918]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0xa0], rdx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x180005c05
cmp qword [rcx + 8], 0
je 0x180005c05
test rdx, rdx
jne 0x18000432f
mov eax, 0xc00000f0
jmp 0x180005c0a
xor ebx, ebx
mov qword [rsp + 0xc0], rbx
mov r13d, 0x400
mov dword [rsp + 0x4c], r13d
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0x128], rbx
mov dword [rsp + 0x114], ebx
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 5
jne 0x1800043bc
mov eax, 0xc00000bb
jmp 0x180005c0a
mov eax, dword [0x18009c868]
test eax, eax
jne 0x18000440e
call fcn.180001660
mov ebx, eax
test eax, eax
jns 0x18000440c
lea rdi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004405
test byte [rcx + 0x1c], 1
je 0x180004405
cmp byte [rcx + 0x19], 2
jb 0x180004405
mov edx, 0x58
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov eax, ebx
jmp 0x180005c0a
xor ebx, ebx
mov dword [rsp + 0x40], 0xc0000001
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x138], xmm1
mov byte [rsp + 0x44], 0
xor r14b, r14b
mov byte [rsp + 0x45], r14b
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0xd8], ebx
lock inc dword [0x18009d918]
lea rdi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x18000448d
test byte [rcx + 0x1c], 1
je 0x18000448d
cmp byte [rcx + 0x19], 5
jb 0x18000448d
mov edx, 0x59
mov r9, rsi
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001200
mov rcx, qword [0x18009b358]
mov r12d, 0x671
mov r15d, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x114]
lea rdx, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
test ebx, ebx
jns 0x180004650
cmp byte [0x18009b380], r14b
je 0x1800044e0
mov qword [rsp + 0x28], rdx
mov word [rsp + 0x20], r12w
xor r9d, r9d
mov r8d, 0x4b45443a
mov edx, r15d
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x1800044f9
mov r8d, r15d
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
mov qword [rsp + 0xc0], rax
test rax, rax
jne 0x18000453b
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004531
test byte [rcx + 0x1c], 1
je 0x180004531
cmp byte [rcx + 0x19], 2
jb 0x180004531
lea edx, [rax + 0x5a]
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov ebx, 0xc000009a
jmp 0x1800058ee
lea rcx, [rsp + 0x114]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, r15d
mov edx, 0x100
mov rcx, rsi
call fcn.1800160d0
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000023
jne 0x1800045f7
cmp qword [rsp + 0xc0], 0
je 0x1800045dd
cmp byte [0x18009b380], r14b
je 0x1800045b3
mov r9d, 0x67d
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x4b45443a
lea rdx, [rsp + 0xc0]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x1800045d1
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xc0], 0
mov eax, dword [rsp + 0x114]
mov r15d, eax
mov dword [rsp + 0x4c], eax
mov rcx, qword [0x18009b358]
jmp 0x1800044a3
test eax, eax
jns 0x180004644
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x5b
lea r9, str.TrfLibGetRawAttribute
mov dword [rsp + 0x20], eax
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
jmp 0x1800058f2
mov rcx, qword [0x18009b358]
jmp 0x18000449c
cmp eax, 0x4c
jae 0x180004690
cmp rcx, rdi
je 0x180004686
test byte [rcx + 0x1c], 1
je 0x180004686
cmp byte [rcx + 0x19], 2
jb 0x180004686
mov edx, 0x5c
mov dword [rsp + 0x20], 0x4c
mov r9d, eax
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800010a0
mov ebx, 0xc0000206
jmp 0x1800058ee
mov rdx, qword [rsp + 0xc0]
mov r8d, dword [rdx + 0x40]
cmp r8d, eax
ja 0x1800058e9
cmp dword [rdx], eax
ja 0x1800058e9
lea rsi, [rdx + r8]
mov qword [rsp + 0x98], rsi
cmp dword [rsi], 0
jne 0x1800046ee
cmp rcx, rdi
je 0x1800046e4
test byte [rcx + 0x1c], 1
je 0x1800046e4
cmp byte [rcx + 0x19], 2
jb 0x1800046e4
mov edx, 0x5d
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov ebx, 0xc000028b
jmp 0x1800058ee
lea rcx, [rsp + 0xb8]
call fcn.1800025c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x18000473a
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x5e
lea r9, str.TrfLibGetUserName
jmp 0x18000462b
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x100]
call fcn.1800028c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x18000478e
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x5f
lea r9, str.TrfLibInitUstrStaticToUpper
jmp 0x18000462b
mov dword [rsp + 0x68], r13d
cmp byte [0x18009b380], r14b
je 0x1800047ce
mov eax, 0x6b3
lea r12, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x28], r12
mov word [rsp + 0x20], ax
xor r9d, r9d
mov edx, 0x800
mov r8d, 0x5254533a
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x1800047f1
xor edx, edx
mov r8d, 0x800
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
lea r12, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0xd0], rax
test rax, rax
jne 0x18000482a
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004531
test byte [rcx + 0x1c], 1
je 0x180004531
cmp byte [rcx + 0x19], 2
jb 0x180004531
lea edx, [rax + 0x60]
jmp 0x180004521
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jne 0x18000484a
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff00
cmp eax, 0x100
jae 0x180004a38
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
ja 0x180004a38
lea rdx, str.SYSTEM
lea rcx, [rsp + 0x150]
call fcn.18004a590
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1800048ab
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x61
lea r9, str.UstrInitStatic
jmp 0x18000462b
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x150]
call fcn.18004a0c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004907
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x62
lea r9, str.UstrCmp
jmp 0x18000462b
cmp eax, 0x68000008
jne 0x180004a38
movzx r8d, word [0x18009d680]
inc r8d
mov rdx, qword [0x18009d688]
lea rcx, [rsp + 0x100]
call fcn.18004a600
mov r8, qword [rsp + 0xb8]
test r8, r8
je 0x180004990
cmp byte [0x18009b380], r14b
je 0x18000496e
mov r9d, 0x6d2
mov qword [rsp + 0x20], r12
mov r8d, 0x5254533a
lea rdx, [rsp + 0xb8]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180004984
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xb8], 0
movzx eax, word [rsp + 0x100]
add eax, eax
cmp byte [0x18009b380], r14b
je 0x1800049cb
mov ecx, 0x6d3
mov qword [rsp + 0x28], r12
mov word [rsp + 0x20], cx
xor r9d, r9d
mov r8d, 0x5254533a
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x1800049e4
mov r8d, eax
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x180004a1d
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004531
test byte [rcx + 0x1c], 1
je 0x180004531
cmp byte [rcx + 0x19], 2
jb 0x180004531
lea edx, [rax + 0x63]
jmp 0x180004521
movzx r8d, word [rsp + 0x100]
add r8, r8
mov rdx, qword [0x18009d688]
mov rcx, rax
call fcn.18005f360
lea r12, [rsi + 4]
mov qword [rsp + 0x90], r12
xor esi, esi
mov dword [rsp + 0x48], esi
xor al, al
mov byte [rsp + 0x44], al
mov rax, qword [rsp + 0x98]
cmp esi, dword [rax]
jae 0x180004d2c
mov qword [rsp + 0x80], r12
mov ecx, dword [r12 + 4]
add rcx, r12
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.180005cc0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004ac6
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x64
lea r9, str.GetCredentialsData
jmp 0x18000462b
cmp qword [rsp + 0x78], 0
je 0x1800050ea
cmp qword [rsp + 0x58], 0
je 0x1800050ea
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x1800050ea
mov r8d, dword [rsp + 0x114]
sub r8, rdx
add r8, qword [rsp + 0xc0]
lea rcx, [rsp + 0x138]
call fcn.18004a600
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004b4e
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x65
lea r9, str.UstrInitStatic
jmp 0x18000462b
mov dword [rsp + 0x130], 0x28
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x138]
call fcn.180049f70
mov ebx, eax
cmp eax, 0xc00000f3
jne 0x180004b95
mov ebx, 0xc00000f1
mov dword [rsp + 0x40], ebx
jmp 0x180004b9d
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004bd6
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x66
mov dword [rsp + 0x20], ebx
lea r9, str.UstrChr
jmp 0x18000462f
movzx eax, word [rsp + 0x118]
add ax, ax
mov word [rsp + 0x138], ax
xor r8d, r8d
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x138]
call fcn.18004a690
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004c40
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x67
lea r9, str.UstrChr
jmp 0x18000462b
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x100]
call fcn.1800028c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004c94
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x68
lea r9, str.TrfLibInitUstrStaticToUpper
jmp 0x18000462b
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x138]
call fcn.18004a0c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004cf0
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x69
lea r9, str.UstrCmp
jmp 0x18000462b
cmp eax, 0x68000008
jne 0x180004d54
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004d24
test byte [rcx + 0x1c], 1
je 0x180004d24
cmp byte [rcx + 0x19], 5
jb 0x180004d24
mov edx, 0x6a
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov r14b, 1
mov byte [rsp + 0x45], r14b
xor r13d, r13d
test r14b, r14b
jne 0x180005104
mov ebx, r13d
movzx eax, byte [rsp + 0x44]
cmp al, 1
setne bl
add ebx, 0xe800040a
mov dword [rsp + 0x40], ebx
jmp 0x1800058f5
mov esi, 1
mov dword [rsp + 0x6c], esi
cmp esi, 0xc
jg 0x180005038
mov dword [rsp + 0xd8], r13d
lea r8, [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
mov ecx, esi
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x180004f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x180004de5
cmp eax, 0xea
je 0x180004de5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004dde
test byte [rcx + 0x1c], 1
je 0x180004dde
cmp byte [rcx + 0x19], 2
jb 0x180004dde
mov edx, 0x6d
mov dword [rsp + 0x20], eax
lea r9, str.Get_user_name
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
inc esi
jmp 0x180004d59
mov eax, dword [rsp + 0xd8]
mov r13d, eax
mov dword [rsp + 0x68], eax
mov r8, qword [rsp + 0xd0]
test r8, r8
je 0x180004e5e
cmp byte [0x18009b380], r14b
je 0x180004e37
mov r9d, 0x72d
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x5254533a
lea rdx, [rsp + 0xd0]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180004e4d
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
xor eax, eax
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0xd8]
add eax, eax
cmp byte [0x18009b380], r14b
je 0x180004e98
lea rcx, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x28], rcx
mov ecx, 0x72e
mov word [rsp + 0x20], cx
xor r9d, r9d
mov r8d, 0x5254533a
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x180004eb1
mov r8d, eax
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
mov qword [rsp + 0xd0], rax
test rax, rax
jne 0x180004eea
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004531
test byte [rcx + 0x1c], 1
je 0x180004531
cmp byte [rcx + 0x19], 2
jb 0x180004531
lea edx, [rax + 0x6b]
jmp 0x180004521
lea r8, [rsp + 0xd8]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x180004f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004f41
test byte [rcx + 0x1c], 1
je 0x180004f41
cmp byte [rcx + 0x19], 2
jb 0x180004f41
mov edx, 0x6c
mov dword [rsp + 0x20], eax
lea r9, str.Get_user_name
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
add ebx, 0xe8f00000
jmp 0x1800058ee
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x100]
call fcn.1800028c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004fa0
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x6e
lea r9, str.TrfLibInitUstrStaticToUpper
jmp 0x18000462b
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x138]
call fcn.18004a0c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180004ffc
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x6f
lea r9, str.UstrCmp
jmp 0x18000462b
cmp eax, 0x68000008
jne 0x180005031
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180004d24
test byte [rcx + 0x1c], 1
je 0x180004d24
cmp byte [rcx + 0x19], 5
jb 0x180004d24
mov edx, 0x70
jmp 0x180004d14
inc esi
jmp 0x180004d59
lea r8, [rsp + 0x110]
lea rdx, [0x18009d680]
lea rcx, [rsp + 0x138]
call fcn.18004a0c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180005093
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f2
test byte [rcx + 0x1c], 1
je 0x1800058f2
cmp byte [rcx + 0x19], 2
jb 0x1800058f2
mov edx, 0x71
lea r9, str.UstrCmp
jmp 0x18000462b
cmp eax, 0x68000008
jne 0x1800050cc
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800050c7
test byte [rcx + 0x1c], 1
je 0x1800050c7
cmp byte [rcx + 0x19], 5
jb 0x1800050c7
mov edx, 0x72
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov byte [rsp + 0x44], 1
mov eax, dword [r12]
add r12, rax
mov qword [rsp + 0x90], r12
mov esi, dword [rsp + 0x48]
inc esi
mov dword [rsp + 0x48], esi
jmp 0x180004a50
mov eax, dword [r12]
add r12, rax
mov qword [rsp + 0x90], r12
inc esi
mov dword [rsp + 0x48], esi
jmp 0x180004a50
mov dword [rsp + 0x20], r13d
mov r9d, 1
mov r8, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180005203
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800051e4
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180005170
test byte [rcx + 0x1c], 1
je 0x180005170
cmp byte [rcx + 0x19], 3
jb 0x180005170
mov edx, 0x73
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov dword [rsp + 0x20], 8
mov r9d, 1
mov r8, qword [rsp + 0x58]
mov rdx, rbx
lea rcx, [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180005203
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800051d6
test byte [rcx + 0x1c], 1
je 0x1800051d6
cmp byte [rcx + 0x19], 2
jb 0x1800051d6
mov edx, 0x74
lea r9, str.Acquire_context
mov dword [rsp + 0x20], eax
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
mov ebx, 0xc000028b
mov dword [rsp + 0x40], ebx
jmp 0x1800058f5
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800051d6
test byte [rcx + 0x1c], 1
je 0x1800051d6
cmp byte [rcx + 0x19], 2
jb 0x1800051d6
mov edx, 0x75
jmp 0x1800051bb
lea r8, [rsp + 0x128]
mov edx, 1
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x1800052c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000d
jne 0x18000528d
lea r8, [rsp + 0x128]
mov edx, 2
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x1800052c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800051d6
test byte [rcx + 0x1c], 1
je 0x1800051d6
cmp byte [rcx + 0x19], 2
jb 0x1800051d6
mov edx, 0x76
lea r9, str.Acquire_user_private_key
jmp 0x1800051c2
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800051d6
test byte [rcx + 0x1c], 1
je 0x1800051d6
cmp byte [rcx + 0x19], 2
jb 0x1800051d6
mov edx, 0x77
lea r9, str.Acquire_user_private_key
jmp 0x1800051c2
mov rbx, qword [rsp + 0x80]
mov eax, dword [rbx + 8]
mov dword [rsp + 0xf8], eax
cmp byte [0x18009b380], r13b
je 0x18000530c
mov ecx, 0x7c4
lea rdx, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x28], rdx
mov word [rsp + 0x20], cx
xor r9d, r9d
mov r8d, 0x4b45443a
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x180005325
mov r8, rax
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
mov qword [rsp + 0xe8], rax
test rax, rax
jne 0x18000536b
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x18000535d
test byte [rcx + 0x1c], 1
je 0x18000535d
cmp byte [rcx + 0x19], 2
jb 0x18000535d
lea edx, [rax + 0x78]
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov ebx, 0xc000009a
mov dword [rsp + 0x40], ebx
jmp 0x1800058f5
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rbx + 0xc]
add rdx, rbx
mov rcx, rax
call fcn.18005f360
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1800053f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800051d6
test byte [rcx + 0x1c], 1
je 0x1800051d6
cmp byte [rcx + 0x19], 2
jb 0x1800051d6
mov edx, 0x79
lea r9, str.Decrypt_FEK
jmp 0x1800051c2
lea rdx, [rsp + 0x70]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsi + 8]
call fcn.1800013b0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180005457
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f5
test byte [rcx + 0x1c], 1
je 0x1800058f5
cmp byte [rcx + 0x19], 2
jb 0x1800058f5
mov edx, 0x7a
lea r9, str.GetSectorSize
mov dword [rsp + 0x20], eax
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
jmp 0x1800058f5
mov ebx, 0xc0000001
mov dword [rsp + 0x40], ebx
mov r12d, 0x7e5
mov r14d, dword [rsp + 0x70]
nop dword [rax + rax]
test ebx, ebx
jns 0x18000560b
mov ebx, r15d
cmp byte [0x18009b380], r13b
je 0x1800054b0
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r12w
xor r9d, r9d
mov r8d, 0x4b45443a
mov edx, r15d
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x1800054c9
mov r8, rbx
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
mov qword [rsp + 0xc8], rax
test rax, rax
jne 0x180005502
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x18000535d
test byte [rcx + 0x1c], 1
je 0x18000535d
cmp byte [rcx + 0x19], 2
jb 0x18000535d
lea edx, [rax + 0x7b]
jmp 0x18000534d
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.18005f850
lea rax, [rsp + 0x114]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, r15d
mov edx, 0x80
mov rcx, rsi
call fcn.1800160d0
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000023
jne 0x1800055cd
mov r8, qword [rsp + 0xc8]
test r8, r8
je 0x1800055af
cmp byte [0x18009b380], r13b
je 0x180005591
mov r9d, 0x7f1
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x4b45443a
lea rdx, [rsp + 0xc8]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x1800055a7
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xc8], r13
xor edx, edx
mov eax, dword [rsp + 0x114]
div r14d
lea r15d, [rax + 1]
imul r15d, r14d
mov dword [rsp + 0x4c], r15d
jmp 0x180005470
test eax, eax
jns 0x180005606
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f5
test byte [rcx + 0x1c], 1
je 0x1800058f5
cmp byte [rcx + 0x19], 2
jb 0x1800058f5
mov edx, 0x7c
lea r9, str.TrfLibGetRawAttribute
jmp 0x18000543e
jmp 0x180005470
lea rax, [rsp + 0x148]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x14c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov edx, 0x80
lea r8d, [r9 + 4]
mov rcx, rsi
call fcn.1800160d0
mov ebx, eax
mov dword [rsp + 0x40], eax
mov ecx, 0x80000000
add eax, ecx
test ecx, eax
jne 0x18000568b
cmp ebx, 0xc0000023
je 0x18000568b
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f5
test byte [rcx + 0x1c], 1
je 0x1800058f5
cmp byte [rcx + 0x19], 2
jb 0x1800058f5
mov edx, 0x7d
mov dword [rsp + 0x20], ebx
lea r9, str.TrfLibGetRawAttribute
jmp 0x180005442
mov esi, r13d
mov dword [rsp + 0x74], r13d
mov dword [rsp + 0x50], r13d
cmp byte [0x18009b380], r13b
je 0x1800056d2
mov eax, 0x80b
lea rcx, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], ax
xor r9d, r9d
lea edx, [r9 + 0x10]
mov r8d, 0x4b45443a
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x1800056ec
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
mov rcx, rax
mov qword [rsp + 0xe0], rax
test rax, rax
jne 0x180005728
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x18000535d
test byte [rcx + 0x1c], 1
je 0x18000535d
cmp byte [rcx + 0x19], 2
jb 0x18000535d
lea edx, [rax + 0x7e]
jmp 0x18000534d
mov rax, qword [0x18009d678]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
cmp esi, r15d
jae 0x180005800
mov dword [rsp + 0x50], r14d
mov r8d, esi
add r8, qword [rsp + 0xc8]
lea r9, [rsp + 0x50]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.180006b40
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1800057a7
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f5
test byte [rcx + 0x1c], 1
je 0x1800058f5
cmp byte [rcx + 0x19], 2
jb 0x1800058f5
mov edx, 0x7f
lea r9, str.DecryptBufferForDef
jmp 0x18000543e
add esi, dword [rsp + 0x50]
mov dword [rsp + 0x74], esi
mov rcx, qword [rsp + 0xe0]
call fcn.180005c40
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1800057fb
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800058f5
test byte [rcx + 0x1c], 1
je 0x1800058f5
cmp byte [rcx + 0x19], 2
jb 0x1800058f5
mov edx, 0x80
lea r9, str.UpdateIvBuffer
jmp 0x18000543e
jmp 0x180005735
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x180005886
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x18000587a
test byte [rcx + 0x1c], 1
je 0x18000587a
cmp byte [rcx + 0x19], 2
jb 0x18000587a
mov edx, 0x81
lea r9, str.Create_output_file
mov dword [rsp + 0x20], ebx
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
add ebx, 0xe8f00000
mov dword [rsp + 0x40], ebx
jmp 0x1800058f5
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x14c]
mov r8d, dword [rsp + 0x148]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800058e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x18000587a
test byte [rcx + 0x1c], 1
je 0x18000587a
cmp byte [rcx + 0x19], 2
jb 0x18000587a
mov edx, 0x82
lea r9, str.Write_output_file
jmp 0x180005866
mov ebx, r13d
mov dword [rsp + 0x40], ebx
jmp 0x1800058f5
mov ebx, 0xe800002f
mov dword [rsp + 0x40], ebx
xor r13d, r13d
mov rax, qword [rsp + 0x60]
cmp rax, 0xffffffffffffffff
je 0x180005909
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xc0], 0
je 0x180005971
cmp byte [0x18009b380], 0
je 0x18000594b
mov r9d, 0x84e
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x4b45443a
lea rdx, [rsp + 0xc0]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180005969
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xc0], r13
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x180005984
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x180005999
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp qword [rsp + 0xe8], 0
je 0x180005a01
cmp byte [0x18009b380], 0
je 0x1800059db
mov r9d, 0x85e
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x4b45443a
lea rdx, [rsp + 0xe8]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x1800059f9
mov r8, qword [rsp + 0xe8]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xe8], r13
cmp qword [rsp + 0xc8], 0
je 0x180005a69
cmp byte [0x18009b380], 0
je 0x180005a43
mov r9d, 0x866
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x4b45443a
lea rdx, [rsp + 0xc8]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180005a61
mov r8, qword [rsp + 0xc8]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xc8], r13
mov r8, qword [rsp + 0xf0]
test r8, r8
je 0x180005acb
cmp byte [0x18009b380], 0
je 0x180005aad
mov r9d, 0x86a
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x4b45443a
lea rdx, [rsp + 0xf0]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180005ac3
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xf0], r13
cmp qword [rsp + 0xe0], 0
je 0x180005b33
cmp byte [0x18009b380], 0
je 0x180005b0d
mov r9d, 0x86e
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x4b45443a
lea rdx, [rsp + 0xe0]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180005b2b
mov r8, qword [rsp + 0xe0]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xe0], r13
cmp qword [rsp + 0xb8], 0
je 0x180005b9b
cmp byte [0x18009b380], 0
je 0x180005b75
mov r9d, 0x872
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x5254533a
lea rdx, [rsp + 0xb8]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180005b93
mov r8, qword [rsp + 0xb8]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rsp + 0xb8], r13
cmp qword [rsp + 0xd0], 0
je 0x180004405
cmp byte [0x18009b380], 0
je 0x180005be3
mov r9d, 0x876
lea rax, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x20], rax
mov r8d, 0x5254533a
lea rdx, [rsp + 0xd0]
lea rcx, [0x18009cc40]
call fcn.18004be40
mov eax, ebx
jmp 0x180005c0a
mov r8, qword [rsp + 0xd0]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov eax, ebx
jmp 0x180005c0a
mov eax, 0xc00000ef
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18005e1d0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret