joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007bb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xc0]
test eax, eax
je 0x10007cc1
cmp dword [ebp + 0x78], 0xffffffff
je 0x10007cc1
push ebx
push edi
lea ecx, [ebp + 0xb4]
call sub.MFC42.DLL_CPtrList::RemoveHead
mov ebx, eax
test ebx, ebx
je 0x10007cb6
mov eax, dword [ebx + 4]
push esi
push 0xc
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 8
and ecx, 3
mov dword [esp + 0x18], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
push eax
mov byte [ecx + eax], 0
lea ecx, [ebp + 0x8c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x20]
add esp, 4
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push esi
push 2
call fcn.10008360
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [ebp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov edi, eax
push ecx
push esi
push 2
mov ecx, ebp
call fcn.100085e0
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebx]
push edx
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 0xc
test edi, edi
pop esi
je 0x10007cad
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
push 2
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, edi
pop edi
pop ebx
pop ebp
add esp, 0x10
ret
xor edi, edi
mov eax, edi
pop edi
pop ebx
pop ebp
add esp, 0x10
ret
xor eax, eax
pop ebp
add esp, 0x10
ret

Function at 0x10007e30
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 4
jne 0x10007e41
push str.langmonitorGDI_rx
jmp 0x10007e46
push str.langmonitor_rx
mov ecx, esi
call fcn.10007fc0
test eax, eax
je 0x10007e93
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x70], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x10007940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
push eax
mov dword [esi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10007e98
mov ecx, dword [esi + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10007f10
Capabilities:
Create mailslot

Disassembly:
push esi
mov esi, ecx
push edi
push esi
lea edi, [esi + 0x88]
push str..mailslotkyoceramitautility_08x
push edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
add esp, 0xc
push 0
push 0xffffffffffffffff
push 0x1068
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
cmp eax, 0xffffffff
mov dword [esi + 0x74], eax
jne 0x10007f4f
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x10007fc0
Capabilities:
Create mailslot

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
lea esi, [ecx + 0x84]
push eax
push str..mailslotkyoceramita_s
push esi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi]
add esp, 0xc
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10007ffb
pop edi
mov eax, 1
pop esi
ret 4
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x10008130
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x84]
push esi
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10008185
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008185
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edi
push 0
push eax
mov eax, dword [eax]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x10008190
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x74]
or edi, 0xffffffff
cmp eax, edi
mov dword [ebp - 0x10], esp
jne 0x100081cb
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp case.0x1000825a.0
lea ecx, [ebp - 0x18]
push 0
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
mov dword [ebp - 4], edi
je 0x10008316
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
mov dword [esi], 0
je 0x100082f2
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x100082f2
push eax
mov dword [ebp - 4], 3
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
push 0
mov dword [esi], eax
mov edx, dword [ebx + 0x74]
push edi
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.0x1000825a.0
push edi
push esi
mov ecx, ebx
call fcn.10008640
cmp eax, 9
ja case.0x1000825a.4
xor ecx, ecx
mov cl, byte [eax + 0x10008348]
jmp dword [ecx*4 + 0x10008334]
mov edx, dword [esi]
mov ecx, ebx
push edx
call fcn.10008730
mov dword [edi], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
lea ecx, [ebx + 0x58]
push eax
call sub.MFC42.DLL_CString::operator
mov dword [edi], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov dword [ecx], 0
mov dword [esi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f609
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 1
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x54], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x64]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00401a60
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401941
push 0
push 0
push 0x4107c4
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x6c]
jmp 0x401988
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x407c7f
pop dword [ebp - 0x50]
mov eax, 0x85a34293
sub eax, 0x8562c614
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x418b6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x5700
xor edx, edx
add edx, eax
mov esi, 0x435400
add esi, dword [ebp - 0x50]
mov ebx, 0x828dd81
add ebx, 0xb6991136
mov dword [ebp - 0x2c], 0x150f3a63
mov edi, dword [esi]
xor dword [ebp - 0x1c], 0xe0cdae9d
add edi, ebx
mov dword [edx], edi
mov dword [ebp - 0x14], 0xbcd8a4b6
add edx, 0xe500c86d
sub edx, 0xe500c869
add esi, 0xa2c1d471
add esi, 0x5d3e2b93
loop 0x407ccf
add eax, 0x14ed3
mov ebx, eax
add eax, 0xd4a7ef5c
add eax, 0x2b5810a9
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x4024c0
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, 0x53600c
call fcn.004c6d76
mov byte [ebp - 1], 0
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 0xc], dl
mov dword [ebp - 8], 1
jmp 0x4024f8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402533
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
shl edx, 1
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
and edx, 0x80
je 0x402531
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
xor ecx, 0x1b
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0xc], cl
jmp 0x4024ef
mov dword [ebp - 8], 0
jmp 0x402545
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x40256c
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x40256a
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x40253c
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x40acb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 8], ecx
mov ecx, 0x53622b
call fcn.004c6d76
push 0
lea ecx, [ebp - 0x18]
call fcn.004080a0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040a750
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ad0e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.00408280
mov eax, dword [ebp - 0x1c]
jmp 0x40ad90
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40ad6e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040acb0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ad65
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x18]
call fcn.00408280
mov eax, dword [ebp - 0x20]
jmp 0x40ad90
mov dword [ebp - 0xc], 0x100
jmp 0x40ad15
lea ecx, [ebp - 0x18]
call fcn.004091a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00409400
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call fcn.00408280
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 4
Function at 0x40ada0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, 0x536229
call fcn.004c6d76
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40ae09
push 0x4fc3d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40add6
mov eax, 1
jmp 0x40ae27
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ae07
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40ae27
jmp 0x40ae22
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x40ae22
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40ae27
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x40bb50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4fe5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov ecx, 0x536275
call fcn.004c6d76
lea ecx, [ebp - 0x40]
call fcn.00407f50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4fc3c4
call fcn.00407810
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
mov edx, dword [ebp + 8]
push edx
call fcn.004077b0
mov byte [ebp - 4], 0
call fcn.0040e920
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004103f0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
call fcn.00407780
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
jmp 0x40bbe3
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x40bca4
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x40]
call fcn.00408590
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x40bc75
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00409b40
movzx eax, ax
cmp eax, 0x3a
je 0x40bc36
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408210
jmp 0x40bcbf
push 0x4fc3c8
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00408680
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004088f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00408170
jmp 0x40bbda
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.004088f0
push 0
lea ecx, [ebp - 0x10]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4fc3cc
lea ecx, [ebp - 0x10]
call fcn.00408920
jmp 0x40bbda
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c1d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f50cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, 0x536275
call fcn.004c6d76
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
lea eax, [ebp + 8]
push eax
push 0x4fbcb8
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00408720
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
push 0x4fbcb4
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00408680
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00408420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00408170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00408170
push 0x3c
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.004ca3c0
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
movzx edx, byte [ebp + 0x1c]
test edx, edx
je 0x40c29e
mov dword [ebp - 0x6c], 0x440
jmp 0x40c2a5
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp + 8]
call fcn.004085c0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0xc]
call fcn.004085c0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x40c2e1
mov dword [ebp - 0x54], 5
jmp 0x40c2e8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
je 0x40c30e
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40c332
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408170
mov eax, dword [ebp - 0x30]
jmp 0x40c37b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x536275
call fcn.004c6d76
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004ca3c0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407890
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x4fc024
mov ecx, dword [ebp + 8]
call fcn.00408920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40c950
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x536275
call fcn.004c6d76
mov eax, dword [ebp + 8]
push eax
call fcn.0040d460
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40cae3
lea edx, [ebp - 0x10]
push edx
call fcn.0040cb00
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004ca3c0
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040a170
movzx ecx, al
test ecx, ecx
jne 0x40cacb
lea ecx, [ebp - 0x14]
call fcn.0040a170
movzx edx, al
test edx, edx
jne 0x40cacb
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408550
add esp, 8
movzx edx, al
test edx, edx
je 0x40cacb
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d510
add esp, 4
mov byte [ebp - 4], 3
push str.AppDataRoamingMicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.004085e0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00408680
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00408170
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00408170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00408170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00408170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408170
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40cb00
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f524e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x536275
call fcn.004c6d76
mov ecx, dword [ebp + 8]
call fcn.00407780
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x40cbe0
mov dword [ebp - 0x10], 0
jmp 0x40cb77
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jae 0x40cba9
imul edx, dword [ebp - 0x10], 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax + edx + 8], 0
jne 0x40cba7
imul ecx, dword [ebp - 0x10], 0xc
add ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x40cba9
jmp 0x40cb6e
mov edx, dword [ebp - 0x14]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 5
mov edx, dword [ebp - 0x34]
push edx
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x40cbe0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004084e0
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d100
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x536275
call fcn.004c6d76
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + 8]
mov byte [ebp + edx - 4], al
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 4], 0x3a
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 4], 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
mul dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret