joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471f61
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471f6f
call fcn.0047204b
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x471fa7
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fba
call fcn.0047204b
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x471ffd
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x47200b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0xfffc0270
jl 0x472017
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x47204b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x47206e
push 0
call fcn.0042e4ed
pop ecx
mov ecx, eax
call 0x8a47200b
mov dword [0x4d06e0], 0xfffc0270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f2c24fe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x3f9cc]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x472083
mov eax, dword [esi]
mov dword [ebp - 4], 0xd445018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f2c24fe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720bd
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f2c24fe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x404df0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x51ea94]
cmp eax, 2
je 0x404e83
push esi
push 0
push 1
push 0x51ea94
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x404e5f
push 4
call fcn.004a243f
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x51ea94
mov dword [esi], eax
push 0x404f00
mov dword [0x51ea98], esi
call fcn.004040d0
mov eax, dword [0x51ea98]
add esp, 8
mov dword [0x51ea94], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x404e82
mov eax, dword [0x51ea94]
cmp eax, 2
je 0x404e82
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x51ea94]
cmp eax, 2
jne 0x404e74
pop esi
mov eax, dword [0x51ea98]
mov esp, ebp
pop ebp
ret

Function at 0x405570
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d812d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x516180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004054b0
mov edi, dword [ebp + 8]
test edi, edi
js 0x405617
call fcn.00404df0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x405617
call fcn.004054b0
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.004054b0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00405780
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004057a0
cmp byte [ebp - 0x14], 0
jne 0x40562b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
je 0x40562b
test esi, esi
je 0x405617
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 0x40563f
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 0x4076c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x51ea9c]
cmp eax, 2
je 0x407753
push esi
push 0
push 1
push 0x51ea9c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x40772f
push 4
call fcn.004a243f
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x51ea9c
mov dword [esi], eax
push 0x404f00
mov dword [0x51eaa0], esi
call fcn.004040d0
mov eax, dword [0x51eaa0]
add esp, 8
mov dword [0x51ea9c], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x407752
mov eax, dword [0x51ea9c]
cmp eax, 2
je 0x407752
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x51ea9c]
cmp eax, 2
jne 0x407744
pop esi
mov eax, dword [0x51eaa0]
mov esp, ebp
pop ebp
ret

Function at 0x408830
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 0x408903
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 0x408899
jg 0x40888b
cmp ecx, eax
jbe 0x40888f
xor eax, eax
jmp 0x4088ab
cmp edi, esi
jg 0x4088a0
jl 0x408899
cmp ecx, eax
jae 0x4088a0
mov eax, 1
jmp 0x4088ab
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.004083b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edi
cmp edi, eax
jl 0x408860
mov ecx, dword [ebp + 8]
mov edx, edi
cmp edi, eax
jne 0x40894e
test cl, 1
jne 0x40894e
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.004083b0
mov edx, dword [esp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.00408280
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408980
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x4089c7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4089b0
mov eax, dword [esi + 8]
test eax, eax
je 0x4089c7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test byte [ebp + 8], 1
je 0x4089d8
push 0x10
push esi
call fcn.004a246f
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x4091a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
call fcn.004076c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x409205
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x409201
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 0x409201
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 0x409217
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 0x40922f
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.004090f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409b40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d87dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x516180]
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 0x409b98
call fcn.004076c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x409b98
mov bl, 1
jmp 0x409b9a
xor bl, bl
test esi, esi
je 0x409ba5
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 0x409bf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8815
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x516180]
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 0x409cc5
call fcn.004076c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [ebx + 0x24]
je 0x409cc5
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.00404500
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x409c7c
lock inc dword [edi + 8]
test edi, edi
je 0x409c7c
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x409c7c
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], 0x409d00
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x24]
push eax
call fcn.00406c10
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x409cc1
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 0x409cd0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x39], 0
jne 0x409cde
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.004a248b
mov esp, ebp
pop ebp
ret
Function at 0x40b5a0
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 0x40b5e5
cmp byte [ebp + 8], 0
je 0x40b5d9
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 0x40dc50
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 0x40dc81
cmp edi, dword [ebx + 0xe0]
je 0x40dc81
test edi, edi
je 0x40dc81
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebx + 0xe0]
cmp edi, esi
je 0x40de0e
test esi, esi
je 0x40dd5a
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 0x40dcd5
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xf4]
mov eax, dword [eax + 0xf8]
mov dword [esp + 0x1c], eax
jmp 0x40dcd9
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 0x40de0e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
cmp eax, ebx
jne 0x40de0e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x40de0e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x88]
call eax
test al, al
je 0x40de0e
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 0x40ddd5
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0xf4]
mov eax, dword [eax + 0xf8]
mov dword [esp + 0x1c], eax
jmp 0x40ddd9
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 0x40de0e
push 0
push 0
push 0x24
push eax
mov ecx, ebx
call fcn.0040e040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fbc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8c60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x516180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004102b0
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.004032c0
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 0x41c180
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9a05
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x516180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x41c1c8
lock inc dword [eax + 8]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
mov dword [ebp + 8], ecx
lea esi, [ecx + 0xc]
movq xmm0, qword [ebx + 8]
movq qword [ecx], xmm0
mov eax, dword [ebx + 0x10]
mov dword [ecx + 8], eax
lea ecx, [esi + 4]
mov dword [ebp + 8], esi
mov al, byte [ebx + 0x14]
mov byte [esi], al
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], ecx
call fcn.004032c0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
push eax
mov dword [ebp - 0x14], ecx
call fcn.004032c0
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x34], eax
mov eax, edi
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 0x433ba0
Capabilities:
Get thread local storage value
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daf0d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x516180]
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 0x433c42
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x433c3f
cmp byte [edi + 0x44e], 0
je 0x433d99
cmp byte [edi + 0x44f], 0
je 0x433c16
push 0x11
call esi
test ax, ax
js 0x433c23
cmp byte [edi + 0x44f], 0
jne 0x433d99
push 0x11
call esi
test ax, ax
js 0x433d99
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x433db3
push 0
push 0
push 0x2d
push edi
call fcn.0040e040
jmp 0x433db3
mov eax, dword [ebp - 0x6c]
cmp byte [edi + 0x454], 0
je 0x433d99
cmp dword [eax + 0x18], 0x56
jne 0x433d99
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x433d99
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.004353e0
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x433d8a
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 0x433cf3
movzx ecx, word [esi]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x433ceb
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402860
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add esi, 2
jmp 0x433cc0
cmp dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x70]
jne 0x433d11
call fcn.004029e0
lea ecx, [ebp - 0x28]
call fcn.004029e0
jmp 0x433db3
call fcn.00435580
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.004032c0
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.004076c0
lea ecx, [ebp - 0x68]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.00406aa0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x433d82
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.004029e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004029e0
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.004a248b
mov esp, ebp
pop ebp
ret 4
Function at 0x4353e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db065
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x516180]
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 0x43541e
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x435557
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x4354f7
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x435551
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x435551
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.00402b10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x4354b0
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402b10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x435551
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4354eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435573
push ecx
push edx
call fcn.004a246f
add esp, 8
jmp 0x435551
push 1
call edi
test eax, eax
je 0x435551
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x435551
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x435551
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.00421e10
push 0
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0043d0d0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x40]
call fcn.00403510
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.004a248b
mov esp, ebp
pop ebp
ret
call fcn.004b0b6f
int3
Function at 0x435580
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 0x4355f5
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4355ed
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 0x4355ed
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x4355c9
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.004a6100
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