joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
in eax, dx
invalid
lodsb al, byte [esi]
pop ebx
outsb dx, byte [esi]
cld
inc edi
fucompi st(1)
stc
cmpsb byte [esi], byte es:[edi]
salc
js 0x4153d8
in al, 0xbe
ret 0x4f0f
Function at 0x41e810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422dab
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.0041fd70
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x210]
push str.FN_CSharedMemoryChannel_GetMessage
push eax
call fcn.00401880
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x423484
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0041e4b0
cmp eax, 0xfffe00ff
jne 0x41e8cc
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
lea edx, [eax - 1]
cmp edx, 0xffe
ja 0x41e8b2
push eax
lea eax, [ebp - 0x1210]
mov ecx, edi
push eax
call fcn.0041e540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
ret
push str.Invalid_Message_Header
lea ecx, [ebp - 0x1228]
call fcn.00402d30
lea eax, [ebp - 0x1228]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1244]
call fcn.00401b80
push 0x42b38c
lea eax, [ebp - 0x1244]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x180a491e
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6267724c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40f720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f742
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f738
mov eax, 1
add ebx, ebx
jne 0x40f75b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f750
jne 0x40f76c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f750
xor ecx, ecx
sub eax, 3
jb 0x40f780
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f7f2
mov ebp, eax
add ebx, ebx
jne 0x40f78b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f7bc
inc ecx
add ebx, ebx
jne 0x40f7a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f79d
jne 0x40f7b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f79d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f7dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f7cd
jmp 0x40f73e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f7dc
add edi, ecx
jmp 0x40f73e
pop esi
mov edi, esi
mov ecx, 0x1fc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f7fa
cmp byte [edi], 5
jne 0x40f7fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f7ff
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f86e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1053c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x105f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f82c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x105f4]
or eax, eax
je 0x40f868
mov dword [ebx], eax
add ebx, 4
jmp 0x40f849
call dword [esi + 0x10604]
mov ebp, dword [esi + 0x105f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f8a2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x1da17ed6
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x75640c7d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019dd
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00401a44]
mov edx, dword [0x4030dc]
sub edx, eax
push edx
push dword [0x4030d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018c5
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040191f
mov eax, edi
add eax, 0x1ce00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
lea eax, [0x4030e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a44
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x4019dd
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
mov edi, esi
mov edi, 0xfffffffb
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x10e], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa]
push eax
push 1
push 1
lea eax, [ebp - 0x10e]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
lea eax, [ebp - 0xa]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
movsx eax, byte [ebp - 0xa]
sub eax, 0x41
pop edi
pop esi
leave
ret
Function at 0x402610
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, 0x546d80
call fcn.00501f54
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 0x402648
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402683
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 0x402681
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 0x40263f
mov dword [ebp - 8], 0
jmp 0x402695
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x4026bc
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x4026ba
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 0x40268c
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x406400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x54621e
call fcn.00501f54
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40642e
xor eax, eax
jmp 0x4064ae
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406445
xor eax, eax
jmp 0x4064ae
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406491
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x406491
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x406468
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40649d
xor eax, eax
jmp 0x4064ae
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4064ab
xor eax, eax
jmp 0x4064ae
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4066c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov ecx, 0x54622b
call fcn.00501f54
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40672f
push 0x5321ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4066f6
mov eax, 1
jmp 0x40674d
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 0x40672d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x10]
jmp 0x40674d
jmp 0x406748
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x406748
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40674d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4069c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 8], ecx
mov ecx, 0x546d81
call fcn.00501f54
push 0
lea ecx, [ebp - 0x18]
call fcn.00406760
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.004068f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406a1e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.004067a0
mov eax, dword [ebp - 0x1c]
jmp 0x406aa0
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 0x406a7e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004069c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406a75
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x18]
call fcn.004067a0
mov eax, dword [ebp - 0x20]
jmp 0x406aa0
mov dword [ebp - 0xc], 0x100
jmp 0x406a25
lea ecx, [ebp - 0x18]
call fcn.004068a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004067c0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call fcn.004067a0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 4
Function at 0x407c40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x546d80
call fcn.00501f54
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
mov al, 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

Function at 0x407cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 0x14], 0
mov ecx, 0x546d80
call fcn.00501f54
lea ecx, [ebp - 0x10]
call fcn.0040d250
mov dword [ebp - 4], 0
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call fcn.004d75f0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004d75f0
add esp, 0xc
push 0
push 2
lea edx, [ebp - 0x814]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407d6d
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d0a0
push 0x52c310
lea ecx, [ebp - 0x10]
call fcn.0040cfb0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040d220
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x407db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 0x14], 0
mov ecx, 0x546d80
call fcn.00501f54
lea ecx, [ebp - 0x10]
call fcn.0040d250
mov dword [ebp - 4], 0
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call fcn.004d75f0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004d75f0
add esp, 0xc
push 0
push 0x19
lea edx, [ebp - 0x814]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407e4d
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d0a0
push 0x52c314
lea ecx, [ebp - 0x10]
call fcn.0040cfb0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040d220
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 0x14], 0
mov ecx, 0x546d80
call fcn.00501f54
lea ecx, [ebp - 0x10]
call fcn.0040d250
mov dword [ebp - 4], 0
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call fcn.004d75f0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004d75f0
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x814]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407f2d
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d0a0
push 0x52c318
lea ecx, [ebp - 0x10]
call fcn.0040cfb0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040d220
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4081a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 0x14], 0
mov ecx, 0x546d80
call fcn.00501f54
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004d75f0
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
lea ecx, [ebp - 0x10]
call fcn.0040d1a0
mov dword [ebp - 4], 0
push 0x52c378
lea ecx, [ebp - 0x10]
call fcn.0040cfb0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d220
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x408260
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502ccd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x20], 0
mov ecx, 0x546d80
call fcn.00501f54
lea ecx, [ebp - 0x18]
call fcn.0040d250
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x408331
mov dword [ebp - 0x10], 0
jmp 0x4082c5
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x24]
jae 0x4082f7
imul ecx, dword [ebp - 0x10], 0xc
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx + 8], 0
jne 0x4082f5
imul eax, dword [ebp - 0x10], 0xc
add eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x30], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
jmp 0x4082f7
jmp 0x4082bc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x1c]
push eax
push 5
mov ecx, dword [ebp - 0x34]
push ecx
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x408331
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040d0a0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040d220
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x408370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502cf5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov dword [ebp - 0x14], 0
mov ecx, 0x546d80
call fcn.00501f54
lea ecx, [ebp - 0x10]
call fcn.0040d250
mov dword [ebp - 4], 0
push 0x104
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004d75f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040d010
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040cb70
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040d0d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040d100
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d220
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret