Function at 0x539190
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x601694]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], 0
cmp dword [0x6073c4], 0
jne 0x5391c6
push str.Rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6073c4], eax
cmp dword [0x6073c4], 0
je 0x5392ce
push str.UuidCreate
mov ecx, dword [0x6073c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x5392ce
mov edx, dword [ebp - 0x38]
push edx
call dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x539218
cmp dword [ebp - 0x50], 0x720
je 0x539218
cmp dword [ebp - 0x50], 0x6cb
jne 0x5392ce
mov dword [ebp - 0x58], 0xffffffff
mov eax, 1
imul ecx, eax, 7
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + ecx + 8]
push eax
mov ecx, 1
imul edx, ecx, 6
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + edx + 8]
push ecx
mov edx, 1
imul eax, edx, 5
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + eax + 8]
push edx
mov eax, 1
shl eax, 2
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ecx + eax + 8]
push edx
mov eax, 1
imul ecx, eax, 3
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + ecx + 8]
push eax
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + ecx + 8]
push eax
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + ecx + 8]
push eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + edx + 8]
push ecx
mov edx, dword [ebp - 0x38]
movzx eax, word [edx + 6]
push eax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx + 4]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push ecx
push str._08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x607398
call fcn.00428830
add esp, 0x34
cmp dword [ebp - 0x58], 0
jne 0x539521
push 0
call fcn.0056ba85
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov dl, byte [ebp - 0x4c]
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x14], dl
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov cl, 8
call fcn.0055ea60
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x14], al
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov cl, 0x10
call fcn.0055ea60
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x14], al
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov cl, 0x18
call fcn.0055ea60
mov edx, 1
imul ecx, edx, 3
mov byte [ebp + ecx - 0x14], al
call fcn.0056f6df
mov dword [ebp - 0x40], eax
mov edx, 1
shl edx, 2
mov al, byte [ebp - 0x40]
mov byte [ebp + edx - 0x14], al
mov ecx, dword [ebp - 0x40]
sar ecx, 8
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x14], cl
mov ecx, dword [ebp - 0x40]
sar ecx, 0x10
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0x14], cl
mov ecx, dword [ebp - 0x40]
sar ecx, 0x18
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x14], cl
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, 1
shl ecx, 3
mov dl, byte [ebp + eax - 0x44]
mov byte [ebp + ecx - 0x14], dl
mov eax, 1
shl eax, 0
mov ecx, 1
imul edx, ecx, 9
mov al, byte [ebp + eax - 0x44]
mov byte [ebp + edx - 0x14], al
mov ecx, 1
shl ecx, 1
mov edx, 1
imul eax, edx, 0xa
mov cl, byte [ebp + ecx - 0x44]
mov byte [ebp + eax - 0x14], cl
mov edx, 1
imul eax, edx, 3
mov ecx, 1
imul edx, ecx, 0xb
mov al, byte [ebp + eax - 0x44]
mov byte [ebp + edx - 0x14], al
mov dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x3c], 0
jmp 0x53941a
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jge 0x539430
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
mov al, byte [ebp + edx - 0x24]
mov byte [ebp + ecx - 8], al
jmp 0x539411
mov ecx, 1
imul edx, ecx, 0xf
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
imul edx, ecx, 0xe
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
imul edx, ecx, 0xd
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
imul edx, ecx, 0xc
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
imul edx, ecx, 0xb
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
imul edx, ecx, 0xa
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
imul edx, ecx, 9
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
shl ecx, 3
movzx edx, byte [ebp + ecx - 0x14]
push edx
mov eax, 1
imul ecx, eax, 7
movzx edx, byte [ebp + ecx - 0x14]
push edx
mov eax, 1
imul ecx, eax, 6
movzx edx, byte [ebp + ecx - 0x14]
push edx
mov eax, 1
imul ecx, eax, 5
movzx edx, byte [ebp + ecx - 0x14]
push edx
mov eax, 1
shl eax, 2
movzx ecx, byte [ebp + eax - 0x14]
push ecx
mov edx, 1
imul eax, edx, 3
movzx ecx, byte [ebp + eax - 0x14]
push ecx
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x14]
push edx
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x14]
push edx
push str._02X_02X_02X_02X__02X_02X__02X_02X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x607398
call fcn.00428830
add esp, 0x48
mov eax, 0x607398
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e98a
mov esp, ebp
pop ebp
ret