joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464110
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46425a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00463738
xor eax, eax
push ebp
push 0x46423d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x464175
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x464175
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x464227
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x464188
call fcn.00403fcc
jmp 0x464244
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x464227
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x464227
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403990
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x464227
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bbd8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x464274
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4719b4]
mov dl, 1
mov eax, dword [0x462a4c]
call fcn.0040c508
call fcn.00403f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464244
mov eax, dword [ebp - 4]
call fcn.00463744
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464261
lea eax, [ebp - 0x28]
call fcn.004044e4
ret
Function at 0x466f44
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
xor edx, edx
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 0x2b8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4670cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x2b0], 0x94
lea eax, [ebp - 0x2b0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x2a0], 1
jne 0x466fac
cmp dword [ebp - 0x2ac], 4
ja 0x466fb0
cmp dword [ebp - 0x2ac], 4
jne 0x466fac
cmp dword [ebp - 0x2a8], 0
ja 0x466fb0
xor eax, eax
jmp 0x466fb2
mov al, 1
mov edx, dword [ebp - 0x2a0]
sub edx, 1
jb 0x466fc4
je 0x466fd3
dec edx
je 0x466ff5
jmp 0x467002
lea eax, [ebp - 4]
mov edx, 0x4670e4
call fcn.0040457c
jmp 0x467002
test al, al
je 0x466fe6
lea eax, [ebp - 4]
mov edx, 0x4670f8
call fcn.0040457c
jmp 0x467002
lea eax, [ebp - 4]
mov edx, 0x46710c
call fcn.0040457c
jmp 0x467002
lea eax, [ebp - 4]
mov edx, 0x467120
call fcn.0040457c
lea eax, [ebp - 8]
lea edx, [ebp - 0x29c]
mov ecx, 0x80
call fcn.00404754
lea eax, [ebp - 0x198]
push eax
mov dl, 1
mov al, 1
call fcn.00407358
push eax
call sub.wsock32.dll_WSAStartup
push 0x80
lea eax, [ebp - 0x219]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x219]
push eax
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x2b4]
call fcn.004046dc
push dword [ebp - 0x2b4]
push 0x467134
lea eax, [ebp - 0x2b8]
lea edx, [ebp - 0x219]
mov ecx, 0x81
call fcn.00404754
push dword [ebp - 0x2b8]
push 0x467134
push dword [ebp - 4]
push 0x467140
push dword [ebp - 8]
mov eax, ebx
mov edx, 7
call fcn.00404864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4670d6
lea eax, [ebp - 0x2b8]
mov edx, 2
call fcn.00404508
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404508
ret
Function at 0x467144
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46733d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x22c]
xor eax, eax
call fcn.00402a84
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00408fb4
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 4]
mov ecx, 0x467350
call fcn.004047f0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402e10
lea eax, [ebp - 0x1d0]
call fcn.00402bac
call fcn.004028c4
mov edx, 0x467368
lea eax, [ebp - 0x1d0]
call fcn.00404bc0
call fcn.00403248
call fcn.004028c4
push 0x467378
lea edx, [ebp - 0x234]
xor eax, eax
call fcn.00402a84
push dword [ebp - 0x234]
push 0x467388
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00404864
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.00404bc0
call fcn.00403248
call fcn.004028c4
push 0x467394
lea edx, [ebp - 0x23c]
xor eax, eax
call fcn.00402a84
push dword [ebp - 0x23c]
push 0x467388
push 0x4673a8
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.00404864
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d0]
call fcn.00404bc0
call fcn.00403248
call fcn.004028c4
mov edx, 0x4673bc
lea eax, [ebp - 0x1d0]
call fcn.00404bc0
call fcn.00403248
call fcn.004028c4
lea eax, [ebp - 0x1d0]
call fcn.00402ed8
call fcn.004028c4
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x44
call fcn.00403040
mov dword [ebp - 0x1f8], 1
mov word [ebp - 0x1f4], 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004049a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x467317
mov eax, dword [ebp - 0x1dc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1e0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467344
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00404508
lea eax, [ebp - 4]
call fcn.004044e4
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4036a0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x402800
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
push esi
push edi
mov edi, dword [esp + 0x114]
mov esi, ecx
push edi
push str.Current_Script
call fcn.00401780
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00401d60
mov byte [eax - 1], 0
lea eax, [esp + 0xc]
push eax
push str.Currentdir
mov ecx, esi
call fcn.00401780
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
add esp, 0x108
ret 4

Function at 0x402cc0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x88
push esi
mov esi, dword [esp + 0x90]
push edi
lea eax, [esp + 8]
push 0x4000
push eax
push esi
mov edi, ecx
mov byte [esp + 0x14], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x402d0e
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
mov ecx, edi
call fcn.00402be0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret 4

Function at 0x402ea0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [esp + 0x24c]
push esi
mov esi, ecx
lea edx, [esp + 8]
push edi
mov dword [esp + 8], esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402ebb
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00401d60
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402f57
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x12
je 0x402f4f
lea eax, [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x264]
sub esi, eax
lea eax, [esp + 0x144]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x402f1b
mov ecx, dword [esp + 0x260]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call ebx
cmp eax, 0x12
jne 0x402f14
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
add esp, 0x248
ret 0xc
Function at 0x4039b0
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x40783b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
push ebp
mov ebp, ecx
push esi
mov dword [esp + 8], ebp
push str.set_UninstallFilessysdir.nvu
mov dword [esp + 0x498], 0
call fcn.00401e40
push str.UninstallFiles
mov ecx, ebp
call fcn.00401670
push eax
mov ecx, ebp
call fcn.00403bb0
test eax, eax
jne 0x403a51
mov al, byte [ebp + 0x5e5]
test al, al
je 0x403a51
mov ecx, dword [ebp + 0x550]
lea eax, [esp + 0xc]
push 0x80
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
call fcn.00404110
push str.set_Current_File
mov ecx, ebp
call fcn.00401e40
push str.DirAndApply_sysdir_nvu.exe_del_Current_File
mov ecx, ebp
call fcn.00401e40
push str.Delreg_NVUninst_RegKey
mov ecx, ebp
call fcn.00401e40
push str.ForceNoReboot
mov ecx, ebp
call fcn.00401670
mov cl, byte [ebp + 0x5e4]
test cl, cl
je 0x403b69
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
test eax, eax
je 0x403a88
push 0x40aa2c
push eax
call esi
add esp, 8
test eax, eax
je 0x403b69
push str.Silent
mov ecx, ebp
call fcn.00401670
test eax, eax
je 0x403aab
push 0x40aa2c
push eax
call esi
add esp, 8
test eax, eax
je 0x403b51
push str.Two_Reboot_Required
mov ecx, ebp
call fcn.00401670
test eax, eax
je 0x403ae6
push 0x40aa2c
push eax
call esi
add esp, 8
test eax, eax
jne 0x403ae6
push 0xa
mov ecx, ebp
call fcn.00401520
lea edx, [esp + 0x8c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403ada
jmp 0x403aee
mov byte [esp + 0x8c], 0
push edi
push 2
mov ecx, ebp
call fcn.00401520
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40024
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x54c]
mov ecx, edx
mov edx, dword [ebp + 0x558]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x94]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
pop edi
jne 0x403b69
push 1
push str.SeShutdownPrivilege
mov ecx, ebp
call fcn.00403930
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, ebp
mov dword [esp + 0x494], 0xffffffff
call fcn.004015f0
mov ecx, dword [esp + 0x48c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x490
ret
Function at 0x403be0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x403c04
pop esi
mov al, 1
pop ebp
add esp, 8
ret 0xc
push ebx
push edi
push esi
xor bl, bl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403c59
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x40c254
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403c59
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 8]
cmp eax, ecx
jb 0x403c59
jne 0x403c5b
mov ecx, dword [edx + 0xc]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jae 0x403c5b
mov bl, 1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc

Function at 0x404110
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
push edi
jne 0x404130
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret 4
mov ecx, esi
call fcn.004042d0
test al, al
jne 0x404142
pop edi
xor eax, eax
pop esi
ret 4
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40417c
push eax
push edi
mov ecx, esi
call fcn.00404310
mov dl, byte [esi + 0x5e4]
pop edi
or dl, al
mov al, dl
mov byte [esi + 0x5e4], dl
and eax, 0xff
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4045a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebx
push ebp
lea edx, [esp + 0x1c]
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4045c1
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
mov ax, word [0x40c254]
or ecx, 0xffffffff
mov word [edi - 1], ax
mov edi, dword [esp + 0x130]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x12c]
push 0xf003f
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4046de
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
push eax
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4046d3
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4046d3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, 0x80
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x28]
dec eax
push edx
push eax
push ecx
mov dword [esp + 0x38], ebp
call esi
lea edx, [esp + 0xa4]
lea eax, [esp + 0x24]
push edx
push eax
push edi
mov ecx, ebx
call fcn.004045a0
test eax, eax
jne 0x4046c8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x404673
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x4046f0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 0x18]
push edi
push eax
push 0xf003f
push 0
mov esi, 1
push ebx
push ebp
mov edi, ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404777
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x404768
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404768
push esi
push ebx
push ebp
mov ecx, edi
call fcn.004045a0
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404768
xor esi, esi
jmp 0x40476c
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x404b10
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
mov esi, ecx
push edi
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x404c46
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x404c1d
lea ecx, [esp + 0x18]
push ebp
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x404bd6
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 0x64
mov eax, dword [esp + 0x20]
dec ebx
cmp eax, 1
je 0x404ba8
push 0x64
call edi
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
je 0x404ba1
test ebx, ebx
jne 0x404b83
cmp dword [esp + 0x20], 1
jne 0x404bb1
push 0x3e8
call edi
jmp 0x404bd2
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
push 8
mov ecx, ebx
call fcn.00401520
push eax
push str.Error:
push ebx
call fcn.00402460
add esp, 0x10
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop ebp
jne 0x404c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [esp + 0xc], eax
jne 0x404c02
push 0x3e8
call edi
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], eax
jne 0x404c32
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004024e0
pop edi
pop esi
mov eax, 0x427
pop ebx
add esp, 0x28
ret 4
Function at 0x407150
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
push ebp
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x407202
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4071fb
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x138], ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x360]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x138]
push 0x224
push ecx
push edx
mov ecx, ebx
call fcn.004070b0
test eax, eax
je 0x4071ec
lea eax, [esp + 0x158]
push eax
push edi
call ebp
add esp, 8
test eax, eax
je 0x407211
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4071bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret 4

Function at 0x407230
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call fcn.00407150
test eax, eax
je 0x407269
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, esi
call fcn.00407230
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x401550
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x401702
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
sub byte [edi + ebp], 0x50
push 0
call esi
add byte [edi + ebp], 0x79
push 0
call esi
xor byte [edi + ebp], 0x19
push 0
call esi
add byte [edi + ebp], 0x63
push 0
call esi
add byte [edi + ebp], 0x50
push 0
call esi
add byte [edi + ebp], 0x69
push 0
call esi
add byte [edi + ebp], 0x99
push 0
call esi
xor byte [edi + ebp], 0x66
push 0
call esi
add byte [edi + ebp], 0xb
push 0
call esi
add byte [edi + ebp], 0x9c
push 0
call esi
xor byte [edi + ebp], 6
push 0
call esi
add byte [edi + ebp], 0xf1
push 0
call esi
add byte [edi + ebp], 0x82
push 0
call esi
add byte [edi + ebp], 0x62
push 0
call esi
add byte [edi + ebp], 0xa4
push 0
call esi
add byte [edi + ebp], 0xe8
push 0
call esi
xor byte [edi + ebp], 0x7e
push 0
call esi
add byte [edi + ebp], 0xc3
push 0
call esi
add byte [edi + ebp], 0x3b
push 0
call esi
add byte [edi + ebp], 0x58
push 0
call esi
add byte [edi + ebp], 0xc5
push 0
call esi
add byte [edi + ebp], 0xd1
push 0
call esi
add byte [edi + ebp], 0xe4
push 0
call esi
add byte [edi + ebp], 0xa6
push 0
call esi
add byte [edi + ebp], 0x2f
push 0
call esi
xor byte [edi + ebp], 0x89
push 0
call esi
add byte [edi + ebp], 0x1a
push 0
call esi
add byte [edi + ebp], 0x58
push 0
call esi
add byte [edi + ebp], 0xcf
push 0
call esi
add byte [edi + ebp], 0x11
push 0
call esi
add byte [edi + ebp], 0xe8
push 0
call esi
xor byte [edi + ebp], 0xe6
push 0
call esi
xor byte [edi + ebp], 0x49
push 0
call esi
xor byte [edi + ebp], 0xb6
push 0
call esi
add byte [edi + ebp], 0x36
push 0
call esi
add byte [edi + ebp], 0x2e
push 0
call esi
xor byte [edi + ebp], 0xed
push 0
call esi
add byte [edi + ebp], 0x37
push 0
call esi
dec byte [edi + ebp]
push 0
call esi
xor byte [edi + ebp], 0x5c
push 0
call esi
add byte [edi + ebp], 0xcb
push 0
call esi
xor byte [edi + ebp], 0xe8
push 0
call esi
add byte [edi + ebp], 0x97
push 0
call esi
xor byte [edi + ebp], 0xb2
push 0
call esi
add byte [edi + ebp], 0xf5
push 0
call esi
xor byte [edi + ebp], 0x84
push 0
call esi
add byte [edi + ebp], 0x1e
push 0
call esi
add byte [edi + ebp], 6
push 0
call esi
add byte [edi + ebp], 0xdf
inc edi
cmp edi, ebx
jb 0x401570
pop esi
pop ebp
pop edi
pop ebx
ret