Function at 0x1401df660
Capabilities:
Delete file
Download url
Get common file path
Read file on windows
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rbp + 0x370], rax
cmp byte [0x1404b9e28], 0
mov r14, r9
mov r15, r8
mov r12, rdx
je 0x1401dfbbe
cmp dword [0x1404ba908], 0
jle 0x1401df6c7
cmp dword [rdx], 0
jle 0x1401df6c7
cmp dword [r8], 0
jle 0x1401df6c7
cmp dword [r9], 0
jle 0x1401df6c7
mov al, 1
jmp 0x1401dfbc0
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [0x1404436d8]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, str.http:__www.3322.org_dyndns_getip
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
xor ebx, ebx
lea r8, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, str.http:__www.3322.org_dyndns_getip
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edi, 2
mov r13d, Ordinal_32
test eax, eax
jne 0x1401df7c3
lea r8, [0x1404397e4]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401df7c3
mov r8d, edi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
test eax, eax
jle 0x1401df7b8
mov rcx, qword [rsp + 0x30]
cmp eax, r13d
cmovg esi, r13d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov edx, esi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [rsp + 0x38], bl
jne 0x1401dfa5c
lea rcx, str.http:__nstool.netease.com_
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, str.http:__nstool.netease.com_
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1401dfa52
lea r8, [0x1404397e4]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401dfa52
mov r8d, edi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x30]
mov esi, eax
test eax, eax
jle 0x1401dfa4c
cmp eax, r13d
cmova esi, r13d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov edx, esi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, str._iframe_src
lea rcx, [rsp + 0x38]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rsi, rax
test rax, rax
je 0x1401dfa43
add rsi, 0xd
mov edx, reloc.SinoSPE.dll_Ordinal_39
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x1401dfa43
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x1fe
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [rsi]
lea rcx, [rbp + 0x170]
cmp al, 0x27
je 0x1401df8f4
nop dword [rax]
movsx eax, al
lea rsi, [rsi + 1]
mov word [rcx], ax
add rcx, rdi
movzx eax, byte [rsi]
cmp al, 0x27
jne 0x1401df8e0
mov word [rcx], bx
lea rcx, [rbp + 0x170]
mov byte [rsp + 0x38], bl
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, [rbp + 0x170]
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1401dfa52
lea r8, [0x1404397e4]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401dfa52
mov r8d, edi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x30]
mov esi, eax
test eax, eax
jle 0x1401dfa4c
cmp eax, r13d
cmova esi, r13d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov edx, esi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x39]
cmp byte [rcx - 1], 0x3a
jne 0x1401df9c5
cmp byte [rcx], 0x20
jne 0x1401df9c5
movzx eax, byte [rcx + 1]
sub al, 0xf
cmp al, 0x2a
jbe 0x1401df9cf
inc edi
inc rcx
cmp edi, 0x20
jb 0x1401df9b0
lea eax, [rdi + 1]
movsxd rcx, eax
cmp rcx, 0x20
jae 0x1401df9ef
lea rcx, [rsp + rcx + 0x38]
cmp byte [rcx], 0x20
je 0x1401df9ef
inc eax
inc rcx
cmp eax, 0x20
jb 0x1401df9e0
movsxd rcx, edi
cmp rcx, 0x20
jae 0x1401dfa43
cmp eax, 0x20
jae 0x1401dfa43
sub eax, edi
lea rdx, [rsp + 0x38]
movsxd rdi, eax
lea rdx, [rdx + rcx]
je 0x1401dfa3d
test rdx, rdx
jne 0x1401dfa26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x1401dfa33
mov r8, rdi
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memmove
cmp rdi, 0x20
jae 0x1401dfbea
mov byte [rsp + rdi + 0x38], bl
jmp 0x1401dfa52
mov byte [rsp + 0x38], bl
jmp 0x1401dfb94
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp byte [rsp + 0x38], bl
je 0x1401dfb94
mov dword [r14], ebx
lea rax, [rsp + 0x38]
mov dword [r15], ebx
mov rdi, 0xffffffffffffffff
mov dword [r12], ebx
mov dword [0x1404ba908], ebx
inc rdi
cmp byte [rax + rdi], bl
jne 0x1401dfa78
movzx eax, byte [rsp + rbx + 0x38]
cmp al, 0x2e
je 0x1401dfa9a
test al, al
je 0x1401dfa9a
inc rbx
cmp rbx, rdi
jbe 0x1401dfa80
jmp 0x1401dfb94
cmp rbx, 0x20
jae 0x1401dfbf0
mov byte [rsp + rbx + 0x38], 0
cmp byte [rsp + 0x38], 0
je 0x1401dfac1
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1404ba908], eax
inc rbx
lea rcx, [rsp + 0x38]
add rcx, rbx
cmp rbx, rdi
ja 0x1401dfb94
movzx eax, byte [rsp + rbx + 0x38]
cmp al, 0x2e
je 0x1401dfaef
test al, al
je 0x1401dfaef
inc rbx
cmp rbx, rdi
jbe 0x1401dfad5
jmp 0x1401dfb94
cmp rbx, 0x20
jae 0x1401dfbf0
mov byte [rsp + rbx + 0x38], 0
cmp byte [rcx], 0
je 0x1401dfb0d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [r12], eax
inc rbx
lea rcx, [rsp + 0x38]
add rcx, rbx
cmp rbx, rdi
ja 0x1401dfb94
nop dword [rax]
movzx eax, byte [rsp + rbx + 0x38]
cmp al, 0x2e
je 0x1401dfb37
test al, al
je 0x1401dfb37
inc rbx
cmp rbx, rdi
jbe 0x1401dfb20
jmp 0x1401dfb94
cmp rbx, 0x20
jae 0x1401dfbf0
mov byte [rsp + rbx + 0x38], 0
cmp byte [rcx], 0
je 0x1401dfb54
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [r15], eax
inc rbx
lea rcx, [rsp + 0x38]
add rcx, rbx
cmp rbx, rdi
ja 0x1401dfb94
movzx eax, byte [rsp + rbx + 0x38]
cmp al, 0x2e
je 0x1401dfb7b
test al, al
je 0x1401dfb7b
inc rbx
cmp rbx, rdi
jbe 0x1401dfb64
jmp 0x1401dfb94
cmp rbx, 0x20
jae 0x1401dfbf0
mov byte [rsp + rbx + 0x38], 0
cmp byte [rcx], 0
je 0x1401dfb94
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [r14], eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x1404ba908], 0
jle 0x1401dfbbe
cmp dword [r12], 0
jle 0x1401dfbbe
cmp dword [r15], 0
jle 0x1401dfbbe
cmp dword [r14], 0
setg al
jmp 0x1401dfbc0
xor al, al
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1403ca460
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1403ca5d4
int3
call fcn.1403ca5d4
int3