joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dbf0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aea0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x3c]
call fcn.00418580
mov dword [ebp - 4], 0
push 0x483174
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
push str.nc5.cab
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x180
call fcn.00419230
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
call fcn.00418800
push eax
lea ecx, [ebp - 0x3c]
call fcn.00418b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004186d0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x3c]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40dcea
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004186d0
mov eax, dword [ebp - 0x58]
jmp 0x40dd25
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004186d0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40dd40
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aed0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x30]
call fcn.00418580
mov dword [ebp - 4], 0
push 0x483178
push 0x70
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
push str.NcdInstall2.exe
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x180
call fcn.00419230
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
call fcn.00418800
push eax
lea ecx, [ebp - 0x30]
call fcn.00418b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004186d0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40de3a
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov eax, dword [ebp - 0x58]
jmp 0x40de75
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004186d0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40de90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47af00
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x38]
call fcn.00418580
mov dword [ebp - 4], 0
push 0x483178
push 0x6a
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
push str.nckill.exe
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x180
call fcn.00419230
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
call fcn.00418800
push eax
lea ecx, [ebp - 0x38]
call fcn.00418b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004186d0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x38]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40dfa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.00418810
push eax
push str.NInstall::writeNcKill____1__::CreateFile__s__fail_code:_d_n
push 1
call fcn.00415200
add esp, 0x10
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004186d0
mov eax, dword [ebp - 0x58]
jmp 0x40dfe4
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004186d0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47af30
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x34]
call fcn.00418580
mov dword [ebp - 4], 0
push str.KILL
push 0x71
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
push str.kill.exe
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x180
call fcn.00419230
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
call fcn.00418800
push eax
lea ecx, [ebp - 0x34]
call fcn.00418b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004186d0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x34]
call fcn.00418810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40e0fa
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004186d0
mov eax, dword [ebp - 0x58]
jmp 0x40e141
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418ad0
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004186d0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e8f0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b081
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x48]
call fcn.004166d0
mov dword [ebp - 4], 1
push 0x48e349
lea ecx, [ebp - 0x24]
call fcn.004185b0
mov byte [ebp - 4], 2
push 0
push 1
push 1
push 0x483260
push closesocket
lea ecx, [ebp - 0x48]
call fcn.00416740
test eax, eax
je 0x40e99e
push 0x483250
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416810
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
call fcn.00418800
push eax
lea ecx, [ebp - 0x24]
call fcn.00418b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004186d0
lea ecx, [ebp - 0x48]
call fcn.004167e0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419080
mov eax, dword [ebp - 0x64]
or eax, 1
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00417ce0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e9e0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b0d1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x48]
call fcn.004166d0
mov dword [ebp - 4], 1
push 0x48e349
lea ecx, [ebp - 0x24]
call fcn.004185b0
mov byte [ebp - 4], 2
push 0
push 1
push 1
push 0x483260
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x48]
call fcn.00416740
test eax, eax
je 0x40ea8e
push 0x4832a4
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416810
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
call fcn.00418800
push eax
lea ecx, [ebp - 0x24]
call fcn.00418b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004186d0
lea ecx, [ebp - 0x48]
call fcn.004167e0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419080
mov eax, dword [ebp - 0x64]
or eax, 1
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00417ce0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x410090
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.00449d00
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.00449d00
add esp, 0xc
push 0x103
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.0041af70
test eax, eax
je 0x41015b
mov byte [ebp - 0x216], 0
call fcn.0041af60
test eax, eax
jne 0x410121
call fcn.0041af00
test eax, eax
je 0x41013e
lea eax, [ebp - 0x218]
push eax
push str._sUsersTemp_
lea ecx, [ebp - 0x110]
push ecx
call fcn.004117e0
add esp, 0xc
jmp 0x410159
lea edx, [ebp - 0x218]
push edx
push str._sDocuments_and_SettingsTemp_
lea eax, [ebp - 0x110]
push eax
call fcn.004117e0
add esp, 0xc
jmp 0x410176
lea ecx, [ebp - 0x218]
push ecx
push str._sTemp_
lea edx, [ebp - 0x110]
push edx
call fcn.004117e0
add esp, 0xc
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4101a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NInstall::getTempPath____
push 3
call fcn.00415200
add esp, 0xc
jmp 0x4101b0
push 0x483540
push 3
call fcn.00415200
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
push 0x483514
push 3
call fcn.00415200
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
call fcn.00418640
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret 4

Function at 0x4108b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.00449d00
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00449d00
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 0x80
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 8
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410916
xor eax, eax
jmp 0x410939
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x410940
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b381
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x48]
call fcn.004166d0
mov dword [ebp - 4], 1
push 0x48e349
lea ecx, [ebp - 0x24]
call fcn.004185b0
mov byte [ebp - 4], 2
push 0
push 1
push 1
push 0x483260
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x48]
call fcn.00416740
test eax, eax
je 0x4109ee
push str.Common_Desktop
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416810
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
call fcn.00418800
push eax
lea ecx, [ebp - 0x24]
call fcn.00418b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004186d0
lea ecx, [ebp - 0x48]
call fcn.004167e0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419080
mov eax, dword [ebp - 0x64]
or eax, 1
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00417ce0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x410a30
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x498e04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x48]
call fcn.004166d0
mov dword [ebp - 4], 1
push 0x48e349
lea ecx, [ebp - 0x24]
call fcn.004185b0
mov byte [ebp - 4], 2
push 0
push 1
push 1
push 0x483260
push closesocket
lea ecx, [ebp - 0x48]
call fcn.00416740
test eax, eax
je 0x410ade
push str.Desktop
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416810
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
call fcn.00418800
push eax
lea ecx, [ebp - 0x24]
call fcn.00418b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004186d0
lea ecx, [ebp - 0x48]
call fcn.004167e0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419080
mov eax, dword [ebp - 0x64]
or eax, 1
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00417ce0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x411ba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x411bf0
push 0
push 0
call fcn.0044bda1
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x411bd1
xor eax, eax
jmp 0x411be0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x412000
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0
jne 0x41202e
xor eax, eax
jmp 0x41212c
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
jne 0x4120f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x41207b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044ab20
add esp, 4
cmp eax, 1
jae 0x412093
xor eax, eax
jmp 0x41212c
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
jne 0x4120ee
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0
xor eax, eax
jmp 0x41212c
jmp 0x412127
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044ab20
add esp, 4
test eax, eax
jbe 0x412127
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.004124e0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00412770
test eax, eax
jne 0x412127
xor eax, eax
jmp 0x41212c
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x412140
Capabilities:
Continue service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
jne 0x412159
xor eax, eax
jmp 0x4121f5
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x4121f2
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x412189
jmp 0x4121f2
cmp dword [ebp - 0x20], 1
jne 0x4121ad
push 0
push 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4121ab
jmp 0x4121f2
jmp 0x4121e2
cmp dword [ebp - 0x20], 7
jne 0x4121d3
lea ecx, [ebp - 0x24]
push ecx
push 3
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4121d1
jmp 0x4121f2
jmp 0x4121e2
cmp dword [ebp - 0x20], 4
jne 0x4121e2
mov dword [ebp - 4], 1
jmp 0x4121f2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412160
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x412200
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 8], 0
jne 0x412214
jmp 0x41228e
mov ecx, 1
test ecx, ecx
je 0x41228e
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412239
jmp 0x41228e
cmp dword [ebp - 0x1c], 1
jne 0x412256
cmp dword [ebp + 8], 0
je 0x412252
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x41228e
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x412281
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412281
jmp 0x41228e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412214
mov esp, ebp
pop ebp
ret 4

Function at 0x412770
Capabilities:
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0044a2a0
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1024], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0x1000
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.00449d00
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 0x1024]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x412807
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 0x1024]
call fcn.004122a0
mov edx, dword [ebp + 8]
push edx
push str.N5Client_Agent
mov ecx, dword [ebp - 0x1024]
call fcn.00412300
xor eax, eax
jmp 0x4128bc
lea eax, [ebp - 0x1010]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 1
jne 0x41282d
mov edx, dword [ebp - 8]
cmp dword [edx], 0x110
jne 0x41282d
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
je 0x412836
mov dword [ebp - 0xc], 1
jmp 0x412854
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.0044bf57
add esp, 8
test eax, eax
je 0x412854
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x4128b7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
push 2
push 0x110
mov ecx, dword [ebp - 0x1024]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
jne 0x4128af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x1020]
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp - 0x1018]
jmp 0x4128bc
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret 4