Function at 0x100a8a20
Capabilities:
Get hostname

Disassembly:
sub esp, 0x120
mov eax, dword [0x10172eb8]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x12c]
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x134]
push eax
xor esi, esi
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call fcn.100a7470
mov ebp, eax
add esp, 8
cmp ebp, esi
mov dword [esp + 0x20], ebp
je 0x100a8b73
push ebx
push esi
push ebp
call fcn.100a74e0
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x100a8b73
mov esi, dword [esp + 0x18]
push esi
call fcn.100a7530
add esp, 4
test al, al
jne 0x100a8b5c
test bl, bl
jne 0x100a8ab9
cmp byte [esp + 0x13c], bl
je 0x100a8ab9
push esi
call fcn.100a75e0
add esp, 4
test al, al
je 0x100a8b5c
push esi
call fcn.100a6b90
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x100a8b73
mov ecx, eax
cmp dword [ecx], 0
jne 0x100a8b33
push 0x105
lea edx, [esp + 0x28]
push 0
push edx
call fcn.100cac20
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 3
mov dword [esp + 0x28], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x100a8b58
mov esi, dword [esp + 0x1c]
add esi, 1
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push esi
push eax
mov dword [edx], eax
call fcn.100cad54
add esp, 0xc
mov dl, byte [esp + 0x13c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov byte [eax + 0xb4], dl
call fcn.100a89b0
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
push ebx
push esi
push ebp
call fcn.100a74e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jne 0x100a8a86
mov esi, dword [edi + 4]
test esi, esi
jne 0x100a8b7e
xor eax, eax
jmp 0x100a8b86
mov eax, dword [edi + 8]
sub eax, esi
sar eax, 2
test eax, eax
seta bl
test bl, bl
mov byte [esp + 0x13], bl
jne 0x100a8c71
test esi, esi
je 0x100a8c38
mov eax, dword [edi + 8]
mov edx, eax
sub edx, esi
sar edx, 2
je 0x100a8c38
cmp esi, eax
jbe 0x100a8bb8
call fcn.100cc2f7
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x100a8bc5
call fcn.100cc2f7
cmp esi, ebp
je 0x100a8bed
cmp esi, dword [edi + 8]
jb 0x100a8bd3
call fcn.100cc2f7
mov eax, dword [esi]
push eax
call fcn.100a6ae0
add esp, 4
cmp esi, dword [edi + 8]
jb 0x100a8be8
call fcn.100cc2f7
add esi, 4
jmp 0x100a8bb8
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x100a8bfa
call fcn.100cc2f7
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x100a8c07
call fcn.100cc2f7
cmp esi, ebp
je 0x100a8c34
mov eax, dword [edi + 8]
sub eax, ebp
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [ecx + esi]
jle 0x100a8c2d
push ecx
push ebp
push ecx
push esi
call fcn.100cc9f9
add esp, 0x10
mov dword [edi + 8], ebx
mov bl, byte [esp + 0x13]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100a8c49
push eax
call fcn.100a6ae0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100a8c58
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebp, ebp
je 0x100a8ca0
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
test eax, eax
jne 0x100a8ca0
test bl, bl
je 0x100a8ca0
xor al, al
jmp 0x100a8ca2
cmp bl, 1
jne 0x100a8c38
cmp esi, dword [edi + 8]
jbe 0x100a8c80
call fcn.100cc2f7
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x100a8c8d
call fcn.100cc2f7
cmp esi, ebp
je 0x100a8c34
cmp esi, dword [edi + 8]
jb 0x100a8c9b
call fcn.100cc2f7
add esi, 4
jmp 0x100a8c80
mov al, bl
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ca7f5
add esp, 0x120
ret