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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 0x268], 0x22
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x267]
push ecx
call fcn.005c0ae0
add esp, 8
push str.__update__
lea edx, [ebp - 0x268]
push edx
call fcn.005c0af0
add esp, 8
push 0x104
lea eax, [ebp - 0x268]
push eax
call fcn.005c0140
add esp, 4
lea ecx, [ebp + eax - 0x268]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x611be0
lea edx, [ebp - 0x268]
push edx
call fcn.005c0af0
add esp, 8
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.005bfd50
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.005bfd50
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x268]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4c014b
cmp dword [ebp - 0xc], 0
je 0x4c011d
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x4c012d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x66800f
push 0x111
mov ecx, dword [ebp - 0x26c]
add ecx, 4
call fcn.004b2400
xor eax, eax
jmp 0x4c0150
mov eax, 9
mov ecx, dword [ebp - 0x5c]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret 4

Function at 0x4c0a70
Capabilities:
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov ecx, dword [ebp - 4]
add ecx, 0xb8
call fcn.004cbfd0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x80], 0x8b
je 0x4c0aaa
mov ecx, dword [ebp + 0x10]
push ecx
push 0xefdb
mov ecx, dword [ebp - 4]
sub ecx, 0x2c
call fcn.004bdc60
cmp dword [0x69c160], 0
je 0x4c0ae8
cmp dword [0x69544c], 0
je 0x4c0ad1
mov ecx, dword [ebp - 4]
sub ecx, 0x2c
call fcn.004b25d0
test eax, eax
je 0x4c0ad1
call dword [sym.imp.USER32.dll_LockWorkStation]
mov ecx, dword [0x69c160]
add ecx, 8
mov edx, dword [0x69c160]
mov eax, dword [edx + 8]
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x154], 0
jne 0x4c0b2c
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x80]
sub edx, 0x8b
neg edx
sbb edx, edx
and edx, 0x7d0
add edx, 0x3e8
push edx
push 0x64
mov ecx, dword [ebp - 4]
sub ecx, 0x28
call fcn.004c64d0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x154], eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c3650
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607eac
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x698b9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
cmp dword [ebp + 0xc], 0xd
jne 0x4c37c9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
jne 0x4c37c9
mov ecx, dword [ebp - 0x28]
add ecx, 0xe4
call fcn.004c8230
mov ecx, eax
call fcn.004c8210
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4c37c9
mov eax, dword [ebp - 0x10]
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005c01e5
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c37c9
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0xe4
call fcn.004c8230
mov ecx, eax
call fcn.004c81e0
mov dword [ebp - 0x10], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov word [edx + ecx*2], ax
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.004b45c0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
call fcn.004158c0
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004c4390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401cd0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.005bf806
add esp, 4
push 0x611f54
mov ecx, dword [ebp - 0x28]
add ecx, 0xe4
call fcn.004c8230
mov ecx, eax
call fcn.004c64b0
push 0xa000a
push 0
push 0x201
mov ecx, dword [ebp - 0x28]
add ecx, 0xe4
call fcn.004c8230
mov ecx, eax
call fcn.004c7900
push 0xa000a
push 0
push 0x202
mov ecx, dword [ebp - 0x28]
add ecx, 0xe4
call fcn.004c8230
mov ecx, eax
call fcn.004c7900
xor eax, eax
jmp 0x4c37d4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c8440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
jne 0x4c845e
mov eax, dword [ebp + 0x14]
jmp 0x4c84e4
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c8491
jmp 0x4c84d1
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c84c2
jmp 0x4c84d1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
jmp 0x4c84e4
cmp dword [ebp - 0xc], 0
je 0x4c84e1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4c92d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.005bfd50
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4c9334
cmp dword [ebp - 0x11c], 6
jb 0x4c9334
mov dword [ebp - 0x128], 1
jmp 0x4c933e
mov dword [ebp - 0x128], 0
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
Function at 0x4cc850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6085a1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x698b9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
movzx edx, cx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0xe120
jg 0x4cc8b9
cmp dword [ebp - 0x2c], 0xe120
je 0x4cc8f6
cmp dword [ebp - 0x2c], 0xa6
je 0x4cc8d8
cmp dword [ebp - 0x2c], 0xa7
je 0x4cc8e7
jmp case.0x4cc8d1.3
mov eax, dword [ebp - 0x2c]
sub eax, 0xe121
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 9
ja case.0x4cc8d1.3
mov ecx, dword [ebp - 0x2c]
jmp dword [ecx*4 + 0x4cca14]
push 0
mov ecx, dword [ebp - 0x28]
call fcn.004cd5a0
jmp 0x4cca01
push 1
mov ecx, dword [ebp - 0x28]
call fcn.004cd5a0
jmp 0x4cca01
push 0x24
push 0x61269c
push 0xa2
lea ecx, [ebp - 0x18]
call fcn.004b2710
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
call fcn.004b27b0
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 4
call fcn.004c6e70
xor ecx, ecx
cmp eax, 6
sete cl
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004b2750
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x4cc95a
push 0
mov ecx, dword [ebp - 0x28]
call fcn.004cd4f0
jmp 0x4cca01
push 0x24
push 0x6126b0
push 0xa3
lea ecx, [ebp - 0x24]
call fcn.004b2710
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.004b27b0
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 4
call fcn.004c6e70
xor ecx, ecx
cmp eax, 6
sete cl
mov byte [ebp - 0x19], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004b2750
movzx edx, byte [ebp - 0x19]
test edx, edx
je 0x4cc9c3
push 1
mov ecx, dword [ebp - 0x28]
call fcn.004cd4f0
jmp 0x4cca01
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
neg eax
sbb eax, eax
neg eax
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004cd410
jmp 0x4cca01
jmp 0x4cca01
jmp 0x4cca01
push 2
push 0
push 0
mov ecx, dword [ebp - 0x28]
call fcn.004cd620
jmp 0x4cca01
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4cca40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x21
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x57
ja case.0x4cca6c.2
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x4ccbec]
jmp dword [eax*4 + 0x4ccbc8]
push 0
push 0
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 1
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 2
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 3
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4ccb29
push 0
push 0xe12a
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
shr edx, 8
and edx, 0xff
movzx eax, dl
test eax, eax
je 0x4ccb66
push 0
push 0xe122
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4ccb92
push 0
push 0xe123
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je case.0x4cca6c.2
push 0
push 0xe125
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ccb68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x21
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x57
ja case.0x4cca6c.2
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x4ccbec]
jmp dword [eax*4 + 0x4ccbc8]
push 0
push 0
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 1
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 2
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 3
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4ccb29
push 0
push 0xe12a
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
shr edx, 8
and edx, 0xff
movzx eax, dl
test eax, eax
je 0x4ccb66
push 0
push 0xe122
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4ccb92
push 0
push 0xe123
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je case.0x4cca6c.2
push 0
push 0xe125
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ccb94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x21
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x57
ja case.0x4cca6c.2
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x4ccbec]
jmp dword [eax*4 + 0x4ccbc8]
push 0
push 0
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 1
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 2
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0
push 3
push 0x115
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4ccb29
push 0
push 0xe12a
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
shr edx, 8
and edx, 0xff
movzx eax, dl
test eax, eax
je 0x4ccb66
push 0
push 0xe122
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4ccb92
push 0
push 0xe123
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
jmp case.0x4cca6c.2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je case.0x4cca6c.2
push 0
push 0xe125
push 0x111
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004c7900
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d16a0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x818], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0x400
lea ecx, [ebp - 0x80e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x814], eax
mov edx, 0x22
mov word [ebp - 0x810], dx
mov eax, 0x22
mov ecx, dword [ebp - 0x814]
mov word [ebp + ecx*2 - 0x80e], ax
mov edx, 0x20
mov eax, dword [ebp - 0x814]
mov word [ebp + eax*2 - 0x80c], dx
push str.service
mov ecx, dword [ebp - 0x814]
lea edx, [ebp + ecx*2 - 0x80a]
push edx
call fcn.005c24e5
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
je 0x4d18b2
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x810]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.TTXN_GotoHTTP_Agent
push 0x612d48
mov ecx, dword [ebp - 0x81c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4d181c
push 0xf01ff
push 0x612d5c
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4d180a
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4d17ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4d17d8
mov dword [ebp - 0x818], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x4000000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea edx, [ebp - 0x840]
push edx
push 0x82
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4d181a
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x3000000
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4d187c
mov dword [ebp - 0x844], str.TTXN_GotoHTTP_agent_client._http:__gotohttp.com.
lea eax, [ebp - 0x844]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4d1858
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4d1862
mov dword [ebp - 0x818], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x2000000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push reloc.WS2_32.dll_bind
push 0x612dd8
lea ecx, [ebp - 0x824]
call fcn.004c8410
push 1
push 0x612e4c
lea ecx, [ebp - 0x824]
call fcn.004d2f10
jmp 0x4d18c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x1000000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret
Function at 0x4d18e0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x10], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d195b
push 0xf01ff
push 0x612e78
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4d1951
lea ecx, [ebp - 0x30]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4d1947
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push reloc.WS2_32.dll_bind
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea ecx, [ebp - 0xc]
call fcn.004c8410
push str.SoftwareSASGeneration
lea ecx, [ebp - 0xc]
call fcn.004d2fb0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4d1990
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d1a41
push 0xf01ff
push 0x612f30
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4d1a37
cmp dword [ebp + 8], 0x81
jne 0x4d19f2
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 8], eax
jmp 0x4d1a07
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 8], eax
cmp dword [0x69aaa4], 1
jg 0x4d1a2d
mov edx, dword [ebp + 8]
push edx
push str.ControlService_OK._code___u
push 0xc1
push 0x612f64
push 1
call fcn.00401310
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4d2370
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], str.GlobalGotoHTTP__u
mov ecx, dword [0x69c128]
call fcn.004b4ef0
mov dword [ebp - 0x214], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.005bfd50
add esp, 0xc
cmp dword [ebp - 0x214], 0xffffffff
je 0x4d2465
mov edx, dword [ebp - 0x214]
cmp edx, dword [0x695e9c]
je 0x4d2465
mov eax, dword [ebp - 0x214]
mov dword [0x695e9c], eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.005c17b0
add esp, 0xc
mov dword [0x69c130], 0
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.004d2010
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x4d243c
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2465
cmp dword [0x69aaa4], 3
jg 0x4d2465
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x613194
push 0x42d
push 0x6131b8
push 3
call fcn.00401310
add esp, 0x14
mov ecx, dword [0x69c130]
add ecx, 1
mov dword [0x69c130], ecx
cmp dword [0x69c130], 5
jne 0x4d2556
mov dword [0x69c130], 0
movzx edx, word [ebp - 0x210]
test edx, edx
jne 0x4d24b0
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.005c17b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4d2556
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], 0xb7
je 0x4d2556
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x214]
push eax
call fcn.004d2010
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x4d252d
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d2556
cmp dword [0x69aaa4], 3
jg 0x4d2556
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.creating_ui_process_error__err_u
push 0x445
push 0x6131ec
push 3
call fcn.00401310
add esp, 0x14
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret 0x10