joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bce0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
jbe 0x47bd11
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
or eax, 1
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0046db40
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x47be35
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
jbe 0x47bd6c
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x47bd97
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
nop
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x47bd80
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x47bdb3
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x47be2b
mov ebx, dword [ecx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00407030
test al, al
je 0x47bdeb
mov ebx, dword [ebx]
cmp ebx, esi
je 0x47bde3
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x47be28
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x47be0b
mov ebx, dword [ebx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00407030
test al, al
jne 0x47be3e
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x47bdf2
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x47bd50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x47be28
Function at 0x47ea97
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47ead6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47ead6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47ead6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47ead6
cmp dword [ecx + 0x74], 0xe
jbe 0x47ead6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402cc0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040495c
test esi, esi
jne 0x402cf7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404a4c
jmp 0x402d18
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402b5c
mov dword [esp], eax
test esi, esi
je 0x402d18
cmp dword [ebx], 0
je 0x402d18
dec esi
jmp 0x402cff
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40335c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x42b008], 0x8088405
inc edx
mov dword [ebx + 0x42b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403c68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42b01c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ce0
xor eax, eax
push ebp
push 0x403cd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ce0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x42b01c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42b01c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40473c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42f040], 0
je 0x40479d
cmp word [0x42f214], 0xd7b2
jne 0x404765
cmp dword [0x42f21c], 0
jbe 0x404765
mov eax, 0x42f210
call dword [0x42f22c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42b08c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4047c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42b02c], 0
jne 0x4047b9
push 0
push 0x42b084
push 0x42b08c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404918
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402978
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x42f041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048e0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40615c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4061c2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404bcc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061c9
lea eax, [ebp - 0x10]
call fcn.0040495c
ret

Function at 0x406de4
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebx
mov ebx, eax
lea edx, [ebx + 0x10]
mov eax, 0x42b120
mov ecx, 0x1000
call fcn.00402b1c
lea edx, [ebx + 0x1010]
mov eax, 0x42b0d8
mov ecx, 0x48
call fcn.00402b1c
pop ebx
ret

Function at 0x409c30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
test dl, dl
je 0x409c48
add esp, 0xfffffff0
call fcn.00403edc
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
push 0
call sub.ole32.dll_CoInitialize
call fcn.00406a50
test eax, eax
je 0x409d40
mov dword [ebp - 0x9c], 0x94
test ebx, ebx
je 0x409d40
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x409d40
cmp dword [ebp - 0x98], 6
jb 0x409d40
xor edx, edx
push ebp
push 0x409d2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.004060b4
push eax
push 0x409d64
push 7
push 0
push 0x42c47c
call sub.ole32.dll_CoCreateInstance
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x409ce8
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x64
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 4]
mov al, 2
mov byte [edx + 0x14], al
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00409bd0
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x15]
mov eax, dword [ebp - 4]
call fcn.00409c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409d40
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x409d58
call fcn.00403f34
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a058
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404e0c
mov eax, dword [ebp - 8]
call fcn.00404e0c
xor eax, eax
push ebp
push 0x40a229
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x414]
mov dword [eax], ebx
inc ebx
add eax, 4
cmp ebx, 0x100
jne 0x40a09b
xor edi, edi
xor ebx, ebx
lea esi, [ebp - 0x414]
mov eax, dword [ebp - 4]
call fcn.00404c1c
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
mov edx, dword [esi]
add edi, edx
jno 0x40a0d6
call fcn.00403d38
add eax, edi
jno 0x40a0df
call fcn.00403d38
and eax, 0x800000ff
jns 0x40a0ed
dec eax
or eax, 0xffffff00
inc eax
mov edi, eax
mov eax, edx
mov edx, dword [ebp + edi*4 - 0x414]
mov dword [esi], edx
mov dword [ebp + edi*4 - 0x414], eax
inc ebx
add esi, 4
cmp ebx, 0x100
jne 0x40a0b3
xor ebx, ebx
xor edi, edi
lea eax, [ebp - 0x10]
call fcn.0040495c
mov eax, dword [ebp - 8]
call fcn.00404c1c
mov esi, eax
sub esi, 1
jno 0x40a12d
call fcn.00403d38
test esi, esi
jl 0x40a1f0
inc esi
mov dword [ebp - 0xc], 0
add ebx, 1
jno 0x40a147
call fcn.00403d38
and ebx, 0x800000ff
jns 0x40a157
dec ebx
or ebx, 0xffffff00
inc ebx
mov eax, dword [ebp + ebx*4 - 0x414]
add edi, eax
jno 0x40a167
call fcn.00403d38
and edi, 0x800000ff
jns 0x40a177
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x414]
mov dword [ebp + ebx*4 - 0x414], edx
mov dword [ebp + edi*4 - 0x414], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
mov edx, dword [ebp + ebx*4 - 0x414]
add edx, dword [ebp + edi*4 - 0x414]
jno 0x40a1ab
call fcn.00403d38
and edx, 0x800000ff
jns 0x40a1bb
dec edx
or edx, 0xffffff00
inc edx
xor eax, dword [ebp + edx*4 - 0x414]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x418]
mov edx, 2
mov eax, dword [ebp - 0x14]
call fcn.00409e34
mov edx, dword [ebp - 0x418]
lea eax, [ebp - 0x10]
call fcn.00404c24
inc dword [ebp - 0xc]
dec esi
jne 0x40a13d
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
call fcn.0040a00c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a230
lea eax, [ebp - 0x418]
call fcn.0040495c
lea eax, [ebp - 0x10]
call fcn.0040495c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404980
ret
Function at 0x40ba9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bc2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040495c
lea eax, [ebp - 0x14]
push eax
mov eax, edi
call fcn.00404e1c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bc09
push ebx
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bc00
xor eax, eax
push ebp
push 0x40bbf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, edi
call fcn.00404e1c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bbe2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40bc3c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bbdb
cmp dword [ebp - 0xc], 0
jbe 0x40bbe2
mov eax, dword [ebp - 0xc]
shr eax, 2
add eax, eax
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x40bbe2
inc edi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
call fcn.00406a00
movzx eax, ax
mov edx, dword [ebp - 0x10]
movzx edx, word [edx + ebx*4]
shl edx, 0x10
or eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, 0x40bc60
call fcn.00404c68
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
call fcn.0040b8d8
mov eax, dword [ebp - 0x1c]
call fcn.00404e1c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bbd5
mov eax, esi
mov edx, dword [ebp - 0x18]
call fcn.00404b54
inc ebx
dec edi
jne 0x40bb65
jmp 0x40bbe2
mov eax, esi
call fcn.0040495c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc10
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalFree
ret
mov eax, esi
call fcn.0040495c
jmp 0x40bc10
mov eax, esi
call fcn.0040495c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc32
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404980
ret
Function at 0x40bc78
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, edi
call fcn.0040495c
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00404e1c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bd71
push ebx
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40bd71
xor eax, eax
push ebp
push 0x40bd6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push ebx
push 0
mov eax, esi
call fcn.00404e1c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bd53
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40bd78
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bd4c
mov ebx, dword [ebp - 0xc]
push edi
mov esi, dword [ebx + 8]
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
and esi, 0xffff
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 0
mov eax, dword [ebx + 0xc]
shr eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [ebx + 0xc]
and eax, 0xffff
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x30]
mov ecx, 3
mov eax, 0x40bd84
call fcn.0040b8d8
jmp 0x40bd53
mov eax, edi
call fcn.0040495c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd71
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GlobalFree
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x40c019
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e0c
xor eax, eax
push ebp
push 0x40c0f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x42e12c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00403084
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403650
call fcn.00402afc
test eax, eax
jne 0x40c0d1
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004031e0
mov dx, word [ebp - 8]
test dx, dx
jbe 0x40c0cb
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x42c4bc]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x40c0a7
cmp dword [ebp - 8], 0
jne 0x40c07e
lea eax, [ebp - 0x154]
call fcn.00403200
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0fb
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x40c690
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
call sub.user32.dll_SendMessageW
mov ebx, eax
test ebx, ebx
jle 0x40c6c9
lea ebp, [ebx + 1]
mov edx, ebp
mov eax, esi
call fcn.00405300
mov eax, dword [esi]
call fcn.004051cc
push eax
push ebp
push 0xd
push edi
call sub.user32.dll_SendMessageW
jmp 0x40c6d0
mov eax, esi
call fcn.00405048
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c88c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e1c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40c8a5
test al, 0x10
jne 0x40c8a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c8b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e0c
xor eax, eax
push ebp
push 0x40c98e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c1c
inc eax
push eax
push 0x2042
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c978
xor eax, eax
push ebp
push 0x40c971
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c951
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040ca3c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x40c946
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
jmp 0x40c95a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalFree
jmp 0x40c95a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c978
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c995
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x40cd68
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e0c
xor eax, eax
push ebp
push 0x40ce5d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ce40
xor eax, eax
push ebp
push 0x40ce39
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
mov eax, dword [ebp - 4]
call fcn.00404e1c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ce1b
xor eax, eax
push ebp
push 0x40ce14
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatusEx
cmp dword [ebp - 0x34], 4
sete al
and eax, 0x7f
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce22
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov dword [ebp - 8], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce47
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov dword [ebp - 8], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce64
lea eax, [ebp - 4]
call fcn.0040495c
ret

Function at 0x40ce6c
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e0c
mov eax, dword [ebp - 8]
call fcn.00404e0c
xor eax, eax
push ebp
push 0x40cf40
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x40cf1e
push 0x14
mov eax, dword [ebp - 8]
call fcn.00404e1c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x40cf18
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x40cf12
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x40cf12
jmp 0x40cf0c
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x40cf12
cmp edi, dword [ebp - 0x14]
ja 0x40cf12
cmp dword [ebp - 0x24], 4
jne 0x40ceed
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf47
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404980
ret
Function at 0x40cf50
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e0c
mov eax, dword [ebp - 8]
call fcn.00404e0c
xor eax, eax
push ebp
push 0x40d01a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x40cff8
push 0x24
mov eax, dword [ebp - 8]
call fcn.00404e1c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x40cff2
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x40cfec
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x40cfec
jmp 0x40cfe6
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x40cfec
cmp edi, dword [ebp - 0x10]
ja 0x40cfec
cmp dword [ebp - 0x20], 1
jne 0x40cfc7
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d021
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404980
ret

Function at 0x40d2a8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x40d2d6
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00404bcc
jmp 0x40d2dd
mov eax, ebx
call fcn.0040495c
add esp, 0x14
pop ebx
ret