Function at 0x418520
Capabilities:
Get hostname
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439c7e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
push 0x20
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], 0x10
call fcn.00435e86
mov esi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x34], esi
lea eax, [esi + 0x20]
movups xmmword [esi], xmm0
mov dword [ebp - 0x2c], eax
movups xmmword [esi + 0x10], xmm0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4189b7
mov ecx, esi
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4185c5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00403d70
test esi, esi
je 0x4185ed
push 0x20
push esi
call fcn.00435eb6
add esp, 8
push 0x202
mov dword [ebp - 4], 2
mov dword [ebp - 0xa4], 0x101
call fcn.00435e86
mov edi, eax
push 0x202
push 0
push edi
lea esi, [edi + 0x202]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4189dd
mov ecx, edi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418663
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403d70
test edi, edi
je 0x41868e
push 0x202
push edi
call fcn.00435eb6
add esp, 8
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x90]
push 0
push edx
push 0
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 5
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push 0
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x90], 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7a
jne 0x418a03
mov eax, dword [ebp - 0x94]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x418776
cmp eax, 0x7fffffff
ja 0x418a28
lea edi, [eax + eax]
cmp edi, 0x1000
jb 0x418743
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x418a2d
push eax
call fcn.00435e86
add esp, 4
test eax, eax
je 0x418984
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x418756
test edi, edi
je 0x418754
push edi
call fcn.00435e86
add esp, 4
mov esi, eax
jmp 0x418756
xor esi, esi
mov ecx, dword [ebp - 0x8c]
add edi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], edi
lea eax, [ecx + ecx]
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], edi
mov ecx, dword [ebp - 0x90]
xor eax, eax
xor edi, edi
mov byte [ebp - 4], 7
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x418816
cmp ecx, 0x7fffffff
ja 0x418a32
add ecx, ecx
mov dword [ebp - 0x8c], ecx
cmp ecx, 0x1000
jb 0x4187e2
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x418a37
push eax
call fcn.00435e86
add esp, 4
test eax, eax
je 0x418984
mov ecx, dword [ebp - 0x8c]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4187fb
test ecx, ecx
je 0x4187f9
push ecx
call fcn.00435e86
mov ecx, dword [ebp - 0x8c]
add esp, 4
mov edi, eax
jmp 0x4187fb
xor edi, edi
push ecx
lea eax, [edi + ecx]
mov dword [ebp - 0x64], edi
push 0
push edi
mov dword [ebp - 0x5c], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x90]
mov byte [ebp - 4], 8
push edx
push edi
lea edx, [ebp - 0x94]
mov dword [ebp - 0xa0], 0
push edx
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push esi
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x418a3c
mov dword [ebp - 0x98], 0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0xa
push eax
push esi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x418a68
push dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
call fcn.00402fa0
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4188a6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4188da
mov ecx, dword [ebp - 0x5c]
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4188d0
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x418984
mov edi, edx
push ecx
push edi
call fcn.00435eb6
add esp, 8
test esi, esi
je 0x41890e
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x418904
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418984
push ecx
push esi
call fcn.00435eb6
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x418944
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41893a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418984
push edx
push ecx
call fcn.00435eb6
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x418994
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41898a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41898a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00435eb6
add esp, 8
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
push str.GetComputerNameW_failed_
lea ecx, [ebp - 0x70]
call fcn.00402fa0
push 0x136
push str.get_computer_name
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
call fcn.0041b150
push str.GetUserNameW_failed_
lea ecx, [ebp - 0x70]
call fcn.00402fa0
push 0x141
push str.get_user_name
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
call fcn.0041b150
push str.LookupAccountNameW_failed_
lea ecx, [ebp - 0x40]
call fcn.00402fa0
push 0x14f
push str.get_user_sid
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
call fcn.0041b150
call fcn.00416020
call fcn.00402370
call fcn.00416020
call fcn.00402370
push str.LookupAccountNameW_failed_
lea ecx, [ebp - 0x88]
call fcn.00402fa0
push 0x156
push str.get_user_sid
push 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
call fcn.0041b150
push str.ConvertSidToStringSidW_failed_
lea ecx, [ebp - 0x88]
call fcn.00402fa0
push 0x15b
push str.get_user_sid
push 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xb
push eax
call fcn.0041b150
int3