joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d150
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x408]
push esi
push eax
call fcn.00552b90
add esp, 0xc
cmp edi, dword [0x5dc498]
je 0x40d25c
push 0x5dc098
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d243
push 0x5db898
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d214
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x40c]
push eax
movzx eax, word [ebp - 0x40e]
push eax
movzx eax, word [ebp - 0x410]
push eax
movzx eax, word [ebp - 0x412]
push eax
movzx eax, word [ebp - 0x416]
push eax
movzx eax, word [ebp - 0x418]
push eax
push 0x5dc098
lea eax, [ebp - 0x408]
push 0x5b3f48
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea ecx, [ebp - 0x408]
call fcn.0040cfb0
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00552b90
add esp, 0xc
push 0x400
push 0
push 0x5dc098
call fcn.00552b90
add esp, 0xc
mov esi, 1
push 0x5dc098
push 0x400
push 0xd
push edi
mov dword [0x5dc498], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0054f768
mov esp, ebp
pop ebp
ret

Function at 0x40d5f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
mov ebx, ecx
movzx ecx, byte [eax]
cmp ecx, 4
ja case.0x40d604.2
jmp dword [ecx*4 + 0x40d6f8]
mov dword [ebx + 0xc], closesocket
jmp 0x40d636
mov dword [ebx + 0xc], closesocket
jmp 0x40d636
mov dword [ebx + 0xc], reloc.WS2_32.dll_closesocket
jmp 0x40d636
mov dword [ebx + 0xc], htons
jmp 0x40d636
mov dword [ebx + 0xc], reloc.OLEAUT32.dll_SysReAllocString
mov ecx, dword [eax + 9]
movq xmm0, qword [eax + 1]
add eax, 0xd
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x40d6ee
mov eax, dword [ebp - 0x10]
push esi
push edi
test eax, eax
je 0x40d6a6
lea esi, [eax + 1]
push esi
call fcn.00415a1b
push esi
mov edi, eax
push 0
push edi
call fcn.00552b90
mov esi, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
push edi
call fcn.00552610
add esp, 0x1c
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push edi
push dword [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d6db
mov eax, dword [ebp - 8]
add dword [ebp + 8], esi
mov ecx, dword [ebp - 4]
mov dword [ebx + 0xc], eax
lea esi, [ecx + 1]
push esi
call fcn.00415a1b
push esi
mov edi, eax
push 0
push edi
call fcn.00552b90
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call fcn.00552610
add esp, 0x1c
push edi
push dword [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov byte [ebp + 0xb], 7
test eax, eax
je 0x40d6df
mov byte [ebp + 0xb], 8
push 1
lea eax, [ebp + 0xb]
mov ecx, ebx
push eax
call fcn.00409ef0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
sub eax, 0
je 0x40d8b0
sub eax, 1
je 0x40d8a4
sub eax, 2
jne 0x40d8bc
lea eax, [edx + 1]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040d8c0
lea eax, [edx + 1]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040da80
lea eax, [edx + 1]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040d710
pop ebp
ret 4

Function at 0x40dbf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
cmp eax, 4
ja case.0x40dc01.2
jmp dword [eax*4 + 0x40dc60]
mov dword [esi + 0xc], closesocket
jmp 0x40dc33
mov dword [esi + 0xc], closesocket
jmp 0x40dc33
mov dword [esi + 0xc], reloc.WS2_32.dll_closesocket
jmp 0x40dc33
mov dword [esi + 0xc], htons
jmp 0x40dc33
mov dword [esi + 0xc], reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ecx + 1]
push eax
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov byte [ebp + 0xb], 7
push 1
lea eax, [ebp + 0xb]
mov ecx, esi
push eax
je 0x40dc54
mov byte [ebp + 0xb], 8
call fcn.00409ef0
pop esi
pop ebp
ret 4
Function at 0x40dd30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ecx
push eax
push 0xf003f
xor edi, edi
lea eax, [ecx + 0x18]
push edi
push eax
push dword [ecx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40df12
push eax
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40dd8d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add esi, 5
test eax, eax
je 0x40df12
cmp esi, 1
jbe 0x40df12
mov ebx, esi
imul ebx, eax
add ebx, 0xe
push ebx
push 0x40
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x40dd84
push ebx
push 0
push edi
call fcn.00552b90
mov byte [edi], 6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
movq xmm0, qword [ebp - 0x48]
movq qword [edi + 1], xmm0
mov dword [edi + 9], eax
mov al, byte [ebp - 0x3c]
push esi
mov byte [edi + 0xd], al
call fcn.00415a1b
xor ebx, ebx
mov dword [ebp - 4], eax
add esp, 0x10
cmp dword [ebp - 8], ebx
jbe 0x40def2
add edi, 0xd
nop dword [eax]
push esi
push 0
push eax
call fcn.00552b90
add esp, 0xc
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40de6a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push dword [eax + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40de9f
push 0x5b3f80
call fcn.00409fb0
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x40deb3
mov dword [ebp - 0x18], 1
push 0x5b3f88
jmp 0x40deb8
push 0x5b3f8c
call fcn.00409fb0
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push dword [ebp - 4]
mov dword [edi], eax
lea eax, [edi + 4]
push eax
call fcn.00552610
mov eax, dword [ebp - 4]
inc ebx
add esp, 0xc
add edi, esi
cmp ebx, dword [ebp - 8]
jb 0x40de10
mov edi, dword [ebp - 0x28]
push eax
call fcn.00415a24
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e020
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea eax, [ebp - 0x20]
push esi
push eax
push 0xf003f
xor esi, esi
lea eax, [ecx + 0x18]
push esi
push eax
push dword [ecx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e1c9
push eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40e076
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40e1c9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40e1c9
push ebx
lea ebx, [eax + 1]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], eax
lea esi, [eax + 1]
mov dword [ebp - 0x40], eax
add esi, ebx
imul esi, ecx
add esi, 0x16
push esi
push 0x40
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x30], edi
call fcn.00552b90
movq xmm0, qword [ebp - 0x44]
mov byte [edi], 9
movq qword [edi + 1], xmm0
mov dword [edi + 9], ebx
push dword [ebp - 8]
call fcn.0055897e
push dword [ebp - 4]
mov ebx, eax
call fcn.0055897e
lea esi, [edi + 0xd]
mov dword [ebp - 0x10], eax
xor edi, edi
add esp, 0x14
cmp dword [ebp - 0x14], edi
jbe 0x40e1a6
push dword [ebp - 8]
push 0
push ebx
call fcn.00552b90
push dword [ebp - 4]
push 0
push dword [ebp - 0x10]
call fcn.00552b90
mov eax, dword [ebp - 0x18]
add esp, 0x18
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x64
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [ebp - 0xc]
cmp eax, 1
jne 0x40e159
mov byte [esi], 0
mov eax, dword [ebp - 0xc]
cmp eax, 4
jne 0x40e164
mov byte [esi], 1
mov eax, dword [ebp - 0xc]
cmp eax, 3
jne 0x40e16f
mov byte [esi], 2
mov eax, dword [ebp - 0xc]
cmp eax, 2
jne 0x40e177
mov byte [esi], 3
push dword [ebp - 0x24]
inc esi
push ebx
push esi
call fcn.00552610
mov eax, dword [ebp - 0x28]
add esi, dword [ebp - 0x24]
inc eax
push eax
push dword [ebp - 0x10]
push esi
call fcn.00552610
mov eax, dword [ebp - 0x28]
inc edi
inc eax
add esp, 0x18
add esi, eax
cmp edi, dword [ebp - 0x14]
jb 0x40e104
push ebx
call fcn.005553e7
push dword [ebp - 0x10]
call fcn.005553e7
add esp, 8
push 0x42
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571de5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5d1124]
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 ebx, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp + 8]
push 0
push 0
push 1
mov dword [ebx], vtable.CManager.0
mov dword [ebx + 4], eax
push 0
mov dword [ebp - 0x70], ebx
mov dword [eax + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0
lea edi, [ebx + 0x70]
movaps xmm0, xmmword [0x5b4900]
xor esi, esi
movups xmmword [ebp - 0x54], xmm0
mov dword [ebx], vtable.CScreenManager.0
movaps xmm0, xmmword [0x5b48f0]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebx + 0x2c], vtable.CCursorInfo.0
movaps xmm0, xmmword [0x5b48e0]
movups xmmword [ebp - 0x34], xmm0
movaps xmm0, xmmword [0x5b48d0]
movups xmmword [ebp - 0x24], xmm0
nop dword [eax + eax]
mov eax, dword [ebp + esi*4 - 0x54]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
inc esi
mov dword [edi], eax
lea edi, [edi + 4]
cmp esi, 0x10
jl 0x40e2f0
mov byte [ebp - 4], 1
push 0x110
mov byte [ebx + 0x18], 1
mov dword [ebx + 0x20], 8
call fcn.004159e4
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40e340
push ecx
push 0
push 8
mov ecx, eax
call fcn.0040ef10
jmp 0x40e342
xor eax, eax
push str.dwmapi.dll
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
push 0
mov dword [ebx + 0xb4], eax
mov dword [ebp - 0x64], 0x40ea50
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
push 0x4155a0
push 0
push 0
call fcn.0055ad4c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x58]
call ebx
push dword [ebp - 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x68]
push 0
push 0
push 0
push 0
mov dword [eax + 0x24], esi
mov dword [ebp - 0x64], 0x40eb40
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
push 0x4155a0
push 0
push 0
call fcn.0055ad4c
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x58]
call ebx
push dword [ebp - 0x58]
call edi
mov eax, dword [ebp - 0x68]
mov dword [eax + 0x28], esi
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.0054f768
mov esp, ebp
pop ebp
ret 4
Function at 0x40e550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571e66
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d1124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
push dword [edi + 0x24]
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0xb0]
test ecx, ecx
je 0x40e5a5
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [ebp + 8]
push 0x110
mov dword [edi + 0xb0], 0
call fcn.004159e4
add esp, 4
mov dword [ebp + 8], eax
cmp ebx, 3
jne 0x40e5e0
mov dword [ebp - 4], 0
test eax, eax
je 0x40e616
push ecx
push 1
push 4
mov ecx, eax
call fcn.0040ef10
jmp 0x40e618
cmp ebx, 7
jne 0x40e5fe
mov dword [ebp - 4], 1
test eax, eax
je 0x40e616
push ecx
push 1
push 8
mov ecx, eax
call fcn.0040ef10
jmp 0x40e618
mov dword [ebp - 4], 2
test eax, eax
je 0x40e616
push ecx
push 0
push ebx
mov ecx, eax
call fcn.0040ef10
jmp 0x40e618
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [edi + 0xb0], eax
movzx eax, byte [edi + 0x18]
push eax
mov eax, dword [edi + 0xb0]
add eax, 4
push eax
call esi
cmp dword [edi + 0x1c], 0
mov ecx, 0xcc0020
mov eax, 0x40cc0020
cmove eax, ecx
push eax
mov eax, dword [edi + 0xb0]
add eax, 0x10
push eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x20], ebx
mov dword [edi + 0xc], 1
mov dword [ebp - 0x1c], 0x40ea50
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0x4155a0
push 0
push 0
call fcn.0055ad4c
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 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
Function at 0x40ec40
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x24924925
mul ecx
push esi
mov esi, ecx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
mov dword [ebp + 0xc], esi
lea eax, [esi*8]
sub eax, esi
shl eax, 2
sub ecx, eax
jne 0x40edc6
call fcn.0040f290
test esi, esi
jle 0x40edc6
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_mouse_event]
add ebx, 8
mov eax, dword [ebx - 4]
add eax, 0xfffffe00
cmp eax, 8
ja 0x40eccc
movzx esi, word [ebx + 6]
movzx edi, word [ebx + 4]
push esi
push edi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
push edi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov eax, dword [ebx - 4]
cmp eax, 0x201
ja 0x40ed1c
je 0x40ed0d
sub eax, 0x100
cmp eax, 5
ja case.0x40ed2a.521
jmp dword [eax*4 + 0x40edcc]
push 0
push 0
push 0
push dword [ebx]
call ecx
push eax
movzx eax, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x40ed2a.521
push 0
push 2
jmp 0x40ecf1
push 0
push 0
push 0
push 0
push 2
jmp 0x40edad
sub eax, 0x202
cmp eax, 8
ja case.0x40ed2a.521
jmp dword [eax*4 + 0x40ede4]
push 0
push 0
push 0
push 0
push 4
jmp 0x40edad
push 0
push 0
push 0
push 0
push 8
jmp 0x40edad
push 0
push 0
push 0
push 0
push 0x10
jmp 0x40edad
push 0
push 0
push 0
push 0
push 6
call edi
push 0
push 0
push 0
push 0
push 6
jmp 0x40edad
push 0
push 0
push 0
push 0
push 0x18
call edi
push 0
push 0
push 0
push 0
push 0x18
jmp 0x40edad
push 0
push 0
push 0
push 0
push 0x20
jmp 0x40edad
push 0
push 0
push 0
push 0
push 0x40
jmp 0x40edad
movsx eax, word [ebx + 2]
push 0
push eax
push 0
push 0
push 0x800
call edi
mov ecx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
add ebx, 0x1c
sub esi, 1
mov dword [ebp + 0xc], esi
jne 0x40ec91
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40ee10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ee6e
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 0xc]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ee67
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.00552610
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
ret 8
Function at 0x40ee80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ef08
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x40eeb2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.00415a1b
mov edi, eax
lea ecx, [ebx - 1]
push ecx
push esi
lea ecx, [edi + 1]
mov byte [edi], 0xd
push ecx
call fcn.00552610
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 8]
push ebx
push edi
call fcn.00409ef0
push edi
call fcn.00415a24
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410150
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x1f8]
mov ebx, eax
sub esi, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x410181
push 0xf01ff
lea eax, [ebp - 0x1f8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x210], 1
je 0x4101d0
lea eax, [ebp - 0x214]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 0xc]
mov ecx, edi
call fcn.0040fc60
mov esi, eax
test esi, esi
je 0x410212
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push esi
mov ecx, edi
call fcn.00409ef0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret 8

Function at 0x410230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5d1124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
push 0
push 0
push 1
mov dword [edi], vtable.CManager.0
mov dword [edi + 4], eax
push 0
mov dword [eax + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 8], eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.CSystemManager.0
call fcn.00411a70
mov esi, eax
test esi, esi
je 0x4102ab
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push esi
mov ecx, edi
call fcn.00409ef0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x24], 0x410cf0
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x4155a0
push 0
push 0
call fcn.0055ad4c
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4