Function at 0x10001fa0
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]
cmp eax, 0x111
je 0x10002048
ja 0x10001fe8
cmp eax, 2
je 0x10002008
cmp eax, 0x110
jne 0x100023d0
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 0x10001fd6
cmp dword [ebp + 0x10], 1
je 0x1000206d
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 0x10001fd6
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 dword [ebp + 0x10], 0x1000066
je 0x100022b8
jbe 0x100020a0
cmp dword [ebp + 0x10], 0x2000066
je 0x100020d8
cmp dword [ebp + 0x10], 0x3000066
jne 0x100023d0
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 edx, eax
mov eax, dword [ebp + 8]
sub esp, 8
call sym._CredDialogHideBalloonTip
jmp 0x10001fd6
cmp dword [ebp + 0x10], 1
je 0x10002118
cmp dword [ebp + 0x10], 2
jne 0x100023d0
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 0x10001fd6
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]
mov edx, ebx
mov ebx, 1
sub esp, 4
call sym._CredDialogHideBalloonTip
jmp 0x10001fd6
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 0x100022f0
mov dword [esp + 4], 0x5c
mov edi, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], esi
call edi
test eax, eax
je 0x10002343
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x100021dd
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
cmp word [ecx], 0
mov eax, ecx
je 0x100023c9
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100021f0
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 0x10002238
mov ecx, dword [ebp - 0x10]
dec eax
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 0x100020b8
mov dword [esp], 0x14
call dword [sym.imp.user32.dll_GetKeyState]
sub esp, 4
test al, 1
jne 0x10002320
mov dword [esp], 1
mov ebx, 1
call dword [sym.imp.user32.dll_LockSetForegroundWindow]
sub esp, 4
jmp 0x10001fd6
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 0x10001fd6
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 0x100022cc
mov dword [esp + 4], 0x40
mov dword [esp], esi
call edi
test eax, eax
jne 0x100021cb
mov eax, dword [ebx]
cmp word [eax], 0
mov ecx, eax
je 0x1000236b
add ecx, 2
cmp word [ecx], 0
jne 0x10002362
sub ecx, eax
mov edi, ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x10]
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 0x100023a6
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x14]
mov word [eax + ecx], 0x5c
mov edx, dword [ebx + 0x14]
add edi, 2
cmp edi, edx
jae 0x100021dd
mov eax, dword [ebx + 0x10]
mov edi, dword [ebp - 0x14]
mov word [eax + edi + 2], 0
mov edx, dword [ebx + 0x14]
jmp 0x100021dd
xor edi, edi
jmp 0x10002201
xor ebx, ebx
jmp 0x10001fd6