joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12090d00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120c4403
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.120b80d6
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.120bd73d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.120bec59
test eax, eax
je 0x12090e1c
mov ecx, dword [esp + 0x3c]
call fcn.120bd76a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x12090de0
push edi
mov ecx, esi
call fcn.120badb5
mov ecx, esi
call fcn.12090fc0
cmp dword [esp + 0x38], 1
jne 0x12090e15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.120baef0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x12092ff0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x12093023
push esi
call fcn.12096140
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1209301c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x120930a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x12093092
mov eax, dword [esi + 8]
test eax, eax
je 0x12093047
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1209308e
cmp eax, 2
je 0x12093092
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1209303a
cmp eax, 3
je 0x1209306d
cmp eax, 1
jne 0x1209303a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1209303a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1209303a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.120930d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x120930b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.120930d0
add esp, 4
pop esi
ret
Function at 0x120a1da0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 0x182
je 0x120a1ddb
cmp eax, 0x1e6
je 0x120a1ddb
push eax
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov dword [ebp - 4], edx
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop ebx
shr eax, 0x17
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x120a1e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x120c4928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.120a2320
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x20], 0
call fcn.120a23e0
test eax, eax
jge 0x120a1e97
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a2350
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.120a2360
mov edi, eax
push edi
call fcn.120b6868
mov esi, eax
add esp, 4
test esi, esi
jne 0x120a1ee1
lea ecx, [esp + 0xc]
call fcn.120a2380
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a2350
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.120a2400
cmp edi, eax
je 0x120a1f29
push esi
call fcn.120b6891
add esp, 4
lea ecx, [esp + 0xc]
call fcn.120a2380
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a2350
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.120a2380
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ecx
push edx
push esi
push edi
push eax
mov ecx, ebx
call fcn.120a2120
push esi
mov edi, eax
call fcn.120b6891
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a2350
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x120a2120
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x120c49c4
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x15c]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x168]
cmp eax, esi
jne 0x120a215d
push edi
push ebx
call fcn.120a1f80
cmp eax, 5
ja case.default.0x120a2166
jmp dword [eax*4 + 0x120a2308]
push str.Error:_CDXImage___Unsupported_Image_type.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a39e0
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], esi
call fcn.120a3a50
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a3a20
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a2450
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 1
call fcn.120a2550
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a2490
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a3480
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x160]
push ecx
push edi
push ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 2
call fcn.120a3530
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a34c0
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a3120
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 3
call fcn.120a3210
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a3160
jmp case.default.0x120a2166
lea ecx, [esp + 0xf0]
call fcn.120a2ee0
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], 4
call fcn.120a2f70
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a2f20
mov ecx, dword [esp + 0x150]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x14
Function at 0x120a216d
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x120c49c4
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x15c]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x168]
cmp eax, esi
jne 0x120a215d
push edi
push ebx
call fcn.120a1f80
cmp eax, 5
ja case.default.0x120a2166
jmp dword [eax*4 + 0x120a2308]
push str.Error:_CDXImage___Unsupported_Image_type.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a39e0
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], esi
call fcn.120a3a50
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a3a20
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a2450
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 1
call fcn.120a2550
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a2490
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a3480
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x160]
push ecx
push edi
push ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 2
call fcn.120a3530
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a34c0
jmp case.default.0x120a2166
lea ecx, [esp + 0xc]
call fcn.120a3120
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 3
call fcn.120a3210
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a3160
jmp case.default.0x120a2166
lea ecx, [esp + 0xf0]
call fcn.120a2ee0
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], 4
call fcn.120a2f70
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a2f20
mov ecx, dword [esp + 0x150]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x14

Function at 0x120a2400
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
and eax, ecx
ret 8
Function at 0x120a5790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ChangeDisplaySettingsA
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
push esi
call ebp
push str.ClipCursor
push edi
mov dword [esi], 0x8c2
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 4
push esi
call ebp
push str.RegisterClassA
push edi
mov dword [esi], 0x4c2
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x40
push 0xa
push esi
call ebp
mov ecx, esi
mov eax, 0x90909090
add esi, 5
push str.SetCursorPos
mov dword [ecx], eax
push edi
lea edx, [esi + 6]
mov byte [ecx + 4], al
mov eax, 0x120a56f0
sub eax, esi
mov dword [0x120fa99c], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 5
push esi
call ebp
mov eax, 0x120a5740
lea edx, [esi + 5]
sub eax, esi
mov dword [0x120fa9a0], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x120b8eb1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x120b8ee9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.120b6f82
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.120b6f5a
jmp 0x120b8ef5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x120ba5a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x120ba5e5
call fcn.120bff39
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x120ba5e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x120ba5dc
xor eax, eax
jmp 0x120ba5ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.120ba5f3
pop edi
pop esi
pop ebx
ret 4
Function at 0x403b00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x43fbfc]
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 0x403b53
mov ax, word [esp]
cmp al, 2
jne 0x403b4d
cmp ah, al
jne 0x403b4d
mov eax, 1
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041a1b8
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.0041a1b8
add esp, 0x194
ret

Function at 0x4042e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x218
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x230]
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x22c]
lea eax, [esp + 0x10]
push eax
push 0x437014
push 1
push 0
push 0x437034
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4043d3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
test esi, esi
je 0x40435b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
test ebx, ebx
je 0x40436c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x437024
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4043c7
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push ebp
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
test eax, eax
jl 0x4043bb
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a1b8
add esp, 0x218
ret 0x10
Function at 0x404b10
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 0x404b76
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
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 0x404b76
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x433110
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.0040c030
push 0x436738
push 0x67
push 0
mov dword [esp + 0x44], 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 + 0x28]
push eax
lea ecx, [edi + 0xe0]
call fcn.0040c5e0
mov ecx, eax
mov byte [esp + 0x38], 1
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.0040c0f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x404c71
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c0f0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
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 + 0x38], edi
call fcn.0040c0f0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x404cb0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x433140
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.0040c030
push 0x43674c
push 0x70
push 0
mov dword [esp + 0x44], 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 + 0x28]
push eax
lea ecx, [edi + 0xe0]
call fcn.0040c5e0
mov ecx, eax
mov byte [esp + 0x38], 1
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.0040c0f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x404da1
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c0f0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
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 + 0x38], edi
call fcn.0040c0f0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x404de0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x433170
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.0040c030
push 0x43674c
push 0x6a
push 0
mov dword [esp + 0x44], 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 + 0x28]
push eax
lea ecx, [edi + 0xe0]
call fcn.0040c5e0
mov ecx, eax
mov byte [esp + 0x38], 1
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.0040c0f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x404ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
call fcn.00419120
push eax
push str.NInstall::writeNcKill____1__::CreateFile__s__fail_code:_d_n
push 1
call fcn.00403ef0
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c0f0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
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 + 0x38], edi
call fcn.0040c0f0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x404f30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4331a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.0040c030
push str.KILL
push 0x71
push 0
mov dword [esp + 0x44], 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 + 0x28]
push eax
lea ecx, [edi + 0xe0]
call fcn.0040c5e0
mov ecx, eax
mov byte [esp + 0x38], 1
call fcn.00419120
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.0040c0f0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x30]
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40500f
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c0f0
xor eax, eax
jmp 0x405046
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 + 0x40]
lea edx, [esp + 0x18]
push edx
call fcn.0040c380
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], edi
call fcn.0040c0f0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x405120
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x433219
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
mov dword [esp + 8], 0
call fcn.0040b8a0
mov esi, dword [esp + 0x40]
push 0x43653f
mov ecx, esi
mov dword [esp + 0x3c], 1
call fcn.0040c060
push 0
push 1
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 1
call fcn.0040b910
test eax, eax
je 0x4051d8
push str.Programs
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.0040b9d0
mov ecx, eax
mov byte [esp + 0x38], 2
call fcn.00419120
push eax
mov ecx, esi
call fcn.0040c3c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.0040c0f0
lea ecx, [esp + 0x18]
call fcn.0040b9b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.0040bd60
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 4