Function at 0x429820
Capabilities:
Get hostname

Disassembly:
mov eax, 0x6030
call fcn.00457d20
mov al, byte [0x493b50]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov byte [esp + 0x28], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x6050]
mov edi, 0x1000
mov dword [esp + 0x10], edi
cmp byte [ecx], 0
je 0x429ce7
mov edx, dword [esp + 0x6058]
mov ebx, dword [esp + 0x6044]
mov esi, dword [esp + 0x604c]
push 2
push 0x19
push edx
push ebx
push esi
mov ecx, ebp
call fcn.00425b50
test eax, eax
jne 0x429895
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6030
ret 0x18
cmp dword [ebx + 0x1c], 2
jne 0x4298e2
mov eax, dword [ebp + 8]
test eax, eax
je 0x4298e2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.0041ca00
test eax, eax
je 0x429886
push 3
lea edx, [esp + 0x2c]
push 0x48f030
push edx
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x429886
cmp byte [esp + 0x2b], 0x20
je 0x4298e2
cmp dword [ebx + 0x1c], 2
je 0x42989b
mov al, byte [0x493b50]
xor ecx, ecx
mov dword [esp + 0x15], ecx
mov byte [esp + 0x14], al
mov dword [esp + 0x19], ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x1d], ecx
lea eax, [esp + 0x14]
mov word [esp + 0x21], cx
push edx
push eax
mov byte [esp + 0x2b], cl
mov dword [esp + 0x2c], 0xf
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x14]
test al, al
jne 0x429954
mov edi, 0x48e40c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x604c]
mov edi, 0x1000
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push str.EHLO__s_r_n
push edx
call fcn.00457c43
add esp, 0xc
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
push esi
call fcn.0041c1a0
cmp dword [ebx + 0x1c], 2
jne 0x4299cd
mov eax, dword [ebp + 8]
test eax, eax
je 0x4299cd
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.0041ca00
test eax, eax
je 0x429886
push 3
lea eax, [esp + 0x2c]
push 0x48f63c
push eax
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x429886
cmp byte [esp + 0x2b], 0x20
je 0x4299cd
cmp dword [ebx + 0x1c], 2
je 0x42997e
lea ecx, [esp + 0x28]
push str.AUTH_LOGIN_r_n
push ecx
call fcn.00457c43
add esp, 8
lea edx, [esp + 0x28]
mov ecx, ebp
push edx
push esi
call fcn.0041c1a0
cmp dword [ebx + 0x1c], 2
jne 0x429a41
mov eax, dword [ebp + 8]
test eax, eax
je 0x429a41
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.0041ca00
test eax, eax
je 0x429886
push 3
lea edx, [esp + 0x2c]
push 0x48f628
push edx
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x429886
cmp byte [esp + 0x2b], 0x20
je 0x429a41
cmp dword [ebx + 0x1c], 2
je 0x4299f2
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2031]
mov byte [esp + 0x2030], dl
mov byte [esp + 0x4038], dl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x6050]
mov ecx, 0x400
lea edi, [esp + 0x4039]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2030]
push ecx
push edx
push eax
call fcn.00412b10
mov edx, dword [esp + 0x6060]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x4048]
push edx
push ecx
call fcn.00412b10
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x5055]
mov byte [esp + 0x5054], dl
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x5054]
push eax
push ecx
call fcn.00412c30
mov edi, str.USERNAME
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x505c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.USERNAME
push edx
call fcn.00459d50
add esp, 0x2c
test eax, eax
jne 0x429b1b
mov edi, 1
lea eax, [esp + 0x2030]
jmp 0x429b24
xor edi, edi
lea eax, [esp + 0x4038]
push eax
lea ecx, [esp + 0x2c]
push str._s_r_n
push ecx
call fcn.00457c43
add esp, 0xc
lea edx, [esp + 0x28]
mov ecx, ebp
push edx
push esi
call fcn.0041c1a0
cmp dword [ebx + 0x1c], 2
jne 0x429b9d
mov eax, dword [ebp + 8]
test eax, eax
je 0x429b9d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x20], 0x1000
call fcn.0041ca00
test eax, eax
je 0x429886
push 3
lea edx, [esp + 0x2c]
push 0x48f628
push edx
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x429886
cmp byte [esp + 0x2b], 0x20
je 0x429b9d
cmp dword [ebx + 0x1c], 2
je 0x429b4a
test edi, edi
je 0x429bb5
lea eax, [esp + 0x4038]
lea ecx, [esp + 0x28]
push eax
push str._s_r_n
push ecx
jmp 0x429bc7
lea edx, [esp + 0x2030]
lea eax, [esp + 0x28]
push edx
push str._s_r_n
push eax
call fcn.00457c43
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push esi
mov ecx, ebp
call fcn.0041c1a0
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x102d]
mov byte [esp + 0x102c], dl
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x429c35
mov edx, dword [ebp + 4]
lea eax, [eax + eax*2]
shl eax, 6
mov edx, dword [edx + 0x275c8]
add eax, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x1034]
push str._s__s_SMTP
push ecx
call fcn.00457c43
add esp, 0x10
jmp 0x429c52
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x1030]
push str._s_unknown_SMTP
push edx
call fcn.00457c43
add esp, 0xc
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0xa558]
test ecx, ecx
je 0x429cdb
mov cl, byte [0x493b50]
mov edx, dword [esp + 0x6050]
mov byte [esp + 0x3034], cl
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x3035]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x6058]
push edx
push eax
lea ecx, [esp + 0x303c]
push str.LOGIN:_s__s
push ecx
call fcn.00457c43
lea edi, [esp + 0x3044]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x102c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x604c]
lea eax, [esp + 0x102c]
jmp 0x429f6d
mov edx, dword [esp + 0x6058]
mov ebx, dword [esp + 0x6044]
mov esi, dword [esp + 0x604c]
mov edi, 2
push edi
push 0x19
push edx
push ebx
push esi
mov ecx, ebp
call fcn.00425b50
cmp dword [ebx + 0x1c], edi
jne 0x429d65
mov eax, dword [ebp + 8]
test eax, eax
je 0x429d65
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x20], 0x1000
call fcn.0041ca00
test eax, eax
je 0x429886
push 3
lea edx, [esp + 0x2c]
push 0x48f030
push edx
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x429886
cmp byte [esp + 0x2b], 0x20
je 0x429d65
cmp dword [ebx + 0x1c], edi
je 0x429d13
mov al, byte [0x493b50]
xor ecx, ecx
mov dword [esp + 0x15], ecx
mov byte [esp + 0x14], al
mov dword [esp + 0x19], ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x1d], ecx
lea eax, [esp + 0x14]
mov word [esp + 0x21], cx
push edx
push eax
mov byte [esp + 0x2b], cl
mov dword [esp + 0x2c], 0xf
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x14]
test al, al
jne 0x429dd7
mov edi, 0x48e40c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x604c]
mov edi, 2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push str.HELO__s_r_n
push edx
call fcn.00457c43
add esp, 0xc
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
push esi
call fcn.0041c1a0
cmp dword [ebx + 0x1c], edi
jne 0x429e52
mov eax, dword [ebp + 8]
test eax, eax
je 0x429e52
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x20], 0x1000
call fcn.0041ca00
test eax, eax
je 0x429886
push 3
lea eax, [esp + 0x2c]
push 0x48f63c
push eax
call fcn.00459d50
add esp, 0xc
test eax, eax
jne 0x429886
cmp byte [esp + 0x2b], 0x20
je 0x429e52
cmp dword [ebx + 0x1c], edi
je 0x429e00
mov ecx, dword [esp + 0x6048]
push str.235_OK_r_n
push ecx
mov ecx, ebp
call fcn.0041c1a0
mov dl, byte [0x493b50]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x102d]
mov byte [esp + 0x102c], dl
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x429ebf
mov edx, dword [ebp + 4]
lea eax, [eax + eax*2]
shl eax, 6
mov edx, dword [edx + 0x275c8]
add eax, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x1034]
push str._s__s_SMTP
push ecx
call fcn.00457c43
add esp, 0x10
jmp 0x429edc
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x1030]
push str._s_unknown_SMTP
push edx
call fcn.00457c43
add esp, 0xc
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0xa558]
test eax, eax
je 0x429f66
mov al, byte [0x493b50]
mov ecx, 0x400
mov byte [esp + 0x3034], al
xor eax, eax
lea edi, [esp + 0x3035]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0xa560]
test eax, eax
je 0x429f2c
mov ecx, dword [esp + 0x6058]
lea edx, [esp + 0x3034]
push ecx
push str.LOGIN:_s
push edx
call fcn.00457c43
add esp, 0xc
lea edi, [esp + 0x3034]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x102c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x604c]
lea eax, [esp + 0x102c]
push eax
call fcn.00430470
mov ecx, dword [esp + 0x604c]
add esp, 4
push 0
push ecx
push esi
push ebx
mov ecx, ebp
call fcn.00423a00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6030
ret 0x18