joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401549
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 4
push 0x1000
push 0xb8
add byte [eax], al
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [eax + 0xa8], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [eax + 0x5c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [eax + 0x60], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [eax + 0x64], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], 0x633414
mov eax, dword [ebp - 4]
mov dword [eax + 0xa4], 0xea825201
cmp dword [ebp - 4], 0
je 0x4015f7
push 0
sub eax, dword [ebp - 4]
call eax
cmp dword [ebp - 4], 0
jne 0x40160e
lea eax, [ebp - 4]
push eax
push 0
call dword [0x400000]

Function at 0x401553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 4
push 0x1000
push 0xb8
add byte [eax], al
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [eax + 0xa8], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [eax + 0x5c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [eax + 0x60], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [eax + 0x64], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x68], 0x633414
mov eax, dword [ebp - 4]
mov dword [eax + 0xa4], 0xea825201
cmp dword [ebp - 4], 0
je 0x4015f7
push 0
sub eax, dword [ebp - 4]
call eax
cmp dword [ebp - 4], 0
jne 0x40160e
lea eax, [ebp - 4]
push eax
push 0
call dword [0x400000]

Function at 0x4015b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], 0
add byte [eax], al
add byte [eax], al
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0xac], ecx
jmp 0x40160e
push 0x409
push 0xc1e
push 0xa
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, 0xfeedbeef
mov eax, 1
add byte [ebx + 0x7883fc45], cl
adc byte [eax], al
je 0x4018ca
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0
add byte [eax], al
add byte [ebx + 0x488bfc45], cl
invalid
Function at 0x4015e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], 0
add byte [eax], al
add byte [eax], al
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0xac], ecx
jmp 0x40160e
push 0x409
push 0xc1e
push 0xa
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, 0xfeedbeef
mov eax, 1
add byte [ebx + 0x7883fc45], cl
adc byte [eax], al
je 0x4018ca
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0
add byte [eax], al
add byte [ebx + 0x488bfc45], cl
invalid

Function at 0x40164e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], 0
add byte [eax], al
add byte [eax], al
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0xac], ecx
jmp 0x40160e
push 0x409
push 0xc1e
push 0xa
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, 0xfeedbeef
mov eax, 1
add byte [ebx + 0x7883fc45], cl
adc byte [eax], al
je 0x4018ca
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0
add byte [eax], al
add byte [ebx + 0x488bfc45], cl
invalid

Function at 0x401657
Capabilities:
Extract resource via kernel32 functions

Disassembly:
add byte [eax], al
add byte [ebx + 0x488bfc45], cl
adc byte [ecx - 0x75], dl
push ecx
mov edx, dword [ebp - 4]
Function at 0x4034e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004022c1
and dword [ebp - 4], 0
cmp dword [0x40b660], 0
mov ebx, eax
jne 0x403594
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403645
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403645
push eax
call fcn.0040224f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b660], eax
call esi
push eax
call fcn.0040224f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b664], eax
call esi
push eax
call fcn.0040224f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.0040224f
pop ecx
mov dword [0x40b670], eax
test eax, eax
je 0x403594
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040224f
pop ecx
mov dword [0x40b66c], eax
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x4035ec
cmp dword [0x40b670], ebx
je 0x4035ec
push eax
call fcn.004022ca
push dword [0x40b670]
mov esi, eax
call fcn.004022ca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4035ec
test edi, edi
je 0x4035ec
call esi
test eax, eax
je 0x4035e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4035e3
test byte [ebp - 0xc], 1
jne 0x4035ec
or dword [ebp + 0x10], 0x200000
jmp 0x403625
mov eax, dword [0x40b664]
cmp eax, ebx
je 0x403625
push eax
call fcn.004022ca
pop ecx
test eax, eax
je 0x403625
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403625
mov eax, dword [0x40b668]
cmp eax, ebx
je 0x403625
push eax
call fcn.004022ca
pop ecx
test eax, eax
je 0x403625
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b660]
call fcn.004022ca
pop ecx
test eax, eax
je 0x403645
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403647
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486af5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4af3d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.004039d0
mov ebx, eax
lea esi, [edi + 0x28]
cmp esi, ebx
je 0x403936
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40390f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004024c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x403927
mov eax, dword [esi]
jmp 0x403929
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00401b70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x403952
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004024c0
push 0x50
call fcn.004675b0
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 1
call fcn.00465300
add esp, 0x10
mov ecx, 0x404d40
push str.UnInstaller
push edi
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x40399d
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____stdcall___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x404d40
mov dword [eax + 0x24], eax
mov ecx, esi
call fcn.0040beb0
mov dword [edi + 0x74], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x4039b5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486d76
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4af3d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004675b0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004667ac
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486f2a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00466b73
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x406f70
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0046491e
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4ad050
push eax
call fcn.00465830
push edi
push esi
call fcn.004668af
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046756e
mov esp, ebp
pop ebp
ret 4
Function at 0x409b30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x409b8b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046756e
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call edi
test eax, eax
je 0x409beb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x409bde
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call edi
test eax, eax
jne 0x409bb1
jmp 0x409bea
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop edi
pop esi
call fcn.0046756e
mov esp, ebp
pop ebp
ret
Function at 0x40a330
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x210], 0
call fcn.00465300
add esi, 0x6b8
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40a378
mov esi, dword [esi]
push 0
push str.set.ini
push esi
push 0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00472552
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
push eax
push 0x4a59b0
push str.HDSensorsAnalyticsIni
push 0x4a619c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x40a3d8
xor ecx, ecx
jmp 0x40a3f0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a3e1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402360
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0046756e
mov esp, ebp
pop ebp
ret 4
Function at 0x40a420
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48751b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x6e4], 8
lea esi, [ecx + 0x6d0]
jb 0x40a460
mov eax, dword [esi]
jmp 0x40a462
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x40a471
mov esi, dword [esi]
push ecx
push esi
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.004088d0
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x40a490
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x3e
xor eax, eax
mov dword [ebp - 0x22c], 7
push str._P_05d__T_05d___04d__02d__02d__02d:_02d:_02d._03d___s___04d_:
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00402360
push 6
push str.Err:_d
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.00401d70
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40a50d
mov esi, dword [esi]
movzx eax, word [ebp - 0x21a]
push edi
push 0x247
push str.CMainWnd::RemoveSensorIni
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
call fcn.0040dab0
mov eax, dword [ebp - 0x22c]
add esp, 0x34
cmp eax, 8
jb 0x40a585
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.004024c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046756e
mov esp, ebp
pop ebp
ret
Function at 0x40c910
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48780b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x40c97a
xor ecx, ecx
jmp 0x40c992
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c983
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402360
push 0x1c
push 0x4a6588
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.00401d70
xor ecx, ecx
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], 0
call fcn.00401fb0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40ca08
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004024c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ca4d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ca4d
lea esi, [eax + 1]
jmp 0x40ca72
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
push esi
call fcn.00475ba3
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40ca90
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004024c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046756e
mov esp, ebp
pop ebp
ret

Function at 0x40d630
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x40d699
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046756e
mov esp, ebp
pop ebp
ret
Function at 0x40d7c0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x40d808
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046756e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
cmp word [edx], 0
jne 0x40d815
xor ecx, ecx
jmp 0x40d830
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d820
sub ecx, esi
sar ecx, 1
pop esi
push ecx
push edx
mov ecx, edi
call fcn.00402360
push dword [ebp - 0xc]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.0046756e
mov esp, ebp
pop ebp
ret

Function at 0x40d8e0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov edi, ecx
push 0x400
push edi
call fcn.00475ba3
push 0x44
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00465300
or dword [ebp - 0x1c], 0x101
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x48], 0x44
push 0
push 1
push dword [edi + 0x814]
call esi
mov eax, dword [edi + 0x810]
push 0
push 1
push dword [edi + 0x804]
mov dword [ebp - 0xc], eax
call esi
mov eax, dword [edi + 0x800]
push 0
push 1
push dword [edi + 0x820]
mov dword [ebp - 8], eax
call esi
mov eax, dword [edi + 0x824]
mov dword [ebp - 0x10], eax
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [edi + 0x830]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d9de
push dword [edi + 0x810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [edi + 0x810], 0
push dword [edi + 0x800]
call esi
mov dword [edi + 0x800], 0
push dword [edi + 0x824]
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 0x824], 0
xor ecx, ebp
pop edi
pop esi
call fcn.0046756e
mov esp, ebp
pop ebp
ret 0xc
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040d530
push 0x4ad13c
lea eax, [ebp - 0x54]
push eax
call fcn.00465830
int3
Function at 0x40dab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00407dc0
mov ebx, eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov ecx, dword [ebx]
push 0
push 0
push dword [ebx + 4]
or ecx, 2
push ecx
call fcn.0046c7b6
mov edi, eax
mov edx, 2
or eax, 0xffffffff
test edi, edi
cmovs edi, eax
xor ecx, ecx
add edi, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00472c17
mov esi, eax
add esp, 0x20
test esi, esi
je 0x40db2e
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push edi
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.0046c7da
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00472149
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret