Function at 0x464200
Capabilities:
Get hostname
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48415e
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4a206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
push 8
call fcn.0042b582
add esp, 4
mov dword [ebp - 0x60], eax
push 0x464f10
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00404750
push 8
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0042b582
add esp, 4
mov dword [ebp - 0x60], eax
push 0x465620
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00404750
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], eax
cmp dword [eax + 4], 0
jne 0x464295
push 1
call fcn.00429739
mov eax, dword [ebp - 0x58]
add esp, 4
push dword [eax + 4]
push dword [eax]
call fcn.00429c2c
add esp, 8
test eax, eax
je 0x4642af
push eax
call fcn.0042970c
add esp, 4
mov eax, dword [ebp - 0x58]
mov dword [eax], 0
mov dword [eax + 4], 0
cmp dword [edi + 4], 0
jne 0x4642cf
push 1
call fcn.00429739
add esp, 4
push dword [edi + 4]
push dword [edi]
call fcn.00429c2c
add esp, 8
test eax, eax
je 0x4642e9
push eax
call fcn.0042970c
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
cmp dword [esi + 0x10], 0
je 0x4645d8
push ecx
push 1
lea ecx, [esi + 0x14]
call fcn.00412bb0
add esp, 4
lea ecx, [esi + 0x9c]
push 2
call fcn.00412bb0
add esp, 4
lea ecx, [esi + 0x124]
push 0xf
call fcn.00412bb0
mov eax, dword [esi + 0x10]
add esp, 8
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x464351
push edx
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov eax, dword [esi + 0x10]
mov al, byte [eax]
test al, al
je 0x464384
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x46436f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x464384
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x1c]
mov edi, dword [eax + 0x18]
mov dword [ebp - 0x60], edi
lea eax, [ecx - 1]
cmp eax, 3
ja 0x4645d8
xor eax, eax
cmp edi, 1
sete al
lea eax, [eax*4 - 1]
add eax, ecx
mov eax, dword [eax*4 + 0x4960a0]
mov dword [0x4b035c], eax
test eax, eax
je 0x4645d8
push 0x10
push 0x1b0
call fcn.0044c979
mov esi, eax
push 0x10
push 0x400000
mov dword [ebp - 0x58], esi
call fcn.0044c979
push 0
mov dword [esi + 0x1a0], eax
lea eax, [ebp - 0x50]
push esi
push eax
push 0x4c
push 0x495498
call dword [0x4b035c]
mov eax, dword [0x4b01bc]
lea edx, [ebp - 0x50]
add esp, 0x24
mov ecx, 0x40
mov esi, 0x20
mov al, byte [eax + 2]
test al, al
mov eax, str.e_j_J_a
cmovne esi, ecx
cmp edi, 1
mov ecx, 0x4960c0
mov edi, esi
cmovne ecx, eax
sub edi, 4
jb 0x464441
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x464446
add edx, 4
add ecx, 4
sub edi, 4
jae 0x464430
cmp edi, 0xfffffffc
je 0x464477
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x464473
cmp edi, 0xfffffffd
je 0x464477
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x464473
cmp edi, 0xfffffffe
je 0x464477
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x464473
cmp edi, 0xffffffff
je 0x464477
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x464477
xor al, al
jmp 0x464479
mov al, 1
mov edi, dword [ebp - 0x58]
mov byte [ebp - 0x51], al
test al, al
je 0x464500
push 1
push edi
lea eax, [ebp - 0x50]
push eax
push 0x4c
push 0x495498
call dword [0x4b035c]
add esp, 0x14
lea edx, [ebp - 0x50]
cmp dword [ebp - 0x60], 1
mov ecx, 0x495f20
mov eax, 0x495f60
cmovne ecx, eax
sub esi, 4
jb 0x4644c4
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4644c9
add edx, 4
add ecx, 4
sub esi, 4
jae 0x4644b3
cmp esi, 0xfffffffc
je 0x4644fc
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4644f6
cmp esi, 0xfffffffd
je 0x4644fc
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4644f6
cmp esi, 0xfffffffe
je 0x4644fc
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x4644f6
cmp esi, 0xffffffff
je 0x4644fc
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x4644fc
mov byte [ebp - 0x51], 0
jmp 0x464500
mov byte [ebp - 0x51], 1
push dword [edi + 0x1a0]
call fcn.0044c95a
push edi
call fcn.0044c95a
add esp, 8
cmp byte [ebp - 0x51], 0
je 0x4645d8
mov edi, dword [ebp - 0x5c]
mov eax, dword [edi + 0x10]
mov cl, byte [eax + 2]
mov edx, dword [eax + 0x3c]
mov ch, byte [eax + 4]
mov eax, dword [eax + 0x18]
mov dword [0x4b01a4], eax
mov dword [0x4b01ac], edx
mov byte [0x4b01b4], cl
test cl, cl
je 0x46454f
cmp eax, 1
mov eax, 2
jne 0x464554
mov eax, 1
imul eax, edx
inc eax
shl eax, 0x15
mov dword [0x4b01a8], eax
test ch, ch
jne 0x464576
push 0x10
push eax
call fcn.0044c979
add esp, 8
mov dword [0x4b01b0], eax
jmp 0x4645c2
call fcn.0046fad0
test eax, eax
je 0x464586
or dword [0x4b01b8], 1
push 4
push 0x20003000
push dword [0x4b01a8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4b01b0], eax
test eax, eax
jne 0x4645bb
push 0x10
push dword [0x4b01a8]
call fcn.0044c979
add esp, 8
mov dword [0x4b01b0], eax
jmp 0x4645c2
or dword [0x4b01b8], 2
call fcn.0046d400
mov eax, dword [edi + 0x10]
mov al, byte [eax + 3]
test al, al
je 0x4645f5
mov ecx, edi
call fcn.00464110
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
push 0x4b0180
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x250
call fcn.0042b582
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
lea ecx, [esi + 0xc0]
mov dword [ebp - 4], 2
call fcn.00463ff0
mov byte [ebp - 4], 3
mov edx, 8
mov ecx, dword [0x4b01bc]
mov eax, dword [ecx + 0x3c]
xor ecx, ecx
mov dword [esi + 0xb8], eax
lea eax, [eax + eax*2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x5c], ecx
call fcn.0042b5ca
add esp, 4
mov dword [ebp - 0x60], eax
test eax, eax
je 0x464670
push dword [ebp - 0x5c]
push 0
push eax
call fcn.00443980
mov eax, dword [ebp - 0x60]
add esp, 0xc
jmp 0x464672
xor eax, eax
mov dword [esi + 0x94], eax
xorps xmm0, xmm0
push 0x80
lea eax, [esi + 0x11]
push 0
movups xmmword [esi + 0xa0], xmm0
push eax
movq qword [esi + 0xb0], xmm0
call fcn.00443980
mov eax, dword [0x4b01bc]
add esp, 0xc
mov eax, dword [eax + 0xc]
push 0x7f
test eax, eax
je 0x4646ba
push eax
lea eax, [esi + 0x11]
push eax
call fcn.00446b60
add esp, 0xc
jmp 0x4646c4
lea eax, [esi + 0x11]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, esi
call fcn.004634c0
mov dword [ebp - 4], 0xffffffff
push 0xc
mov dword [0x4b0198], esi
call fcn.0042b582
mov ecx, dword [edi + 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 8]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [esi + 8], 0
mov dword [edi + 8], esi
cmp dword [esi + 4], 0
je 0x46473e
movzx eax, word [esi + 4]
push 0
push esi
push 0x47fd50
push 0
push 0
push eax
push 0x818
call fcn.00423380
add esp, 0x1c
mov dword [esi + 8], eax
test eax, eax
jne 0x46473e
push str.HTTP_Daemon_failed_to_start.
push eax
push dword [0x4b01a0]
call fcn.00466620
add esp, 0xc
mov ecx, dword [edi + 0x10]
push dword [ecx + 0x44]
push dword [ecx + 0x40]
mov ecx, dword [ecx + 0x30]
call fcn.0046f540
mov eax, dword [edi + 0xc]
add esp, 8
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x4b04c0]
test ecx, ecx
jne 0x464783
call fcn.00413740
test eax, eax
je 0x464774
xor ecx, ecx
jmp 0x464783
mov dword [0x4b04c0], 0x4b04c8
mov ecx, 0x4b04c8
call fcn.00413e00
mov ecx, dword [0x4b04c0]
mov esi, eax
test ecx, ecx
jne 0x4647c1
call fcn.00413740
test eax, eax
je 0x4647b2
xor ecx, ecx
call fcn.004122c0
mov ecx, edi
call fcn.00464110
mov eax, esi
jmp 0x4645da
mov dword [0x4b04c0], 0x4b04c8
mov ecx, 0x4b04c8
call fcn.004122c0
mov ecx, edi
call fcn.00464110
mov eax, esi
jmp 0x4645da