Function at 0x180002970
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
jne 0x1800029bb
mov eax, 0xc00000ef
jmp 0x180002a9f
test rdx, rdx
jne 0x1800029ca
mov eax, 0xc00000f0
jmp 0x180002a9f
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 0x180002a54
mov eax, 0xc00000bb
jmp 0x180002a9f
mov eax, dword [0x18009c868]
test eax, eax
jne 0x180002ace
call fcn.180001660
mov ebx, eax
test eax, eax
jns 0x180002acc
lea rdi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180002a9d
test byte [rcx + 0x1c], 1
je 0x180002a9d
cmp byte [rcx + 0x19], 2
jb 0x180002a9d
mov edx, 0x2d
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov eax, ebx
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
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 [0x18009d910]
lea rdi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180002b4d
test byte [rcx + 0x1c], 1
je 0x180002b4d
cmp byte [rcx + 0x19], 5
jb 0x180002b4d
mov edx, 0x2e
mov r9, rsi
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001110
mov rcx, qword [0x18009b358]
mov r12d, 0x3e2
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 0x180002d10
cmp byte [0x18009b380], r14b
je 0x180002ba0
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 0x180002bb9
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 0x180002bfb
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180002bf1
test byte [rcx + 0x1c], 1
je 0x180002bf1
cmp byte [rcx + 0x19], 2
jb 0x180002bf1
lea edx, [rax + 0x2f]
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov ebx, 0xc000009a
jmp 0x180003fae
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.180015980
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000023
jne 0x180002cb7
cmp qword [rsp + 0xc0], 0
je 0x180002c9d
cmp byte [0x18009b380], r14b
je 0x180002c73
mov r9d, 0x3ee
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 0x180002c91
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 0x180002b63
test eax, eax
jns 0x180002d04
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x30
lea r9, str.TrfLibGetRawAttribute
mov dword [rsp + 0x20], eax
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
jmp 0x180003fb2
mov rcx, qword [0x18009b358]
jmp 0x180002b5c
cmp eax, 0x4c
jae 0x180002d50
cmp rcx, rdi
je 0x180002d46
test byte [rcx + 0x1c], 1
je 0x180002d46
cmp byte [rcx + 0x19], 2
jb 0x180002d46
mov edx, 0x31
mov dword [rsp + 0x20], 0x4c
mov r9d, eax
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800010a0
mov ebx, 0xc0000206
jmp 0x180003fae
mov rdx, qword [rsp + 0xc0]
mov r8d, dword [rdx + 0x40]
cmp r8d, eax
ja 0x180003fa9
cmp dword [rdx], eax
ja 0x180003fa9
lea rsi, [rdx + r8]
mov qword [rsp + 0x98], rsi
cmp dword [rsi], 0
jne 0x180002dae
cmp rcx, rdi
je 0x180002da4
test byte [rcx + 0x1c], 1
je 0x180002da4
cmp byte [rcx + 0x19], 2
jb 0x180002da4
mov edx, 0x32
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov ebx, 0xc000028b
jmp 0x180003fae
lea rcx, [rsp + 0xb8]
call fcn.1800025c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180002dfa
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x33
lea r9, str.TrfLibGetUserName
jmp 0x180002ceb
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x100]
call fcn.1800028c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180002e4e
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x34
lea r9, str.TrfLibInitUstrStaticToUpper
jmp 0x180002ceb
mov dword [rsp + 0x68], r13d
cmp byte [0x18009b380], r14b
je 0x180002e8e
mov eax, 0x427
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 0x180002eb1
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 0x180002eea
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180002bf1
test byte [rcx + 0x1c], 1
je 0x180002bf1
cmp byte [rcx + 0x19], 2
jb 0x180002bf1
lea edx, [rax + 0x35]
jmp 0x180002be1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jne 0x180002f0a
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff00
cmp eax, 0x100
jae 0x1800030f8
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
ja 0x1800030f8
lea rdx, str.SYSTEM
lea rcx, [rsp + 0x150]
call fcn.18004a590
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180002f6b
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x36
lea r9, str.UstrInitStatic
jmp 0x180002ceb
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 0x180002fc7
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x37
lea r9, str.UstrCmp
jmp 0x180002ceb
cmp eax, 0x68000008
jne 0x1800030f8
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 0x180003050
cmp byte [0x18009b380], r14b
je 0x18000302e
mov r9d, 0x446
mov qword [rsp + 0x20], r12
mov r8d, 0x5254533a
lea rdx, [rsp + 0xb8]
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180003044
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 0x18000308b
mov ecx, 0x447
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 0x1800030a4
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 0x1800030dd
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180002bf1
test byte [rcx + 0x1c], 1
je 0x180002bf1
cmp byte [rcx + 0x19], 2
jb 0x180002bf1
lea edx, [rax + 0x38]
jmp 0x180002be1
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 0x1800033ec
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 0x180003186
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x39
lea r9, str.GetCredentialsData
jmp 0x180002ceb
cmp qword [rsp + 0x78], 0
je 0x1800037aa
cmp qword [rsp + 0x58], 0
je 0x1800037aa
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x1800037aa
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 0x18000320e
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x3a
lea r9, str.UstrInitStatic
jmp 0x180002ceb
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 0x180003255
mov ebx, 0xc00000f1
mov dword [rsp + 0x40], ebx
jmp 0x18000325d
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180003296
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x3b
mov dword [rsp + 0x20], ebx
lea r9, str.UstrChr
jmp 0x180002cef
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 0x180003300
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x3c
lea r9, str.UstrChr
jmp 0x180002ceb
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x100]
call fcn.1800028c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180003354
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x3d
lea r9, str.TrfLibInitUstrStaticToUpper
jmp 0x180002ceb
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 0x1800033b0
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x3e
lea r9, str.UstrCmp
jmp 0x180002ceb
cmp eax, 0x68000008
jne 0x180003414
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800033e4
test byte [rcx + 0x1c], 1
je 0x1800033e4
cmp byte [rcx + 0x19], 5
jb 0x1800033e4
mov edx, 0x3f
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 0x1800037c4
mov ebx, r13d
movzx eax, byte [rsp + 0x44]
cmp al, 1
setne bl
add ebx, 0xe800040a
mov dword [rsp + 0x40], ebx
jmp 0x180003fb5
mov esi, 1
mov dword [rsp + 0x6c], esi
cmp esi, 0xc
jg 0x1800036f8
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 0x18000360c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1800034a5
cmp eax, 0xea
je 0x1800034a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x18000349e
test byte [rcx + 0x1c], 1
je 0x18000349e
cmp byte [rcx + 0x19], 2
jb 0x18000349e
mov edx, 0x42
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 0x180003419
mov eax, dword [rsp + 0xd8]
mov r13d, eax
mov dword [rsp + 0x68], eax
mov r8, qword [rsp + 0xd0]
test r8, r8
je 0x18000351e
cmp byte [0x18009b380], r14b
je 0x1800034f7
mov r9d, 0x4a2
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 0x18000350d
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 0x180003558
lea rcx, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x28], rcx
mov ecx, 0x4a3
mov word [rsp + 0x20], cx
xor r9d, r9d
mov r8d, 0x5254533a
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x180003571
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 0x1800035aa
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180002bf1
test byte [rcx + 0x1c], 1
je 0x180002bf1
cmp byte [rcx + 0x19], 2
jb 0x180002bf1
lea edx, [rax + 0x40]
jmp 0x180002be1
lea r8, [rsp + 0xd8]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x18000360c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003601
test byte [rcx + 0x1c], 1
je 0x180003601
cmp byte [rcx + 0x19], 2
jb 0x180003601
mov edx, 0x41
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 0x180003fae
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x100]
call fcn.1800028c0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180003660
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x43
lea r9, str.TrfLibInitUstrStaticToUpper
jmp 0x180002ceb
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 0x1800036bc
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x44
lea r9, str.UstrCmp
jmp 0x180002ceb
cmp eax, 0x68000008
jne 0x1800036f1
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x1800033e4
test byte [rcx + 0x1c], 1
je 0x1800033e4
cmp byte [rcx + 0x19], 5
jb 0x1800033e4
mov edx, 0x45
jmp 0x1800033d4
inc esi
jmp 0x180003419
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 0x180003753
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb2
test byte [rcx + 0x1c], 1
je 0x180003fb2
cmp byte [rcx + 0x19], 2
jb 0x180003fb2
mov edx, 0x46
lea r9, str.UstrCmp
jmp 0x180002ceb
cmp eax, 0x68000008
jne 0x18000378c
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003787
test byte [rcx + 0x1c], 1
je 0x180003787
cmp byte [rcx + 0x19], 5
jb 0x180003787
mov edx, 0x47
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 0x180003110
mov eax, dword [r12]
add r12, rax
mov qword [rsp + 0x90], r12
inc esi
mov dword [rsp + 0x48], esi
jmp 0x180003110
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 0x1800038c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800038a4
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003830
test byte [rcx + 0x1c], 1
je 0x180003830
cmp byte [rcx + 0x19], 3
jb 0x180003830
mov edx, 0x48
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 0x1800038c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003896
test byte [rcx + 0x1c], 1
je 0x180003896
cmp byte [rcx + 0x19], 2
jb 0x180003896
mov edx, 0x49
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 0x180003fb5
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003896
test byte [rcx + 0x1c], 1
je 0x180003896
cmp byte [rcx + 0x19], 2
jb 0x180003896
mov edx, 0x4a
jmp 0x18000387b
lea r8, [rsp + 0x128]
mov edx, 1
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x180003982
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000d
jne 0x18000394d
lea r8, [rsp + 0x128]
mov edx, 2
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x180003982
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003896
test byte [rcx + 0x1c], 1
je 0x180003896
cmp byte [rcx + 0x19], 2
jb 0x180003896
mov edx, 0x4b
lea r9, str.Acquire_user_private_key
jmp 0x180003882
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003896
test byte [rcx + 0x1c], 1
je 0x180003896
cmp byte [rcx + 0x19], 2
jb 0x180003896
mov edx, 0x4c
lea r9, str.Acquire_user_private_key
jmp 0x180003882
mov rbx, qword [rsp + 0x80]
mov eax, dword [rbx + 8]
mov dword [rsp + 0xf8], eax
cmp byte [0x18009b380], r13b
je 0x1800039cc
mov ecx, 0x53a
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 0x1800039e5
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 0x180003a2b
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003a1d
test byte [rcx + 0x1c], 1
je 0x180003a1d
cmp byte [rcx + 0x19], 2
jb 0x180003a1d
lea edx, [rax + 0x4d]
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov ebx, 0xc000009a
mov dword [rsp + 0x40], ebx
jmp 0x180003fb5
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 0x180003ab1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003896
test byte [rcx + 0x1c], 1
je 0x180003896
cmp byte [rcx + 0x19], 2
jb 0x180003896
mov edx, 0x4e
lea r9, str.Decrypt_FEK
jmp 0x180003882
lea rdx, [rsp + 0x70]
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1800013b0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x180003b16
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb5
test byte [rcx + 0x1c], 1
je 0x180003fb5
cmp byte [rcx + 0x19], 2
jb 0x180003fb5
mov edx, 0x4f
lea r9, str.GetSectorSize
mov dword [rsp + 0x20], eax
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
jmp 0x180003fb5
mov ebx, 0xc0000001
mov dword [rsp + 0x40], ebx
mov r12d, 0x55e
mov r14d, dword [rsp + 0x70]
nop word [rax + rax]
test ebx, ebx
jns 0x180003ccb
mov ebx, r15d
cmp byte [0x18009b380], r13b
je 0x180003b70
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 0x180003b89
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 0x180003bc2
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003a1d
test byte [rcx + 0x1c], 1
je 0x180003a1d
cmp byte [rcx + 0x19], 2
jb 0x180003a1d
lea edx, [rax + 0x50]
jmp 0x180003a0d
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.180015980
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp eax, 0xc0000023
jne 0x180003c8d
mov r8, qword [rsp + 0xc8]
test r8, r8
je 0x180003c6f
cmp byte [0x18009b380], r13b
je 0x180003c51
mov r9d, 0x56a
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 0x180003c67
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 0x180003b30
test eax, eax
jns 0x180003cc6
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb5
test byte [rcx + 0x1c], 1
je 0x180003fb5
cmp byte [rcx + 0x19], 2
jb 0x180003fb5
mov edx, 0x51
lea r9, str.TrfLibGetRawAttribute
jmp 0x180003afd
jmp 0x180003b30
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.180015980
mov ebx, eax
mov dword [rsp + 0x40], eax
mov ecx, 0x80000000
add eax, ecx
test ecx, eax
jne 0x180003d4b
cmp ebx, 0xc0000023
je 0x180003d4b
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb5
test byte [rcx + 0x1c], 1
je 0x180003fb5
cmp byte [rcx + 0x19], 2
jb 0x180003fb5
mov edx, 0x52
mov dword [rsp + 0x20], ebx
lea r9, str.TrfLibGetRawAttribute
jmp 0x180003b01
mov esi, r13d
mov dword [rsp + 0x74], r13d
mov dword [rsp + 0x50], r13d
cmp byte [0x18009b380], r13b
je 0x180003d92
mov eax, 0x584
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 0x180003dac
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 0x180003de8
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003a1d
test byte [rcx + 0x1c], 1
je 0x180003a1d
cmp byte [rcx + 0x19], 2
jb 0x180003a1d
lea edx, [rax + 0x53]
jmp 0x180003a0d
mov rax, qword [0x18009d678]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
cmp esi, r15d
jae 0x180003ec0
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 0x180003e67
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb5
test byte [rcx + 0x1c], 1
je 0x180003fb5
cmp byte [rcx + 0x19], 2
jb 0x180003fb5
mov edx, 0x54
lea r9, str.DecryptBufferForDef
jmp 0x180003afd
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 0x180003ebb
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003fb5
test byte [rcx + 0x1c], 1
je 0x180003fb5
cmp byte [rcx + 0x19], 2
jb 0x180003fb5
mov edx, 0x55
lea r9, str.UpdateIvBuffer
jmp 0x180003afd
jmp 0x180003df5
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 0x180003f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003f3a
test byte [rcx + 0x1c], 1
je 0x180003f3a
cmp byte [rcx + 0x19], 2
jb 0x180003f3a
mov edx, 0x56
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 0x180003fb5
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 0x180003fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18009b358]
cmp rcx, rdi
je 0x180003f3a
test byte [rcx + 0x1c], 1
je 0x180003f3a
cmp byte [rcx + 0x19], 2
jb 0x180003f3a
mov edx, 0x57
lea r9, str.Write_output_file
jmp 0x180003f26
mov ebx, r13d
mov dword [rsp + 0x40], ebx
jmp 0x180003fb5
mov ebx, 0xe800002f
mov dword [rsp + 0x40], ebx
xor r13d, r13d
mov rax, qword [rsp + 0x60]
cmp rax, 0xffffffffffffffff
je 0x180003fc9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xc0], 0
je 0x180004031
cmp byte [0x18009b380], 0
je 0x18000400b
mov r9d, 0x5c8
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 0x180004029
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 0x180004044
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x180004059
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp qword [rsp + 0xe8], 0
je 0x1800040c1
cmp byte [0x18009b380], 0
je 0x18000409b
mov r9d, 0x5d8
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 0x1800040b9
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 0x180004129
cmp byte [0x18009b380], 0
je 0x180004103
mov r9d, 0x5e0
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 0x180004121
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 0x18000418b
cmp byte [0x18009b380], 0
je 0x18000416d
mov r9d, 0x5e4
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 0x180004183
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 0x1800041f3
cmp byte [0x18009b380], 0
je 0x1800041cd
mov r9d, 0x5e8
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 0x1800041eb
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 0x18000425b
cmp byte [0x18009b380], 0
je 0x180004235
mov r9d, 0x5ec
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 0x180004253
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 0x180002a9d
cmp byte [0x18009b380], 0
je 0x1800042a4
mov r9d, 0x5f0
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 0x180002a9d
mov r8, qword [rsp + 0xd0]
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
jmp 0x180002a9d