joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc8ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc8ed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xc8ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc8ed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xc8ed94
push eax
push esi
call fcn.00c9120b
add esp, 8
pop esi
ret 0x10

Function at 0xc8eda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc8ee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xc8ee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xca7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c90dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xc8edda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xc8ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc8eec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xc8eeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xca7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c90dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xc8eeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xc8ee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xc8f000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xc8f131
push esi
call fcn.00c92145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c81080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xc8f131
push 0
push ebp
call fcn.00c813a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c81260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xc8f08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c812f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xc8f121
push 0xca7918
push edi
call fcn.00c903f0
push eax
push ebx
push esi
call fcn.00c8ef60
push 0xca78f8
push edi
call fcn.00c903f0
push eax
push ebx
push esi
call fcn.00c8ef60
push 0xca78d8
push edi
call fcn.00c903f0
push eax
push ebx
push esi
call fcn.00c8ef60
push 0xca78c0
push edi
call fcn.00c903f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00c8ef60
push 0xca78a0
push edi
call fcn.00c903f0
push eax
push ebx
push esi
call fcn.00c8ef60
push 0xca7888
push edi
call fcn.00c903f0
push eax
push ebx
push esi
call fcn.00c8ef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xc901b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c90140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c90140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c90140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c90140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc90bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc90c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xca287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc90c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc90c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401a7f
cmp dword [ebp - 0x118], 0
je 0x401a7f
jmp 0x401ae3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x401ae3
mov dword [ebp - 0x11c], 0x15f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [0x439954], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [0x439970], ecx
mov dword [ebp - 0x11c], 0x15f
mov dword [ebp - 0x11c], 0x15f
call fcn.004011b0
mov edx, dword [ebp + 8]
mov dword [0x43996c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.004013b0
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401a7f
mov esp, ebp
pop ebp
ret

Function at 0x40891b
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
call fcn.00408942
xor dword [eax], esi
sub edx, 0xb0f83698
dec edi
add eax, 1
cmp eax, ebx
jne fcn.0040891b
sub edx, 0x49e9435c
mov edx, edi
ret
Function at 0x420826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x420830
repz ret
jmp fcn.004253b1

Function at 0x432a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
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.00426493
and dword [ebp - 0x14], 0
cmp dword [0x44395c], 0
mov dword [ebp - 0x18], eax
jne 0x432ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432b6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44395c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443964], eax
call edi
push eax
call esi
mov dword [0x44396c], eax
test eax, eax
je 0x432ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443968], eax
mov eax, dword [0x443968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432b1d
cmp dword [0x44396c], ecx
je 0x432b1d
push eax
call esi
push dword [0x44396c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432b1d
test ebx, ebx
je 0x432b1d
call edi
test eax, eax
je 0x432b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432b14
test byte [ebp - 8], 1
jne 0x432b1d
or dword [ebp + 0x10], 0x200000
jmp 0x432b50
mov eax, dword [0x443960]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432b50
mov eax, dword [0x443964]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44395c]
call esi
test eax, eax
je 0x432b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
leave
ret

Function at 0x484cf5
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x484a08
add ebx, 0xdff1625c
call fcn.00484d37
or ebx, ebx
mov ebx, 0xfedc6923
sub ebx, 0xf834eef9
xor dword [ecx], esi
add ebx, ebx
mov eax, 0xb242a9f2
add ecx, 2
or eax, eax
cmp ecx, edi
jl fcn.00484cf5
inc ebx
mov ebx, 0xd8cce3f6
ret
Function at 0x403127
Capabilities:
Get common file path

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], edx
mov edi, ecx
call fcn.00484e2f
xor ebx, ebx
test eax, eax
je 0x403151
cmp dword [edi - 0xc], ebx
jbe 0x40314b
lea esi, [edi + 0x10]
add esi, dword [edi - 0x10]
jmp 0x40314d
mov esi, ebx
mov esi, dword [esi]
jmp 0x403153
mov esi, ebx
test edi, edi
jne 0x40315b
mov eax, ebx
jmp 0x403168
push 0xfffc
push edi
call fcn.005f01d0
pop ecx
pop ecx
test esi, esi
je 0x4031cf
cmp dword [esi + 0x28], ebx
je 0x4031cf
push ecx
push 0x6d35cc
mov edx, eax
mov ecx, edi
call fcn.0048bdbe
pop ecx
pop ecx
mov ebp, 0x752940
push ebp
push 0x8000
lea esi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push 0x1000
push 0x750940
push eax
push ebp
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esi + edi]
mov esi, 0x10000
push eax
push 0x750940
push 0x6d35d0
push esi
push ebp
call fcn.0040117f
add esp, 0x14
jmp 0x4031e9
push edi
push 0x6d35d8
mov esi, 0x10000
mov ebp, 0x752940
push esi
push ebp
call fcn.0040117f
add esp, 0x10
push esi
push ebp
call fcn.005f01d0
mov ebx, dword [esp + 0x1c]
mov edx, eax
pop ecx
pop ecx
push ecx
cmp byte [ebx], 0x2e
mov ecx, ebp
jne 0x40321c
push 0x6d35dc
call fcn.0048bdbe
push ebx
push 0x6d35e0
sub esi, eax
push esi
lea eax, [eax + 0x752940]
push eax
jmp 0x403237
push 0x6d35e4
call fcn.0048bdbe
inc eax
push ebx
push 0x6d35e8
sub esi, eax
push esi
lea ecx, [eax + 0x752940]
push ecx
call fcn.0040117f
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x406dd2
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x400
mov esi, ecx
push edi
push 0x6d564c
call fcn.005f01d0
mov ecx, dword [esi + 0x24]
xor ebp, ebp
push ebp
push ebp
push eax
mov edx, 0x6d5658
call fcn.0048f7e4
mov ecx, dword [esi + 8]
add esp, 0x14
mov ebx, eax
call fcn.0045b79e
mov ecx, dword [esi + 8]
mov edx, eax
call fcn.0041bc07
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 8]
call fcn.0047e5ff
mov ecx, dword [esi + 8]
push 0x6d5664
push 0xfffffffffffffffe
pop edx
call fcn.00418449
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041bef7
push str.Agent_Self_Test..._n
call fcn.00401109
pop ecx
cmp dword [esi + 0xbb4], ebp
je 0x406e9c
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x64]
call fcn.0041bd13
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push 0x6d5684
call fcn.004181f4
pop ecx
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0xfffffffffffffffe
pop edx
call fcn.004190e2
mov edx, dword [esi + 0xbb4]
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041bc07
mov ecx, dword [esi + 8]
xor edx, edx
push ebp
inc edx
call fcn.0041702b
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041bef7
mov dword [esi + 0xbb4], ebp
push str.______Loading_meshcore.js_from_db_........
call fcn.00401109
pop ecx
cmp ebx, 4
jg 0x406ede
push edi
push 0x6d56c0
call fcn.005f01d0
mov ecx, dword [esi + 0x24]
mov edx, str.serviceName
push ebp
push ebp
push eax
call fcn.0048f7e4
add esp, 0x14
test eax, eax
jne 0x406ede
push str._NOT_FOUND__n
call fcn.00401109
pop ecx
jmp 0x406fad
push str._OK__n
call fcn.00401109
pop ecx
mov ebp, 0x100c
mov dword [esi + 0xcd8], 3
push ebp
push 0x6d56f0
push 1
push ebx
call fcn.005ed7c0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x406fb3
push 0x400
push 0x6d575c
call fcn.005f01d0
mov ecx, dword [esi + 0x24]
mov edx, 0x6d5768
push ebx
push edi
push eax
call fcn.0048f7e4
mov ecx, dword [esi + 8]
lea eax, [ebx - 4]
add esp, 0x14
lea edx, [edi + 4]
push 0xd
push 0x6d5774
push eax
call fcn.00479fee
add esp, 0xc
test eax, eax
jne 0x406f5e
mov ecx, dword [esi + 8]
call fcn.0047a077
test eax, eax
je 0x406f66
mov ecx, dword [esi + 8]
call fcn.0041bef7
push 1
push edi
call fcn.005ed680
pop ecx
pop ecx
push 0xe88
push ecx
mov ecx, dword [esi + 8]
mov edx, str.require_agent_selftest____
call fcn.00417a90
pop ecx
pop ecx
mov ecx, dword [esi + 8]
test eax, eax
je 0x406fa8
push 0
or edx, 0xffffffff
call fcn.0041a1c6
pop ecx
push eax
push str.______Loading_Test_Script................._FAILED___s
call fcn.00401109
pop ecx
pop ecx
push 1
jmp 0x406fe4
call fcn.0041bef7
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6d5708
push esi
push ebp
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push ebp
push 0x6d5720
push 0x6d5738
call fcn.00401109
add esp, 0xc
push esi
call fcn.005c8390
int3
Function at 0x407474
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, ecx
test edi, edi
je 0x40748c
mov dword [edi], esi
push 0x1000
push 0x74e940
push 0xffffffffffffffff
push dword [ebx + 0x1c]
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x6d5b00
lea eax, [ebp - 4]
push 0x74e940
push eax
call fcn.005e6450
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x40761e
push 2
push 0xfffffffffffffff0
push dword [ebp - 4]
call fcn.005e7d00
push dword [ebp - 4]
mov eax, 0x751940
push 0x10
push 1
push eax
call fcn.005f08b0
add esp, 0x1c
mov ecx, esi
mov edx, 0x751940
mov eax, dword [edx + ecx*4]
mov edx, 0x6d732c
cmp eax, dword [edx + ecx*4]
mov edx, 0x751940
jne 0x407615
inc ecx
cmp ecx, 4
jne 0x4074ee
push 1
push 0xffffffffffffffec
push dword [ebp - 4]
call fcn.005e7d00
push dword [ebp - 4]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.005f08b0
add esp, 0x1c
cmp eax, 4
jne 0x407615
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_ntohl]
push 1
push 0xfffffffffffffffc
pop ecx
sub ecx, eax
mov dword [ebp - 8], eax
push ecx
push dword [ebp - 4]
call fcn.005e7d00
mov edx, dword [ebp - 8]
add esp, 0xc
cmp edx, 0xffffffff
jae 0x407582
or eax, 0xffffffff
sub eax, edx
je 0x407582
cmp edx, 0xffffffef
jae 0x407582
push 0x109f
push 0x6d5b08
lea eax, [edx + 0x10]
push 1
push eax
call fcn.005ed7c0
mov edx, dword [ebp - 8]
add esp, 0x10
jmp 0x407584
mov eax, esi
push esi
push esi
mov ecx, eax
call fcn.00484c1e
mov esi, eax
pop ecx
pop ecx
test edi, edi
je 0x407597
mov dword [edi], esi
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push esi
call fcn.005f08b0
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x407615
test edi, edi
jne 0x407615
and dword [ebp - 0xc], edi
mov edx, 0x6d5b28
push ecx
mov ecx, dword [ebx + 0x1c]
call fcn.00403127
mov dword [esp], 0x1000
mov ebx, 0x74e940
push ebx
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x6d5b20
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.005e6450
add esp, 0xc
cmp dword [ebp - 0xc], edi
je 0x40760e
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push esi
call fcn.005ea1e0
push dword [ebp - 0xc]
call fcn.005e7100
add esp, 0x14
mov ecx, esi
call fcn.00484cd3
push dword [ebp - 4]
call fcn.005e7100
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b600
Capabilities:
Capture screenshot
Terminate process

Disassembly:
sub esp, 0x68
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
lea eax, [esp + 0x1c]
push eax
push 0x18
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x18
jne 0x40b76a
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x40b76a
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x44], ebp
jne 0x40b669
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test ebx, ebx
je 0x40b74b
test esi, esi
je 0x40b756
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x2c
mov dword [esp + 0x1c], eax
xor ebp, ebp
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.005bb370
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x58], ebp
cmp dword [esp + 0x44], ebp
jne 0x40b6c0
cdq
sub eax, edx
sar eax, 1
push 3
push ebp
push ebp
push eax
push dword [esp + 0x30]
push dword [esp + 0x28]
push ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
push ebp
lea eax, [esp + 0x4c]
push eax
push ebp
push ebp
push ebp
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push dword [esp + 0x5c]
call fcn.005f0a50
mov ebp, eax
mov dword [esp + 0x18], ebp
pop ecx
test ebp, ebp
je 0x40b77f
and dword [esp + 0x58], 0
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x24]
jne 0x40b714
cdq
sub eax, edx
sar eax, 1
push 0
lea ecx, [esp + 0x4c]
push ecx
push ebp
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [esp + 0x5c]
mov ecx, ebp
push 0
call fcn.004835ad
push dword [esp + 0x14]
mov ebp, eax
call fcn.005f0a30
pop ecx
push dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x40b756
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x40b765
push ebx
push 0
call esi
push edi
push 0
call esi
mov ecx, dword [esp + 0x74]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x68
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
mov edx, 0x6d733c
push eax
push edi
xor ecx, ecx
lea esi, [edi - 0x57]
push esi
call fcn.0048cac3
add esp, 0xc
push esi
push str...meshcoreKVMWindowsinput.c
push 0x6d737c
call fcn.00401109
add esp, 0xc
push edi
call fcn.005c8390
int3
Function at 0x40bbe9
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
mov ebx, dword [0x74c978]
xor eax, eax
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ebp
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
push ecx
push 0x7f00
push ebp
stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f8a
push ebp
mov dword [0x772acc], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f03
push ebp
mov dword [0x772ab4], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f89
push ebp
mov dword [0x772abc], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f8b
push ebp
mov dword [0x772b10], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f01
push ebp
mov dword [0x772aa8], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f88
push ebp
mov dword [0x772ac0], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f86
push ebp
mov dword [0x772ac8], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f83
push ebp
mov dword [0x772ad0], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f85
push ebp
mov dword [0x772ab8], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f82
push ebp
mov dword [0x772ab0], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f84
push ebp
mov dword [0x772b14], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f04
push ebp
mov dword [0x772aac], eax
call esi
mov ecx, eax
call fcn.0040b600
push 0x7f02
push ebp
mov dword [0x772ac4], eax
call esi
mov ecx, eax
call fcn.0040b600
mov dword [0x772ad4], eax
lea eax, [esp + 0x20]
pop ecx
push eax
mov dword [esp + 0x20], 0x14
call dword [sym.imp.USER32.dll_GetCursorInfo]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0040b600
pop ecx
mov ecx, eax
call fcn.0040b548
push ebp
push ebp
push 0x15
mov dword [0x6d7460], eax
call fcn.005f0a50
pop ecx
push 5
pop edx
mov ecx, eax
call fcn.00484c1e
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov esi, eax
pop ecx
pop ecx
push 0x58
call edi
push 5
mov word [esi], ax
call edi
mov cl, byte [0x6d7460]
mov edx, esi
mov byte [esi + 4], cl
mov ecx, ebx
push ebp
mov word [esi + 2], ax
call fcn.0048b336
pop ecx
push ebp
push ebp
push 0x15
call fcn.005f0a50
pop ecx
push 5
pop edx
mov ecx, eax
call fcn.00484c1e
pop ecx
pop ecx
push 0x12
mov ebp, eax
call edi
push 5
mov word [ebp], ax
call edi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
mov word [ebp + 2], ax
call esi
mov bx, ax
and bl, 1
add bl, bl
push 0x91
call esi
and al, 1
or al, bl
add al, al
push 0x90
mov word [esp + 0x1a], ax
call esi
mov ecx, dword [esp + 0x18]
and al, 1
or al, byte [esp + 0x16]
xor esi, esi
push esi
mov edx, ebp
mov byte [ebp + 4], al
call fcn.0048b336
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
push esi
push esi
push esi
push 0x40babc
push esi
push esi
mov dword [0x74c960], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x74c970], eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bea3
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov bl, cl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40bf18
push edi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor edi, edi
movzx eax, bl
inc edi
mov word [ebp - 0x18], ax
mov dword [ebp - 0x1c], edi
cmp esi, edi
jne 0x40bedb
mov dword [ebp - 0x14], 2
jmp 0x40beed
push 3
pop eax
cmp esi, eax
je 0x40beea
xor eax, eax
cmp esi, 4
cmove eax, edi
mov dword [ebp - 0x14], eax
and dword [ebp - 0x10], 0
push 0
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov word [ebp - 0x16], ax
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push edi
call dword [sym.imp.USER32.dll_SendInput]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c26c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c2bc
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.SoftwareSASGeneration
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret