Function at 0x300039fb
Capabilities:
Capture screenshot
Hide graphical window
Open clipboard
Query or enumerate registry value
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub esp, 0x3c
push ebx
push esi
push edi
push eax
push ecx
call fcn.3000319c
mov edi, dword [0x3000b248]
sub edi, dword [0x3000b240]
mov ebx, dword [0x3000b24c]
sub ebx, dword [0x3000b244]
cmp edi, 5
mov byte [0x3000b268], 0
jge 0x30003a3e
cmp ebx, 5
jl 0x30003eea
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp - 0x18]
push ebx
push edi
push edx
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x3000b240]
mov edx, dword [0x3000b4d0]
push 0xcc0020
mov dword [ebp - 0x24], eax
mov eax, dword [0x3000b244]
push eax
push ecx
push edx
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [0x3000b4cc]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x30003b1b
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 4
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x300017cc
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
movzx ecx, ax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x28], ecx
je 0x30003afb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x30003afb
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x30003b15
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp - 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x18]
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [0x3000b4cc]
push esi
push ecx
mov byte [0x3000b0a0], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, dword [0x3000b254]
sar ecx, 1
add ecx, dword [0x3000b250]
add eax, dword [0x3000b244]
add ecx, dword [0x3000b240]
push eax
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x30003d41
cmp byte [0x3000b49b], 0
jne 0x30003bab
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
setge dl
mov byte [0x3000b49b], dl
lea eax, [ebp - 0x1c]
push eax
push 0x3000204c
push 0x17
push esi
push 0x3000205c
call fcn.30006e0d
cmp eax, esi
jl 0x30003d41
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov word [ebp - 0x3c], 3
mov dword [ebp - 0x18], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
push eax
call edx
xor ecx, ecx
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x28], ecx
jle 0x30003d36
mov edi, edi
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
mov edi, dword [edx]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x30]
push edx
mov edx, dword [edi + 0x20]
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x30003d24
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], esi
mov ecx, dword [eax]
push 0x3000203c
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x30003d24
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
test eax, eax
jl 0x30003d24
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push 0x3000202c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x30003ce0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push 0x3000201c
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
push 0x3000200c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x30003cd5
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x30003cca
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
cmp ecx, eax
je 0x30003cf6
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x30003d14
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ecx + 0x78]
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ecx + 0x74]
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 4], esi
jne 0x30003d36
mov ecx, dword [ebp - 0x28]
add ecx, 1
cmp ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
jl 0x30003bfb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp + 0xc]
push eax
push 0x20019
push esi
push 0x300013d8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x30003da0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
push esi
push 0x30001b54
mov ebx, 4
push ecx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x30003da0
cmp dword [ebp - 0x28], ebx
jne 0x30003da0
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
jmp 0x30003da7
mov dword [ebp + 0xc], 1
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push ecx
call edi
mov ebx, eax
cmp ebx, 0x3e75
ja 0x30003eea
mov edx, dword [ebp - 8]
push edx
call edi
cmp eax, 0x3e75
ja 0x30003eea
cmp eax, esi
jle 0x30003dd9
add eax, 3
mov ecx, dword [ebp + 0xc]
mov dl, byte [0x3000b49a]
xor edi, edi
test ecx, ecx
je 0x30003e3c
test dl, dl
jne 0x30003e3c
cmp ecx, 1
mov dword [0x3000b4e8], 0x2727
mov edx, 2
jne 0x30003e1e
lea esi, [eax + ebx + 0x14]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3000762a
push 0x30001b2c
jmp 0x30003e6b
lea esi, [eax + ebx + 0x10]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3000762a
push 0x30001b0c
jmp 0x30003e6b
test dl, dl
mov dword [0x3000b4e8], 0x2728
je 0x30003e78
lea esi, [eax + ebx + 0x14]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3000762a
push 0x30001ae4
mov edi, eax
push esi
push edi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
mov ebx, dword [sym.imp.MSVCR80.dll_wcscat_s]
je 0x30003ea2
test edi, edi
je 0x30003e94
push eax
push esi
push edi
call ebx
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x30003eda
test edi, edi
je 0x30003ec9
push 0x30001adc
push esi
push edi
call ebx
mov eax, dword [ebp - 8]
push eax
push esi
push edi
call ebx
push 0x30001ad8
push esi
push edi
call ebx
add esp, 0x24
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 8], 0
test edi, edi
je 0x30003eea
push edi
call fcn.300029c7
push edi
call fcn.3000764c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8