Function at 0x1dd4e78
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1f07010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
cmp byte [eax + 0xb], 0
js 0x1dd4eb6
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
jmp 0x1dd4ec2
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.01d741c0
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1dd4ecd
mov eax, dword [ebx + 4]
test eax, eax
je 0x1dd54f5
cmp eax, 2
jb 0x1dd4f48
mov ecx, ebx
call fcn.01dd592a
cmp word [eax], 0x22
jne 0x1dd4ef4
mov ecx, ebx
call fcn.01cd2dfe
cmp word [eax], 0x22
je 0x1dd4f0e
mov ecx, ebx
call fcn.01dd592a
cmp word [eax], 0x27
jne 0x1dd4f48
mov ecx, ebx
call fcn.01cd2dfe
cmp word [eax], 0x27
jne 0x1dd4f48
movzx eax, byte [ebx + 0xb]
test al, al
js 0x1dd4f26
test eax, eax
je 0x1dd5919
dec eax
mov byte [ebx + 0xb], al
mov ecx, ebx
jmp 0x1dd4f37
mov eax, dword [ebx + 4]
test eax, eax
je 0x1dd5919
dec eax
mov ecx, dword [ebx]
mov dword [ebx + 4], eax
mov word [ecx + eax*2], 0
mov ecx, ebx
push 1
push 0
call fcn.01d5b16c
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor eax, eax
dec eax
mov dword [ebp - 0x244], eax
test esi, esi
je 0x1dd4f74
push 0x1ef4592
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x244], eax
xor edi, edi
mov dword [ebp - 0x258], esi
mov esi, dword [edi*8 + 0x1ef45c4]
test esi, esi
je 0x1dd58fb
push esi
call fcn.01e79bc6
add esp, 4
movzx edx, byte [ebx + 0xb]
mov ecx, ebx
test dl, dl
jns 0x1dd4fa0
mov ecx, dword [ebx]
test eax, eax
mov dword [ebp - 0x230], edi
je 0x1dd5087
mov dword [ebp - 0x234], esi
test dl, dl
jns 0x1dd4fbb
mov edx, dword [ebx + 4]
cmp edx, eax
jl 0x1dd5219
lea ebx, [ecx + edx*2]
mov dword [ebp - 0x248], ecx
mov ecx, dword [ebp - 0x234]
movzx esi, word [ecx]
mov ecx, dword [ebp - 0x248]
lea edi, [ecx + edx*2 - 2]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x240], ecx
mov ecx, esi
mov edi, edx
sub edi, eax
inc edi
je 0x1dd5219
inc edx
xor edi, edi
mov esi, dword [ebp - 0x240]
cmp word [esi + edi], cx
je 0x1dd5014
add edi, 2
dec edx
cmp eax, edx
jne 0x1dd4ffb
jmp 0x1dd5219
mov esi, dword [ebp - 0x240]
add esi, edi
je 0x1dd5219
mov word [ebp - 0x24c], cx
mov dword [ebp - 0x23c], ebx
xor edx, edx
mov ecx, esi
movzx esi, word [esi + edx*2]
mov ebx, dword [ebp - 0x234]
cmp si, word [ebx + edx*2]
jne 0x1dd504f
inc edx
cmp eax, edx
mov esi, ecx
jne 0x1dd5031
jmp 0x1dd5182
mov edx, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x240]
sub edx, ecx
lea ebx, [ecx + edi]
add ebx, 2
sub edx, edi
sar edx, 1
mov dword [ebp - 0x240], ebx
cmp edx, eax
mov ebx, dword [ebp - 0x23c]
movzx ecx, word [ebp - 0x24c]
jge 0x1dd4fed
jmp 0x1dd5219
mov dword [ebp - 0x240], 0
push esi
call fcn.01e79bc6
add esp, 4
mov dword [ebp - 0x234], eax
push 0x208
push 0xff
lea esi, [ebp - 0x218]
push esi
call fcn.01e63410
add esp, 0xc
mov edi, dword [edi*8 + 0x1ef45c8]
mov ecx, dword [ebp - 0x244]
call dword [section..00cfg]
xor eax, eax
push eax
push edi
push esi
push eax
call ecx
test eax, eax
jne 0x1dd50e1
mov word [ebp - 0x218], 0
xor eax, eax
dec eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x224]
push esi
call fcn.01cd2ef8
movzx eax, byte [ebp - 0x219]
test al, al
jns 0x1dd5113
mov eax, dword [ebp - 0x220]
test eax, eax
mov esi, dword [ebp - 0x240]
mov edi, dword [ebp - 0x234]
je 0x1dd51d8
lea ecx, [ebp - 0x224]
call fcn.01cd2dfe
cmp word [eax], 0x5c
jne 0x1dd51d8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1dd5147
mov eax, dword [ebx + 4]
lea edx, [edi + esi]
cmp eax, edx
jbe 0x1dd51d8
mov ecx, ebx
push edx
call fcn.01cfab98
cmp word [eax], 0x5c
jne 0x1dd51d8
movzx eax, byte [ebp - 0x219]
test al, al
js 0x1dd51b7
test eax, eax
je 0x1dd5919
dec eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x224]
jmp 0x1dd51d2
cmp esi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x248]
je 0x1dd5219
sub esi, eax
cmp esi, 0xfffffffe
je 0x1dd5219
sar esi, 1
mov dword [ebp - 0x240], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x230]
mov esi, dword [ebp - 0x234]
jmp 0x1dd5091
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1dd5919
dec eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
mov word [ecx + eax*2], 0
movzx eax, byte [ebp - 0x219]
test al, al
cmovs eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
lea ecx, [ebp - 0x224]
cmovns edx, ecx
mov ecx, ebx
push eax
push edx
push edi
push esi
call fcn.01d73d52
cmp byte [ebp - 0x219], 0
jns 0x1dd5219
push dword [ebp - 0x224]
call fcn.01e5f36c
add esp, 4
mov edi, dword [ebp - 0x230]
inc edi
cmp edi, 7
mov ebx, dword [ebp + 8]
jne 0x1dd4f7c
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x240], eax
je 0x1dd524f
push 0x1ef45fe
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1dd5252
xor eax, eax
dec eax
mov dword [ebp - 0x234], eax
mov dl, byte [ebx + 0xb]
test dl, dl
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov esi, ebx
cmovs esi, eax
movzx ecx, dl
mov ebx, ecx
cmovs ebx, edi
cmp ebx, 0xc
jl 0x1dd5304
mov dword [ebp - 0x230], eax
lea eax, [esi + ebx*2]
mov dword [ebp - 0x244], eax
lea eax, [esi + ebx*2]
add eax, 0xfffffffe
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], esi
add ebx, 0xfffffff5
xor eax, eax
cmp word [esi + eax], 0x24
je 0x1dd52ad
add eax, 2
dec ebx
jne 0x1dd529e
jmp 0x1dd52fe
mov ebx, esi
add ebx, eax
je 0x1dd52fe
mov dword [ebp - 0x22c], edi
mov byte [ebp - 0x23c], dl
mov edx, 0xffffffe8
movzx edi, word [ebx + edx + 0x18]
cmp di, word [edx + 0x1ef463e]
jne 0x1dd52dc
add edx, 2
jne 0x1dd52c4
jmp 0x1dd5586
mov ebx, dword [ebp - 0x248]
sub ebx, esi
add esi, eax
add esi, 2
sub ebx, eax
sar ebx, 1
cmp ebx, 0xc
mov dl, byte [ebp - 0x23c]
mov edi, dword [ebp - 0x22c]
jge 0x1dd5299
mov eax, dword [ebp - 0x230]
test dl, dl
cmovns eax, dword [ebp + 8]
cmovs ecx, edi
cmp ecx, 0xf
jge 0x1dd5398
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor edi, edi
dec edi
mov eax, edi
test esi, esi
je 0x1dd5338
push 0x1ef4662
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x234], esi
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1dd5366
push 0x1ef469a
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x230], esi
mov dl, byte [ebx + 0xb]
test dl, dl
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
cmovs ebx, eax
movzx ecx, dl
mov edi, ecx
cmovs edi, esi
cmp edi, 0xe
jge 0x1dd5412
mov ebx, dword [ebp + 8]
jmp 0x1dd54a1
lea esi, [eax + ecx*2]
lea edx, [eax + ecx*2]
add edx, 0xfffffffe
mov dword [ebp - 0x234], edx
mov edi, eax
add ecx, 0xfffffff2
xor edx, edx
cmp word [edi + edx], 0x24
je 0x1dd53c0
add edx, 2
dec ecx
jne 0x1dd53ae
jmp 0x1dd5316
mov ebx, edi
add ebx, edx
je 0x1dd5316
mov dword [ebp - 0x230], esi
mov esi, eax
mov eax, 0xffffffe2
movzx ecx, word [ebx + eax + 0x1e]
cmp cx, word [eax + 0x1ef465e]
jne 0x1dd53ef
add eax, 2
jne 0x1dd53d7
jmp 0x1dd5685
mov ecx, dword [ebp - 0x234]
sub ecx, edi
add edi, edx
add edi, 2
sub ecx, edx
sar ecx, 1
cmp ecx, 0xf
mov eax, esi
mov esi, dword [ebp - 0x230]
jge 0x1dd53a9
jmp 0x1dd5316
mov dword [ebp - 0x22c], eax
lea eax, [ebx + edi*2]
mov dword [ebp - 0x24c], eax
lea eax, [ebx + edi*2]
add eax, 0xfffffffe
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x254], ebx
add edi, 0xfffffff3
xor eax, eax
cmp word [ebx + eax], 0x24
je 0x1dd5447
add eax, 2
dec edi
jne 0x1dd5438
jmp 0x1dd5498
mov edi, ebx
add edi, eax
je 0x1dd5498
mov dword [ebp - 0x250], esi
mov byte [ebp - 0x235], dl
mov edx, 0xffffffe4
movzx esi, word [edi + edx + 0x1c]
cmp si, word [edx + 0x1ef46c4]
jne 0x1dd5476
add edx, 2
jne 0x1dd545e
jmp 0x1dd5743
mov edi, dword [ebp - 0x23c]
sub edi, ebx
add ebx, eax
add ebx, 2
sub edi, eax
sar edi, 1
cmp edi, 0xe
mov dl, byte [ebp - 0x235]
mov esi, dword [ebp - 0x250]
jge 0x1dd5433
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x22c]
test dl, dl
cmovns eax, ebx
cmovs ecx, esi
cmp ecx, 0xf
jge 0x1dd550c
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x1dd54bf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x234]
test eax, eax
mov esi, dword [ebp - 0x258]
je 0x1dd54d6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x240]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1dd54ea
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1dd54f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e60425
mov eax, ebx
add esp, 0x24c
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [eax + ecx*2]
lea edx, [eax + ecx*2]
add edx, 0xfffffffe
mov dword [ebp - 0x22c], edx
mov ebx, eax
add ecx, 0xfffffff2
xor edx, edx
cmp word [ebx + edx], 0x24
je 0x1dd5534
add edx, 2
dec ecx
jne 0x1dd5522
jmp 0x1dd54ae
mov edi, ebx
add edi, edx
je 0x1dd54ae
mov dword [ebp - 0x23c], esi
mov esi, eax
mov eax, 0xffffffe2
movzx ecx, word [edi + eax + 0x1e]
cmp cx, word [eax + 0x1ef46e4]
jne 0x1dd5563
add eax, 2
jne 0x1dd554b
jmp 0x1dd5823
mov ecx, dword [ebp - 0x22c]
sub ecx, ebx
add ebx, edx
add ebx, 2
sub ecx, edx
sar ecx, 1
cmp ecx, 0xf
mov eax, esi
mov esi, dword [ebp - 0x23c]
jge 0x1dd551d
jmp 0x1dd54ae
cmp ebx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x230]
mov dl, byte [ebp - 0x23c]
je 0x1dd58e5
sub ebx, dword [ebp - 0x24c]
cmp ebx, 0xfffffffe
mov edi, dword [ebp - 0x22c]
je 0x1dd5304
xor eax, eax
lea edi, [ebp - 0x224]
mov dword [edi], eax
mov esi, dword [ebp - 0x234]
mov ecx, esi
call dword [section..00cfg]
push edi
xor eax, eax
push eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x1dd5670
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.01e5f3a3
add esp, 4
mov edi, eax
mov ecx, esi
call dword [section..00cfg]
lea eax, [ebp - 0x224]
push eax
push edi
call esi
xor eax, eax
dec eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
lea esi, [ebp - 0x218]
mov ecx, esi
push edi
call fcn.01cd2ef8
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x1dd563f
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xc
push ebx
call fcn.01d73d52
cmp byte [ebp - 0x20d], 0
jns 0x1dd5663
push dword [ebp - 0x218]
call fcn.01e5f36c
add esp, 4
test edi, edi
je 0x1dd5670
push edi
call fcn.01e5f3ac
add esp, 4
mov eax, dword [ebp + 8]
mov dl, byte [eax + 0xb]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov eax, ecx
movzx ecx, dl
jmp 0x1dd5304
cmp ebx, dword [ebp - 0x230]
je 0x1dd5316
sub ebx, esi
cmp ebx, 0xfffffffe
je 0x1dd5316
xor eax, eax
lea edi, [ebp - 0x224]
mov dword [edi], eax
push edi
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [edi]
test eax, eax
je 0x1dd5316
sar ebx, 1
lea ecx, [eax + eax]
xor edx, edx
dec edx
test eax, eax
cmovs ecx, edx
push ecx
call fcn.01e5f3a3
add esp, 4
mov esi, eax
push edi
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea edi, [ebp - 0x218]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push esi
call fcn.01cd2ef8
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1dd5709
mov eax, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push edi
push 0xf
push ebx
call fcn.01d73d52
cmp byte [ebp - 0x20d], 0
jns 0x1dd572d
push dword [ebp - 0x218]
call fcn.01e5f36c
add esp, 4
test esi, esi
je 0x1dd5316
push esi
call fcn.01e5f3ac
add esp, 4
jmp 0x1dd5316
cmp edi, dword [ebp - 0x24c]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x22c]
mov dl, byte [ebp - 0x235]
je 0x1dd58f0
sub edi, dword [ebp - 0x254]
cmp edi, 0xfffffffe
mov esi, dword [ebp - 0x250]
je 0x1dd54a1
xor esi, esi
lea eax, [ebp - 0x224]
mov dword [eax], esi
lea ebx, [ebp - 0x228]
mov dword [ebx], esi
mov ecx, dword [ebp - 0x248]
call dword [section..00cfg]
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
push 0xa
push 0xffffffffffffffff
push esi
call ecx
test eax, eax
je 0x1dd5813
sar edi, 1
xor eax, eax
dec eax
lea esi, [ebp - 0x218]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp - 0x224]
call fcn.01cd2ef8
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1dd57db
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, ebx
push eax
push esi
push 0xe
push edi
call fcn.01d73d52
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x244]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x1dd5813
push dword [ebp - 0x218]
call fcn.01e5f36c
add esp, 4
mov dl, byte [ebx + 0xb]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
movzx ecx, dl
jmp 0x1dd54a1
cmp edi, dword [ebp - 0x23c]
je 0x1dd54ae
sub edi, esi
cmp edi, 0xfffffffe
je 0x1dd54ae
xor esi, esi
lea eax, [ebp - 0x224]
mov dword [eax], esi
lea ebx, [ebp - 0x228]
mov dword [ebx], esi
mov ecx, dword [ebp - 0x248]
call dword [section..00cfg]
push ebx
lea eax, [ebp - 0x224]
push eax
push 6
push 0xffffffffffffffff
push esi
call ecx
test eax, eax
je 0x1dd54ae
sar edi, 1
xor eax, eax
dec eax
lea esi, [ebp - 0x218]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp - 0x224]
call fcn.01cd2ef8
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1dd58a3
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0xf
push edi
call fcn.01d73d52
mov esi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x244]
call dword [section..00cfg]
push esi
call ecx
cmp byte [ebp - 0x20d], 0
jns 0x1dd54ae
push dword [ebp - 0x218]
call fcn.01e5f36c
add esp, 4
jmp 0x1dd54ae
mov edi, dword [ebp - 0x22c]
jmp 0x1dd5304
mov esi, dword [ebp - 0x250]
jmp 0x1dd54a1
push str.string::find__:_received_nullptr
push str.__s___nullptr
push 0xd5a
push str....._third_partylibc_srcinclude_string
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01ce782c
push str.string::pop_back__:_string_is_already_empty
push str._empty__
push 0xc69
jmp 0x1dd590a