joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f5c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4566b4]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esi + 0x14]
push edi
push 0
push 0x401ed0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x100
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0xc], eax
pop edi
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
call fcn.0044d575
leave
ret

Function at 0x40902c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x120]
mov eax, dword [edi]
test eax, eax
jne 0x409054
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0xc], 0xffffffff
xor eax, eax
inc eax
jmp 0x4090b2
inc eax
push ebx
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [edi]
push ebx
push dword [esi + 8]
call dword [0x4570ec]
test eax, eax
je 0x4090a8
mov eax, dword [ebp - 4]
push 0
push edi
mov byte [eax + ebx], 0
push dword [ebp - 4]
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4090a8
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x4090a8
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, esi
call fcn.00408fd4
xor eax, eax
inc eax
jmp 0x4090b1
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40913a
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004090bb
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x409153
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi + 0x10]
test esi, esi
je 0x40916b
push esi
call dword [0x4570d8]
pop esi
ret
Function at 0x4099cf
Capabilities:
Capture microphone audio

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
mov ebx, 0x1f40
lea eax, [ebp - 8]
push 0xffffffffffffffff
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov word [ebp - 0x20], 1
mov word [ebp - 0x1e], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x3e80
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], 0x10
mov word [ebp - 0x10], si
push eax
jne 0x409ab5
mov edi, dword [sym.imp.WINMM.dll_waveInOpen]
call edi
cmp eax, esi
je 0x409a5a
cmp eax, 0x20
jne 0x409a90
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 1
mov word [ebp - 0x12], 8
call edi
test eax, eax
jne 0x409a90
xor ebx, ebx
cmp dword [ebp + 8], esi
jbe 0x409a90
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 4]
push eax
call edi
cmp eax, 4
je 0x409a8d
cmp dword [ebp - 4], esi
je 0x409a82
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_waveInClose]
inc ebx
cmp ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
jb 0x409a61
jmp 0x409a9e
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], esi
je 0x409a9e
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_waveInClose]
cmp dword [ebp - 8], esi
je 0x409b3a
push dword [ebp - 8]
call dword [sym.imp.WINMM.dll_waveInClose]
jmp 0x409b3a
mov edi, dword [sym.imp.WINMM.dll_waveOutOpen]
call edi
cmp eax, esi
je 0x409ae8
cmp eax, 0x20
jne 0x409b1e
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 1
mov word [ebp - 0x12], 8
call edi
test eax, eax
jne 0x409b1e
xor ebx, ebx
cmp dword [ebp + 8], esi
jbe 0x409b1e
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 4]
push eax
call edi
cmp eax, 4
je 0x409b1b
cmp dword [ebp - 4], esi
je 0x409b10
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_waveOutClose]
inc ebx
cmp ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
jb 0x409aef
jmp 0x409b2c
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], esi
je 0x409b2c
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_waveOutClose]
cmp dword [ebp - 8], esi
je 0x409b3a
push dword [ebp - 8]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40c4d2
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4566b4]
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x100007f
mov dword [ebp - 4], eax
jne 0x40c4f6
xor eax, eax
inc eax
jmp 0x40c52d
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40c51b
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x40c51f
xor eax, eax
jmp 0x40c52d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor ecx, ecx
cmp esi, dword [eax]
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0044d575
leave
ret 4
Function at 0x40ca4d
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 8]
mov esi, ecx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40ca6f
mov eax, 0x81000102
jmp 0x40ca9d
push edi
lea eax, [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov word [ebp - 0xc], 2
mov word [ebp - 0xa], 4
call fcn.0040c975
pop edi
pop esi
leave
ret 4

Function at 0x40dfd8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push esi
mov esi, 0x80004005
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
jne 0x40dff7
xor eax, eax
jmp 0x40e059
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x40e011
call fcn.0040df6e
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x40e011
mov eax, esi
jmp 0x40e058
mov esi, dword [ebp + 0xc]
push ebx
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40e047
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e047
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], eax
jne 0x40e047
add dword [esi], eax
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x40e055
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e064
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
call fcn.0040df6e
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40e083
or eax, 0xffffffff
jmp 0x40e194
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40e187
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0041e9da
test eax, eax
jl 0x40e187
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
lea eax, [eax + eax + 2]
mov dword [esi + 0xc], eax
je 0x40e0e0
lea edi, [esi + 0x10]
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0043b974
test eax, eax
jge 0x40e0ea
lea edi, [esi + 0x10]
and dword [edi], 0
and dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esi + 0xc]
push 0
push 0
push dword [ebp - 4]
mov dword [esi + 0x14], eax
push dword [ebp - 0x10]
add ecx, eax
mov eax, dword [edi]
lea eax, [ecx + eax + 0x28]
mov dword [esi], eax
call ebx
cmp eax, 0xffffffff
je 0x40e178
mov ebx, dword [ebp - 0x10]
push 0
lea eax, [ebp + 8]
push eax
push 0x28
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e178
cmp dword [ebp + 8], 0x28
jne 0x40e178
push dword [esi + 0xc]
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, 0x28
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0040dfd8
test eax, eax
jne 0x40e178
push dword [edi]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0040dfd8
test eax, eax
jne 0x40e178
push dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0040dfd8
test eax, eax
je 0x40e17c
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x14
Function at 0x40e19d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4566b4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push ebx
mov dword [ebp - 0x114], eax
mov dword [eax], ebx
mov eax, dword [esi]
push ebx
push eax
push edi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40e258
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x28
lea eax, [ebp - 0x13c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e258
xor eax, eax
cmp dword [ebp - 0x10c], 0x28
sete al
cmp eax, ebx
je 0x40e258
mov eax, dword [ebp - 0x13c]
add dword [esi], eax
test byte [ebp - 0x135], 0x80
je 0x40e228
xor eax, eax
inc eax
jmp 0x40e363
mov eax, 0x100
cmp dword [ebp - 0x130], eax
jbe 0x40e23b
mov dword [ebp - 0x130], eax
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.0040df9d
test eax, eax
jne 0x40e262
mov eax, 0x80004005
jmp 0x40e363
cmp dword [ebp - 0x12c], ebx
mov dword [ebp - 0x10c], ebx
je 0x40e299
push dword [ebp - 0x12c]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10c], eax
je 0x40e299
push dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x108]
push eax
push edi
call fcn.0040df9d
xor esi, esi
test byte [ebp - 0x138], 0x10
je 0x40e2d1
cmp dword [ebp - 0x128], ebx
je 0x40e2d1
push dword [ebp - 0x128]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
je 0x40e2d1
push dword [ebp - 0x128]
mov ecx, dword [ebp - 0x108]
push esi
push edi
call fcn.0040df9d
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
cmp edi, ebx
je 0x40e34e
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0041ea4c
test eax, eax
jl 0x40e347
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x40e331
push dword [ebp - 0x110]
lea ecx, [ebp - 0x124]
push ecx
push dword [ebp - 0x128]
mov ecx, eax
push esi
push dword [ebp - 0x10c]
push ebx
push dword [ebp - 0x138]
push dword [ebp - 0x108]
call fcn.0040de83
jmp 0x40e333
xor eax, eax
mov ecx, dword [ebp - 0x114]
push dword [ebp - 0x108]
mov dword [ecx], eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x10c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0044d575
leave
ret 0xc
Function at 0x40e62a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x10], ecx
jne 0x40e644
mov eax, 0x80004005
jmp 0x40e6be
mov eax, dword [edi + 4]
push ebx
push esi
mov esi, dword [edi + 0x24]
or eax, 0x80000000
mov ebx, 0x80004005
add esi, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.0040df6e
test eax, eax
mov dword [ebp + 8], eax
je 0x40e6ab
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40e69f
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e69f
cmp dword [ebp - 0xc], 4
jne 0x40e69f
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
inc dword [eax + 0x20]
push 1
mov ecx, edi
call fcn.0040e3a2
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret 4

Function at 0x40ebae
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4566b4]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x7f000001
sete bl
test bl, bl
mov dword [ebp - 4], eax
jne 0x40ec1d
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x40ec1d
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40ec1d
cmp word [eax + 8], 2
jne 0x40ec1d
cmp word [eax + 0xa], 4
jne 0x40ec1d
mov eax, dword [eax + 0xc]
jmp 0x40ec13
cmp dword [ecx], esi
je 0x40ec1b
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
jne 0x40ec0c
jmp 0x40ec1d
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
pop ebx
call fcn.0044d575
leave
ret 4

Function at 0x40ed86
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
mov ebx, 0x80004005
jne 0x40eda2
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
jmp 0x40ee17
push dword [ebp + 0xc]
push esi
call fcn.0040ecfe
mov ebx, eax
test ebx, ebx
je 0x40ee17
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x40edce
mov ebx, 0x8007000e
jmp 0x40ee16
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
push edi
push edi
call dword [sym.imp.USER32.dll_CharToOemA]
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40ee0f
cmp word [eax + 8], 2
jne 0x40ee0f
cmp word [eax + 0xa], 4
jne 0x40ee0f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40ee0f
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ebx, ebx
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x41161f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push eax
call fcn.0041dab2
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop ebp
ret 4

Function at 0x41200a
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x4566b4]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x314], eax
je 0x4120f0
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4120e7
push edi
xor eax, eax
mov dword [ebp - 0x324], ebx
lea edi, [ebp - 0x320]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
push dword [ebp - 0x314]
xor eax, eax
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x4025a0
push eax
mov dword [ebp - 0x368], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x368]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x4120e7
push dword [ebp - 0x320]
inc ebx
call esi
push dword [ebp - 0x324]
call esi
push dword [ebp - 0x314]
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.0044d575
leave
ret

Function at 0x412705
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [0x4565fc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41275d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x40266c
push dword [ebp - 4]
call esi
push 0x402664
push dword [ebp - 4]
call esi
push 0x402658
push dword [ebp - 4]
call esi
push 0x402648
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x412ae5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x1000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x412b15
mov eax, 0x8007000e
jmp 0x412ca1
push eax
mov ecx, ebx
call fcn.00412992
test eax, eax
jge 0x412b28
mov esi, eax
jmp 0x412c91
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.00412807
test eax, eax
jne 0x412b42
mov esi, 0x80020009
jmp 0x412c91
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 8], esi
jne 0x412b59
mov esi, 0x8007000e
jmp 0x412c91
mov ecx, ebx
call fcn.00412969
push esi
mov ecx, ebx
call fcn.00412992
test eax, eax
jl 0x412c85
movzx eax, word [ebp - 2]
sub eax, 8
je 0x412c6a
sub eax, 9
je 0x412bd0
dec eax
dec eax
jne 0x412c76
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0044d880
mov eax, esp
push esi
push dword [ebp - 8]
push eax
call fcn.00411bbc
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00411fe7
jmp 0x412c76
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0xc], eax
je 0x412be8
mov esi, 0x80004005
jmp 0x412c87
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0044d880
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
mov dword [ebp - 4], esp
je 0x412bde
cmp dword [ebp - 0xc], edi
jle 0x412c51
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 8]
movsx eax, byte [edi + eax]
push eax
call fcn.00412899
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x412c1e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x412c76
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.00412102
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.00412992
test eax, eax
jge 0x412c9f
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
jmp 0x412ca1
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4141d9
Capabilities:
Pause service
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
inc esi
push 0x456900
mov dword [ebp - 4], esi
mov dword [0x456900], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4143b4
cmp dword [0x456910], 2
push ebx
push edi
jne 0x4142e6
push 0xf003f
push 0x4027bc
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 8], eax
je 0x4143af
push 0xf01ff
push 0x4027b4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4142d8
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
test eax, eax
je 0x4142d1
cmp dword [ebp - 0x24], esi
je 0x4142d1
cmp dword [ebp - 0x24], 7
je 0x4142d1
test byte [ebp - 0x20], 4
je 0x41429b
mov esi, dword [0x4567b8]
push 0
push 0x412e70
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0xfa
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
mov dword [ebp - 4], eax
je 0x4142d1
lea eax, [ebp - 0x28]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor esi, esi
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
cmp dword [ebp - 0x24], 7
je 0x4142c8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jl 0x4142aa
cmp esi, 0x1e
jne 0x4142d1
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4143af
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x402b54
push 0
mov ebx, 0x1f0003
push ebx
call edi
push 0x402b48
push 0
push ebx
mov dword [ebp - 8], eax
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 0
je 0x4143af
test esi, esi
je 0x4143af
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x402b3c
push 0
push ebx
call edi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x41436e
mov eax, dword [0x4567b8]
push 0
push 0x412e70
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0xfa
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0
je 0x4143af
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 8]
call esi
and dword [ebp - 8], 0
push 0x402b48
push 0
push ebx
call edi
test eax, eax
je 0x4143a5
push eax
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1e
jl 0x414380
cmp dword [ebp - 8], 0x1e
jne 0x4143af
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret