Function at 0x10002670
Capabilities:
Access peb ldr_data
Get graphical window text
Get process heap flags
Get process heap force flags
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp eax, 0x111
je 0x10002718
ja 0x100026b8
cmp eax, 2
je 0x100026d8
cmp eax, 0x110
jne 0x10002aa3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
call sym._CredDialogInit
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
xor ebx, ebx
cmp eax, 0x113
jne 0x100026a9
cmp edx, 1
je 0x1000273a
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
mov eax, dword [eax + 0x28]
sub esp, 8
test eax, eax
je 0x100026a9
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyWindow]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
cmp edx, 0x1000066
je 0x10002988
jbe 0x10002770
cmp edx, 0x2000066
je 0x100027a0
cmp edx, 0x3000066
jne 0x10002aa3
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
lea ecx, [eax + 0x2c]
lea edx, [eax + 0x28]
mov eax, dword [ebp + 8]
sub esp, 8
call sym._CredDialogHideBalloonTip.isra.0
jmp 0x100026a9
cmp edx, 1
je 0x100027e8
cmp edx, 2
jne 0x10002aa3
mov dword [esp + 4], 2
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x100026a9
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov ebx, eax
mov dword [esp], 2
call dword [sym.imp.user32.dll_LockSetForegroundWindow]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x2c]
lea edx, [ebx + 0x28]
sub esp, 4
mov ebx, 1
call sym._CredDialogHideBalloonTip.isra.0
jmp 0x100026a9
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
mov ebx, eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], 0x65
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
lea edx, [eax + 1]
sub esp, 4
mov dword [ebp - 0x10], eax
lea eax, [edx + edx]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x18]
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x14]
sub esp, 0xc
cmp word [esi], 0
je 0x100029c0
mov dword [esp + 4], 0x5c
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], esi
call edi
test eax, eax
je 0x10002a13
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
test edx, edx
je 0x100028b0
xor edi, edi
mov word [ecx], di
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
cmp word [ecx], 0
mov eax, ecx
je 0x10002a9c
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100028c0
mov edi, eax
sub edi, ecx
sar edi, 1
sub edx, edi
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp], eax
cmp ecx, edx
cmovbe edx, ecx
add edx, edx
mov dword [esp + 8], edx
call sym._memcpy
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1000290a
mov ecx, dword [ebp - 0x10]
sub eax, 1
sub eax, edi
cmp eax, ecx
cmova eax, ecx
xor edx, edx
add edi, eax
mov eax, dword [ebx + 0x10]
mov word [eax + edi*2], dx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebx + 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], 0x66
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItemTextW]
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 4], 0x68
mov dword [esp], eax
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
sub esp, 8
cmp eax, 1
sete al
movzx eax, al
mov dword [ebx + 0x20], eax
mov dword [esp + 4], 1
jmp 0x10002786
mov dword [esp], 0x14
call dword [sym.imp.user32.dll_GetKeyState]
sub esp, 4
test al, 1
jne 0x100029f0
mov dword [esp], 1
mov ebx, 1
call dword [sym.imp.user32.dll_LockSetForegroundWindow]
sub esp, 4
jmp 0x100026a9
mov dword [esp + 8], esi
mov ebx, 1
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x100026a9
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
mov edx, eax
mov eax, dword [ebp + 8]
sub esp, 8
call sym._CredDialogShowCapsLockBalloon
jmp 0x1000299c
mov dword [esp + 4], 0x40
mov dword [esp], esi
call edi
test eax, eax
jne 0x1000289b
mov eax, dword [ebx]
cmp word [eax], 0
mov edx, eax
je 0x10002a3b
add edx, 2
cmp word [edx], 0
jne 0x10002a32
sub edx, eax
mov ecx, dword [ebx + 0x10]
mov edi, edx
mov dword [ebp - 0x14], edx
sar edi, 1
cmp dword [ebx + 0x14], edi
mov edx, edi
cmovbe edx, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov dword [esp], ecx
add edx, edx
mov dword [esp + 8], edx
call sym._memcpy
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x14]
jae 0x10002a76
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0x14]
mov word [eax + edx], 0x5c
mov edx, dword [ebx + 0x14]
add edi, 2
mov ecx, dword [ebx + 0x10]
cmp edi, edx
jae 0x100028b0
mov eax, dword [ebp - 0x14]
mov word [ecx + eax + 2], 0
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
jmp 0x100028b0
xor edi, edi
jmp 0x100028d1
xor ebx, ebx
jmp 0x100026a9