Function at 0x438620
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe30
push ebx
push esi
push edi
call fcn.00439000
test eax, eax
je 0x438644
xor eax, eax
lea esp, [ebp - 0xe3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b5a54]
xor ebx, ebx
cmp eax, ebx
jne 0x438665
call fcn.00438c40
test eax, eax
jne 0x438665
lea esp, [ebp - 0xe3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x104
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x630]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x11c]
push eax
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 4]
lea eax, [ebp - 0x220]
push edx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edi, dword [ebp + 8]
mov ecx, edi
cmp edi, ebx
mov dword [ebp + 8], ecx
je 0x4386d2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00447a20
mov eax, esp
push esi
push edi
push eax
call fcn.0045d1e9
mov ebx, eax
mov ecx, edi
mov al, byte [edi]
test al, al
je 0x4386e7
cmp al, 0x5c
jne 0x4386e7
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x5c
je 0x4386dc
mov dword [ebp + 8], ecx
mov ax, word [ebx]
test ax, ax
je 0x4386fe
cmp ax, 0x5c
jne 0x4386fe
add ebx, 2
cmp word [ebx], 0x5c
je 0x4386f5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x220]
push ecx
xor esi, esi
call edi
xor ecx, ecx
test eax, eax
jle 0x438724
movsx edx, byte [ebp + ecx - 0x220]
add esi, edx
inc ecx
cmp ecx, eax
jl 0x438715
lea eax, [ebp - 0x11c]
push eax
call edi
xor ecx, ecx
test eax, eax
jle 0x438742
movsx edx, byte [ebp + ecx - 0x11c]
add esi, edx
inc ecx
cmp ecx, eax
jl 0x438733
push ebx
push esi
lea eax, [ebp - 0xe30]
push 0x4aef58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xe30]
lea edx, [ebp - 0x10]
push ecx
push edx
call fcn.00438b50
mov edi, dword [ebp + 0xc]
add esp, 0x18
test edi, edi
jne 0x438774
xor eax, eax
jmp 0x438795
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00447a20
mov eax, esp
push esi
push edi
push eax
call fcn.0045d1e9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [ebp - 0x630]
push eax
call ebx
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4387b0
xor eax, eax
jmp 0x4387d1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00447a20
mov eax, esp
push esi
push edi
push eax
call fcn.0045d1e9
lea ecx, [ebp - 0x428]
push eax
push ecx
call ebx
lea edx, [ebp - 8]
push edx
push 0x20
push 0
call fcn.00438bc0
add esp, 0xc
test eax, eax
je 0x4387fe
xor eax, eax
lea esp, [ebp - 0xe3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x630]
push 0x410
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.00438b90
mov ecx, dword [ebp - 8]
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
push edx
push eax
push ecx
call dword [fcn.004b5a64]
mov esi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x438838
push eax
call dword [fcn.004b5a60]
call fcn.0046ef86
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push 1
push edx
push 0x4aef40
mov ecx, eax
call fcn.004645e2
lea esp, [ebp - 0xe3c]
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret