Function at 0x56f029
Capabilities:
Get hostname
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x68cdf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5a4
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x24], ebx
cmp ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x56f0b5
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [eax + 0xd7c]
mov edi, dword [eax + 0xd70]
mov edx, dword [eax + 0xd78]
mov ebp, dword [eax + 0xd6c]
add ecx, edi
add edx, ebp
push ecx
mov ecx, dword [eax + 0xd68]
push edx
mov edx, dword [eax + 0xd74]
add ecx, edx
push ecx
lea ecx, [esp + 0x20]
call fcn.005b8b8b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x739a48]
lea eax, [esp + 0x24]
push eax
mov edx, dword [ecx]
call dword [edx + 0x7c]
cmp dword [0x73948b], ebx
jne 0x56f81d
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x5c4]
cmp ecx, ebx
je 0x56f0ed
mov edx, dword [ecx]
push edi
call dword [edx + 0x10]
test eax, eax
je 0x56f822
cmp edi, ebx
jne 0x56f105
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x56f105
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
je 0x56f81d
mov ecx, esi
call fcn.0056fbe3
cmp dword [esi + 0x18], ebx
je 0x56f71b
push 0x45d0cd
push 0x56b593
push 0x10
lea ecx, [esp + 0x8d]
push 0x12
push ecx
call fcn.006759d6
xor edx, edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov byte [esp + 0x80], dl
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ecx]
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x5c0], ebx
mov dword [esp + 0x24], ebx
call dword [eax + 0x14]
test eax, eax
je 0x56f682
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x284]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x56f1dc
mov edx, dword [ecx]
call dword [edx + 0xd0]
mov ecx, dword [eax + 0xd7c]
mov edx, dword [eax + 0xd70]
mov ebx, dword [eax + 0xd6c]
add ecx, edx
mov edx, dword [eax + 0xd78]
push ecx
mov ecx, dword [eax + 0xd68]
add edx, ebx
push edx
mov edx, dword [eax + 0xd74]
add ecx, edx
push ecx
lea ecx, [esp + 0x44]
call fcn.005b8b8b
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x14]
lea eax, [esp + 0x70]
push edx
push eax
mov ecx, 0x739758
call fcn.005a5276
mov ecx, dword [0x73932b]
mov eax, 1
cmp ecx, eax
jne 0x56f272
mov ecx, dword [0x739758]
mov ebx, 2
cmp ecx, ebx
jne 0x56f272
mov ecx, dword [0x739870]
test ecx, ecx
je 0x56f272
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x56f272
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x56f272
mov ecx, dword [esi + 0xc]
mov edx, dword [0x739884]
mov edi, dword [0x739888]
mov dword [esp + 0x20], eax
mov eax, dword [0x739880]
mov bp, word [ecx + 8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x54], bp
lea edx, [esp + 0x44]
mov byte [esp + 0x5bc], 1
push edx
call fcn.00483862
mov byte [esp + 0x5bc], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x56f60a
mov ecx, dword [0x739a48]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], 0x7db3d0
mov eax, dword [ecx]
lea edx, [esp + 0x70]
push edx
call dword [eax + 0x38]
mov al, byte [esp + 0x7f]
test al, al
jne 0x56f83d
mov al, byte [esp + 0x80]
test al, al
je 0x56f2dd
mov eax, dword [0x739754]
xor ebx, ebx
cmp eax, ebx
je 0x56f2c4
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [esp + 0x71]
push ecx
push 0x7b3220
push 0x71f200
call fcn.00674915
add esp, 0xc
jmp 0x56f2df
xor ebx, ebx
cmp dword [esi + 0x29e], ebx
je 0x56f396
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x2a2]
call fcn.00560db7
push eax
push edi
push 0x7b3200
push 0x7354c8
call fcn.005a03fc
mov eax, dword [0x739758]
add esp, 0x10
cmp eax, 2
jne 0x56f34a
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x2a2]
call fcn.00560db7
push eax
push edi
push 0x7b31c8
push 0x71f200
call fcn.00674915
mov eax, dword [0x739754]
add esp, 0x10
cmp eax, ebx
je 0x56f34a
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x2a2]
mov eax, dword [ecx]
call dword [eax + 0x264]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0x75
mov word [esp + 0x68], ax
lea ecx, [esp + 0x58]
mov byte [esp + 0x5bc], 2
push ecx
lea ecx, [esi + 0x1c]
call fcn.0056e9c4
mov byte [esp + 0x5bc], 0
jmp 0x56f42d
cmp dword [0x7398e8], ebx
je 0x56f42d
mov al, byte [esp + 0x7d]
test al, al
je 0x56f3d8
mov ecx, dword [esi + 0x14]
mov edi, dword [esp + 0x75]
mov edx, dword [ecx]
call dword [edx + 0x30]
cmp edi, eax
je 0x56f3d8
mov ecx, dword [esi + 0x14]
mov edi, dword [esp + 0x75]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [esi + 0x14]
push eax
push edi
call fcn.00560db7
push eax
push 0x7b319c
jmp 0x56f408
cmp dword [0x7398e8], ebx
je 0x56f42d
mov al, byte [esp + 0x7e]
test al, al
je 0x56f42d
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ecx, dword [esp + 0x79]
cmp ecx, eax
je 0x56f42d
push eax
push ecx
mov ecx, dword [esi + 0x14]
call fcn.00560db7
push eax
push 0x7b316c
push 0x7354c8
call fcn.005a03fc
mov ecx, dword [esi + 0x14]
add esp, 0x14
call fcn.00560db7
mov dword [esi + 0x29e], 1
mov dword [esi + 0x2a2], eax
cmp dword [0x73932b], 3
jne 0x56f52f
mov ecx, dword [esi + 0x14]
call fcn.00560db7
cmp eax, dword [esi + 0x288]
jbe 0x56f52f
mov ecx, dword [esi + 0x14]
call fcn.00560db7
mov dword [esi + 0x28c], eax
mov eax, dword [0x7b2f88]
mov ecx, dword [0x7b2f8c]
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x1a8], ecx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1ac]
rep stosd dword es:[edi], eax
mov dx, 1
lea eax, [esp + 0x30]
sub dx, word [esi + 0x290]
lea ecx, [esp + 0x1a4]
push eax
push ecx
mov dword [esp + 0x38], 0x104
mov word [esi + 0x290], dx
mov dword [esi + 0x296], ebx
mov dword [esi + 0x29a], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, dword [0x7b2f40]
xor eax, eax
mov ax, word [esi + 0x290]
push edx
mov edx, dword [0x7b2f3c]
inc eax
lea ecx, [esp + 0x1a8]
push eax
push ecx
push edx
push 0x736d34
lea eax, [esp + 0x4c4]
push 0x7b315c
push eax
call fcn.00674915
mov ecx, dword [esi + 0x14]
add esp, 0x1c
lea eax, [esp + 0x4b0]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov edi, dword [esi + 0x292]
inc edi
mov dword [esi + 0x292], edi
mov eax, dword [esi + 8]
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x288]
shl ecx, 1
add eax, ecx
mov dword [esi + 0x288], eax
call fcn.005f9703
mov ecx, dword [esi + 0x14]
mov ebp, eax
lea eax, [esp + 0x70]
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
mov ebx, eax
call fcn.005f9703
mov edi, eax
mov eax, dword [0x6eb9f8]
sub edi, ebp
cmp edi, eax
jbe 0x56f55d
mov dword [0x6eb9f8], edi
cmp edi, 0x19
jbe 0x56f594
mov ecx, dword [0x6eba18]
mov eax, dword [0x774884]
inc ecx
test eax, eax
mov dword [0x6eba18], ecx
je 0x56f594
mov ecx, dword [esi + 0x14]
push edi
call fcn.00560db7
push eax
push 0x7b3140
push 0x7354c8
call fcn.005a03fc
add esp, 0x10
mov ecx, dword [0x6eba1c]
mov eax, dword [0x6eba04]
add ecx, edi
inc eax
mov dword [0x6eba04], eax
mov eax, dword [0x6eba10]
mov dword [0x6eba1c], ecx
mov ecx, dword [0x6eba38]
add eax, edi
inc ecx
cmp ecx, 4
mov dword [0x6eba10], eax
mov dword [0x6eba38], ecx
jne 0x56f5df
shr eax, 2
mov dword [0x6eba2c], eax
xor eax, eax
mov dword [0x6eba10], eax
mov dword [0x6eba38], eax
mov ecx, dword [0x739a48]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov edx, dword [esi + 0x284]
xor eax, eax
test edx, edx
sete al
push eax
mov ecx, 0x739ec8
call fcn.005ae4aa
test ebx, ebx
je 0x56fa58
cmp dword [0x739758], 2
jne 0x56f625
mov ecx, dword [esi + 0x14]
mov edi, dword [0x73986c]
call fcn.00560db7
cmp edi, eax
je 0x56f68e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x56f637
mov eax, dword [esi + 0x284]
test eax, eax
jne 0x56f63a
inc dword [esi + 4]
cmp dword [0x73932b], 3
jne 0x56f66b
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ecx, dword [esi + 0x18]
push eax
mov edi, dword [ecx]
mov ecx, dword [esi + 0x14]
call fcn.00560db7
mov ecx, dword [esi + 0x18]
push eax
call dword [edi + 0x1c]
call fcn.005f9703
mov dword [esi + 0x2a6], eax
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x70]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jne 0x56f175
xor ebx, ebx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
je 0x56f6b6
push 0x45d0cd
push 0x10
lea eax, [esp + 0x89]
push 0x12
push eax
mov dword [esp + 0x5cc], 0xffffffff
call fcn.006758b6
xor eax, eax
jmp 0x56f822
cmp dword [0x73932b], 3
jne 0x56f6fa
call fcn.005f9703
mov edi, eax
mov eax, dword [esi + 0x2a6]
cmp eax, ebx
je 0x56f6d7
add eax, 0x64
cmp eax, edi
jae 0x56f6fa
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ecx, dword [esi + 0x18]
push eax
mov ebp, dword [ecx]
mov ecx, dword [esi + 0x14]
call fcn.00560db7
mov ecx, dword [esi + 0x18]
push eax
call dword [ebp + 0x1c]
mov dword [esi + 0x2a6], edi
push 0x45d0cd
push 0x10
lea edx, [esp + 0x89]
push 0x12
push edx
mov dword [esp + 0x5cc], 0xffffffff
call fcn.006758b6
cmp dword [esi + 0x10], ebx
je 0x56f81d
call fcn.005f9703
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
je 0x56f7b5
mov ecx, dword [esi + 4]
lea edi, [esi + 0x278]
mov dword [edi], ecx
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x56f775
mov eax, 0x3e8
xor edx, edx
div dword [esi + 8]
mov ebp, eax
mov eax, dword [esi + 0x284]
cmp eax, ebx
jne 0x56f77b
call fcn.0056b313
shl eax, 8
xor edx, edx
div ebp
mov dword [esi + 0x27c], eax
jmp 0x56f77b
mov dword [esi + 0x27c], ebx
mov ecx, dword [esi + 0x10]
push edi
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp dword [esi + 0xc], ebx
je 0x56f7a9
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x40]
test eax, eax
je 0x56f7a9
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x44]
test eax, eax
je 0x56f822
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x3c]
test eax, eax
je 0x56f822
call fcn.005f9703
mov edx, dword [esp + 0x10]
mov ecx, dword [0x6eba40]
sub eax, edx
cmp eax, ecx
jbe 0x56f7cf
mov dword [0x6eba40], eax
mov ecx, dword [0x6eba3c]
mov ebp, dword [0x6eb9fc]
add ecx, eax
inc ebp
mov dword [0x6eba3c], ecx
mov ecx, dword [0x6eba28]
add ecx, eax
mov eax, dword [0x6eba0c]
inc eax
mov dword [0x6eb9fc], ebp
cmp eax, 4
mov dword [0x6eba28], ecx
mov dword [0x6eba0c], eax
jne 0x56f81d
shr ecx, 2
mov dword [0x6eba14], ecx
mov dword [0x6eba28], ebx
mov dword [0x6eba0c], ebx
mov eax, 1
mov ecx, dword [esp + 0x5b4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5b0
ret 4
mov ecx, dword [esi + 0x14]
call fcn.00560db7
push eax
push 0x7b3128
push 0x7354c8
call fcn.005a03fc
mov eax, dword [0x739754]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
je 0x56f86b
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [esi + 0x14]
call fcn.00560db7
mov edx, dword [esp + 0x70]
mov dword [esi + 0x2a2], eax
xor eax, eax
and edx, 0xff
jbe 0x56f8aa
lea ecx, [esp + 0x81]
mov edi, 0x75
cmp dword [ecx + 0xc], edi
je 0x56f8a2
inc eax
add ecx, 0x12
cmp eax, edx
jb 0x56f893
jmp 0x56f8aa
mov eax, dword [ecx]
mov dword [esi + 0x2a2], eax
mov ecx, dword [0x7b2f88]
mov edx, dword [0x7b2f8c]
mov dword [esp + 0x2a8], ecx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2b0]
mov dword [esp + 0x2ac], edx
mov dword [esp + 0x10], 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28c]
mov ecx, dword [esi + 0x2a2]
cmp eax, ecx
jb 0x56f8f6
mov dword [esi + 0x296], 1
cmp dword [esi + 0x29a], ebx
je 0x56f92f
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx]
call dword [edi + 0x264]
mov ecx, dword [esi + 0x14]
push eax
call dword [edi + 0x260]
cmp eax, ebx
je 0x56f920
mov ecx, dword [eax + 0x76]
or ch, 0x20
mov dword [eax + 0x76], ecx
mov ecx, dword [esi + 0x14]
push 1
mov edx, dword [ecx]
call dword [edx + 0x50]
jmp 0x56f68e
cmp dword [esi + 0x296], ebx
je 0x56f953
mov cx, 1
mov dword [esi + 0x29a], 1
sub cx, word [esi + 0x290]
mov word [esi + 0x290], cx
lea edx, [esp + 0x10]
lea eax, [esp + 0x2a8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [0x7b2f40]
xor edx, edx
mov dx, word [esi + 0x290]
push ecx
mov ecx, dword [0x7b2f3c]
inc edx
lea eax, [esp + 0x2ac]
push edx
push eax
push ecx
push 0x736d34
lea edx, [esp + 0x3c0]
push 0x7b315c
push edx
call fcn.00674915
mov ecx, dword [esi + 0x14]
add esp, 0x1c
lea edx, [esp + 0x3ac]
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
test eax, eax
je 0x56fa04
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x48]
lea ecx, [esi + 0x1c]
call fcn.0056eaab
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x29e], ebx
mov dword [esi + 0x2a2], ebx
call fcn.00560db7
mov dword [esi + 0x28c], eax
mov ecx, dword [esi + 8]
mov dword [esi + 0x296], 1
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov dword [esi + 0x288], edx
jmp 0x56f682
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx]
call dword [edi + 0x264]
mov ecx, dword [esi + 0x14]
push eax
call dword [edi + 0x260]
cmp eax, ebx
je 0x56fa26
mov ecx, dword [eax + 0x76]
or ch, 0x20
mov dword [eax + 0x76], ecx
mov ecx, dword [esi + 0x14]
push 1
mov eax, dword [ecx]
call dword [eax + 0x50]
push 0x45d0cd
push 0x10
lea ecx, [esp + 0x89]
push 0x12
push ecx
mov dword [esp + 0x5cc], 0xffffffff
call fcn.006758b6
xor eax, eax
jmp 0x56f822
push 0x45d0cd
push 0x10
lea edx, [esp + 0x89]
push 0x12
push edx
mov dword [esp + 0x5cc], 0xffffffff
call fcn.006758b6
xor eax, eax
jmp 0x56f822