joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bdd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.004e8ba0
push 0x103
lea ecx, [ebp - 0x217]
push ebx
push ecx
mov byte [ebp - 0x218], bl
call fcn.004e8ba0
push 0x103
lea edx, [ebp - 0x31f]
push ebx
push edx
mov byte [ebp - 0x320], bl
call fcn.004e8ba0
add esp, 0x24
lea eax, [ebp - 0x328]
push eax
push 0xf003f
push ebx
push esi
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x328], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46bf4f
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x46be70
mov eax, 0x104
lea ecx, [ebp - 0x338]
push ecx
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x330], eax
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 0x324]
push ebx
lea ecx, [ebp - 0x32c]
push ecx
mov ecx, dword [ebp - 0x328]
lea edx, [ebp - 0x218]
push edx
push eax
push ecx
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x46bf42
lea edx, [ebp - 0x218]
push edx
push esi
lea eax, [ebp - 0x110]
push 0x518818
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x110]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.ShlWapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x46bf30
push str.SHDeleteKeyA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x46bf30
lea edx, [ebp - 0x110]
push edx
push reloc.WS2_32.dll_bind
call eax
test eax, eax
jne 0x46bf42
inc dword [ebp - 0x324]
jmp 0x46be70
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x46d450
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.Function_Start
mov ecx, ebx
mov dword [ebp - 0x23c], ebx
call fcn.004a2bf0
add esp, 4
push 0x228
lea eax, [ebp - 0x234]
push 0
push eax
mov dword [ebp - 0x238], 0x22c
call fcn.004e8ba0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x238]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46d524
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, edi
lea edx, [ebp - 0x214]
push str.wmcFTSlave.exe
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x46d50c
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x401
call ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
mov esi, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46d4d0
mov ebx, dword [ebp - 0x23c]
push esi
call edi
push str.Function_End
mov ecx, ebx
call fcn.004a2bf0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret

Function at 0x46d550
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.Function_Start
mov ecx, ebx
mov dword [ebp - 0x23c], ebx
call fcn.004a2bf0
add esp, 4
push 0x228
lea eax, [ebp - 0x234]
push 0
push eax
mov dword [ebp - 0x238], 0x22c
call fcn.004e8ba0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x238]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46d624
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, edi
lea edx, [ebp - 0x214]
push str.wmcFTMaster.exe
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x46d60c
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x401
call ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
mov esi, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46d5d0
mov ebx, dword [ebp - 0x23c]
push esi
call edi
push str.Function_End
mov ecx, ebx
call fcn.004a2bf0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x470cc0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.Function_Start
mov ecx, ebx
mov dword [ebp - 0x23c], ebx
call fcn.004a2bf0
add esp, 4
push 0x228
lea eax, [ebp - 0x234]
push 0
push eax
mov dword [ebp - 0x238], 0x22c
call fcn.004e8ba0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x238]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x470d94
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, edi
lea edx, [ebp - 0x214]
push str.wmcRCSlave.exe
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x470d7c
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x401
call ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
mov esi, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x470d40
mov ebx, dword [ebp - 0x23c]
push esi
call edi
push str.Function_End
mov ecx, ebx
call fcn.004a2bf0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret

Function at 0x470dc0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.Function_Start
mov ecx, ebx
mov dword [ebp - 0x23c], ebx
call fcn.004a2bf0
add esp, 4
push 0x228
lea eax, [ebp - 0x234]
push 0
push eax
mov dword [ebp - 0x238], 0x22c
call fcn.004e8ba0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x238]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x470e94
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, edi
lea edx, [ebp - 0x214]
push str.wmcRCMaster.exe
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x470e7c
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x401
call ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
mov esi, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x470e40
mov ebx, dword [ebp - 0x23c]
push esi
call edi
push str.Function_End
mov ecx, ebx
call fcn.004a2bf0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x47b1b0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push 0x104
push eax
mov dword [ebp - 8], 0
call dword [0x566370]
mov ecx, dword [ebp - 8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push str._s.opt
push ecx
call ebx
push 0x250
call fcn.004e5379
push 0x250
mov esi, eax
push 0
push esi
call fcn.004e8ba0
mov edx, dword [ebp - 8]
add esp, 0x24
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x47b285
lea eax, [ebp - 4]
push 0x104
push eax
mov dword [ebp - 4], 0
call dword [0x566370]
add esp, 8
test byte [esi], 0x10
jne 0x47b25a
mov ecx, dword [ebp - 4]
push 0x208
push 0
push ecx
call fcn.004e8ba0
mov eax, dword [ebp - 4]
lea edx, [esi + 0x2c]
push edx
push edi
push str._s_s
push eax
call ebx
mov ecx, dword [ebp - 4]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xc]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47b228
lea eax, [ebp - 4]
push 0x104
push eax
call dword [0x566378]
mov ecx, dword [ebp - 0xc]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
push 0
push esi
call fcn.004e8ba0
push esi
call fcn.004e4fab
lea edx, [ebp - 8]
push 0x104
push edx
call dword [0x566378]
add esp, 0x18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494b40
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], ecx
push ebx
lea ecx, [ebp - 0x9c]
push 0x104
mov dword [esi + 8], edx
push ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa8], 0x104
call dword [0x566370]
mov eax, dword [ebp - 0x9c]
add esp, 8
lea edx, [ebp - 0xa8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0xa0]
push 0x40
push ecx
mov dword [ebp - 0xa0], 0
call dword [0x566370]
add esp, 8
lea edx, [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [ebp - 0x8c]
movzx edx, word [ebp - 0x8e]
push eax
movzx eax, word [ebp - 0x8a]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push eax
movzx eax, word [ebp - 0x90]
push ecx
movzx ecx, word [ebp - 0x92]
push edx
movzx edx, word [ebp - 0x96]
push eax
movzx eax, word [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0xa0]
push edx
push eax
push str._04u__02u__02u__02u__02u__02u__03u__u
push ecx
call ebx
lea edx, [ebp - 0xa4]
push 0x104
push edx
mov dword [ebp - 0xa4], 0
call dword [0x566370]
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x86]
push ecx
mov word [ebp - 0x88], ax
call fcn.004e8ba0
movzx edx, word [esi + 4]
mov eax, dword [esi]
push edx
push eax
lea ecx, [ebp - 0x88]
push str._08X__04X
push ecx
call ebx
add esp, 0x4c
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x46]
push eax
mov word [ebp - 0x48], dx
call fcn.004e8ba0
push str.00000003_0102
lea ecx, [ebp - 0x88]
push ecx
call fcn.004f2bd4
add esp, 0x14
test eax, eax
jne 0x494cb6
jmp 0x494ca0
movzx ecx, word [eax + str.AssetDevice]
mov word [ebp + eax - 0x48], cx
add eax, 2
test cx, cx
jne 0x494ca0
jmp 0x494d04
lea edx, [ebp - 0x88]
push str.00000003_0103
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x494ce6
mov edi, edi
movzx ecx, word [eax + str.AssetSoftware]
mov word [ebp + eax - 0x48], cx
add eax, 2
test cx, cx
jne 0x494cd0
jmp 0x494d04
xor eax, eax
jmp 0x494cf0
movzx ecx, word [eax + str.Asset]
mov word [ebp + eax - 0x48], cx
add eax, 2
test cx, cx
jne 0x494cf0
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x48]
push edx
push str._s__s__s.dat
push eax
call ebx
mov ecx, dword [ebp - 0x9c]
push ecx
push 0x28
push esi
call dword [0x56633c]
mov edx, dword [ebp - 0xa4]
push edx
push 0x30
push esi
call dword [0x56633c]
lea eax, [ebp - 0xa4]
push 0x104
push eax
call dword [0x566378]
lea ecx, [ebp - 0xa0]
push 0x40
push ecx
call dword [0x566378]
lea edx, [ebp - 0x9c]
push 0x104
push edx
call dword [0x566378]
mov ecx, dword [ebp - 4]
add esp, 0x44
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x49ff40
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x480
mov eax, dword [0x5552b0]
xor eax, esp
mov dword [esp + 0x47c], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push str.WMCSYSTEM
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x49ff88
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.004e4746
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
push 0x52273c
push edi
xor esi, esi
mov dword [0x568890], eax
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x49ffc1
call fcn.004a0330
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.004e4746
mov esp, ebp
pop ebp
ret 0x10
push 0x522744
push edi
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x49fff0
call fcn.004a0570
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.004e4746
mov esp, ebp
pop ebp
ret 0x10
push 0x52274c
push edi
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x4a0029
mov dword [0x562d88], 1
call fcn.004a0160
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.004e4746
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x7a]
push edx
mov word [esp + 0x7c], cx
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
jmp 0x4a0050
movzx ecx, word [eax + str._i__s__]
mov word [esp + eax + 0x70], cx
add eax, 2
test cx, cx
jne 0x4a0050
push 0x201
lea eax, [esp + 0x82]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x70]
push 0x5c
push ecx
call fcn.004e56ec
xor edx, edx
lea edi, [esp + 0x78]
add esp, 8
mov word [eax + 2], dx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a0095
push 0x44
lea eax, [esp + 0x2c]
push 0
mov ecx, 7
mov esi, str.XceedCry.dll_
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x90]
push eax
push str.C:WindowsSystem32_regsvr32.exe
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
lea eax, [esp + 0x18]
push eax
mov dword [0x562d88], 2
mov dword [esp + 0x1c], str.Win_Win
mov dword [esp + 0x20], 0x4a0610
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov ecx, dword [esp + 0x484]
pop edi
mov esi, eax
pop esi
xor ecx, esp
call fcn.004e4746
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a0330
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x11c
lea ecx, [ebp - 0x328]
push 0
push ecx
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0x328]
push edx
mov dword [ebp - 0x328], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [ebp - 0x324]
sub esi, 6
neg esi
push 2
sbb esi, esi
push 0
and esi, 0x100
push 0
add esi, 0x10
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0
push 0
push 0
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push esi
push 0xf01ff
push str.Win_Win_Commander
push str.Win_Win
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4a03f2
call fcn.004a0450
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret

Function at 0x4a0410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4a09b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5688a0], eax
test eax, eax
jne 0x4a0438
mov esp, ebp
pop ebp
ret
mov eax, 1
mov dword [0x5688a4], eax
mov esp, ebp
pop ebp
ret
Function at 0x4a0450
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x4a0553
push esi
push 0xf01ff
push str.Win_Win
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4a054b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call fcn.004a0850
add esp, 4
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4a0544
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x1c], 2
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0x24], ecx
jne 0x4a0540
jmp 0x4a04e0
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x4a04fa
mov edx, 0x3e8
jmp 0x4a0507
cmp edx, 0x2710
jbe 0x4a0507
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4a0540
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc], eax
jbe 0x4a0531
call ebx
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0x24], ecx
jmp 0x4a053a
call ebx
sub eax, edi
cmp eax, dword [ebp - 8]
ja 0x4a0540
cmp dword [ebp - 0x1c], 2
je 0x4a04e0
mov edi, dword [ebp - 0x28]
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004e4746
mov esp, ebp
pop ebp
ret

Function at 0x4a0570
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf01ff
mov edi, eax
push str.Win_Win
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4a05e8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4a05e5
cmp dword [ebp - 0x1c], 1
je 0x4a05de
lea ecx, [ebp - 0x20]
push ecx
push 0xc8
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4a0850
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x38]
dec eax
cmp eax, 6
ja case.default.0x4a0877
jmp dword [eax*4 + 0x4a0904]
mov eax, 4
jmp 0x4a08b2
mov eax, 1
jmp 0x4a08b2
mov eax, 7
jmp 0x4a08b2
mov eax, 5
jmp 0x4a08b2
mov eax, 6
jmp 0x4a08b2
mov eax, 2
jmp 0x4a08b2
mov eax, 3
jmp 0x4a08b2
mov eax, dword [ebp - 0x40]
push esi
xor esi, esi
lea edx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x565c6c]
push edx
push eax
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x4a08f5
mov ecx, dword [0x56889c]
push ecx
mov dword [0x5688a4], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4a1620
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.systemcurrentcontrolset_servicesUSBStor
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a1692
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
push 4
lea ebx, [ebp - 8]
mov edi, str.AutoRun
call fcn.004b7ec0
add esp, 4
test eax, eax
je 0x4a1686
mov eax, dword [ebp - 4]
push 4
mov edx, ebx
push edx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a16f5
mov esi, dword [ebp - 4]
push 4
lea ebx, [ebp - 8]
mov edi, str.NoDriveTypeAutoRun
mov dword [ebp - 8], 0xff
call fcn.004b7ec0
add esp, 4
test eax, eax
je 0x4a16eb
mov edx, dword [ebp - 4]
push 4
mov ecx, ebx
push ecx
push 4
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4250
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.WinNetDaily
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4a4299
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 1
push 0
push edx
push 2
push 4
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a4d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
je 0x4a4dc8
push esi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call fcn.004e8ba0
push str.WinMaster7
lea ecx, [ebp - 0x44]
push str..pipe_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a4db6
push 0
push 0
lea eax, [ebp - 0x50]
push eax
push esi
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x4a4daf
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x48]
push ecx
push edx
push edi
push esi
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xa
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004e4746
mov esp, ebp
pop ebp
ret