Function at 0x50fe30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568022
mov eax, dword fs:[0]
push eax
mov eax, 0x1710
call fcn.00554650
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x170c], edx
mov dword [ebp - 0x16fc], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x1710], eax
mov eax, dword [ebp + 0x10]
push 0x1818
mov dword [ebp - 0x1714], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
mov dword [ebp - 0x1700], eax
add esp, 4
mov dword [ebp - 0x1708], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x50feef
mov dword [edi + 0x800], 0xffffffff
mov dword [edi + 0x804], 0
mov dword [edi + 0x808], 0
mov byte [edi + 0x180c], 0
mov dword [edi + 0x1810], 0x3c
mov dword [edi + 0x1814], 0x3c
mov byte [edi + 0x80c], 0
jmp 0x50fef7
xor edi, edi
mov dword [ebp - 0x1700], edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1718], edi
mov dword [ebp - 4], 1
xor eax, eax
push eax
push eax
push 0x100
mov dword [ebp - 0x1708], eax
lea eax, [ebp - 0x32c]
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
call esi
push 0
push 0
push 0x100
lea eax, [ebp - 0x42c]
mov byte [ebp - 0x22d], 0
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call esi
push dword [ebp + 0x24]
mov ecx, edi
mov byte [ebp - 0x32d], 0
push dword [ebp - 0x16fc]
call fcn.0050fb30
movzx esi, al
test al, al
je 0x50ffd0
mov ebx, dword [ebp + 0x28]
mov esi, ebx
and esi, 3
cmp esi, 3
jne 0x50ff84
cmp dword [ebp + 0x24], 0x1d1
je 0x50ff8d
cmp esi, 2
jne 0x510039
mov ecx, edi
call fcn.0050f4d0
test al, al
je 0x51002f
cmp esi, 3
mov ecx, edi
sete al
movzx eax, al
push eax
call fcn.0050f680
test al, al
jne 0x51002a
cmp esi, 2
je 0x51000a
push dword [ebp + 0x24]
mov ecx, edi
and ebx, 0xfffffffd
push dword [ebp - 0x16fc]
call fcn.0050fb30
movzx esi, al
test al, al
jne 0x50ff71
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x50ffec
mov ecx, edi
call fcn.0050faa0
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x510026
mov ecx, edi
call fcn.0050faa0
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x50ffee
and ebx, 0xfffffffe
jmp 0x510039
and ebx, 3
cmp bl, 3
jne 0x51000a
xor ebx, ebx
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x51000a
cmp byte [ebp - 0x32c], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, dword [sym.imp.MSVCR120.dll__snprintf_s]
je 0x510c20
mov dword [ebp - 0x16f0], 0
mov edi, edi
lea ecx, [ebp - 0x1704]
mov byte [ebp - 0x22c], 0
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x1704], 0x1ff
push ecx
call eax
lea eax, [ebp - 0x22c]
push eax
push str.EHLO__s_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call esi
lea ecx, [ebp - 0x142c]
add esp, 0x14
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5100c0
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x5100e3
push ecx
push ecx
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x5100ff
push dword [edi + 0x1814]
lea edx, [ebp - 0x142c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
mov dword [ebp - 0x16f8], eax
cmp eax, 0xffffffff
je 0x51000a
lea esi, [edi + 0x80c]
mov edx, str.AUTH
mov ecx, esi
call fcn.0050e1e0
mov dword [ebp - 0x16f4], eax
test eax, eax
je 0x510188
mov edx, str.DIGEST_MD5
mov ecx, esi
call fcn.0050e1e0
mov edx, str.CRAM_MD5
lea ecx, [edi + 0x80c]
lea esi, [eax + eax]
call fcn.0050e1e0
or eax, esi
lea ecx, [edi + 0x80c]
mov edx, str.PLAIN
lea esi, [eax + eax]
call fcn.0050e1e0
or eax, esi
lea ecx, [edi + 0x80c]
mov edx, str.LOGIN
lea esi, [eax + eax]
call fcn.0050e1e0
or eax, esi
lea esi, [edi + 0x80c]
mov dword [ebp - 0x16f0], eax
cmp dword [ebp - 0x16f8], 0x190
jge 0x510c15
test bl, 1
je 0x510231
mov edx, str.STARTTLS
mov ecx, esi
call fcn.0050e1e0
test eax, eax
jne 0x5101b9
cmp dword [ebp - 0x16f4], eax
jne 0x510231
mov ecx, edi
call fcn.0050f4d0
test al, al
je 0x510231
cmp byte [edi + 0x180c], 0
je 0x5101de
push ecx
push 0xa
push str.STARTTLS_r_n
mov ecx, edi
call fcn.0050ee90
jmp 0x5101fa
push dword [edi + 0x1814]
mov edx, str.STARTTLS_r_n
push ecx
mov ecx, dword [edi + 0x800]
push 0xa
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x510231
push 0
mov ecx, edi
call fcn.0050f680
test al, al
je 0x510231
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
and ebx, 0xfffffffe
mov esi, dword [sym.imp.MSVCR120.dll__snprintf_s]
jmp 0x510070
mov ebx, dword [ebp - 0x16f0]
test ebx, ebx
jne 0x510246
mov ebx, 1
mov dword [ebp - 0x16f0], ebx
test bl, 1
je 0x5104c0
cmp byte [edi + 0x180c], 0
je 0x510269
push ecx
push 0xc
push str.AUTH_LOGIN_r_n
mov ecx, edi
call fcn.0050ee90
jmp 0x510285
push dword [edi + 0x1814]
mov edx, str.AUTH_LOGIN_r_n
push ecx
mov ecx, dword [edi + 0x800]
push 0xc
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0x14e
jne 0x5104c0
lea esi, [edi + 0x80c]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5102a2
sub ecx, edx
cmp ecx, 4
jbe 0x5104c0
mov edx, esi
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x5102c0
lea eax, [ebp - 0x16f4]
sub edx, ecx
push eax
lea eax, [ebp - 0x22c]
add edx, 0xfffffffc
push 0x200
push eax
lea ecx, [edi + 0x810]
call fcn.004d1890
add esp, 0xc
test al, al
je 0x5104ba
lea edx, [ebp - 0x32c]
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x510300
lea eax, [ebp - 0x16f4]
sub edx, ecx
push eax
lea eax, [ebp - 0x142c]
push 0x1000
push eax
lea ecx, [ebp - 0x32c]
call fcn.004d16c0
add esp, 0xc
lea ecx, [ebp - 0x142c]
mov edx, 0x1000
push 0x5762fc
call fcn.0052fa60
lea ecx, [ebp - 0x142c]
add esp, 4
lea edx, [ecx + 1]
jmp 0x510350
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510350
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x510373
push ecx
push ecx
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x51038f
push dword [edi + 0x1814]
lea edx, [ebp - 0x142c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0x14e
jne 0x5104ba
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5103a6
sub ecx, edx
cmp ecx, 4
jbe 0x5104ba
lea edx, [esi + 1]
jmp 0x5103c0
mov al, byte [esi]
inc esi
test al, al
jne 0x5103c0
lea eax, [ebp - 0x16f4]
sub esi, edx
push eax
lea eax, [ebp - 0x22c]
push 0x200
push eax
lea edx, [esi - 4]
lea ecx, [edi + 0x810]
call fcn.004d1890
add esp, 0xc
test al, al
je 0x5104ba
lea edx, [ebp - 0x42c]
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x510400
lea eax, [ebp - 0x16f4]
sub edx, ecx
push eax
lea eax, [ebp - 0x142c]
push 0x1000
push eax
lea ecx, [ebp - 0x42c]
call fcn.004d16c0
add esp, 0xc
lea ecx, [ebp - 0x142c]
mov edx, 0x1000
push 0x5762fc
call fcn.0052fa60
lea ecx, [ebp - 0x142c]
add esp, 4
lea edx, [ecx + 1]
jmp 0x510450
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510450
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x510473
push ecx
push ecx
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x51048f
push dword [edi + 0x1814]
lea edx, [ebp - 0x142c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
xor ecx, ecx
cmp eax, 0x190
setl cl
dec ecx
and ecx, dword [ebp - 0x16f0]
mov ebx, ecx
mov dword [ebp - 0x16f0], ebx
jmp 0x5104c0
mov ebx, dword [ebp - 0x16f0]
mov esi, dword [sym.imp.MSVCR120.dll_strcpy_s]
test bl, 2
je 0x5106f3
lea ecx, [ebp - 0x32c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5104d8
sub ecx, edx
lea eax, [ebp - 0x32c]
lea ebx, [ecx + 1]
mov dword [ebp - 0x16f8], ebx
cmp ecx, 0x200
jae 0x51050c
push eax
lea eax, [ebp - 0x22c]
push 0x200
push eax
call esi
add esp, 0xc
jmp 0x51052b
push 0x1ff
push eax
lea eax, [ebp - 0x22c]
push 0x200
push eax
call dword [sym.imp.MSVCR120.dll_strncpy_s]
add esp, 0x10
mov byte [ebp - 0x2d], 0
mov esi, 0x200
sub esi, ebx
lea ebx, [ebp + ebx - 0x22c]
je 0x510580
lea ecx, [ebp - 0x22c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510544
sub ecx, edx
cmp ecx, esi
jae 0x510565
lea eax, [ebp - 0x22c]
push eax
push esi
push ebx
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
jmp 0x510580
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push ebx
call dword [sym.imp.MSVCR120.dll_strncpy_s]
add esp, 0x10
mov byte [ebx + esi - 1], 0
mov eax, dword [ebp - 0x16f8]
lea esi, [ebp - 0x22c]
mov ebx, 0x200
lea ecx, [eax + eax]
mov dword [ebp - 0x16f8], ecx
lea esi, [esi + ecx]
sub ebx, ecx
je 0x5105fa
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5105b0
sub ecx, edx
cmp ecx, ebx
jae 0x5105d9
lea eax, [ebp - 0x42c]
push eax
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_strcpy_s]
push esi
call ebx
mov ecx, dword [ebp - 0x16f8]
add esp, 0xc
jmp 0x510600
lea eax, [ebx - 1]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
push esi
call dword [sym.imp.MSVCR120.dll_strncpy_s]
mov ecx, dword [ebp - 0x16f8]
add esp, 0x10
mov byte [esi + ebx - 1], 0
mov ebx, dword [sym.imp.MSVCR120.dll_strcpy_s]
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x510603
push str.AUTH_PLAIN
lea eax, [ebp - 0x142c]
sub esi, edx
push 0x1000
push eax
add esi, ecx
call ebx
lea ecx, [ebp - 0x142c]
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510630
sub ecx, edx
lea eax, [ebp - 0x16f4]
push eax
mov eax, 0x1000
lea edx, [esi + 1]
sub eax, ecx
push eax
lea eax, [ebp - 0x142c]
add eax, ecx
lea ecx, [ebp - 0x22c]
push eax
call fcn.004d16c0
add esp, 0xc
lea ecx, [ebp - 0x142c]
mov edx, 0x1000
push 0x5762fc
call fcn.0052fa60
lea ecx, [ebp - 0x142c]
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510683
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x5106a6
push ecx
push ecx
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x5106c2
push dword [edi + 0x1814]
lea edx, [ebp - 0x142c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
mov esi, dword [sym.imp.MSVCR120.dll_strcpy_s]
xor ecx, ecx
cmp eax, 0x190
setl cl
dec ecx
and ecx, dword [ebp - 0x16f0]
mov eax, ecx
mov dword [ebp - 0x16f0], eax
jmp 0x5106f9
mov eax, dword [ebp - 0x16f0]
test al, 8
je 0x510942
cmp byte [edi + 0x180c], 0
je 0x51071b
push ecx
push 0x11
push str.AUTH_DIGEST_MD5_r_n
mov ecx, edi
call fcn.0050ee90
jmp 0x510737
push dword [edi + 0x1814]
mov edx, str.AUTH_DIGEST_MD5_r_n
push ecx
mov ecx, dword [edi + 0x800]
push 0x11
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0x14e
jne 0x51093c
lea edx, [edi + 0x80c]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x510752
sub edx, ecx
cmp edx, 4
jbe 0x5108f6
lea eax, [ebp - 0x16f4]
add edx, 0xfffffffc
push eax
lea eax, [ebp - 0x142c]
push 0x1000
push eax
lea ecx, [edi + 0x810]
call fcn.004d1890
add esp, 0xc
test al, al
je 0x5108f6
mov eax, dword [ebp - 0x16f4]
cmp eax, 0x1000
jae 0x5108f1
push 0
push 0
push 0x200
mov byte [ebp + eax - 0x142c], 0
lea eax, [ebp - 0x22c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x16fc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x142c]
push ecx
push eax
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0050e620
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00511310
test bl, bl
je 0x51093c
lea ecx, [ebp - 0x142c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510846
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x510869
push ecx
push ecx
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x510885
push dword [edi + 0x1814]
lea edx, [ebp - 0x142c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x14e
jne 0x51093c
cmp byte [edi + 0x180c], 0
je 0x5108ba
push ecx
push 2
push 0x5762fc
mov ecx, edi
call fcn.0050ee90
jmp 0x5108d6
push dword [edi + 0x1814]
mov edx, 0x5762fc
push ecx
mov ecx, dword [edi + 0x800]
push 2
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x51093c
xor eax, eax
jmp 0x510942
call fcn.005538fc
cmp byte [edi + 0x180c], 0
je 0x510910
push ecx
push 2
push 0x5762fc
mov ecx, edi
call fcn.0050ee90
jmp 0x51092c
push dword [edi + 0x1814]
mov edx, 0x5762fc
push ecx
mov ecx, dword [edi + 0x800]
push 2
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
mov eax, dword [ebp - 0x16f0]
test al, 4
je 0x510b4f
cmp byte [edi + 0x180c], 0
je 0x510964
push ecx
push 0xf
push str.AUTH_CRAM_MD5_r_n
mov ecx, edi
call fcn.0050ee90
jmp 0x510980
push dword [edi + 0x1814]
mov edx, str.AUTH_CRAM_MD5_r_n
push ecx
mov ecx, dword [edi + 0x800]
push 0xf
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0x14e
jne 0x510b4f
lea edx, [edi + 0x80c]
lea ecx, [edx + 1]
jmp 0x5109a0
mov al, byte [edx]
inc edx
test al, al
jne 0x5109a0
sub edx, ecx
cmp edx, 4
jbe 0x510bca
lea eax, [ebp - 0x16f4]
add edx, 0xfffffffc
push eax
lea eax, [ebp - 0x142c]
push 0x1000
push eax
lea ecx, [edi + 0x810]
call fcn.004d1890
add esp, 0xc
test al, al
je 0x510bca
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5109e7
sub ecx, edx
lea eax, [ebp - 0x42c]
push ecx
push eax
push dword [ebp - 0x16f4]
lea edx, [ebp - 0x142c]
lea ecx, [ebp - 0x24]
call fcn.00511cd0
add esp, 0xc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x22c]
call fcn.00512000
lea ecx, [ebp - 0x32c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510a26
sub ecx, edx
lea eax, [ebp - 0x32c]
cmp ecx, 0x1000
jae 0x510a51
push eax
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call esi
add esp, 0xc
jmp 0x510a73
push 0xfff
push eax
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call dword [sym.imp.MSVCR120.dll_strncpy_s]
add esp, 0x10
mov byte [ebp - 0x42d], 0
push 0x576544
mov edx, 0x1000
lea ecx, [ebp - 0x142c]
call fcn.0052fa60
add esp, 4
lea eax, [ebp - 0x22c]
mov edx, 0x1000
lea ecx, [ebp - 0x142c]
push eax
call fcn.0052fa60
lea edx, [ebp - 0x142c]
add esp, 4
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x510ab0
lea eax, [ebp - 0x16f4]
sub edx, ecx
push eax
lea eax, [ebp - 0x22c]
push 0x200
push eax
lea ecx, [ebp - 0x142c]
call fcn.004d16c0
add esp, 0xc
lea ecx, [ebp - 0x22c]
mov edx, 0x200
push 0x5762fc
call fcn.0052fa60
lea ecx, [ebp - 0x22c]
add esp, 4
lea edx, [ecx + 1]
jmp 0x510b00
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510b00
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x510b23
push ecx
push ecx
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x510b3f
push dword [edi + 0x1814]
lea edx, [ebp - 0x22c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
mov esi, dword [sym.imp.MSVCR120.dll__snprintf_s]
push dword [ebp - 0x170c]
lea eax, [ebp - 0x142c]
push str.MAIL_FROM:___S__r_n
push 0xffffffffffffffff
push 0x1000
push eax
call esi
add esp, 0x14
lea ecx, [ebp - 0x142c]
call fcn.00530580
lea eax, [ebp - 0x22c]
push eax
push ecx
lea ecx, [ebp - 0x142c]
call fcn.00530430
lea ecx, [ebp - 0x142c]
add esp, 8
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510ba0
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x510ccf
push ecx
push ecx
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x510ceb
cmp byte [edi + 0x180c], 0
je 0x510be4
push ecx
push 2
push 0x5762fc
mov ecx, edi
call fcn.0050ee90
jmp 0x510c00
push dword [edi + 0x1814]
mov edx, 0x5762fc
push ecx
mov ecx, dword [edi + 0x800]
push 2
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
jne 0x510b4f
jmp 0x51000a
mov eax, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, dword [sym.imp.MSVCR120.dll__snprintf_s]
lea ecx, [ebp - 0x1704]
mov byte [ebp - 0x22c], 0
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x1704], 0x1ff
push ecx
call eax
lea eax, [ebp - 0x22c]
push eax
push str.HELO__s_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call esi
lea ecx, [ebp - 0x142c]
add esp, 0x14
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510c70
sub ecx, edx
cmp byte [edi + 0x180c], al
je 0x510c93
push ecx
push ecx
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050ee90
jmp 0x510caf
push dword [edi + 0x1814]
lea edx, [ebp - 0x142c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x51000a
jmp 0x510b55
push dword [edi + 0x1814]
lea edx, [ebp - 0x142c]
push ecx
push ecx
mov ecx, dword [edi + 0x800]
call fcn.004f7f90
add esp, 0xc
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x51000a
mov eax, dword [ebp - 0x1710]
xor ecx, ecx
mov esi, eax
cmp cx, word [eax]
je 0x51000a
mov ebx, dword [sym.imp.MSVCR120.dll_wcschr]
nop
movzx eax, word [esi]
push eax
push 0x593134
call ebx
add esp, 8
test eax, eax
je 0x510d48
movzx eax, word [esi + 2]
add esi, 2
push eax
push 0x593134
call ebx
add esp, 8
test eax, eax
jne 0x510d32
xor eax, eax
cmp ax, word [esi]
je 0x510e14
push 0x593134
push esi
call dword [sym.imp.MSVCR120.dll_wcscspn]
add esp, 8
lea eax, [esi + eax*2]
mov dword [ebp - 0x16fc], eax
sub eax, esi
sar eax, 1
cmp eax, 0xff
jbe 0x510d7b
mov eax, 0xff
add eax, eax
push eax
mov dword [ebp - 0x16f8], eax
lea eax, [ebp - 0x162c]
push esi
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 0x16f8]
add esp, 0xc
cmp eax, 0x200
jae 0x5108f1
xor ecx, ecx
mov word [ebp + eax - 0x162c], cx
lea eax, [ebp - 0x162c]
push eax
push str.RCPT_TO:___S__r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call dword [sym.imp.MSVCR120.dll__snprintf_s]
add esp, 0x14
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050f8b0
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x510e01
mov dword [ebp - 0x1708], 1
mov eax, dword [ebp - 0x16fc]
xor ecx, ecx
mov esi, eax
cmp cx, word [eax]
jne 0x510d20
mov eax, dword [ebp - 0x1708]
test eax, eax
je 0x51000a
push str.DATA_r_n
mov ecx, edi
call fcn.0050f8b0
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x51000a
push dword [ebp - 0x170c]
mov ebx, dword [sym.imp.MSVCR120.dll__snprintf_s]
lea eax, [ebp - 0x142c]
push str.From:__S_r_n
push 0xffffffffffffffff
push 0x1000
push eax
call ebx
add esp, 0x14
lea ecx, [ebp - 0x142c]
call fcn.00530580
lea eax, [ebp - 0x22c]
push eax
push ecx
lea ecx, [ebp - 0x142c]
call fcn.00530430
add esp, 8
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050f8b0
mov eax, dword [ebp - 0x1710]
push eax
push str.To:__S_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050f8b0
lea eax, [ebp - 0x16ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x16dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ebx, dword [ebp - 0x16dc]
cmp eax, 1
jne 0x510ef6
add ebx, dword [ebp - 0x1688]
jmp 0x510f01
cmp eax, 2
jne 0x510f07
add ebx, dword [ebp - 0x1634]
mov dword [ebp - 0x16dc], ebx
mov eax, 0x88888889
imul ebx
mov eax, ebx
add edx, ebx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov ecx, esi
shl ecx, 4
sub ecx, esi
shl ecx, 2
sub eax, ecx
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
mov esi, dword [sym.imp.MSVCR120.dll__snprintf_s]
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
push ecx
push eax
xor eax, eax
test ebx, ebx
setns al
lea eax, [eax*2 + 0x2b]
push eax
movzx eax, word [ebp - 0x16e0]
push eax
movzx eax, word [ebp - 0x16e2]
push eax
movzx eax, word [ebp - 0x16e4]
push eax
movzx eax, word [ebp - 0x16ec]
push eax
movzx eax, word [ebp - 0x16ea]
push dword [eax*4 + 0x5933a4]
movzx eax, word [ebp - 0x16e6]
push eax
movzx eax, word [ebp - 0x16e8]
push dword [eax*4 + 0x593388]
lea eax, [ebp - 0x142c]
push str.Date:__s___d__s__d__02d:_02d:_02d__c_02d_02d_r_n
push 0xffffffffffffffff
push 0x1000
push eax
call esi
add esp, 0x38
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050f8b0
mov ebx, dword [ebp + 0x14]
test bl, 8
je 0x510fde
push 0
push str.MIME_Version:_1.0_r_nContent_Type:_multipart_mixed__r_n_tboundary__s__r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call esi
add esp, 0x14
jmp 0x511085
test bl, 4
je 0x511000
push str.MIME_Version:_1.0_r_nContent_Type:_text_plain__charsetiso_2022_jp_r_nContent_Transfer_Encoding:_7bit_r_n
mov edx, 0x1000
lea ecx, [ebp - 0x142c]
call fcn.0052f9b0
add esp, 4
jmp 0x511085
test bl, 1
je 0x511068
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, eax
call fcn.0050e040
push esi
call fcn.0050e0b0
test eax, eax
je 0x511023
add eax, 0x8c
jne 0x511028
mov eax, 0x574c4c
mov esi, dword [sym.imp.MSVCR120.dll__snprintf_s]
push eax
push str.MIME_Version:_1.0_r_nContent_Type:_text_plain__charset_ls_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050f8b0
test bl, 2
je 0x511061
push str.Content_Transfer_Encoding:_quoted_printable_r_n
jmp 0x511072
push str.Content_Transfer_Encoding:_8bit_r_n
jmp 0x510fe8
test bl, 0x20
je 0x511093
push str.MIME_Version:_1.0_r_nContent_Type:_text_plain__charsetutf_8_r_nContent_Transfer_Encoding:_8bit_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x142c]
push 0x1000
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050f8b0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
movzx ecx, word [ecx]
test cx, cx
je 0x511209
movzx edx, cx
mov esi, edx
mov ebx, edx
and ebx, 0x7fffff80
jne 0x5110bc
lea ecx, [ebx + 1]
jmp 0x5110fa
test esi, 0x7ffff800
jne 0x5110cb
mov ecx, 2
jmp 0x5110fa
test esi, 0x7fff0000
jne 0x5110da
mov ecx, 3
jmp 0x5110fa
test esi, 0x7fe00000
jne 0x5110e9
mov ecx, 4
jmp 0x5110fa
mov ecx, esi
and ecx, 0x7c000000
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 5
lea edi, [ebp - 0x2d]
add ecx, eax
cmp ecx, edi
mov edi, dword [ebp - 0x1700]
ja 0x511209
test ebx, ebx
jne 0x511119
mov byte [eax], dl
inc eax
jmp 0x5111f4
test esi, 0x7ffff800
jne 0x51113f
mov ecx, edx
and dl, 0x3f
shr ecx, 6
or dl, 0x80
and cl, 0x1f
or cl, 0xc0
mov byte [eax], cl
mov byte [eax + 1], dl
add eax, 2
jmp 0x5111f4
mov cx, dx
shr cx, 0xc
test esi, 0x7fff0000
jne 0x511172
or cl, 0xe0
mov byte [eax], cl
mov ecx, edx
shr ecx, 6
and dl, 0x3f
and cl, 0x3f
or dl, 0x80
or cl, 0x80
mov byte [eax + 1], cl
mov byte [eax + 2], dl
add eax, 3
jmp 0x5111f4
and cl, 0x3f
or cl, 0x80
test esi, 0x7fe00000
jne 0x5111a2
mov byte [eax], 0xf0
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and dl, 0x3f
and cl, 0x3f
or dl, 0x80
or cl, 0x80
mov byte [eax + 2], cl
mov byte [eax + 3], dl
add eax, 4
jmp 0x5111f4
test esi, 0x7c000000
jne 0x5111ce
mov word [eax], 0x80f8
mov byte [eax + 2], cl
mov ecx, edx
shr ecx, 6
and dl, 0x3f
and cl, 0x3f
or dl, 0x80
or cl, 0x80
mov byte [eax + 3], cl
mov byte [eax + 4], dl
add eax, 5
jmp 0x5111f4
mov word [eax], 0x80fc
mov byte [eax + 2], 0x80
mov byte [eax + 3], cl
mov ecx, edx
shr ecx, 6
and dl, 0x3f
and cl, 0x3f
or dl, 0x80
or cl, 0x80
mov byte [eax + 4], cl
mov byte [eax + 5], dl
add eax, 6
mov ecx, dword [ebp + 0xc]
add ecx, 2
mov dword [ebp + 0xc], ecx
movzx ecx, word [ecx]
test cx, cx
jne 0x5110a8
push str.Subject:__UTF_8_B_
mov edx, 0x1000
mov byte [eax], 0
lea ecx, [ebp - 0x142c]
call fcn.0052f9b0
lea esi, [ebp - 0x142c]
add esp, 4
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x511230
lea ebx, [ebp - 0x22c]
sub esi, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x511242
lea eax, [ebp - 0x142c]
sub ebx, ecx
push 0
push eax
call dword [sym.imp.MSVCR120.dll_strchr]
lea ecx, [ebp - 0x1700]
mov edx, ebx
push ecx
mov ecx, 0x1000
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.004d16c0
add esp, 0x14
test al, al
je 0x5112a4
push str.__r_n_r_n
mov edx, 0x1000
lea ecx, [ebp - 0x142c]
call fcn.0052fa60
add esp, 4
lea eax, [ebp - 0x142c]
mov ecx, edi
push eax
call fcn.0050f8b0
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp - 0x1714]
call fcn.0050fc10
push str._r_n._r_n
mov ecx, edi
call fcn.0050f8b0
mov ecx, edi
call fcn.0050f900
cmp eax, 0xffffffff
je 0x51000a
cmp eax, 0x190
jge 0x51000a
push str.QUIT_r_n
mov ecx, edi
call fcn.0050f8b0
mov ecx, edi
call fcn.0050f900
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.0050faa0
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
jmp 0x50ffee