joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b12a
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x1024903c
call fcn.10039bd9
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.100aa4a0
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x1004b1d8
push eax
lea ecx, [ebp - 0x40]
call fcn.10008a60
cmp dword [ebp - 0x30], esi
je 0x1004b1d8
push 0x102c4dd0
lea ecx, [ebp - 0x28]
call fcn.10008a60
push ebx
lea ecx, [ebp - 0x28]
call fcn.10004090
push 0x10253820
lea ecx, [ebp - 0x28]
call fcn.10004090
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.10004020
jmp 0x1004b1e1
push ebx
lea ecx, [ebp - 0x28]
call fcn.10008a60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1004b212
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004b240
cmp byte [ebp + 0x10], 0
je 0x1004b22d
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.100094a0
lea ecx, [ebp - 0x28]
call fcn.100094a0
mov eax, esi
call fcn.10039b83
ret
Function at 0x1004b7d4
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102c46e8
mov dword [ebp - 0x440], eax
call fcn.10008a60
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100aa4a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1004b878
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x1004b878
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10008e60
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100aa4a0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1004b889
push ebx
call fcn.100396e1
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039266
leave
ret
mov eax, dword [0x10253818]
mov dword [ebp - 0xc], eax
mov ax, word [0x1025381c]
push 0x208
mov word [ebp - 8], ax
call fcn.10008e60
mov edi, eax
mov dword [ebp - 0x43c], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1004b8fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1004b99d
push edi
call fcn.100396e1
push 2
call fcn.10008e60
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1004b99d
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x1004b905
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100cc216
add esp, 0xc
test eax, eax
je 0x1004b94d
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x1004b92f
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x1004b99d
jmp 0x1004b8b1
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.10040ec0
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.10008a90
mov ecx, dword [ebp - 0x440]
push eax
call fcn.10009250
lea ecx, [ebp - 0x438]
call fcn.100094a0
push ebx
call fcn.100396e1
push edi
call fcn.100396e1
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1004b87a
Function at 0x1004b9b3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1004ba39
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100aa4a0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1004ba39
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1004ba2e
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100d8b3d
pop ecx
pop ecx
test eax, eax
je 0x1004ba49
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1004ba0e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10039266
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x1004ba3b

Function at 0x1004c135
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x10247afe
call fcn.10039bd9
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1004c1c0
cmp esi, 0xffffffff
je 0x1004c1c0
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.1004b7d4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1004bfbe
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.100094a0
test bl, bl
je 0x1004c1c0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1004c1c0
cmp byte [ebp + 0x14], 0
je 0x1004c1c0
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x1004c1de
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1004c1de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.10039b83
ret
Function at 0x1004c21a
Capabilities:
Check if file exists
Enumerate processes
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004c2c5
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1004c2c5
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1004c2c5
push edi
xor edi, edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
push dword [ebp - 0x228]
call fcn.1004c135
add esp, 0x10
test al, al
je 0x1004c28d
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1004c26f
test edi, edi
jle 0x1004c2c0
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov eax, edi
pop edi
jmp 0x1004c2c8
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10039266
leave
ret

Function at 0x1004c3ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.100aa4a0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 8], 0
mov ecx, str.runas
mov eax, str.open
mov dword [ebp - 0x38], 0x40
cmove eax, ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1004c421
cmp byte [ebp + 0x18], 0
je 0x1004c421
push dword [ebp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor eax, eax
test ecx, ecx
setne al
leave
ret

Function at 0x1004c8f4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x1004c90a
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004ce55
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x1004c92c
cmp esi, 2
je 0x1004c92c
xor al, al
jmp 0x1004c92e
mov al, 1
pop esi
pop ebp
ret
Function at 0x1004cabb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024919f
mov eax, dword fs:[0]
push eax
mov eax, 0x8034
call fcn.1003a6b0
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x802c]
mov ecx, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0x10]
push edx
push 0x20119
push edi
push eax
push ecx
mov dword [ebp - 0x802c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004cc0f
push 0x7ffe
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8030], 0x3fff
push edi
push eax
call fcn.100aa4a0
add esp, 0xc
lea eax, [ebp - 0x8038]
mov esi, edi
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x8030]
push eax
lea eax, [ebp - 0x8010]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1004cbeb
cmp dword [ebp - 0x8030], 0
jbe 0x1004cbc5
and dword [ebp - 0x8018], 0
lea ecx, [ebp - 0x8028]
xor eax, eax
mov dword [ebp - 0x8014], 7
mov word [ebp - 0x8028], ax
lea eax, [ebp - 0x8010]
push eax
call fcn.10008a60
push dword [ebp - 0x802c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x8028]
push eax
push 0
lea eax, [ebp - 0x8040]
mov ecx, ebx
push eax
call fcn.1004c7e7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8028]
call fcn.100094a0
lea eax, [ebp - 0x8038]
mov dword [ebp - 0x8030], 0x3fff
push eax
inc esi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x8030]
push eax
lea eax, [ebp - 0x8010]
push eax
push esi
push dword [ebp - 0x802c]
call edi
test eax, eax
je 0x1004cb60
push dword [ebp - 0x802c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb al, al
inc al
jmp 0x1004cc11
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10039266
leave
ret
Function at 0x1004cccf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x102491e0
call fcn.10039ba5
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.10008e60
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1004cdd5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1004cdcc
cmp dword [ebp - 0x10], 0x104
jbe 0x1004cd9d
push dword [ebp - 0x14]
call fcn.100396e1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10008e60
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.10003560
add esp, 0x14
jmp 0x1004cda0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.100088f0
push edi
call fcn.100396e1
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x1004cdf7
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x1004cdf7
cmp edi, 0x20019
jne 0x1004cdf7
mov edi, 0x20119
jmp 0x1004cd1c
mov eax, ebx
call fcn.10039b6e
ret

Function at 0x1004cf18
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1004cf3e
mov ecx, edx
push esi
push edi
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1004cf2b
sub ecx, esi
pop edi
sar ecx, 1
pop esi
jmp 0x1004cf40
xor ecx, ecx
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb al, al
inc al
pop ebp
ret
Function at 0x1004d0f0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1004d160
push ebx
push esi
push esi
push 0x102c46e8
push esi
push esi
push dword [ebp + 0x10]
push 1
push 2
push 0x110
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
je 0x1004d156
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
inc esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x1004d166
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 7
pop ecx
push 0xf003f
push eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1004d1d9
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1004d1c9
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1004d1c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x1004d1d9
push esi
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.10039266
leave
ret 4
Function at 0x1004d1ec
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x1004d220
xor eax, eax
jmp 0x1004d39e
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1004d23c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1004d219
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1004d38d
cmp dword [ebp - 0x24], 1
je 0x1004d268
cmp dword [ebp - 0x24], 3
jne 0x1004d38d
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0xa
jmp 0x1004d2e2
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x34]
cmp eax, 0x3e8
jae 0x1004d298
mov eax, 0x3e8
jmp 0x1004d29d
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1004d38d
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x14], eax
jbe 0x1004d2d4
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
jmp 0x1004d2e2
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x1004d38d
cmp dword [ebp - 0x24], 3
mov ecx, 0x2710
je 0x1004d282
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1004d38d
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1004d38d
call ebx
cmp dword [ebp - 0x24], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jne 0x1004d388
mov edi, ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x1004d33e
mov eax, ecx
jmp 0x1004d348
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1004d385
cmp dword [ebp - 0x14], edi
jbe 0x1004d375
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x1004d37f
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x1004d385
cmp dword [ebp - 0x24], 2
je 0x1004d327
mov edi, dword [ebp - 0x3c]
xor ebx, ebx
inc ebx
jmp 0x1004d38f
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10039266
leave
ret 4
Function at 0x1004d64f
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x1004d6d4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push 0x102539f0
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x1004d6d4
push str.RegDisableReflectionKey
push eax
call edi
push str.RegEnableReflectionKey
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x1004d6d6
xor eax, eax
pop edi
pop esi
ret
Function at 0x1004d858
Capabilities:
Set registry value

Disassembly:
push 0x244
mov eax, 0x1024926f
call fcn.10039bd9
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], 3
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x250], edi
push edi
push eax
mov dword [ebp - 0x24c], edi
call fcn.100aa4a0
add esp, 0xc
mov dword [ebp - 0x238], edi
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x234], edi
lea ecx, [ebp - 0x248]
push eax
call fcn.10008bc0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x250]
push edi
push ecx
push edi
push 0xf013f
push edi
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x248]
push edi
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1004d941
cmp dword [ebp + 0x68], 8
lea ecx, [ebp + 0x54]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 0x54]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004d8ff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1004d917
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push edi
push 0x102c46e8
push dword [ebp - 0x250]
call ebx
cmp dword [ebp - 0x250], 0
je 0x1004da7a
push edi
lea eax, [ebp - 0x24c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.InprocServer32
push dword [ebp - 0x250]
call esi
test eax, eax
jne 0x1004da5b
lea eax, [ebp + 0xc]
mov dword [ebp - 0x220], edi
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], edi
call fcn.10008bc0
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
push dword [ebp + 0x34]
cmovae eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 4], 5
call fcn.10004020
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x230]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004d9c9
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x1004d9e1
sub edx, ecx
sar edx, 1
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push edi
push 0x102c46e8
push dword [ebp - 0x24c]
call ebx
push 5
pop ecx
mov esi, str.Apartment
lea edi, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x218]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1004da26
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push esi
push str.ThreadingModel
push dword [ebp - 0x24c]
call ebx
lea ecx, [ebp - 0x230]
call fcn.100094a0
cmp dword [ebp - 0x24c], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1004da72
push dword [ebp - 0x24c]
call esi
push dword [ebp - 0x250]
call esi
lea ecx, [ebp - 0x248]
call fcn.100094a0
lea ecx, [ebp + 0xc]
call fcn.100094a0
lea ecx, [ebp + 0x24]
call fcn.100094a0
lea ecx, [ebp + 0x3c]
call fcn.100094a0
lea ecx, [ebp + 0x54]
call fcn.100094a0
mov al, 1
call fcn.10039b83
ret 0x64