Function at 0x10005850
Capabilities:
Capture screenshot
Create thread

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x244]
mov esi, ecx
push edi
push 0x1f41
lea ecx, [esi + 0x134]
call fcn.10003760
test eax, eax
je 0x10005ed2
lea ecx, [esi + 0x20]
push edi
push 0x1f53
mov dword [esp + 0x40], ecx
call fcn.10003760
test eax, eax
je 0x10005ed2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x2000000
push 0
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_OpenInputDesktop]
test eax, eax
je 0x100058c1
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebp, eax
push 8
push ebp
call edi
push 0xa
push ebp
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x18]
mov eax, ecx
mov ebx, 0x30
cdq
mov edi, ebx
idiv edi
mov eax, 0x2aaaaaab
test edx, edx
jne 0x10005910
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x1000591e
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx + 1]
mov dword [esi + 0x2a4], edx
mov ecx, dword [esi + 0x1c]
mov eax, ecx
mov edi, ebx
cdq
idiv edi
mov eax, 0x2aaaaaab
test edx, edx
jne 0x10005945
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x10005953
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx + 1]
mov dword [esi + 0x2a8], edx
mov eax, dword [esi + 0x2a4]
imul eax, edx
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x298], eax
mov ecx, dword [esi + 0x2a4]
imul ecx, dword [esi + 0x2a8]
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
add esp, 8
mov dword [esi + 0x294], eax
mov eax, dword [esi + 0x18]
push edx
push eax
push ebp
call edi
mov dword [esi + 0x288], eax
mov eax, dword [esi + 0x2a4]
imul eax, dword [esi + 0x2a8]
push ebx
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
push ebp
call edi
push ebx
push ebx
push ebp
mov dword [esi + 0x28c], eax
call edi
lea ecx, [esi + 0x25c]
push 0
push ecx
push 0
push ebx
push 0
push eax
push ebp
mov dword [esi + 0x290], eax
mov dword [ecx], 0x28
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov word [esi + 0x268], 1
mov word [esi + 0x26a], 0x18
mov dword [esi + 0x26c], 0
call dword [sym.imp.GDI32.dll_GetDIBits]
mov ecx, dword [esi + 0x270]
mov eax, 0xaaaaaaab
mul ecx
imul ecx, dword [esi + 0x2a4]
imul ecx, dword [esi + 0x2a8]
shr edx, 5
mov dword [esi + 0x24c], edx
push ecx
shr edx, 1
push 0
mov dword [esi + 0x250], edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea edi, [esi + 0x348]
mov dword [esi + 0x344], eax
push edi
push 0
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [esi + 0x270]
mov eax, dword [edi]
imul edx, dword [esi + 0x2a4]
imul edx, dword [esi + 0x2a8]
mov dword [esi + 0x330], edx
mov edx, dword [esi + 0x334]
mov ecx, dword [eax]
push edx
mov edx, dword [esi + 0x330]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x270]
mov dword [esi + 0x340], eax
add ecx, 0x21
imul ecx, dword [esi + 0x2a4]
imul ecx, dword [esi + 0x2a8]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 0x270]
mov edi, eax
add ecx, 0x21
xor eax, eax
imul ecx, dword [esi + 0x2a4]
imul ecx, dword [esi + 0x2a8]
mov edx, ecx
mov dword [esi + 0x254], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x270]
add eax, 0x21
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 0x270]
mov edi, eax
add ecx, 0x21
xor eax, eax
mov edx, ecx
mov dword [esi + 0x258], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 8
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
call edi
mov ebx, eax
mov eax, dword [esi + 0x288]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push 0xcc0020
push 0
push 0
push ebp
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call edi
mov ebp, eax
mov eax, dword [esi + 0x290]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x2a8]
mov edi, dword [esi + 0x254]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x24], eax
jle 0x10005c28
mov dword [esp + 0x10], eax
jmp 0x10005b93
xor eax, eax
mov ecx, dword [esi + 0x2a4]
mov dword [esp + 0x20], eax
cmp ecx, eax
jle 0x10005c06
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0xcc0020
push ecx
push edx
push ebx
push 0x30
push 0x30
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esi + 0x25c]
push 0
push eax
mov eax, dword [esi + 0x290]
push edi
push 0x30
push 0
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [esi + 0x270]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x2a4]
add edi, edx
mov edx, dword [esp + 0x14]
inc eax
add edx, 0x30
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
jl 0x10005ba5
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x2a8]
inc eax
add edx, 0x30
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jl 0x10005b91
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call edi
push ebp
call edi
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov dx, word [esi + 0x18]
mov ax, word [esi + 0x1c]
xor ebp, ebp
lea ecx, [esp + 0x3c]
lea edi, [esi + 8]
push ebp
mov word [esp + 0x1c], dx
push ecx
push edi
lea edx, [esp + 0x24]
lea ebx, [esi + 0x134]
push 6
mov dword [esp + 0x2a], ebp
push edx
mov ecx, ebx
mov dword [esp + 0x50], 4
mov word [esp + 0x2e], ax
mov word [esp + 0x30], 0x30
call fcn.100038a0
test eax, eax
je 0x10005ed2
mov di, word [edi]
cmp di, 1
jne 0x10005ca1
mov dword [esi + 0x2b8], 0x1e
jmp 0x10005cbe
cmp di, 2
jne 0x10005cb4
lea edi, [esi + 0x2ec]
push str.image_gif
jmp 0x10005cc9
mov dword [esi + 0x2b8], 0x64
lea edi, [esi + 0x2ec]
push str.image_jpeg
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 0x2bc]
push eax
push edi
call fcn.10007880
mov eax, 1
lea ecx, [esi + 0x2d0]
mov dword [esi + 0x2cc], eax
mov edx, dword [0x1000d3dc]
mov dword [ecx], edx
mov edx, dword [0x1000d3e0]
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
mov dword [ecx + 4], edx
mov edx, dword [0x1000d3e4]
add esp, 8
mov dword [ecx + 8], edx
mov edx, dword [0x1000d3e8]
mov dword [esi + 0x2e0], eax
lea eax, [esi + 0x2b8]
mov dword [ecx + 0xc], edx
mov dword [esi + 0x2e8], eax
mov ecx, 0x7f
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x40]
mov dword [esi + 0x2e4], 4
push ecx
push 0x40000000
mov ecx, ebx
stosb byte es:[edi], al
call fcn.100035b0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.100031e0
test eax, eax
je 0x10005ed2
mov eax, dword [esi + 0x348]
lea edi, [esi + 0x330]
push edi
mov edx, ebp
mov dword [esi + 0x338], ebp
push ebp
mov dword [esi + 0x33c], ebp
push edx
mov edx, dword [esi + 0x338]
mov dword [edi], ebp
mov dword [edi + 4], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esi + 0x288]
push ebp
push eax
call fcn.10006220
add esp, 8
lea ecx, [esi + 0x2cc]
mov ebp, eax
mov eax, dword [esi + 0x348]
push ecx
lea ecx, [esi + 0x2bc]
push ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.1000c202
xor ecx, ecx
cmp eax, ecx
je 0x10005dde
mov dword [ebp + 8], eax
cmp ebp, ecx
je 0x10005ded
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
xor ecx, ecx
mov eax, dword [esi + 0x348]
mov dword [esi + 0x338], ecx
mov dword [esi + 0x33c], ecx
mov edx, dword [esi + 0x33c]
push edi
push 1
push edx
mov edx, dword [esi + 0x338]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
push 4
push edi
mov ecx, ebx
call fcn.100031e0
test eax, eax
je 0x10005ed2
mov eax, dword [edi]
mov ecx, dword [esi + 0x340]
push eax
push ecx
mov ecx, ebx
call fcn.100031e0
test eax, eax
je 0x10005ed2
mov edi, dword [sym.imp.MSVCRT.dll__beginthread]
xor edx, edx
mov dword [esp + 0x2c], edx
push esi
push edx
push 0x10005ef0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], edx
call edi
push esi
push 0
push 0x10005280
mov dword [esp + 0x40], eax
call edi
push esi
push 0
push 0x100051d0
mov dword [esp + 0x50], eax
call edi
add esp, 0x24
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push 1
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0x3e8
mov dword [esi + 0x2b4], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.10003880
mov ecx, dword [esp + 0x38]
call fcn.10003880
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x230
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x230
ret 4