Function at 0x1400028d0
Capabilities:
Create http request
Get geographical location
Read data from internet
Receive data

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x1040]
mov eax, 0x1140
call fcn.14003dca0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1160], rbx
mov qword [rsp + 0x1168], rsi
mov qword [rsp + 0x1170], rdi
mov rax, qword [0x140058690]
xor rax, rsp
mov qword [rbp + 0x1030], rax
call fcn.140002590
mov rcx, rax
call fcn.140002500
mov r12, rax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov edi, ebx
mov qword [rsp + 0x38], rbx
mov esi, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
lea rcx, str.GeoLocationChecker
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r13, rax
test rax, rax
jne 0x1400029d0
lea rcx, str.Failed_to_initialize_WinINet.
call fcn.140005e80
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003a50
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400029a5
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 0x1400029cb
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400029c2
or edx, 4
xor r8d, r8d
call fcn.140001a10
nop
jmp 0x140002d37
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r12, rax
test rax, rax
jne 0x140002a68
lea rcx, str.Failed_to_open_URL.
call fcn.140005e80
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003a50
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x140002a34
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 0x140002a59
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002a51
or edx, 4
xor r8d, r8d
call fcn.140001a10
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x140002d37
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002ac8
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002ac3
lea r9, [rbp + rax + 0x30]
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140006450
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x30]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x140002a84
mov rdi, qword [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp rdi, rsi
jne 0x140002b47
lea rcx, str.No_data_received_from_the_URL.
call fcn.140005e80
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003a50
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002b1c
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 0x140002b42
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140002b39
or edx, 4
xor r8d, r8d
call fcn.140001a10
nop
jmp 0x140002d2a
lea rcx, [rbp - 0x50]
call fcn.140003d80
nop
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400065f0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.140003f20
nop
mov edx, 2
lea rcx, [rbp - 0x78]
call fcn.140004940
cmp rax, 0xffffffffffffffff
je 0x140002c6f
lea rcx, str.The_IP_address_is_from_China.
call fcn.1400060d0
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.140003b90
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002be4
mov rcx, qword [rcx + rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove r12d, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test r12d, r12d
je 0x140002c0c
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002c03
or edx, 4
xor r8d, r8d
call fcn.140001a10
nop
cmp qword [rbp - 0x60], 8
jb 0x140002c1c
mov rcx, qword [rbp - 0x78]
call fcn.14002cf50
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
cmp qword [rsp + 0x78], 0x10
jb 0x140002c3e
mov rcx, qword [rsp + 0x60]
call fcn.14002cf50
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
lea rcx, [rbp - 0x50]
call fcn.140003e60
nop
test rdi, rdi
je 0x140002c68
mov rcx, rdi
call fcn.14002cf50
mov al, 1
jmp 0x140002d39
lea rcx, str.The_IP_address_is_not_from_China.
call fcn.1400060d0
mov rsi, rax
mov edx, 0xa
mov rcx, rax
call fcn.140003b90
mov r12d, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140002cb3
mov rcx, qword [rcx + rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove r12d, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test r12d, r12d
je 0x140002cdb
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140002cd2
or edx, 4
xor r8d, r8d
call fcn.140001a10
nop
cmp qword [rbp - 0x60], 8
jb 0x140002ceb
mov rcx, qword [rbp - 0x78]
call fcn.14002cf50
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
cmp qword [rsp + 0x78], 0x10
jb 0x140002d0d
mov rcx, qword [rsp + 0x60]
call fcn.14002cf50
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], rbx
mov byte [rsp + 0x60], 0
lea rcx, [rbp - 0x50]
call fcn.140003e60
nop
test rdi, rdi
je 0x140002d37
mov rcx, rdi
call fcn.14002cf50
xor al, al
mov rcx, qword [rbp + 0x1030]
xor rcx, rsp
call fcn.14002c0a0
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret