Function at 0x1021e71
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x40], eax
jne 0x1021e98
mov eax, 0x80070057
jmp 0x1022110
push esi
push edi
push 7
pop ecx
xor eax, eax
mov word [ebp - 0x24], bx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
mov esi, 0x1008a90
jne 0x1021f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1021ee8
and eax, 0xffff
or eax, 0x80070000
push 0
mov ebx, eax
push ebx
push 0x20f
push esi
call fcn.0101c3d2
test ebx, ebx
jl 0x10220ca
lea eax, [ebp - 0x44]
push eax
xor edi, edi
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1021f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1021f4d
cmp eax, edi
jle 0x1021f3e
and eax, 0xffff
or eax, 0x80070000
push edi
mov ebx, eax
push ebx
push 0x226
push esi
call fcn.0101c3d2
cmp ebx, edi
jl 0x10220ca
push dword [ebp - 0x34]
call fcn.0100d5aa
test eax, eax
pop ecx
mov dword [ebp - 0x2c], eax
mov edi, 0x8007000e
jne 0x1021f79
push eax
push edi
push 0x231
push esi
mov ebx, edi
call fcn.0101c3d2
test ebx, ebx
jl 0x10220ca
mov eax, dword [ebp - 0x38]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100d5aa
test eax, eax
pop ecx
mov dword [ebp - 0x3c], eax
jne 0x1021faf
push eax
push edi
push 0x23b
push esi
mov ebx, edi
call fcn.0101c3d2
test ebx, ebx
jl 0x10220ca
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1021ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1021fed
and eax, 0xffff
or eax, 0x80070000
push 0
mov ebx, eax
push ebx
push 0x24b
push esi
call fcn.0101c3d2
test ebx, ebx
jl 0x10220ca
lea eax, [ebp - 0x28]
push eax
push 0x1002f2c
call fcn.0101b1ab
push 0
mov ebx, eax
push ebx
push 0x253
push esi
call fcn.0101c3d2
test ebx, ebx
jl 0x10220ca
push 0x1008ae0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x48], eax
mov edi, 0x80004005
jne 0x1022054
push eax
push edi
push 0x25d
push esi
mov ebx, edi
call fcn.0101c3d2
test ebx, ebx
jl 0x10220ca
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
call dword [ebp - 0x48]
test eax, eax
jne 0x102208e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102207e
and eax, 0xffff
or eax, 0x80070000
push 0
mov ebx, eax
push ebx
push 0x269
push esi
call fcn.0101c3d2
test ebx, ebx
jl 0x10220b7
cmp dword [ebp - 0x30], 0
jne 0x10220aa
push 0
push edi
push 0x26f
push esi
mov ebx, edi
call fcn.0101c3d2
jmp 0x10220b7
push dword [ebp - 0x30]
push dword [ebp - 0x40]
call fcn.0101abac
mov ebx, eax
cmp dword [ebp - 0x30], 0
je 0x10220c6
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jge 0x10220dd
mov esi, dword [ebp - 0x40]
mov eax, dword [esi]
test eax, eax
je 0x10220dd
push eax
call fcn.0100dd74
and dword [esi], 0
pop ecx
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x10220f0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x2c], esi
je 0x10220fe
push dword [ebp - 0x2c]
call fcn.0100dd74
pop ecx
cmp dword [ebp - 0x3c], esi
pop edi
pop esi
je 0x102210e
push dword [ebp - 0x3c]
call fcn.0100dd74
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 4