joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c00
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [esi + 0x20]
push edi
xor edi, edi
test eax, eax
je 0x412c23
cmp dword [esi + 0x24], edi
jbe 0x412c23
push eax
call fcn.004229e6
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
xor ecx, ecx
mov word [edi + eax*2], cx
movzx edx, word [esi + 0x28]
mov eax, dword [esi + 4]
push 0
push 0x4000000
push 3
push 0
push 0
push edx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 8], eax
test edi, edi
je 0x412c53
push edi
call fcn.00421842
mov eax, dword [esi + 8]
add esp, 4
pop edi
ret
Function at 0x412e30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4386e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x449260]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x290], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x288], eax
mov eax, ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x28c], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412e84
sub eax, edx
sar eax, 1
lea edi, [eax + 0x104]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042001a
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x288]
push eax
push ebx
push 0x4436f4
push edi
push esi
call fcn.004229c8
add esp, 0x14
lea ecx, [ebp - 0x280]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
jne 0x412ef6
push esi
call fcn.00420fa6
add esp, 4
xor eax, eax
jmp 0x412ff5
cmp word [ebp - 0x254], 0x2e
je 0x412fbe
lea edx, [ebp - 0x254]
push edx
push ebx
push str._s_s
push edi
push esi
call fcn.004229c8
mov eax, dword [ebp + 0x14]
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
je 0x412f48
test byte [ebp - 0x280], 0x10
je 0x412f48
mov ecx, dword [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x28c]
push eax
push ecx
mov ecx, dword [ebp - 0x290]
push esi
call fcn.00412e30
xor edx, edx
mov eax, esi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412f60
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.00401700
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x2c]
call fcn.004130d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x412fa4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00420fa6
add esp, 4
mov ebx, dword [ebp - 0x294]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov eax, dword [ebp - 0x284]
lea edx, [ebp - 0x280]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412ef6
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.00420fa6
add esp, 4
mov eax, 1
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.00420fb1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413020
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4130b6
push esi
call fcn.0042001a
mov ecx, dword [ebp - 4]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4130ad
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0x43fdc8
xor esi, esi
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4130ad
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x4130ad
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x4130ad
mov esi, eax
mov ecx, 0xd
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00421011
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.00421011
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415de0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x449260]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0042101c
add esp, 4
cmp eax, ebx
je 0x415ec4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.0042101c
add esp, 4
cmp eax, ebx
je 0x415ea0
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
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
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.00421579
push 0x4458c0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00423cb1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.00421579
push 0x4458c0
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.00423cb1
int3
Function at 0x41d660
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x449260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push ecx
mov word [ebp - 0x20c], ax
call fcn.00427c90
add esp, 0xc
lea esi, [ebp - 0x210]
call fcn.0041d5d0
mov eax, dword [eax]
push eax
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x443d3c
push str.GameDir
push 0x443d40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d6ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x41d715
cmp word [ebp + esi*2 - 0x20e], 0x5c
lea eax, [ebp + esi*2 - 0x20c]
je 0x41d715
cmp esi, 0x104
jae 0x41d715
mov ecx, 0x5c
mov word [eax], cx
push edi
lea ecx, [ebp - 0x20c]
call fcn.00405910
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.00420fb1
mov esp, ebp
pop ebp
ret
Function at 0x41d910
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4380d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x449260]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [esi + 0x28]
lea eax, [ebp - 0x14]
push edi
push eax
mov ebx, str._MK_Mutex
call fcn.00405e20
lea ecx, [ebp - 0x10]
push edi
push ecx
mov ebx, str._MK_COMM_IPC
mov dword [ebp - 4], 0
call fcn.00405e20
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
or edi, 0xffffffff
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x41d992
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41da46
mov ecx, dword [ebp - 0x10]
push ecx
push 0x420
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x41da34
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
je 0x41da23
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [esi + 0x24], 1
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d9ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41da0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41da52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41da71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420fb1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449260]
jne 0x420fbb
repz ret
jmp fcn.00427d78

Function at 0x432753
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042b1a0
and dword [ebp - 0x14], 0
cmp dword [0x44bbf4], 0
mov dword [ebp - 0x18], eax
jne 0x432806
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4328ae
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4328ae
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44bbf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44bbf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44bbfc], eax
call edi
push eax
call esi
mov dword [0x44bc04], eax
test eax, eax
je 0x432806
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44bc00], eax
mov eax, dword [0x44bc00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43285f
cmp dword [0x44bc04], ecx
je 0x43285f
push eax
call esi
push dword [0x44bc04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43285f
test ebx, ebx
je 0x43285f
call edi
test eax, eax
je 0x432856
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432856
test byte [ebp - 8], 1
jne 0x43285f
or dword [ebp + 0x10], 0x200000
jmp 0x432892
mov eax, dword [0x44bbf8]
cmp eax, dword [ebp - 0x18]
je 0x432892
push eax
call esi
test eax, eax
je 0x432892
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432892
mov eax, dword [0x44bbfc]
cmp eax, dword [ebp - 0x18]
je 0x432892
push eax
call esi
test eax, eax
je 0x432892
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44bbf4]
call esi
test eax, eax
je 0x4328ae
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4328b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420fb1
leave
ret
Function at 0x402630
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4026a4
lea ecx, [esp + 4]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4026a4
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 0x20]
push 0x80020003
or eax, 0x10
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret

Function at 0x4039b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4039c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403a04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403a00
lea ebx, [ebx]
cmp esi, eax
jae 0x403a04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4039f0
cmp esi, eax
jb 0x403a0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404220
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push esi
xor esi, esi
push esi
mov dword [esp + 8], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4042bf
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x14]
mov eax, ebp
lea edx, [eax + 2]
jmp 0x404250
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404250
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4042b0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4042af
push edi
push ebp
push ebx
call fcn.004c6490
add esp, 0xc
xor ecx, ecx
push esi
mov word [edi + ebx], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4042af
mov dword [esp + 0x10], 1
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x405490
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
mov eax, dword [0x6503d0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
mov bx, word [esp + 0x1c]
push ebp
push esi
push edi
cmp bx, 0x61
jb 0x4054b7
cmp bx, 0x7a
jbe 0x4054c4
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x405555
mov esi, dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
add eax, 0xffffffbf
mov dword [esp + 0x10], 0
cmp ax, 0x19
ja 0x4054f8
push 0
push 0
push 0
push 0x10
mov dword [esp + 0x20], 1
call edi
push eax
push 0x10
call esi
movzx edx, bx
push edx
call fcn.004c6ebc
add esp, 4
movzx ebx, ax
push 0
push 0
movzx ebp, bx
push 0
push ebp
mov dword [esp + 0x38], ebx
call edi
push eax
push ebx
call esi
push 0
push 2
push 0
push ebp
call edi
push eax
push ebx
call esi
cmp dword [esp + 0x10], 0
je 0x405618
push 0
push 2
push 0
push 0x10
call edi
push eax
push 0x10
call esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004c57d5
add esp, 0x14
ret
mov eax, 0xff
cmp bx, ax
jbe 0x405574
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x29]
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], al
mov bx, word [esp + 0x28]
movzx edx, bx
push edx
lea eax, [esp + 0x18]
push 0x50ecf4
push eax
call fcn.004c6d29
lea ebp, [esp + 0x20]
add esp, 0xc
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x405591
sub ebp, ecx
mov eax, 0
je 0x4055b5
mov cl, byte [esp + eax + 0x14]
sub cl, 0x30
or cl, 0x60
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, ebp
jb 0x4055a2
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push 0
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
xor esi, esi
test ebp, ebp
jbe 0x405609
movsx edx, byte [esp + esi + 0x14]
push 0
push 0
push 0
push edx
call edi
push eax
movzx eax, byte [esp + esi + 0x20]
push eax
call ebx
movsx ecx, byte [esp + esi + 0x14]
push 0
push 2
push 0
push ecx
call edi
movzx edx, byte [esp + esi + 0x1c]
push eax
push edx
call ebx
inc esi
cmp esi, ebp
jb 0x4055d6
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c57d5
add esp, 0x14
ret
Function at 0x4077d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4fcda8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6503d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.Event.0
call fcn.004ac972
cmp eax, ebx
jne 0x40781b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], 0x3e8
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi], vtable.KeystrokeEvent.0
mov dword [esi + 8], 0xf
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40bc90
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4fef29
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6503d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, eax
shl ebp, 0x10
cmp dword [esp + 0x30], esi
je 0x40bcdc
or ebp, 0x1000000
call fcn.004ac972
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40bcf6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 1
mov esi, 0x40
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add esi, esi
sub eax, esi
or eax, ecx
jge 0x40bd39
push esi
mov ecx, edi
call fcn.00401880
mov eax, dword [edi]
test esi, esi
jl 0x40bda5
cmp esi, dword [eax - 8]
jg 0x40bda5
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + esi*2], dx
lea ecx, [esi + 1]
push ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40bd75
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40bd79
push ecx
push eax
call fcn.004c6bc7
add esp, 8
test eax, eax
jl 0x40bda5
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40bda5
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp ebx, esi
je 0x40bd19
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x412250
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4fcfa9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6503d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call fcn.004ac972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41229d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4122f5
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4122ef
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00401fc0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x414520
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x4fd3a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6503d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
call fcn.00413c70
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x1c], esi
call fcn.0040c420
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x40dc90
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x418650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x50653b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6503d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [0x65217c]
test eax, eax
jne 0x41868c
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4186c9
push 0x3c
call fcn.004a4fb4
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], esi
test eax, eax
je 0x4186b8
mov ecx, eax
call fcn.00418620
jmp 0x4186ba
xor eax, eax
push eax
mov esi, eax
mov eax, dword [0x65217c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret