Function at 0x40e04d
Capabilities:
Create thread

Disassembly:
sub esp, 0x94
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], edi
mov esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ebx, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
call fcn.0048dec7
mov dword [0x76ae90], eax
call fcn.0040c6ef
cmp dword [0x76aed4], esi
jne 0x40e0d4
xor ecx, ecx
call fcn.00491ed0
push str.KVM__SLAVE_:_Child_Processing_Running...
push 2
push 0x200
push eax
mov dword [0x76aea0], eax
mov dword [eax + 0xc], 0x40cd87
mov dword [eax + 0x10], 6
call fcn.004920d4
add esp, 0x10
mov eax, dword [0x76aeac]
test eax, eax
je 0x40e107
cmp esi, 0xc8
jge 0x40e0ff
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x76aeac]
test eax, eax
jne 0x40e0dd
cmp esi, 0xc8
jl 0x40e107
test eax, eax
jne 0x40e76e
and dword [0x6e1530], 0
and dword [0x76aeb8], 0
cmp dword [0x76aed4], 0
mov dword [0x76aeac], 1
jne 0x40e13b
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
call esi
mov dword [0x6e1538], eax
call fcn.0040fd41
test ax, ax
jne 0x40e171
cmp dword [0x76aed4], 0
jne 0x40e76e
push str.KVM__SLAVE_:_initialize_gdiplus___failed
push 2
push 0x200
push dword [0x76aea0]
call fcn.004920d4
add esp, 0x10
jmp 0x40e76e
cmp dword [0x76aed4], 0
jne 0x40e194
push str.KVM__SLAVE_:_initialize_gdiplus___SUCCESS
push 2
push 0x200
push dword [0x76aea0]
call fcn.004920d4
add esp, 0x10
mov edx, ebp
mov ecx, ebx
call fcn.0040dca1
cmp dword [0x76aed4], 0
jne 0x40e1c9
xor eax, eax
push eax
push eax
push edi
push 0x40dfed
push eax
push eax
mov dword [0x6e1530], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x76aee4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x76aee8]
test edx, edx
jle 0x40e1fb
mov esi, dword [0x76aecc]
mov edi, dword [0x76aef0]
xor ecx, ecx
test edi, edi
jle 0x40e1f3
mov eax, dword [esi]
mov dword [eax + ecx*8], 0xff
inc ecx
cmp ecx, edi
jl 0x40e1e5
add esi, 4
sub edx, 1
jne 0x40e1df
mov edx, ebp
mov ecx, ebx
call fcn.0040d075
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6e1530], 0
jne 0x40e66c
mov edx, dword [0x76aee8]
test edx, edx
jle 0x40e249
mov esi, dword [0x76aecc]
mov edi, dword [0x76aef0]
xor ecx, ecx
test edi, edi
jle 0x40e241
mov eax, dword [esi]
mov byte [eax + ecx*8 + 4], 0
inc ecx
cmp ecx, edi
jl 0x40e235
add esi, 4
sub edx, 1
jne 0x40e22f
xor ecx, ecx
mov edx, ebx
push ebp
inc ecx
call fcn.0040d226
cmp dword [0x6e1530], 0
pop ecx
jne 0x40e66c
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, dword [0x76ae90]
xor edi, edi
mov dword [esp + 0x1c], edi
call fcn.0048b114
mov esi, eax
test esi, esi
je 0x40e336
movzx ecx, word [esi]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0x59
jne 0x40e390
cmp dword [0x76ae9c], 0
jne 0x40e2c7
mov eax, dword [esi + 4]
xor edi, edi
sub eax, dword [0x76ae98]
inc edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
sub eax, dword [0x76aef8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x40e312
mov ecx, dword [esi + 4]
mov ebx, dword [0x76aed8]
cmp ecx, ebx
jl 0x40e30e
mov eax, dword [0x76aedc]
add eax, ebx
cmp ecx, eax
jg 0x40e30e
mov edx, dword [esi + 8]
mov ebp, dword [0x76aec8]
cmp edx, ebp
jl 0x40e30a
mov eax, dword [0x76aebc]
add eax, ebp
cmp edx, eax
jg 0x40e30a
xor edi, edi
sub ecx, ebx
inc edi
mov dword [esp + 0x20], ecx
sub edx, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, esi
call fcn.004876b9
mov ecx, dword [0x76ae90]
call fcn.0048b114
mov esi, eax
test esi, esi
jne 0x40e287
test edi, edi
jne 0x40e41c
cmp dword [0x76ad50], 0
jne 0x40e3bc
cmp dword [0x76ae94], 0
je 0x40e3bc
cmp dword [esp + 0x14], 0
je 0x40e463
and dword [esp + 0x14], 0
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x58
pop eax
push eax
call esi
push 5
mov word [esp + 0x90], ax
call esi
mov word [esp + 0x8e], ax
mov al, byte [0x6e0ebc]
mov byte [esp + 0x90], al
lea eax, [esp + 0x8c]
jmp 0x40e45a
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x58
pop ecx
cmp ax, cx
jne 0x40e3ad
cmp dword [esp + 0x14], 0
jne 0x40e312
push ebp
push dword [esi - 0x10]
push esi
call ebx
add esp, 0xc
jmp 0x40e312
xor eax, eax
mov dword [esp + 0x1c], 1
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0x14
call dword [sym.imp.USER32.dll_GetCursorInfo]
cmp dword [0x76ae9c], 0
mov eax, dword [esp + 0x40]
jne 0x40e404
sub eax, dword [0x76ae98]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x76aef8]
jmp 0x40e418
sub eax, dword [0x76aed8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x76aec8]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], 0
jne 0x40e463
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x58
pop eax
push eax
mov dword [esp + 0x18], 1
call esi
push 5
mov word [esp + 0x98], ax
call esi
mov word [esp + 0x96], ax
lea eax, [esp + 0x94]
mov byte [esp + 0x98], 0xe
push ebp
push 5
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x2c]
call fcn.0040f942
pop ecx
cmp eax, 1
je 0x40e5f5
cmp dword [esp + 0x28], 0
je 0x40e5f5
mov edx, dword [0x76aec0]
lea eax, [esp + 0x58]
mov ecx, dword [0x76aee0]
push eax
call fcn.0040fcf6
xor ebx, ebx
pop ecx
cmp dword [0x76aee8], ebx
jle 0x40e5d3
xor edi, edi
cmp dword [0x76aef0], edi
jle 0x40e5c6
mov esi, dword [0x76aec0]
mov ebp, dword [0x76aee0]
imul esi, ebx
imul ebp, edi
cmp dword [0x6e1530], 0
jne 0x40e5c6
cmp dword [0x76aeb8], 0
je 0x40e4f6
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x6e1530], 0
je 0x40e4dc
cmp dword [0x6e1530], 0
jne 0x40e5c6
mov eax, dword [0x6e1544]
cmp eax, dword [0x6e1540]
jne 0x40e5c6
mov eax, dword [0x76aecc]
mov eax, dword [eax + ebx*4]
mov al, byte [eax + edi*8 + 4]
cmp al, 1
je 0x40e5b9
cmp al, 3
je 0x40e5b9
push edi
push ebx
push dword [esp + 0x30]
lea eax, [esp + 0x54]
mov edx, esi
push eax
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0040f603
xor ebp, ebp
add esp, 0x14
inc ebp
cmp eax, ebp
je 0x40e5b9
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40e5b9
cmp dword [0x6e1530], 0
jne 0x40e5b9
push dword [esp + 0x18]
push dword [esp + 0x4c]
push esi
call dword [esp + 0x1c]
add esp, 0xc
cmp eax, 0xfffffffc
je 0x40e5aa
test eax, eax
jne 0x40e5b0
mov eax, dword [0x76b4ec]
mov dword [0x76aeb8], ebp
test eax, eax
je 0x40e591
mov eax, dword [eax + 8]
jmp 0x40e593
xor eax, eax
push str.Agent_KVM:_KVM_PAUSE
push 4
push 0x200
push eax
call fcn.004920d4
add esp, 0x10
jmp 0x40e5b0
mov dword [0x6e1530], ebp
push ebp
push esi
call fcn.005f5b20
pop ecx
pop ecx
inc edi
cmp edi, dword [0x76aef0]
jl 0x40e4bd
inc ebx
cmp ebx, dword [0x76aee8]
jl 0x40e4af
push 1
push dword [esp + 0x2c]
call fcn.005f5b20
and dword [esp + 0x30], 0
xorps xmm0, xmm0
mov eax, dword [0x6e1530]
pop ecx
pop ecx
movlpd qword [esp + 0x50], xmm0
jmp 0x40e620
cmp dword [0x76aed4], 0
jne 0x40e618
push str.KVM__SLAVE_:_get_desktop_buffer___failed
push 2
push 0x200
push dword [0x76aea0]
call fcn.004920d4
add esp, 0x10
xor eax, eax
inc eax
mov dword [0x6e1530], eax
mov esi, dword [0x76aed0]
test eax, eax
jne 0x40e66c
test esi, esi
jle 0x40e65c
cmp esi, 0x32
jle 0x40e640
push 0x32
sub esi, 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e649
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [0x6e1530]
test eax, eax
je 0x40e62a
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x40e219
mov eax, dword [0x76aecc]
xor ebx, ebx
test eax, eax
je 0x40e6ab
mov esi, ebx
cmp dword [0x76aee8], ebx
jle 0x40e69b
push 1
push dword [eax + esi*4]
call fcn.005f5b20
mov eax, dword [0x76aecc]
inc esi
pop ecx
pop ecx
cmp esi, dword [0x76aee8]
jl 0x40e681
push 1
push eax
call fcn.005f5b20
pop ecx
pop ecx
mov dword [0x76aecc], ebx
mov eax, dword [0x76af08]
test eax, eax
je 0x40e6be
push 1
push eax
call fcn.005f5b20
pop ecx
pop ecx
push dword [0x76af74]
mov dword [0x76af10], ebx
mov dword [0x76af08], ebx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
push dword [0x76af34]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [0x76af70]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x76af0c]
test eax, eax
je 0x40e6ff
push eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x76ae7c]
mov dword [0x76af0c], ebx
test eax, eax
je 0x40e729
push eax
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov dword [0x76ae7c], ebx
call fcn.0040c40b
jmp 0x40e729
mov ecx, eax
call fcn.004876b9
mov ecx, dword [0x76ae90]
call fcn.0048b114
test eax, eax
jne 0x40e722
mov ecx, dword [0x76ae90]
call fcn.0048e21d
push str.KVM__SLAVE_:_Process_Exiting...
push 2
push 0x200
push dword [0x76aea0]
call fcn.004920d4
push 1
push dword [esp + 0x44]
mov dword [0x76aeac], ebx
call fcn.005f5b20
add esp, 0x18
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x94
ret