Function at 0x47d560
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5692e1
mov eax, dword fs:[0]
push eax
mov eax, 0x65a0
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x655c], ecx
mov byte [ebp - 0x101c], 0
push 0x1000
push 0
lea eax, [ebp - 0x101b]
push eax
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x10], 0x1000
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x47ddc5
lea ecx, [ebp - 0x5280]
call fcn.00460d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5280]
push eax
push 2
mov ecx, 0x5ca8a8
call fcn.0048bcd0
mov dword [ebp - 0x5258], 0
cmp dword [0x5ec65c], 0
je 0x47d630
mov dword [ebp - 0x5294], 0x10
lea ecx, [ebp - 0x5294]
push ecx
lea edx, [ebp - 0x5290]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [ebp - 0x528c]
mov dword [ebp - 0x5258], edx
mov eax, dword [ebp - 0x5258]
push eax
lea ecx, [ebp - 0x5280]
push ecx
push 0x19
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x64f0]
push eax
call fcn.00499f80
add esp, 8
mov dword [ebp - 0x6560], eax
mov ecx, dword [ebp - 0x6560]
mov dword [ebp - 0x6564], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6564]
call fcn.00415f60
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c8720
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x64e9], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64f0]
call fcn.00415e20
movzx eax, byte [ebp - 0x64e9]
test eax, eax
je 0x47d6d2
mov dword [ebp - 0x64f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x64f4]
jmp 0x47e200
mov ecx, dword [ebp + 8]
cmp dword [ecx], 2
jne 0x47d793
mov edx, dword [ebp - 0x655c]
cmp dword [edx + 0x210], 0
je 0x47d793
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c7870
test eax, eax
jne 0x47d73d
mov dword [ebp - 0x64f8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x64f8]
jmp 0x47e200
push 3
push 0x58291c
lea eax, [ebp - 0x101c]
push eax
call fcn.0055bb6c
add esp, 0xc
test eax, eax
jne 0x47d767
movsx ecx, byte [ebp - 0x1019]
cmp ecx, 0x20
jne 0x47d765
jmp 0x47d793
jmp 0x47d78e
mov dword [ebp - 0x64fc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x64fc]
jmp 0x47e200
jmp 0x47d6d2
xor edx, edx
mov word [ebp - 0x2234], dx
push 0x200
push 0
lea eax, [ebp - 0x2232]
push eax
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x1020], 0x100
lea ecx, [ebp - 0x1020]
push ecx
lea edx, [ebp - 0x2234]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
movzx eax, word [ebp - 0x2234]
test eax, eax
jne 0x47d7ef
push 0x582920
lea ecx, [ebp - 0x2234]
push ecx
call fcn.005282c4
add esp, 8
lea edx, [ebp - 0x2234]
push edx
lea eax, [ebp - 0x6500]
push eax
call fcn.00499e90
add esp, 8
mov dword [ebp - 0x6568], eax
mov ecx, dword [ebp - 0x6568]
mov edx, dword [ecx]
push edx
push str.EHLO__s_r_n
lea eax, [ebp - 0x101c]
push eax
call fcn.0052a9d1
add esp, 0xc
lea ecx, [ebp - 0x6500]
call fcn.00412130
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c81b0
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x47d90a
mov ecx, dword [ebp - 0x655c]
cmp dword [ecx + 0x210], 0
je 0x47d90a
mov dword [ebp - 0x10], 0x1000
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x101c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x655c]
call fcn.004c7870
test eax, eax
jne 0x47d8b4
mov dword [ebp - 0x6504], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x6504]
jmp 0x47e200
push 3
push 0x58293c
lea edx, [ebp - 0x101c]
push edx
call fcn.0055bb6c
add esp, 0xc
test eax, eax
jne 0x47d8de
movsx eax, byte [ebp - 0x1019]
cmp eax, 0x20
jne 0x47d8dc
jmp 0x47d90a
jmp 0x47d905
mov dword [ebp - 0x6508], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x6508]
jmp 0x47e200
jmp 0x47d849
push str.AUTH_LOGIN_r_n
lea ecx, [ebp - 0x101c]
push ecx
call fcn.0052a9d1
add esp, 8
lea edx, [ebp - 0x101c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x655c]
call fcn.004c81b0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 2
jne 0x47d9f5
mov edx, dword [ebp - 0x655c]
cmp dword [edx + 0x210], 0
je 0x47d9f5
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c7870
test eax, eax
jne 0x47d99f
mov dword [ebp - 0x650c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x650c]
jmp 0x47e200
push 3
push 0x582950
lea eax, [ebp - 0x101c]
push eax
call fcn.0055bb6c
add esp, 0xc
test eax, eax
jne 0x47d9c9
movsx ecx, byte [ebp - 0x1019]
cmp ecx, 0x20
jne 0x47d9c7
jmp 0x47d9f5
jmp 0x47d9f0
mov dword [ebp - 0x6510], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x6510]
jmp 0x47e200
jmp 0x47d934
mov byte [ebp - 0x5254], 0
push 0x1000
push 0
lea edx, [ebp - 0x5253]
push edx
call fcn.005281f0
add esp, 0xc
mov byte [ebp - 0x424c], 0
push 0x1000
push 0
lea eax, [ebp - 0x424b]
push eax
call fcn.005281f0
add esp, 0xc
push 0x1001
lea ecx, [ebp - 0x5254]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00529140
add esp, 4
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x655c]
call fcn.004c6f10
push 0x1001
lea ecx, [ebp - 0x424c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.00529140
add esp, 4
push eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x655c]
call fcn.004c6f10
mov dword [ebp - 0x2238], 1
mov byte [ebp - 0x202c], 0
push 0x1000
push 0
lea ecx, [ebp - 0x202b]
push ecx
call fcn.005281f0
add esp, 0xc
lea edx, [ebp - 0x1018]
push edx
lea eax, [ebp - 0x202c]
push eax
call fcn.0052a310
add esp, 8
lea ecx, [ebp - 0x202c]
push ecx
call fcn.00529140
add esp, 4
push eax
lea edx, [ebp - 0x202c]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c6d90
push 0x582954
call fcn.00529140
add esp, 4
push eax
push str.USERNAME
lea eax, [ebp - 0x202c]
push eax
call fcn.0055bb6c
add esp, 0xc
test eax, eax
jne 0x47db41
mov dword [ebp - 0x2238], 1
lea ecx, [ebp - 0x5254]
push ecx
push 0x58296c
lea edx, [ebp - 0x101c]
push edx
call fcn.0052a9d1
add esp, 0xc
lea eax, [ebp - 0x101c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x655c]
call fcn.004c81b0
jmp 0x47db7c
mov dword [ebp - 0x2238], 0
lea edx, [ebp - 0x424c]
push edx
push 0x582974
lea eax, [ebp - 0x101c]
push eax
call fcn.0052a9d1
add esp, 0xc
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c81b0
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x47dc3d
mov ecx, dword [ebp - 0x655c]
cmp dword [ecx + 0x210], 0
je 0x47dc3d
mov dword [ebp - 0x10], 0x1000
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x101c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x655c]
call fcn.004c7870
test eax, eax
jne 0x47dbe7
mov dword [ebp - 0x6514], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x6514]
jmp 0x47e200
push 3
push 0x58297c
lea edx, [ebp - 0x101c]
push edx
call fcn.0055bb6c
add esp, 0xc
test eax, eax
jne 0x47dc11
movsx eax, byte [ebp - 0x1019]
cmp eax, 0x20
jne 0x47dc0f
jmp 0x47dc3d
jmp 0x47dc38
mov dword [ebp - 0x6518], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x6518]
jmp 0x47e200
jmp 0x47db7c
cmp dword [ebp - 0x2238], 0
je 0x47dc63
lea ecx, [ebp - 0x424c]
push ecx
push 0x582980
lea edx, [ebp - 0x101c]
push edx
call fcn.0052a9d1
add esp, 0xc
jmp 0x47dc7e
lea eax, [ebp - 0x5254]
push eax
push str._s_r_n
lea ecx, [ebp - 0x101c]
push ecx
call fcn.0052a9d1
add esp, 0xc
lea edx, [ebp - 0x101c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x655c]
call fcn.004c81b0
mov byte [ebp - 0x3244], 0
push 0x1000
push 0
lea ecx, [ebp - 0x3243]
push ecx
call fcn.005281f0
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x1c]
push eax
push str.CONNECT_Host:_s_User:_s
lea ecx, [ebp - 0x3244]
push ecx
call fcn.0052a9d1
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x651c], esp
push 0x5829ac
call fcn.00415da0
mov dword [ebp - 0x656c], eax
mov edx, dword [ebp - 0x656c]
mov dword [ebp - 0x6570], edx
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x6520], esp
push 0x5829b0
call fcn.00415da0
mov dword [ebp - 0x6574], eax
mov eax, dword [ebp - 0x6574]
mov dword [ebp - 0x6578], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x6524], esp
push 0x5829b4
call fcn.00415da0
mov dword [ebp - 0x657c], eax
mov ecx, dword [ebp - 0x657c]
mov dword [ebp - 0x6580], ecx
mov byte [ebp - 4], 4
push 0
push 0
push 0xc8
push ecx
mov edx, esp
mov dword [ebp - 0x6528], esp
lea eax, [ebp - 0x3244]
push eax
push edx
call fcn.00499f80
add esp, 8
mov dword [ebp - 0x6584], eax
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 0
mov ecx, 0x5c8578
call fcn.004514c0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x655c]
call fcn.004c81e0
mov dword [ebp - 0x652c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5280]
call fcn.00460d20
mov eax, dword [ebp - 0x652c]
jmp 0x47e200
lea ecx, [ebp - 0x64d0]
call fcn.00460d70
mov dword [ebp - 4], 5
lea edx, [ebp - 0x64d0]
push edx
push 2
mov ecx, 0x5ca8a8
call fcn.0048bcd0
mov dword [ebp - 0x64a8], 0
cmp dword [0x5ec65c], 0
je 0x47de2e
mov dword [ebp - 0x64e8], 0x10
lea eax, [ebp - 0x64e8]
push eax
lea ecx, [ebp - 0x64e4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x64e0]
mov dword [ebp - 0x64a8], ecx
mov edx, dword [ebp - 0x64a8]
push edx
lea eax, [ebp - 0x64d0]
push eax
push 0x19
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [ebp - 0x6530]
push edx
call fcn.00499f80
add esp, 8
mov dword [ebp - 0x6588], eax
mov eax, dword [ebp - 0x6588]
mov dword [ebp - 0x658c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x658c]
call fcn.00415f60
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x655c]
call fcn.004c8720
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6530]
call fcn.00415e20
mov edx, dword [ebp + 8]
cmp dword [edx], 2
jne 0x47df52
mov eax, dword [ebp - 0x655c]
cmp dword [eax + 0x210], 0
je 0x47df52
mov dword [ebp - 0x10], 0x1000
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x101c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x655c]
call fcn.004c7870
test eax, eax
jne 0x47defc
mov dword [ebp - 0x6534], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64d0]
call fcn.00460d20
mov eax, dword [ebp - 0x6534]
jmp 0x47e200
push 3
push 0x5829c0
lea ecx, [ebp - 0x101c]
push ecx
call fcn.0055bb6c
add esp, 0xc
test eax, eax
jne 0x47df26
movsx edx, byte [ebp - 0x1019]
cmp edx, 0x20
jne 0x47df24
jmp 0x47df52
jmp 0x47df4d
mov dword [ebp - 0x6538], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64d0]
call fcn.00460d20
mov eax, dword [ebp - 0x6538]
jmp 0x47e200
jmp 0x47de91
xor eax, eax
mov word [ebp - 0x549c], ax
push 0x200
push 0
lea ecx, [ebp - 0x549a]
push ecx
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x64d4], 0x100
lea edx, [ebp - 0x64d4]
push edx
lea eax, [ebp - 0x549c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
movzx ecx, word [ebp - 0x549c]
test ecx, ecx
jne 0x47dfae
push 0x5829c4
lea edx, [ebp - 0x549c]
push edx
call fcn.005282c4
add esp, 8
lea eax, [ebp - 0x549c]
push eax
lea ecx, [ebp - 0x653c]
push ecx
call fcn.00499e90
add esp, 8
mov dword [ebp - 0x6590], eax
mov edx, dword [ebp - 0x6590]
mov eax, dword [edx]
push eax
push str.HELO__s_r_n
lea ecx, [ebp - 0x101c]
push ecx
call fcn.0052a9d1
add esp, 0xc
lea ecx, [ebp - 0x653c]
call fcn.00412130
lea edx, [ebp - 0x101c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x655c]
call fcn.004c81b0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 2
jne 0x47e0c9
mov edx, dword [ebp - 0x655c]
cmp dword [edx + 0x210], 0
je 0x47e0c9
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c7870
test eax, eax
jne 0x47e073
mov dword [ebp - 0x6540], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64d0]
call fcn.00460d20
mov eax, dword [ebp - 0x6540]
jmp 0x47e200
push 3
push 0x5829e0
lea eax, [ebp - 0x101c]
push eax
call fcn.0055bb6c
add esp, 0xc
test eax, eax
jne 0x47e09d
movsx ecx, byte [ebp - 0x1019]
cmp ecx, 0x20
jne 0x47e09b
jmp 0x47e0c9
jmp 0x47e0c4
mov dword [ebp - 0x6544], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64d0]
call fcn.00460d20
mov eax, dword [ebp - 0x6544]
jmp 0x47e200
jmp 0x47e008
push str.235_OK_r_n
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c81b0
mov byte [ebp - 0x64a4], 0
push 0x1000
push 0
lea eax, [ebp - 0x64a3]
push eax
call fcn.005281f0
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
push ecx
push str.CONNECT_Host:_s
lea edx, [ebp - 0x64a4]
push edx
call fcn.0052a9d1
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x6548], esp
push 0x582a04
call fcn.00415da0
mov dword [ebp - 0x6594], eax
mov eax, dword [ebp - 0x6594]
mov dword [ebp - 0x6598], eax
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x654c], esp
push 0x582a08
call fcn.00415da0
mov dword [ebp - 0x659c], eax
mov ecx, dword [ebp - 0x659c]
mov dword [ebp - 0x65a0], ecx
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x6550], esp
push 0x582a0c
call fcn.00415da0
mov dword [ebp - 0x65a4], eax
mov edx, dword [ebp - 0x65a4]
mov dword [ebp - 0x65a8], edx
mov byte [ebp - 4], 9
push 0
push 0
push 0xc8
push ecx
mov eax, esp
mov dword [ebp - 0x6554], esp
lea ecx, [ebp - 0x64a4]
push ecx
push eax
call fcn.00499f80
add esp, 8
mov dword [ebp - 0x65ac], eax
mov edx, dword [ebp + 8]
push edx
mov byte [ebp - 4], 5
mov ecx, 0x5c8578
call fcn.004514c0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x655c]
call fcn.004c81e0
mov dword [ebp - 0x6558], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64d0]
call fcn.00460d20
mov eax, dword [ebp - 0x6558]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 0x18