joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405590
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x51824c]
cmp eax, 2
je 0x405623
push esi
push 0
push 1
push 0x51824c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4055ff
push 4
call fcn.0049d9fe
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x51824c
mov dword [esi], eax
push 0x405a50
mov dword [0x518250], esi
call fcn.00403810
mov eax, dword [0x518250]
add esp, 8
mov dword [0x51824c], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x405622
mov eax, dword [0x51824c]
cmp eax, 2
je 0x405622
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x51824c]
cmp eax, 2
jne 0x405614
pop esi
mov eax, dword [0x518250]
mov esp, ebp
pop ebp
ret

Function at 0x406800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
xor edi, edi
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
sar eax, 1
mov dword [esp + 0x18], eax
test eax, eax
jle 0x4068d3
lea ecx, [edi + edi]
lea eax, [ecx*8]
mov dword [esp + 0x14], ecx
sub eax, ecx
mov ecx, dword [ebx + eax*8 + 0x70]
mov edi, dword [ebx + eax*8 + 0x74]
lea edx, [ebx + eax*8]
mov esi, dword [edx + 0x3c]
mov eax, dword [edx + 0x38]
cmp edi, esi
jl 0x406869
jg 0x40685b
cmp ecx, eax
jbe 0x40685f
xor eax, eax
jmp 0x40687b
cmp edi, esi
jg 0x406870
jl 0x406869
cmp ecx, eax
jae 0x406870
mov eax, 1
jmp 0x40687b
mov ecx, dword [edx + 0x78]
xor eax, eax
cmp ecx, dword [edx + 0x40]
setle al
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc edi
add edi, eax
lea eax, [edi*8]
sub eax, edi
lea esi, [ebx + eax*8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 4]
lea edx, [ebx + eax*8]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov al, byte [esi + 0xc]
mov byte [edx + 0xc], al
lea eax, [esi + 0x10]
push eax
call fcn.00406350
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edi
cmp edi, eax
jl 0x406830
mov ecx, dword [ebp + 8]
mov edx, edi
cmp edi, eax
jne 0x40691e
test cl, 1
jne 0x40691e
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebx + eax*8 - 0x34]
lea esi, [ebx + eax*8]
lea eax, [edi*8]
sub eax, edi
lea edx, [ebx + eax*8]
mov eax, dword [esi - 0x38]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi - 0x30]
mov dword [edx + 8], eax
mov al, byte [esi - 0x2c]
mov byte [edx + 0xc], al
lea eax, [esi - 0x28]
push eax
call fcn.00406350
mov edx, dword [esp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.00406220
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4072b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x518254]
cmp eax, 2
je 0x407343
push esi
push 0
push 1
push 0x518254
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x40731f
push 4
call fcn.0049d9fe
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x518254
mov dword [esi], eax
push 0x405a50
mov dword [0x518258], esi
call fcn.00403810
mov eax, dword [0x518258]
add esp, 8
mov dword [0x518254], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x407342
mov eax, dword [0x518254]
cmp eax, 2
je 0x407342
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x518254]
cmp eax, 2
jne 0x407334
pop esi
mov eax, dword [0x518258]
mov esp, ebp
pop ebp
ret
Function at 0x4078d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1000
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x510200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ebx, ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebx], vtable.nbase::CmdLineArgs.0
mov dword [ebx + 0x10], 0
test esi, esi
jne 0x40793d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x407a96
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407942
sub ecx, edx
sar ecx, 1
je 0x407a96
lea edi, [ecx + ecx]
lea eax, [edi + 2]
push eax
call fcn.004afcdb
mov ecx, eax
add esp, 4
mov dword [ebx + 0x10], ecx
test ecx, ecx
je 0x407a96
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x407973
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov word [edi + eax], cx
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x407a96
movzx eax, word [esi]
test ax, ax
je 0x407a96
mov ecx, eax
push ecx
call fcn.004b7e45
add esp, 4
test eax, eax
je 0x4079c7
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004b7e45
add esp, 4
test eax, eax
jne 0x4079b3
movzx eax, word [esi]
mov ebx, eax
test ax, ax
je 0x407a7f
cmp eax, 0x22
lea ecx, [esi + 2]
movzx eax, word [ecx]
cmove esi, ecx
mov edx, eax
mov edi, esi
mov esi, ecx
mov dword [ebp + 8], edi
test ax, ax
je 0x407a24
mov ecx, edx
movzx eax, cx
cmp ebx, 0x22
jne 0x407a06
cmp eax, ebx
jne 0x407a13
movzx eax, word [esi + 2]
test ax, ax
je 0x407a21
push eax
call fcn.004b7e45
add esp, 4
test eax, eax
jne 0x407a21
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4079f1
mov edi, dword [ebp + 8]
cmp word [esi], 0
je 0x407a32
xor eax, eax
mov word [esi], ax
add esi, 2
cmp word [edi], 0
mov edx, dword [ebp - 0x10]
je 0x407a5b
mov eax, dword [edx + 8]
cmp dword [edx + 0xc], eax
je 0x407a4b
mov dword [eax], edi
add dword [edx + 8], 4
jmp 0x407a5b
lea ecx, [ebp + 8]
push ecx
push eax
lea ecx, [edx + 4]
call fcn.00407c10
mov edx, dword [ebp - 0x10]
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4079a6
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407ee0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d106d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x510200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00407d70
mov edi, dword [ebp + 8]
test edi, edi
js 0x407f87
call fcn.004072b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x407f87
call fcn.00407d70
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.00407d70
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004086e0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00408700
cmp byte [ebp - 0x14], 0
jne 0x407f9b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
je 0x407f9b
test esi, esi
je 0x407f87
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [ebx + 8]
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
test esi, esi
je 0x407faf
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d109d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x510200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00407d70
call fcn.004072b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4080a0
mov eax, dword [edi + 8]
cmp eax, 1
jl 0x4080a0
add eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x40808c
call fcn.00407d70
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0xc]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00407d70
lea ecx, [eax + 0x18]
call fcn.00408160
call fcn.00407d70
mov edi, dword [ebp - 0x10]
cmp edi, dword [eax + 0x18]
je 0x40807b
call fcn.00407d70
push edi
lea ecx, [eax + 0x18]
call fcn.004082b0
push 0x18
push eax
call fcn.0049da2e
add esp, 8
mov dword [ebx], 0xffffffff
test esi, esi
je 0x40808c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409620
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
call fcn.00405590
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x409685
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x409681
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x409681
push eax
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x409697
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x4096af
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00409570
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409fe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d121d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x510200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x40a038
call fcn.00405590
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x40a038
mov bl, 1
jmp 0x40a03a
xor bl, bl
test esi, esi
je 0x40a045
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a090
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1255
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x510200]
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 ebx, ecx
lea esi, [ebx + 0xc]
mov byte [ebp - 0x39], 0
push esi
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x24], 0
je 0x40a165
call fcn.00405590
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [ebx + 0x24]
je 0x40a165
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.00406980
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x40a11c
lock inc dword [edi + 8]
test edi, edi
je 0x40a11c
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x40a11c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.._AV___Func_impl_no_alloc_V__WeakCallback_V___Binder_U_Unforced_std__AAP8MessageLoopProxy_nbase__BEXXZAAPBV34__std___nbase__X__V_std__.0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x40a1a0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x24]
push eax
call fcn.00404ad0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40a161
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 0x39], 1
test esi, esi
je 0x40a170
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x39], 0
jne 0x40a17e
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
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.0049da3c
mov esp, ebp
pop ebp
ret
Function at 0x40ba40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ba85
cmp byte [ebp + 8], 0
je 0x40ba79
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x40e0c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebp + 8]
cmp eax, ecx
je 0x40e0f1
cmp edi, dword [ebx + 0xe0]
je 0x40e0f1
test edi, edi
je 0x40e0f1
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebx + 0xe0]
cmp edi, esi
je 0x40e27e
test esi, esi
je 0x40e1ca
xor eax, eax
mov dword [esp + 0x10], esi
mov word [esp + 0x20], ax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov al, 1
mov dword [esp + 0xc], 3
test eax, eax
jne 0x40e145
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xf4]
mov eax, dword [eax + 0xf8]
mov dword [esp + 0x1c], eax
jmp 0x40e149
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
mov esi, dword [ebx + 0xe0]
xor eax, eax
mov edx, dword [ebx + 0xf8]
mov word [esp + 0x20], ax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xf4]
mov dword [ebx + 0xe0], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x25
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [eax + 0xd0]
test edi, edi
je 0x40e27e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
cmp eax, ebx
jne 0x40e27e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x40e27e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x88]
call eax
test al, al
je 0x40e27e
xor eax, eax
mov dword [ebx + 0xe0], edi
mov word [esp + 0x20], ax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov al, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 2
test eax, eax
jne 0x40e245
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0xf4]
mov eax, dword [eax + 0xf8]
mov dword [esp + 0x1c], eax
jmp 0x40e249
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xd0]
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x40e27e
push 0
push 0
push 0x24
push eax
mov ecx, ebx
call fcn.0040e4d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fb50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d16a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x510200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00410240
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.004029e0
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428990
Capabilities:
Get thread local storage value
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x510200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
cmp dword [eax + 0x18], 0xd
jne 0x428a32
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x428a2f
cmp byte [edi + 0x44e], 0
je 0x428b89
cmp byte [edi + 0x44f], 0
je 0x428a06
push 0x11
call esi
test ax, ax
js 0x428a13
cmp byte [edi + 0x44f], 0
jne 0x428b89
push 0x11
call esi
test ax, ax
js 0x428b89
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x428ba3
push 0
push 0
push 0x2d
push edi
call fcn.0040e4d0
jmp 0x428ba3
mov eax, dword [ebp - 0x6c]
cmp byte [edi + 0x454], 0
je 0x428b89
cmp dword [eax + 0x18], 0x56
jne 0x428b89
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x428b89
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0042a1c0
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x428b7a
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp edi, 8
mov ecx, dword [ebp - 0x28]
cmovae esi, ecx
nop dword [eax + eax]
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
lea eax, [eax + edx*2]
cmp esi, eax
je 0x428ae3
movzx ecx, word [esi]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x428adb
push ecx
lea ecx, [ebp - 0x40]
call fcn.00401d40
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add esi, 2
jmp 0x428ab0
cmp dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x70]
jne 0x428b01
call fcn.00401ec0
lea ecx, [ebp - 0x28]
call fcn.00401ec0
jmp 0x428ba3
call fcn.0042a360
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.004029e0
movups xmm0, xmmword [ebp - 0x88]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::_Func_impl_no_alloc_class__lambda_f4db2b5e5f90277a4a6a073f2481a264___void___.0
mov dword [ebp - 0x44], eax
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [ebp - 0x54], xmm0
mov byte [ebp - 4], 2
call fcn.00405590
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.00404950
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x428b72
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x40]
call fcn.00401ec0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00401ec0
mov ecx, dword [ebp - 0x6c]
mov eax, dword [edi]
push 0
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
mov ecx, edi
push 0x100
call dword [eax + 0x1dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049da3c
mov esp, ebp
pop ebp
ret 4
Function at 0x42a1c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2f25
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x510200]
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 esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x42a1fe
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42a337
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x42a2d7
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a331
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42a331
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00401ff0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x42a290
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00401ff0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42a331
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42a2cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a353
push ecx
push edx
call fcn.0049da2e
add esp, 8
jmp 0x42a331
push 1
call edi
test eax, eax
je 0x42a331
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a331
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x42a331
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.00425100
push 0
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0043d290
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x40]
call fcn.00402c40
call dword [sym.imp.USER32.dll_CloseClipboard]
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.0049da3c
mov esp, ebp
pop ebp
ret
call fcn.004a9f9f
int3
Function at 0x42a360
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42a3d5
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x42a3cd
mov eax, dword [esi + 0x10]
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x42a3cd
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x42a3a9
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.0049f660
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret