joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454a50
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x658d98]
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 dword [ebp - 0x78], 0
mov ecx, 0x6825d0
call fcn.0059e74b
lea ecx, [ebp - 0x28]
call fcn.00404b30
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.0040e920
movzx eax, al
test eax, eax
je 0x454ad3
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x78]
or ecx, 1
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 8]
jmp 0x454ba8
mov dword [ebp - 0x2c], 0
push 0x288
call fcn.005a76fc
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x288
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x454b1f
mov eax, dword [ebp - 0x30]
push eax
call fcn.005a76e1
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
call fcn.005a76fc
add esp, 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x454b78
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x454b78
mov ecx, dword [ebp + 0xc]
call fcn.0040d5a0
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x1b0
push eax
call fcn.005ad970
add esp, 8
test eax, eax
jne 0x454b6e
mov eax, dword [ebp - 0x2c]
add eax, 0x1d8
push eax
lea ecx, [ebp - 0x28]
call fcn.004282f0
jmp 0x454b78
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
jmp 0x454b37
mov eax, dword [ebp - 0x30]
push eax
call fcn.005a76e1
add esp, 4
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x78]
or ecx, 1
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 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.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x456c80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d34e2
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x658d98]
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 dword [ebp - 0x1a0], 0
mov ecx, 0x6825d0
call fcn.0059e74b
lea ecx, [ebp - 0x28]
call fcn.00404b30
mov dword [ebp - 4], 1
call fcn.0046d880
test eax, eax
jne 0x456d09
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x1a0]
or ecx, 1
mov dword [ebp - 0x1a0], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 8]
jmp 0x456dd3
push 0x104
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.005a38c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x456da4
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x184]
call fcn.00404a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x19c]
push edx
call fcn.0046ed80
add esp, 8
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.00404f60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x184]
call fcn.00404f60
call fcn.0046db60
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x1a0]
or ecx, 1
mov dword [ebp - 0x1a0], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 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.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x4575f0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d374d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x658d98]
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 dword [ebp - 0x1bc], 0
mov ecx, 0x6825d0
call fcn.0059e74b
lea ecx, [ebp - 0x28]
call fcn.00404b30
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x457757
push 0x104
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.005a38c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x457703
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x188]
call fcn.00404a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x1a0]
push edx
call fcn.0046f390
add esp, 8
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1a0]
call fcn.00404f60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.00404f60
jmp 0x45774d
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.00453e60
add esp, 8
mov dword [ebp - 0x1c0], eax
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b8]
call fcn.00404f60
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x1bc]
or ecx, 1
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 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.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x458740
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3a76
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x658d98]
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 dword [ebp - 0x74], 0
mov ecx, 0x6825d0
call fcn.0059e74b
push 0x5f1980
lea ecx, [ebp - 0x28]
call fcn.00404a80
mov dword [ebp - 4], 1
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4587dc
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4587d6
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4587d6
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.004282f0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x74]
or ecx, 1
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 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.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x45ea40
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x6825d0
call fcn.0059e74b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
push 0x12
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
cmp dword [ebp + 0xc], 0
je 0x45ea8c
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x45ead2
push 0x7530
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45ead2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push str._____FreeThread_TimeOut_TerminateThread:_d
call fcn.00477e50
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x14
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005a38c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45ec40
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x6825d0
call fcn.0059e74b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x14
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005a38c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x467610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x68254b
call fcn.0059e74b
xor eax, eax
jne 0x467630
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shl ecx, 1
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x467673
mov eax, dword [ebp - 0xc]
jmp 0x4676d9
cmp dword [ebp - 0x10], 1
je 0x467686
cmp dword [ebp - 0x10], 2
je 0x467686
mov eax, 0xd
jmp 0x4676d9
cmp dword [ebp + 0xc], 0
je 0x4676cd
cmp dword [ebp - 0x14], 0
je 0x4676bc
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4676b3
mov eax, dword [ebp - 0x14]
shr eax, 1
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x4676ba
mov eax, 0xd
jmp 0x4676d9
jmp 0x4676cd
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x14]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4676f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x6825d0
call fcn.0059e74b
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x467750
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x467752
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x4681e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5e90
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x658d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov ecx, 0x6825d0
call fcn.0059e74b
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24130]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24120]
push eax
push str._____RestartUIThread_Old_TID:_d_MsgHandle:0x_x
call fcn.00477e50
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x240a4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x240a8], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x24130], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x24180
call fcn.00440e20
test eax, eax
je 0x4682b8
mov ecx, dword [ebp - 0x14]
add ecx, 0x24180
call fcn.00440f20
mov ecx, eax
call fcn.00559b60
mov ecx, dword [ebp - 0x14]
add ecx, 0x24180
call fcn.00440f20
mov ecx, eax
call fcn.00559aa0
jmp 0x4682c0
mov dword [ebp - 4], 0xffffffff
jmp 0x4682d0
mov dword [ebp - 4], 2
cmp dword [ebp + 0xc], 0
jne 0x4682f0
mov eax, dword [ebp - 0x14]
add eax, 0x2411c
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0045ec40
jmp 0x46832c
cmp dword [ebp + 0xc], 1
jne 0x46830b
push 1
mov eax, dword [ebp - 0x14]
add eax, 0x2411c
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0045ea40
jmp 0x46832c
cmp dword [ebp + 0xc], 2
jne 0x46832c
call fcn.004736b0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x4683f2
jmp 0x46833d
mov dword [ebp - 4], 0xffffffff
jmp 0x46834d
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jl 0x468397
push 0x46e060
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2411c
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00445550
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x24130], 0
jne 0x468397
mov eax, dword [ebp + 8]
push eax
push 0xbb8
call fcn.00447640
add esp, 8
test eax, eax
jne 0x468395
jmp 0x468397
jmp 0x468372
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x24130], 0
je 0x4683ac
mov dword [ebp - 0x5c], 1
jmp 0x4683b3
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x4683e2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24130]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24120]
push eax
push str._____RestartUIThread_New_TID:_d_MsgHandle:0x_x
call fcn.00477e50
add esp, 0xc
jmp 0x4683ef
push str._____RestartUIThread_New_Failed_
call fcn.00477e50
add esp, 4
mov eax, dword [ebp - 0x18]
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 0x46a4a0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x6825d0
call fcn.0059e74b
cmp dword [ebp + 8], 0
je 0x46a4ca
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46a4cf
jmp 0x46a556
push str.__SendEnterByMessage
call fcn.00477e50
add esp, 4
mov dword [ebp - 8], 0xd
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x100
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x850]
push ecx
push 0x37
push 0x14
call fcn.00468410
add esp, 8
push eax
call fcn.00447680
add esp, 8
mov eax, dword [ebp - 0x10]
or eax, 0xc0000000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x101
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46a560
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x6825d0
call fcn.0059e74b
cmp dword [ebp + 8], 0
je 0x46a58a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46a58c
jmp 0x46a5d1
push str.__SendKeyDownByMessage
call fcn.00477e50
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x100
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46aa00
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d64f0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x658d98]
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 dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, 0x6825d0
call fcn.0059e74b
push 0x24
lea ecx, [ebp - 0x38]
call fcn.0040d030
lea ecx, [ebp - 0x38]
call fcn.0043cdb0
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x40], 0
cmp dword [ebp + 0xc], 0
je 0x46aad3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov word [ebp - 0x44], ax
movsx eax, word [ebp - 0x44]
and eax, 0xff
mov byte [ebp - 0x39], al
movsx eax, word [ebp - 0x44]
shr eax, 8
and eax, 0xff
movzx ecx, al
or ecx, dword [ebp + 0x14]
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x14]
and eax, 2
je 0x46aac0
mov eax, dword [ebp - 0x30]
or eax, 4
mov dword [ebp - 0x30], eax
jmp 0x46aad1
mov eax, dword [ebp + 0x14]
and eax, 1
je 0x46aad1
mov eax, dword [ebp - 0x30]
or eax, 2
mov dword [ebp - 0x30], eax
jmp 0x46ab28
movzx eax, byte [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x39], al
movzx eax, byte [ebp + 0x10]
cmp eax, 0x11
jne 0x46aaf2
mov eax, dword [ebp - 0x30]
or eax, 4
mov dword [ebp - 0x30], eax
movzx eax, byte [ebp + 0x10]
cmp eax, 0x10
jne 0x46ab04
mov eax, dword [ebp - 0x30]
or eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
and eax, 2
je 0x46ab17
mov eax, dword [ebp - 0x30]
or eax, 4
mov dword [ebp - 0x30], eax
jmp 0x46ab28
mov eax, dword [ebp + 0x14]
and eax, 1
je 0x46ab28
mov eax, dword [ebp - 0x30]
or eax, 2
mov dword [ebp - 0x30], eax
push 0
movzx eax, byte [ebp - 0x39]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 3
lea ecx, [ebp + 8]
call fcn.00440f20
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x98]
call fcn.00440f20
mov dword [ebp - 0x9c], eax
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x80]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00440020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0043f080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00440020
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.0059e77d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46ac10
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x6825d0
call fcn.0059e74b
cmp dword [ebp + 8], 0
je 0x46ac3a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46ac3c
jmp 0x46ac8c
push str.__SendKeyUpByMessage
call fcn.00477e50
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x10
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
or eax, 0xc0000000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x101
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46d5c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6a2f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x8c
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x6825d0
call fcn.0059e74b
cmp dword [ebp + 0xc], 0
jne 0x46d607
jmp 0x46d7d0
mov dword [ebp - 4], 0
push 0x824
call fcn.0059e2c1
add esp, 4
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0
je 0x46d649
push 0x824
mov ecx, dword [ebp - 0x74]
call fcn.0040d030
push 0
push 0
mov ecx, dword [ebp - 0x74]
call fcn.00427fb0
mov dword [ebp - 0x98], eax
jmp 0x46d653
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
mov dword [0x67fe9c], ecx
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.004570b0
add esp, 8
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [str.5A973C623B894ACDBDC85FA9D61BD1B4]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00436940
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00404f60
lea ecx, [ebp - 0x2c]
call fcn.0040d5a0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x680374], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46d704
mov eax, dword [0x680374]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x680374], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404f60
jmp 0x46d7d0
cmp dword [0x67fe94], 0
jne 0x46d79f
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x67fe40], eax
push 0x2432c
call fcn.0059e2c1
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x94], 0
je 0x46d76f
push 0x2432c
mov ecx, dword [ebp - 0x94]
call fcn.0040d030
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x94]
call fcn.0043e870
mov dword [ebp - 0x98], eax
jmp 0x46d779
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x90]
mov dword [0x67fe94], eax
mov ecx, dword [0x67fe94]
call fcn.0046d500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404f60
jmp 0x46d7c0
mov dword [ebp - 4], 0xffffffff
jmp 0x46d7d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x46d880
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x6825d0
call fcn.0059e74b
mov dword [ebp - 8], 1
push 0x190
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.005a38c0
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x46d8f9
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x19c]
push eax
push str.WSAStartup_Failed__ret__d
call fcn.00477e50
add esp, 8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret