joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402588
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 4], 0
ja 0x402581
add eax, 0xfffb5000
cmp eax, 0xb5000
ja 0x402581
push 0
lea edx, [esp + 0xc]
push edx
push 0x4b000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402581
cmp dword [esp + 8], 0x4b000
jne 0x402581
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4b000
push edi
push 0x354e
call fcn.0041e9a0
push 1
push edi
call fcn.00403020
add esp, 0x14
mov eax, 1
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x409470
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4094c3
mov ax, word [esp]
cmp al, 2
jne 0x4094bd
cmp ah, al
jne 0x4094bd
mov eax, 1
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044b607
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.0044b607
add esp, 0x194
ret
Function at 0x40b110
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea eax, [esp + 8]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40b1ae
push ebx
push esi
lea ebx, [edi + 1]
push ebx
call fcn.0044aa3d
mov esi, eax
add esp, 4
test esi, esi
je 0x40b1ac
push ebx
push 0
push esi
call fcn.0044c830
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push esi
push edi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40b1a3
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x497748
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b1a3
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push str._u._u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push esi
call fcn.0044ca76
add esp, 4
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x40b8a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b906
lea ecx, [esp + 8]
push ecx
push 0x488d98
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b906
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x40b910
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x480890
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.004162d0
push 0x488db4
push 0x67
push 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push str.nc5.cab
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0x18c]
call fcn.00416f80
mov ecx, eax
mov byte [esp + 0x50], 1
call fcn.00416550
push eax
lea ecx, [esp + 0x1c]
call fcn.00416860
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.00416420
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40ba01
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x40ba40
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4808c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.004162d0
push 0x488dc8
push 0x70
push 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push str.NcdInstall2.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0x18c]
call fcn.00416f80
mov ecx, eax
mov byte [esp + 0x50], 1
call fcn.00416550
push eax
lea ecx, [esp + 0x1c]
call fcn.00416860
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.00416420
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40bb31
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x40bb70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4808f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.004162d0
push 0x488dc8
push 0x74
push 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push str.n5addon.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0x18c]
call fcn.00416f80
mov ecx, eax
mov byte [esp + 0x50], 1
call fcn.00416550
push eax
lea ecx, [esp + 0x1c]
call fcn.00416860
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.00416420
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40bc81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
call fcn.00416560
push eax
push str.NInstall::writeN5addOn____1__::CreateFile__s__fail_code:_d_n
push 1
call fcn.00415d30
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x40bcc0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x480920
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.004162d0
push 0x488dc8
push 0x6a
push 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push str.nckill.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0x18c]
call fcn.00416f80
mov ecx, eax
mov byte [esp + 0x50], 1
call fcn.00416550
push eax
lea ecx, [esp + 0x1c]
call fcn.00416860
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.00416420
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40bdd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
call fcn.00416560
push eax
push str.NInstall::writeNcKill____1__::CreateFile__s__fail_code:_d_n
push 1
call fcn.00415d30
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x40be10
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x480950
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.004162d0
push str.KILL
push 0x71
push 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push str.kill.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0x18c]
call fcn.00416f80
mov ecx, eax
mov byte [esp + 0x50], 1
call fcn.00416550
push eax
lea ecx, [esp + 0x1c]
call fcn.00416860
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.00416420
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00416560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40beef
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
xor eax, eax
jmp 0x40bf26
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x18]
push edx
call fcn.00416820
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], edi
call fcn.00416420
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4

Function at 0x40c000
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4809c9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0
mov dword [esp + 8], 0
call fcn.00417480
mov esi, dword [esp + 0x58]
push 0x49789d
mov ecx, esi
mov dword [esp + 0x54], 1
call fcn.00416300
push 0
push 1
push 1
push 0x488eb8
push getpeername
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 1
call fcn.004174f0
test eax, eax
je 0x40c0b8
push 0x488eac
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.004175c0
mov ecx, eax
mov byte [esp + 0x50], 2
call fcn.00416550
push eax
mov ecx, esi
call fcn.00416860
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 1
call fcn.00416420
lea ecx, [esp + 0x24]
call fcn.00417590
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call fcn.004189c0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x4c
ret 4
Function at 0x40c0e0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x480a19
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0
mov dword [esp + 8], 0
call fcn.00417480
mov esi, dword [esp + 0x58]
push 0x49789d
mov ecx, esi
mov dword [esp + 0x54], 1
call fcn.00416300
push 0
push 1
push 1
push 0x488eb8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 1
call fcn.004174f0
test eax, eax
je 0x40c198
push 0x488efc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.004175c0
mov ecx, eax
mov byte [esp + 0x50], 2
call fcn.00416550
push eax
mov ecx, esi
call fcn.00416860
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 1
call fcn.00416420
lea ecx, [esp + 0x24]
call fcn.00417590
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call fcn.004189c0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x4c
ret 4

Function at 0x40d250
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0044c830
add esp, 0xc
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
push eax
push 0
push 8
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
jne 0x40d2ba
pop esi
add esp, 0x54
ret 8
mov edx, dword [esp + 4]
push edi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x54
ret 8

Function at 0x40d2f0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x480c89
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0
mov dword [esp + 8], 0
call fcn.00417480
mov esi, dword [esp + 0x58]
push 0x49789d
mov ecx, esi
mov dword [esp + 0x54], 1
call fcn.00416300
push 0
push 1
push 1
push 0x488eb8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 1
call fcn.004174f0
test eax, eax
je 0x40d3a8
push str.Common_Desktop
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.004175c0
mov ecx, eax
mov byte [esp + 0x50], 2
call fcn.00416550
push eax
mov ecx, esi
call fcn.00416860
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 1
call fcn.00416420
lea ecx, [esp + 0x24]
call fcn.00417590
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call fcn.004189c0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x4c
ret 4
Function at 0x40d3d0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x480cd9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0
mov dword [esp + 8], 0
call fcn.00417480
mov esi, dword [esp + 0x58]
push 0x49789d
mov ecx, esi
mov dword [esp + 0x54], 1
call fcn.00416300
push 0
push 1
push 1
push 0x488eb8
push getpeername
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 1
call fcn.004174f0
test eax, eax
je 0x40d488
push str.Desktop
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.004175c0
mov ecx, eax
mov byte [esp + 0x50], 2
call fcn.00416550
push eax
mov ecx, esi
call fcn.00416860
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 1
call fcn.00416420
lea ecx, [esp + 0x24]
call fcn.00417590
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call fcn.004189c0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x4c
ret 4
Function at 0x40dee0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x480e56
mov eax, dword fs:[0]
push eax
mov eax, 0x118c
call fcn.0044c800
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x1188], eax
push ebx
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x119c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x11ac]
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x19d]
push ebx
push eax
mov byte [esp + 0x1a4], bl
call fcn.0044c830
push ebx
lea ecx, [esp + 0x4c]
push ebx
push ecx
call fcn.004219a0
add esp, 0x18
push str.cmd.exe
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov dword [esp + 0x11ac], ebx
call fcn.00416f80
lea ecx, [esp + 0x3c]
mov byte [esp + 0x11a4], 2
call fcn.00416420
push 0x44
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.0044c830
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x80], 1
mov word [esp + 0x84], bx
call fcn.00416550
push 0xfff
mov esi, eax
push esi
lea ecx, [esp + 0x1a0]
push 0x1000
push ecx
call fcn.0044cae0
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40dfd0
sub eax, edx
cmp eax, 0xfff
jae 0x40dfe9
mov byte [esp + eax + 0x198], bl
push str.__c
lea edx, [esp + 0x19c]
push 0x1000
push edx
mov byte [esp + 0x11a3], bl
call fcn.0044d289
add esp, 0xc
mov ecx, edi
call fcn.00416560
push eax
lea eax, [esp + 0x19c]
push 0x1000
push eax
call fcn.0044d289
push 0x48923c
lea ecx, [esp + 0x1a8]
push 0x1000
push ecx
call fcn.0044d289
mov edx, dword [esp + 0x11c8]
push edx
push 0x489238
lea eax, [esp + 0xb8]
push 0x489230
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x1c4]
push 0x1000
push edx
call fcn.0044d289
add esp, 0x34
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
lea edx, [esp + 0x1b8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40e0a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40e0e3
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40e0cb
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x11a4], 0xffffffff
call fcn.00416420
mov eax, esi
mov ecx, dword [esp + 0x119c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1188]
xor ecx, esp
call fcn.0044b607
add esp, 0x1198
ret 8
Function at 0x40e130
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1f48
call fcn.0044c800
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x1f44], eax
push esi
mov esi, dword [esp + 0x1f54]
push edi
mov edi, dword [esp + 0x1f54]
push str.NInstall::WriteManifestFile_Step_1_n
push 1
call fcn.00415d30
push 0x1f3e
lea eax, [esp + 0x1a]
push 0
push eax
mov word [esp + 0x20], 0
call fcn.0044c830
push esi
lea ecx, [esp + 0x24]
push 0x489278
push ecx
call fcn.0040dd20
lea eax, [esp + 0x2c]
add esp, 0x20
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e196
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0xc]
push edx
add eax, eax
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.NInstall::WriteManifestFile_Step_6_n
push 1
call fcn.00415d30
mov ecx, dword [esp + 0x1f54]
add esp, 8
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044b607
add esp, 0x1f48
ret 8

Function at 0x40f9c0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x480f96
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040c1c0
cmp eax, 2
jne 0x40faa0
lea ecx, [esp + 0xc]
call fcn.00413240
push 0x104
lea eax, [esp + 0x40]
push 0
push eax
mov dword [esp + 0x25c], 0
call fcn.0044c830
add esp, 0xc
call fcn.00421560
test eax, eax
lea ecx, [esi + 0x15c]
je 0x40fa57
push str.n5agent64.exe
call fcn.00416560
push eax
push 0x48ab9c
lea ecx, [esp + 0x48]
push ecx
jmp 0x40fa6c
push str.n5agent.exe
call fcn.00416560
push eax
push 0x48ab9c
lea edx, [esp + 0x48]
push edx
call fcn.0040dd40
add esp, 0x10
lea eax, [esp + 0x3c]
push eax
push str.N5Client_Agent
lea ecx, [esp + 0x14]
call fcn.004138d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x250], 0xffffffff
call fcn.00413760
jmp 0x40fb69
lea ecx, [esp + 0x18]
call fcn.00417480
push 0x104
lea ecx, [esp + 0x144]
push 0
push ecx
mov dword [esp + 0x25c], 1
call fcn.0044c830
add esp, 0xc
lea edi, [esi + 0x15c]
push str.n5start.exe
mov ecx, edi
call fcn.00416560
push eax
lea edx, [esp + 0x148]
push 0x48ab9c
push edx
call fcn.0040dd40
add esp, 0x10
mov ecx, esi
call fcn.0040c250
test eax, eax
push 0
push 0
lea ecx, [esp + 0x20]
push 0
jne 0x40fb0f
push str.SoftwareMicrosoftWindowsCurrentVersion_runservices
jmp 0x40fb14
push str.SoftwareMicrosoftWindowsCurrentVersion_run
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004174f0
lea eax, [esp + 0x140]
push eax
push 0x488abc
lea ecx, [esp + 0x20]
call fcn.004176f0
lea ecx, [esp + 0x18]
call fcn.00417590
mov ecx, edi
call fcn.00416560
push eax
lea ecx, [esp + 0x144]
push ecx
call fcn.0041d530
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x250], 0xffffffff
call fcn.004189c0
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0044b607
add esp, 0x248
ret