joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022b5
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00404d95
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00404d95
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x40234b
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x402348
push 6
call fcn.00404da1
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x402377
push 6
call fcn.00404da1
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4023a5
push 6
call fcn.00404da1
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push 0x421350
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4023d1
push 6
call fcn.00404da1
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x402460
push 6
call fcn.00404da1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
call dword [0x5eb3d1]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x402485
push 6
call fcn.00404da1
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x40248d
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00404d8f
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00404d8f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40263a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40267a
push 6
call fcn.00404da1
add esp, 4
jmp 0x40267f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x403875
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4038a2
push 6
call fcn.00404da1
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x4038b6
mov esp, ebp
pop ebp
ret 4

Function at 0x405250
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x4052d0
je 0x4052c1
cmp eax, 0x80000101
ja 0x4052ba
je 0x4052c1
cmp eax, 0x80000004
je 0x40529d
cmp eax, 0x80000005
jne 0x4052e5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x40532b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x40532b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x40532b
cmp eax, 0x80000201
jne 0x4052e5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x40532b
cmp eax, 0x80000401
je 0x405316
cmp eax, 0x80000501
je 0x405302
cmp eax, 0x80000601
je 0x4052ee
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004095b8
jmp 0x405323
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004095b8
jmp 0x405323
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004070d0
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x405406
test ecx, ecx
je 0x405406
inc ecx
push esi
push ecx
call fcn.0041516b
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409590
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4053a8
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push GetWindowLongA
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4053fc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4053f1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00415194
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x405f60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x405ff2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x405fe4
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x405fdc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x405fa5
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x406000
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret
Function at 0x406320
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4063ab
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4063ab
test esi, esi
je 0x406365
cmp esi, 0xffffffff
je 0x406365
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x4063f1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x406394
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x4063ab
jmp 0x4063a3
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x4063ab
mov dword [esp + 0x10], 1
test esi, esi
je 0x4063f1
cmp esi, 0xffffffff
je 0x4063f1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x406428
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x4063fe
call edi
test eax, eax
je 0x4063f1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x406428
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x4063d9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x4063f1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x406428
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x40640b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00405030
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x406700
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x406769
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00405030
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x408460
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x41dad8
push 1
push 0
push 0x41dae8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40848e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x41dac8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4084c2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x41a664
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a692
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x41a6b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a5ca
jmp 0x41a6b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a6b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041a5ca
test edi, edi
mov eax, edi
jne 0x41a69a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403315
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.00487815
xor ebx, ebx
test eax, eax
je 0x40333f
cmp dword [edi - 0xc], ebx
jbe 0x403339
lea esi, [edi + 0x10]
add esi, dword [edi - 0x10]
jmp 0x40333b
mov esi, ebx
mov esi, dword [esi]
jmp 0x403341
mov esi, ebx
test edi, edi
jne 0x403349
mov eax, ebx
jmp 0x403356
push 0xfffc
push edi
call fcn.005f8650
pop ecx
pop ecx
test esi, esi
je 0x4033bd
cmp dword [esi + 0x28], ebx
je 0x4033bd
push ecx
push 0x6dc77c
mov edx, eax
mov ecx, edi
call fcn.0048ec59
pop ecx
pop ecx
mov ebp, 0x771260
push ebp
push 0x8000
lea esi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push 0x1000
push 0x76f260
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 0x76f260
push 0x6dc780
push esi
push ebp
call fcn.0040117f
add esp, 0x14
jmp 0x4033d7
push edi
push 0x6dc788
mov esi, 0x10000
mov ebp, 0x771260
push esi
push ebp
call fcn.0040117f
add esp, 0x10
push esi
push ebp
call fcn.005f8650
mov ebx, dword [esp + 0x1c]
mov edx, eax
pop ecx
pop ecx
push ecx
cmp byte [ebx], 0x2e
mov ecx, ebp
jne 0x40340a
push 0x6dc78c
call fcn.0048ec59
push ebx
push 0x6dc790
sub esi, eax
push esi
lea eax, [eax + 0x771260]
push eax
jmp 0x403425
push 0x6dc794
call fcn.0048ec59
inc eax
push ebx
push 0x6dc798
sub esi, eax
push esi
lea ecx, [eax + 0x771260]
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 0x40759c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x400
mov esi, ecx
push edi
push 0x6dee10
call fcn.005f8650
mov ecx, dword [esi + 0x24]
xor ebp, ebp
push ebp
push ebp
push eax
mov edx, 0x6dee1c
call fcn.00493ee4
mov ecx, dword [esi + 8]
add esp, 0x14
mov ebx, eax
call fcn.0045cf80
mov ecx, dword [esi + 8]
mov edx, eax
call fcn.0041ca72
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 8]
call fcn.00480d97
mov ecx, dword [esi + 8]
push 0x6dee28
push 0xfffffffffffffffe
pop edx
call fcn.004192b8
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041cd62
push str.Agent_Self_Test..._n
call fcn.00401109
pop ecx
cmp dword [esi + 0xbb4], ebp
je 0x407666
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x64]
call fcn.0041cb7e
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push 0x6dee48
call fcn.00419063
pop ecx
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0xfffffffffffffffe
pop edx
call fcn.00419f51
mov edx, dword [esi + 0xbb4]
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041ca72
mov ecx, dword [esi + 8]
xor edx, edx
push ebp
inc edx
call fcn.00417e9a
pop ecx
mov ecx, dword [esi + 8]
call fcn.0041cd62
mov dword [esi + 0xbb4], ebp
push str.______Loading_meshcore.js_from_db_........
call fcn.00401109
pop ecx
cmp ebx, 4
jg 0x4076a8
push edi
push 0x6dee84
call fcn.005f8650
mov ecx, dword [esi + 0x24]
mov edx, str.serviceName
push ebp
push ebp
push eax
call fcn.00493ee4
add esp, 0x14
test eax, eax
jne 0x4076a8
push str._NOT_FOUND__n
call fcn.00401109
pop ecx
jmp 0x4077a6
push str._OK__n
call fcn.00401109
mov dword [esp], 0x1078
push 0x6deeb4
push 1
push ebx
mov dword [esi + 0xcd8], 3
call fcn.005f5c60
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4077ac
push 0x400
push 0x6def20
call fcn.005f8650
mov ecx, dword [esi + 0x24]
mov edx, 0x6def2c
push ebx
push edi
push eax
call fcn.00493ee4
mov ecx, dword [esi + 8]
lea eax, [ebx - 4]
add esp, 0x14
lea edx, [edi + 4]
push 0xd
push 0x6def38
push eax
call fcn.0047c63c
add esp, 0xc
test eax, eax
jne 0x407728
mov ecx, dword [esi + 8]
call fcn.0047c6c5
test eax, eax
je 0x407760
mov eax, dword [esi]
test eax, eax
je 0x407733
mov ebx, dword [eax + 8]
jmp 0x407735
mov ebx, ebp
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
call fcn.0041b03c
pop ecx
push eax
push 0x6def48
push 2
push 0x4100
push ebx
call fcn.004920d4
mov ecx, dword [esi + 8]
add esp, 0x14
call fcn.0041cd62
push 1
push edi
call fcn.005f5b20
pop ecx
pop ecx
push 0xe88
push ecx
mov ecx, dword [esi + 8]
mov edx, str.require_agent_selftest____
call fcn.004188ff
pop ecx
pop ecx
mov ecx, dword [esi + 8]
test eax, eax
je 0x4077a1
push ebp
or edx, 0xffffffff
call fcn.0041b03c
pop ecx
push eax
push str.______Loading_Test_Script................._FAILED___s
call fcn.00401109
pop ecx
pop ecx
push 1
jmp 0x4077e2
call fcn.0041cd62
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x1078
push esi
push edi
mov edx, 0x6deecc
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6deee4
push 0x6deefc
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d08b0
int3
Function at 0x407c72
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 0x407c8a
mov dword [edi], esi
push 0x1000
push 0x76d260
push 0xffffffffffffffff
push dword [ebx + 0x1c]
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x6df2e4
lea eax, [ebp - 4]
push 0x76d260
push eax
call fcn.005ee960
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x407e1c
push 2
push 0xfffffffffffffff0
push dword [ebp - 4]
call fcn.005f0210
push dword [ebp - 4]
mov eax, 0x770260
push 0x10
push 1
push eax
call fcn.005f8d30
add esp, 0x1c
mov ecx, esi
mov edx, 0x770260
mov eax, dword [edx + ecx*4]
mov edx, 0x6e0cc8
cmp eax, dword [edx + ecx*4]
mov edx, 0x770260
jne 0x407e13
inc ecx
cmp ecx, 4
jne 0x407cec
push 1
push 0xffffffffffffffec
push dword [ebp - 4]
call fcn.005f0210
push dword [ebp - 4]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.005f8d30
add esp, 0x1c
cmp eax, 4
jne 0x407e13
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.005f0210
mov edx, dword [ebp - 8]
add esp, 0xc
cmp edx, 0xffffffff
jae 0x407d80
or eax, 0xffffffff
sub eax, edx
je 0x407d80
cmp edx, 0xffffffef
jae 0x407d80
push 0x110b
push 0x6df2ec
lea eax, [edx + 0x10]
push 1
push eax
call fcn.005f5c60
mov edx, dword [ebp - 8]
add esp, 0x10
jmp 0x407d82
mov eax, esi
push esi
push esi
mov ecx, eax
call fcn.00487604
mov esi, eax
pop ecx
pop ecx
test edi, edi
je 0x407d95
mov dword [edi], esi
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push esi
call fcn.005f8d30
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x407e13
test edi, edi
jne 0x407e13
and dword [ebp - 0xc], edi
mov edx, 0x6df30c
push ecx
mov ecx, dword [ebx + 0x1c]
call fcn.00403315
mov dword [esp], 0x1000
mov ebx, 0x76d260
push ebx
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x6df304
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.005ee960
add esp, 0xc
cmp dword [ebp - 0xc], edi
je 0x407e0c
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push esi
call fcn.005f2680
push dword [ebp - 0xc]
call fcn.005ef610
add esp, 0x14
mov ecx, esi
call fcn.004876b9
push dword [ebp - 4]
call fcn.005ef610
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0b5
Capabilities:
Capture screenshot
Terminate process

Disassembly:
sub esp, 0x68
mov eax, dword [0x6dad44]
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 0x40c230
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x40c230
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x44], ebp
jne 0x40c11e
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 0x40c211
test esi, esi
je 0x40c21c
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.005c3840
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x58], ebp
cmp dword [esp + 0x44], ebp
jne 0x40c175
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 0xac
push 0x6e0cd8
push 1
push dword [esp + 0x68]
call fcn.005f5c60
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x40c245
and dword [esp + 0x58], 0
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x24]
jne 0x40c1d7
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.00485f64
push 1
push dword [esp + 0x18]
mov ebp, eax
call fcn.005f5b20
pop ecx
pop ecx
push dword [esp + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x40c21c
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x40c22b
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.005c0e20
add esp, 0x68
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfe
mov edx, 0x6e0cf8
push eax
push esi
xor ecx, ecx
lea edi, [esi - 0x52]
push edi
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6e0d18
push 0x6e0d38
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d08b0
int3
Function at 0x40c9c0
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 0x40ca35
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 0x40c9f8
mov dword [ebp - 0x14], 2
jmp 0x40ca0a
push 3
pop eax
cmp esi, eax
je 0x40ca07
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 0x40cdcc
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 0x40ce1c
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
Function at 0x40dbcd
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, edx
cmp dword [0x76b758], esi
je 0x40dc51
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
cmp edi, 2
jl 0x40dc11
movzx eax, word [ebx]
push eax
call ebp
cmp ax, 0xa
jne 0x40dc11
push esi
push esi
push esi
push 0x40ce20
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40dc11
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [0x76b758]
mov edx, ebx
push edi
call fcn.00491b70
mov eax, dword [0x76b4ec]
pop ecx
pop ecx
test eax, eax
je 0x40dc2e
mov esi, dword [eax + 8]
movzx eax, word [ebx]
push eax
call ebp
movzx eax, ax
push eax
push str.KVM__Master_:_Write_Input__Type___u_
push 4
push 0x100
push esi
call fcn.004920d4
add esp, 0x14
mov eax, edi
jmp 0x40dc73
mov ebp, 0x401971
jmp 0x40dc61
add esi, eax
mov edx, edi
sub edx, esi
lea ecx, [esi + ebx]
push dword [esp + 0x18]
push ebp
call fcn.0040d44a
pop ecx
pop ecx
test eax, eax
jne 0x40dc58
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret