joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007d590
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x1007d666
cmp byte [edi], 0
je 0x1007d666
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1007d5b6
push 0
sub esi, ecx
push 0
lea eax, [esi + 1]
push eax
push edi
push 0
push 0xfde9
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 4], eax
add eax, eax
push eax
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1007d645
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x1007d63e
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push esi
mov word [eax + ebx], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1007d63e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1007d64e
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1007d645
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1007d690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b1278
push 0x10081401
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100b3040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x1007d740
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1007d740
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1007d740
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1007d740
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007da60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1007db28
nop word [eax + eax]
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x1007daa5
sub edi, 0x8000000
jmp 0x1007db20
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007db28
cmp dword [ebp - 0xc], 0x10000
jne 0x1007db0b
cmp dword [ebp - 0x10], 0x10000
jb 0x1007db0b
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1007dbe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1007db28
sub edi, 0x10000
jmp 0x1007db20
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x1007da90
movzx eax, si
test eax, eax
je 0x1007db37
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x1007dbe2
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax + eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1007db65
add esi, 0x8000000
jmp 0x1007dbda
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call ebx
test eax, eax
je 0x1007dbe2
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x1007dbc5
cmp ecx, 0x10000
jb 0x1007dbc5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1007dbe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1007dbe2
add esi, 0x10000
jmp 0x1007dbda
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1007dbda
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1007db50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100808bd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100808e4
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100808e7
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10080899
pop esi
leave
ret 8
Function at 0x4018a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x408832
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push esi
push edi
mov dword [esp + 8], 0
mov edx, dword [esp + 0x824]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x828]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x824]
push 0x400
push ecx
push edx
push eax
push 0x40d08c
mov dword [esp + 0x82c], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 0x81c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 0x820]
mov byte [esp + 0x814], 2
call fcn.004082ee
lea ecx, [esp + 0x824]
mov byte [esp + 0x814], 1
call fcn.004082ee
lea ecx, [esp + 0x828]
mov byte [esp + 0x814], 0
call fcn.004082ee
mov ecx, dword [esp + 0x80c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret

Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408885
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push str.c:windows_system_sys_syssettings_
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString
push 0
push str.c:windows_system_
mov dword [esp + 0x220], 1
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
je 0x401a8b
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
pop edi
jl 0x401a8b
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call fcn.00408384
push str._system_sys_syssettings_
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x224]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x21c], 0
call fcn.004082ee
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x401ad0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4088b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push str.c:windows_system_sys_syscon_
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42u.DLL_CString::CString
push 0
push str.c:windows_system_
mov dword [esp + 0x220], 1
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
test eax, eax
je 0x401b6b
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
pop edi
jl 0x401b6b
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 4]
call fcn.00408384
push str._system_sys_syscon_
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x224]
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x21c], 0
call fcn.004082ee
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x401bb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4088ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
push 0x40e998
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 1
call sub.MFC42u.DLL_CString::CString
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov byte [esp + 0x220], 2
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.00408384
push str.TempLow_
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator_1
mov esi, dword [esp + 0x228]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x220], 1
call fcn.004082ee
lea ecx, [esp + 0x22c]
mov byte [esp + 0x220], 0
call fcn.004082ee
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x4020d0
Capabilities:
Access peb ldr_data
Delete file
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4089b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x24]
push ebx
push esi
xor esi, esi
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00401da0
add esp, 8
push 0x40ea68
push ecx
lea edx, [esp + 0x34]
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov dword [esp + 0x24], ebx
mov word [esp + 0x3a], si
mov word [esp + 0x38], bx
call sub.MFC42u.DLL_CString::CString
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x24], bl
call fcn.00401670
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push ebx
push ebx
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.004082ee
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret

Function at 0x402440
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408a48
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [edi]
add esp, 4
mov ax, word [ecx + eax*2 - 2]
cmp ax, 0x5c
je 0x402481
push 0x40d088
mov ecx, edi
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [edi]
mov ebx, dword [sym.imp.MSVCRT.dll__waccess]
push 0
push eax
call ebx
add esp, 8
test eax, eax
je 0x40250f
xor esi, esi
inc esi
mov ecx, edi
push esi
push 0x5c
call sub.MFC42u.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x40250f
lea edx, [esp + 0x1c]
push esi
push edx
mov ecx, edi
call sub.MFC42u.DLL_CString::Left
mov eax, dword [esp + 0x1c]
push 0
push eax
call ebx
add esp, 8
test eax, eax
je 0x4024d7
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4024ea
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004082ee
jmp 0x402497
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004082ee
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x402860
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x854
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x864]
test al, al
je 0x40288f
mov dword [esp + 0x40], 1
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x85c]
push 0x3fc
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x58]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x402916
mov al, byte [esp + 0x85c]
test al, al
je 0x402900
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
pop esi
lea ecx, [esp + 0x858]
call fcn.004082ee
add esp, 0x854
ret

Function at 0x402af0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408b2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0x220], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x228]
mov esi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x40d27c
push edx
mov byte [esp + 0x228], 1
call esi
add esp, 8
test eax, eax
jne 0x402bbd
mov eax, dword [esp + 0x228]
push str.website
push eax
call esi
add esp, 8
test eax, eax
jne 0x402bbd
push str.thcs_
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 2
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 1
call fcn.004082ee
jmp 0x402be8
mov edx, dword [esp + 0x228]
push 0x40d240
push edx
call esi
add esp, 8
test eax, eax
jne 0x402bda
push str.Low_
jmp 0x402bdf
push 0x40d228
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator_1
lea eax, [esp + 0x228]
lea ecx, [esp + 8]
push eax
call sub.MFC42u.DLL_CString::operator
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 8]
mov byte [esp + 0x220], 0
call fcn.004082ee
lea ecx, [esp + 0x228]
mov dword [esp + 0x220], 0xffffffff
call fcn.004082ee
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x403010
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x408bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4030ec
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0xffffffffffffffff
push 0
mov ecx, 0x40ea68
mov esi, eax
call sub.MFC42u.DLL_CStringArray::SetSize
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00401da0
add esp, 8
push 0x40ea68
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esp + 0x1c], 0
mov word [esp + 0x2e], 0
mov word [esp + 0x2c], 1
call sub.MFC42u.DLL_CString::CString
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov byte [esp + 0x20], 1
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x1c], 0
call fcn.00401670
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.004082ee
mov al, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
xor al, al
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404e27
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea edx, [esp + 0x18]
push 0
push edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404e48
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x404e60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Wtsapi32.dll
mov esi, eax
mov dword [esp + 0x10], 0
call ebp
test eax, eax
je 0x404fbd
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQueryUserToken
push eax
call ebx
test eax, eax
je 0x404fbd
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x404fbd
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x404fbd
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push 1
push 1
push 0
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x404fac
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
push str.Userenv.dll
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.winsta0default
mov edi, 0x20
mov dword [esp + 0x18], eax
call ebp
mov esi, eax
test esi, esi
je 0x404f4f
push str.CreateEnvironmentBlock
push esi
call ebx
test eax, eax
je 0x404f48
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push edx
push ecx
call eax
test eax, eax
je 0x404f40
mov edi, 0x420
jmp 0x404f48
mov dword [esp + 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.mssys.exe
lea edx, [esp + 0x20]
push 0x40ea94
push edx
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 0x20]
mov eax, dword [eax]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push 0
push ecx
push edi
push 0
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004082ee
test esi, esi
pop edi
jne 0x404fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x4065e0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x406642
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 0x40664c
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x406810
Capabilities:
Access peb ldr_data
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x4092c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [esp + 0x30]
push ebp
push esi
push edi
call sub.MFC42u.DLL_CString::Empty
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
xor esi, esi
push str..PhysicalDrive_u
push ecx
mov dword [esp + 0x3c], esi
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
or edi, 0xffffffff
cmp ebp, edi
jne 0x406880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4068d5
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
push esi
mov dword [esp + 0x24], eax
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
push 8
push edx
lea eax, [esp + 0x2c]
push 0xc
push eax
push 0x2d1400
push ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4068f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], edi
call fcn.004082ee
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
call sub.MFC42u.DLL_operatornew
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push ebx
push esi
push 0xc
push ecx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
pop ebx
jne 0x406978
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004082ee
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4069b7
call sub.MFC42u.DLL_AfxGetEmptyString
mov edx, dword [eax]
add edi, esi
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edx
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x34], 1
call fcn.0040834e
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.004082ee
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004082ee
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret