Function at 0x40b900
Capabilities:
Get hostname

Disassembly:
mov eax, 0x1228
call fcn.00415f70
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x1224], eax
mov eax, dword [esp + 0x122c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x3a
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
xor ebp, ebp
mov esi, eax
push 0x20a
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], ebp
push ebp
mov ebx, 1
push eax
mov dword [esp + 0x28], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
test esi, esi
je 0x40b96b
lea eax, [esi + 2]
push 0x3a
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov esi, eax
push 0xb3c
call fcn.00414ef8
add esp, 4
mov dword [edi + 0x2dec0], eax
test esi, esi
je 0x40bd92
cmp ebx, 1
jne 0x40bc2f
add esi, 2
push 0x5c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
xor eax, eax
mov word [esp + 0x20], ax
test ebp, ebp
je 0x40ba16
mov edi, ebp
sub edi, esi
sar edi, 1
cmp edi, 0x7ffffffe
jbe 0x40b9c9
mov edi, dword [esp + 0x1c]
mov ebx, 0x80070057
mov esi, ebp
jmp 0x40ba58
lea ecx, [esp + 0x20]
xor ebx, ebx
mov eax, ecx
add edi, 0xfffffefb
mov edx, 0x105
sub esi, eax
nop
lea eax, [edi + edx]
test eax, eax
je 0x40ba09
movzx eax, word [esi + ecx]
test ax, ax
je 0x40b9fd
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40b9e0
jmp 0x40ba01
test edx, edx
jne 0x40ba09
sub ecx, 2
mov ebx, 0x8007007a
mov edi, dword [esp + 0x1c]
xor eax, eax
mov word [ecx], ax
mov esi, ebp
jmp 0x40ba58
lea ecx, [esp + 0x20]
xor ebx, ebx
mov eax, ecx
mov edx, 0x105
sub esi, eax
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x40ba51
movzx eax, word [esi + ecx]
test ax, ax
je 0x40ba45
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40ba25
jmp 0x40ba49
test edx, edx
jne 0x40ba51
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
xor esi, esi
mov word [ecx], ax
test ebx, ebx
jne 0x40bca5
mov ebp, dword [esp + 0x18]
cmp ebp, 5
ja case.default.0x40ba6d
jmp dword [ebp*4 + 0x40be1c]
lea eax, [edi + 0x2dca0]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.rpcrt4.dll_UuidFromStringW]
test eax, eax
je case.default.0x40ba6d
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push 0x400
mov edi, eax
lea eax, [esp + 0x238]
push eax
push 0x400
push edi
push 0
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
test eax, eax
je 0x40bae9
lea eax, [esp + 0x230]
push eax
push edi
push str.Transaction_guid_format_is_incorrect
push str._s_0x_x____ls
push 1
push 0x429048
call fcn.00404d90
add esp, 0x18
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x40bc1e
push edi
push str.Transaction_guid_format_is_incorrect
push str._s_0x_x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x40bc1e
lea ecx, [edi + 0x2dcb4]
xor ebx, ebx
lea edi, [esp + 0x20]
mov edx, 0x105
sub edi, ecx
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x40bb4d
movzx eax, word [edi + ecx]
test ax, ax
je 0x40bb41
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40bb21
jmp 0x40bb45
test edx, edx
jne 0x40bb4d
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
mov word [ecx], ax
test ebx, ebx
je case.default.0x40ba6d
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push 0x400
mov edi, eax
lea eax, [esp + 0x238]
push eax
push 0x400
push edi
push 0
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
test eax, eax
je 0x40bbb2
lea eax, [esp + 0x230]
push eax
push edi
push str.Originator_format_is_incorrect
push str._s_0x_x____ls
push 1
push 0x429048
call fcn.00404d90
add esp, 0x18
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x40bc1e
push edi
push str.Originator_format_is_incorrect
push str._s_0x_x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x40bc1e
lea eax, [edi + 0xe82c]
push eax
push 0x41d3cc
jmp 0x40bc0d
lea eax, [edi + 0x2dcb0]
push eax
push 0x41d3d4
jmp 0x40bc0d
mov eax, dword [edi + 0x2dec0]
add eax, 4
push eax
push 0x41d3dc
jmp 0x40bc0d
lea eax, [edi + 0x2dc98]
push eax
push 0x41d3e4
lea eax, [esp + 0x28]
push eax
call fcn.00404620
add esp, 0xc
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x18], ebp
test esi, esi
jne 0x40b986
test ebx, ebx
je 0x40bc3c
cmp ebp, 6
jne 0x40bd92
push 0x20a
lea eax, [esp + 0x234]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
test eax, eax
je 0x40bd1d
lea eax, [esp + 0x230]
push eax
lea ecx, [edi + 0x2dcb4]
push ecx
push str._s__s_
lea ecx, [edi + 0xe1c2]
push 0x105
push ecx
call fcn.00401fd0
add esp, 0x14
mov eax, ebx
jmp 0x40be00
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push 0x400
mov esi, eax
lea eax, [esp + 0x238]
push eax
push 0x400
push esi
push 0
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
test eax, eax
je 0x40bcfc
lea eax, [esp + 0x230]
push eax
push esi
push str.Argument_for_remote_dump_invoke_is_incorrect
push str._s_0x_x____ls
push 1
push 0x429048
call fcn.00404d90
add esp, 0x18
xor ebx, ebx
jmp 0x40bc3c
push esi
push str.Argument_for_remote_dump_invoke_is_incorrect
push str._s_0x_x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
xor ebx, ebx
jmp 0x40bc3c
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push 0x400
mov esi, eax
lea eax, [esp + 0xa38]
push eax
push 0x400
push esi
push 0
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
test eax, eax
je 0x40bd74
lea eax, [esp + 0xa30]
push eax
push esi
push str.Cant_get_ComputerName
push str._s_0x_x____ls
push 1
push 0x429048
call fcn.00404d90
add esp, 0x18
mov eax, ebx
jmp 0x40be00
push esi
push str.Cant_get_ComputerName
push str._s_0x_x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
mov eax, ebx
jmp 0x40be00
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push 0x400
mov esi, eax
lea eax, [esp + 0xa38]
push eax
push 0x400
push esi
push 0
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
test eax, eax
je 0x40bde4
lea ecx, [esp + 0xa30]
push ecx
push esi
push str.Wrong_number_of_parameters_in_remote_dump_invokation
push str._s_0x_x____ls
push 1
push 0x429048
call fcn.00404d90
add esp, 0x18
jmp 0x40bdfe
push esi
push str.Wrong_number_of_parameters_in_remote_dump_invokation
push str._s_0x_x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x1234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x1228
ret 4