joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000637f
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
lea eax, [ebp - 0x208]
push edi
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x100064b1
lea eax, [ebp - 0x208]
push eax
call fcn.10006088
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x104]
push str.TempFolder.
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100064b1
mov eax, dword [ebp - 0x348]
and eax, 0x10
cmp al, 0x10
jne 0x1000649b
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call fcn.10006088
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x44c]
push str.Macromedia.lok
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x44c]
push 0
push 1
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1000649b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push eax
call fcn.1000623a
or ebx, eax
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100063f8
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x1000941c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10009431
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1000726d
adc eax, 0x8bf1fe1d
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1000726d
adc dword [edx + 0x54], eax
jno 0x100094a4
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1000945a
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1000945a
call fcn.1000726d
test eax, 0x8bcfa881
sub dword [eax + 0x245a8bcf], 0x8b66df03
in eax, 0xff
push edi
shl dword [ebx], 1
enter 0x468b, 4
Function at 0x401270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401289
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40129d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012be
cmp esi, eax
jae 0x401297
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012b0
cmp esi, eax
jae 0x401297
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ada0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
movzx eax, word [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x46fc98
push eax
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x402bf9
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402ad0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x402c14
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402ad0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.00401850
mov eax, dword [ebp + 0xc]
test eax, eax
mov byte [ebp - 4], 2
mov edi, eax
je 0x402c48
push eax
call fcn.00437a78
add esp, 4
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.00402040
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x402c7c
test esi, esi
mov dword [ebp - 4], 0
je 0x402c8e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
push esi
call fcn.00401470
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402cc3
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b0d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.00465db5
mov ecx, dword [eax + 4]
call fcn.0044aea4
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
mov bl, 2
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0040d990
cmp eax, 3
ja case.default.0x406553
jmp dword [eax*4 + 0x4066c0]
xor eax, eax
mov ecx, 0xf
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x3c
call fcn.0044a230
xor esi, esi
cmp eax, esi
je 0x406583
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
cmp eax, esi
jne 0x406588
mov dword [ebp - 0x54], esi
jmp 0x40658e
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], str.open
mov dword [ebp - 0x40], 1
mov dword [ebp + 8], esi
lea ecx, [ebp + 8]
push ecx
mov byte [ebp - 4], 3
call fcn.0040bf90
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp + 8]
add esp, 4
lea eax, [ebp - 0x5c]
or edi, 4
push eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x58], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x4065d6
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00465db5
mov ecx, dword [eax + 4]
call fcn.0044aeb9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040f860
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402440
mov eax, dword [ebp - 0x18]
jmp 0x406656
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040f5c0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00402440
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.default.0x406553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.0044a230
test eax, eax
je 0x406687
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x40668b
xor eax, eax
jmp 0x40668e
mov eax, dword [eax + 0x1c]
mov esi, dword [ebp - 0x14]
push esi
push eax
call fcn.0040c010
add esp, 8
lea eax, [esi - 0x10]
jmp 0x4065dc
Function at 0x409830
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
add esp, 0x18
ret

Function at 0x409ae0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x46b548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
movzx ebx, word [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push 0
push 0
push ebp
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, ecx
mov dword [esp + 0x1c], 0
jge 0x409b55
push edi
lea ecx, [esp + 0x30]
call fcn.00401960
mov esi, dword [esp + 0x2c]
push edi
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test esi, esi
jne 0x409b67
xor eax, eax
jmp 0x409b74
push esi
call fcn.00437a78
add esp, 4
test eax, eax
jl 0x409bcb
cmp eax, dword [esi - 8]
jg 0x409bcb
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
add esi, 0xfffffff0
push esi
call fcn.00401470
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409bb6
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401250
int3
Function at 0x409c40
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46b568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [esp + 0x24], 0
call ebp
mov esi, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0x100
or eax, ecx
jge 0x409cae
push pe_nt_image_headers32
mov ecx, esi
call fcn.00401960
mov eax, dword [esi]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
mov edx, dword [esp + 0x38]
push ecx
push pe_nt_image_headers32
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
mov eax, dword [esi]
setne byte [esp + 0x2c]
test eax, eax
je 0x409ce8
push eax
call fcn.00437a78
add esp, 4
test eax, eax
jl 0x409d36
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x409d36
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
push ebx
mov word [ecx + eax*2], 0
call ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401250
int3

Function at 0x409e80
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x46b5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x101
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x101
or eax, ecx
mov dword [esp + 0x18], edi
jge 0x409ee7
push 0x101
lea ecx, [esp + 0xc]
call fcn.00401960
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp esi, edi
jne 0x409efb
xor eax, eax
jmp 0x409f08
push esi
call fcn.00437a78
add esp, 4
cmp eax, edi
jl 0x409f5b
cmp eax, dword [esi - 8]
jg 0x409f5b
mov dword [esi - 0xc], eax
mov word [esi + eax*2], di
add esi, 0xfffffff0
push esi
call fcn.00401470
mov edi, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f48
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401250
int3
Function at 0x40a450
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46b650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jne 0x40a5a2
cmp ecx, 1
jge 0x40a488
push 0x80070057
call fcn.00401250
cmp word [eax + 2], 0x3a
jne 0x40a5a2
cmp ecx, 2
jge 0x40a4a2
push 0x80070057
call fcn.00401250
cmp word [eax + 4], 0x5c
jne 0x40a5a2
push edi
push 1
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.004053e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
call fcn.00409f70
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x40a4e2
push 0x80070057
call fcn.00401250
movzx ecx, word [edi]
push esi
sub ecx, 0x61
mov esi, 1
shl esi, cl
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test esi, eax
pop esi
jne 0x40a530
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a51d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [ebx]
lea ecx, [esp + 8]
push ecx
push eax
mov byte [esp + 0x1c], 1
call fcn.00409c40
add esp, 8
test al, al
lea ecx, [esp + 8]
jne 0x40a581
call fcn.004018d0
lea ecx, [esp + 0x1c]
call fcn.004018d0
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.004018d0
lea ecx, [esp + 0x1c]
call fcn.004018d0
pop edi
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40acf0
Capabilities:
Get comspec environment variable
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x46b568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], edi
jge 0x40ad4e
push 0x104
lea ecx, [esp + 0x10]
call fcn.00401960
mov esi, dword [esp + 0xc]
push 0x104
push esi
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, edi
mov ebx, eax
jne 0x40ad69
xor eax, eax
jmp 0x40ad76
push esi
call fcn.00437a78
add esp, 4
cmp eax, edi
jl 0x40adee
cmp eax, dword [esi - 8]
jg 0x40adee
cmp ebx, edi
mov dword [esi - 0xc], eax
mov word [esi + eax*2], di
jne 0x40ada6
push str.cmd.exe
call fcn.00437a78
add esp, 4
push eax
push str.cmd.exe
lea ecx, [esp + 0x14]
call fcn.00402040
mov esi, dword [esp + 0xc]
add esi, 0xfffffff0
push esi
call fcn.00401470
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40adda
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401250
int3
Function at 0x40be80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b8b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
xor esi, esi
mov dword [esp + 4], esi
push edi
mov dword [esp + 8], esi
lea eax, [esp + 8]
push eax
mov dword [esp + 0x128], esi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, esi
jge 0x40bece
push 0x470d4c
push eax
call fcn.0040bb50
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
push ecx
push 0x11
push esi
mov byte [esp + 0x130], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, esi
jge 0x40bef7
push str.SHGetSpecialFolderLocation_CSIDL_DRIVES_
push eax
call fcn.0040bb50
xor eax, eax
mov ecx, 0x42
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push 0x8000
push ecx
mov dword [esp + 0x1c], 2
mov edx, dword [eax]
push eax
call dword [edx + 0x2c]
cmp eax, esi
jge 0x40bf34
push str.GetDisplayNameOf_My_Computer_
push eax
call fcn.0040bb50
mov eax, dword [esp + 0xc]
mov edi, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.0042cbe0
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, esi
je 0x40bf59
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 8]
cmp eax, esi
mov dword [esp + 0x124], 0xffffffff
je 0x40bf72
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x11c]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bf90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46b8c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [esp], 0
lea eax, [esp]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jge 0x40bfce
push 0x470d4c
push eax
call fcn.0040bb50
mov ecx, dword [esp + 0x14]
push ecx
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x40bfec
push str.SHGetSpecialFolderLocation_CSIDL_DRIVES_
push eax
call fcn.0040bb50
mov eax, dword [esp]
test eax, eax
mov dword [esp + 0xc], 0xffffffff
je 0x40c001
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40c010
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46b900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call fcn.00465db5
mov ecx, dword [eax + 4]
call fcn.0044aea4
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push 1
push 0
push 0
push ebp
push 0
push ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x1f
jne 0x40c17a
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x28], 1
jge 0x40c0a4
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401960
mov esi, dword [esp + 0x14]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test esi, esi
jne 0x40c0b8
xor eax, eax
jmp 0x40c0c9
push esi
call fcn.00437a78
add esp, 4
test eax, eax
jl 0x40c1ea
cmp eax, dword [esi - 8]
jg 0x40c1ea
mov dword [esi - 0xc], eax
push str.shell32.dll_OpenAs_RunDLL
lea ecx, [esp + 0x1c]
mov word [esi + eax*2], 0
call fcn.004027f0
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x34], 2
call fcn.00405b20
mov eax, dword [eax]
add esp, 0xc
push 1
push esi
push eax
push str.RUNDLL32.EXE
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c15b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c17a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, 0x20
ja 0x40c1c2
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.0042c9f0
mov ecx, dword [eax]
push ecx
push str.ShellExecute_failed:__1_s_
mov byte [esp + 0x38], 3
call fcn.0040baf0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c1c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.00465db5
mov ecx, dword [eax + 4]
call fcn.0044aeb9
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0x80070057
call fcn.00401250
int3
Function at 0x413ae0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46c218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x3c]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [ebx], esi
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], 1
xor ebp, ebp
jmp 0x413b30
xor esi, esi
jmp 0x413b30
mov eax, dword [esp + 0x10]
test dword [esp + 0x3c], eax
je 0x413c44
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
lea eax, [ebp + 0x41]
push eax
lea ecx, [esp + 0x44]
push 0x471bb0
push ecx
mov dword [esp + 0x3c], esi
call fcn.004022f0
mov esi, dword [esp + 0x4c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x413c22
cmp eax, 1
je 0x413c22
cmp eax, 4
jne 0x413ba9
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x413c3a
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0x14
call fcn.0041b7c0
test eax, eax
mov dword [esp + 0x30], 0xffffffff
jge 0x413bf4
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x413c3a
mov ecx, dword [edi]
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 4]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [esp + 0x24]
adc edx, ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
add eax, edx
mov edx, dword [ebx + 4]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
adc edx, eax
mov dword [ebx + 4], edx
jmp 0x413c2a
mov dword [esp + 0x30], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x3c]
inc ebp
shl ecx, 1
cmp ebp, 0x20
mov dword [esp + 0x3c], ecx
jl 0x413b26
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc