joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f212
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48f24a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048d29c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d274
jmp 0x48f256
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x490904
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x490946
call fcn.004968b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x490946
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49093d
xor eax, eax
jmp 0x49094e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00490954
pop edi
pop esi
pop ebx
ret 4

Function at 0x496de1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x496e0f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x496e2d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00496d47
jmp 0x496e2d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496e2d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00496d47
test edi, edi
mov eax, edi
jne 0x496e17
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404500
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov dword [ebp - 0x84], 0x401590
mov dword [ebp - 0x80], 0x401598
mov dword [ebp - 0x7c], 0x4015a0
mov dword [ebp - 0x78], 0x4015a8
mov dword [ebp - 0x74], 0x4015b0
mov dword [ebp - 0x70], 0x4015b8
mov dword [ebp - 0x6c], 0x4015c0
mov dword [ebp - 0x68], 0x4015c8
mov dword [ebp - 0x64], 0x4015d0
mov dword [ebp - 0x60], 0x4015d8
mov dword [ebp - 0x5c], 0x4015e0
mov dword [ebp - 0x58], 0x4015e8
mov dword [ebp - 0x54], 0x4015f0
mov dword [ebp - 0x50], 0x4015f8
mov dword [ebp - 0x4c], 0x401600
mov dword [ebp - 0x48], 0x401608
mov dword [ebp - 0x44], 0x401610
mov dword [ebp - 0x40], 0x401618
mov dword [ebp - 0x3c], 0x401620
mov dword [ebp - 0x38], 0x401628
mov dword [ebp - 0x34], 0x401630
mov dword [ebp - 0x30], 0x401638
mov dword [ebp - 0x2c], 0x401640
mov dword [ebp - 0x28], 0x401648
mov dword [ebp - 0x24], 0x401650
mov dword [ebp - 0x20], 0x401658
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x78
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
jmp 0x4045e9
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1a
jge 0x404624
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x404622
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
mov dword [ebp + eax*4 - 0xec], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4045e0
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
push 0x10000
call fcn.00412ed0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404724
push 0x10000
call fcn.00412ed0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404718
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jbe 0x4046e5
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2f4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4046c5
lea eax, [ebp - 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x4046c5
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
jmp 0x4046e7
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
jmp 0x4046e7
jmp 0x404702
push 0x8000
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40467c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00412f00
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00412f00
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404a10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404acc
mov dword [ebp - 4], 0
jmp 0x404a5e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1f
jae 0x404ab4
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x4140b0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404ab2
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404ab0
push 9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404ab4
jmp 0x404a55
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x10], eax
jmp 0x404a42
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x404ae0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404b24
push 0xf0000008
push 0x18
push 0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404b24
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4141e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x10]
push eax
push 0x401754
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4141e0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0xe
push 0x401758
mov ecx, dword [0x4141e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x4141e0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x401768
mov ecx, dword [0x4141e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x4141e0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x401770
mov ecx, dword [0x4141e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4141e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x404e80
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov dword [ebp - 4], 0
jmp 0x404e9b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jge 0x404eb2
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [ecx]
mov byte [ebp + edx - 0x24], al
jmp 0x404e92
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x24]
and eax, 0xf8
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x24], al
mov eax, 1
imul ecx, eax, 0x1f
movzx edx, byte [ebp + ecx - 0x24]
and edx, 0x7f
mov eax, 1
imul ecx, eax, 0x1f
mov byte [ebp + ecx - 0x24], dl
mov edx, 1
imul eax, edx, 0x1f
movzx ecx, byte [ebp + eax - 0x24]
or ecx, 0x40
mov edx, 1
imul eax, edx, 0x1f
mov byte [ebp + eax - 0x24], cl
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.00407c10
add esp, 8
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.00408fc0
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.004092d0
add esp, 8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.00406e60
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004081f0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40a6b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0
mov eax, dword [ebp + 8]
push eax
push 0x4141fc
call fcn.00413040
add esp, 0xc
test eax, eax
jne 0x40a708
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x41422c
call fcn.00412fa0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a706
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409780
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412f00
add esp, 4
jmp 0x40a6d0
jmp 0x40a6b9
push 0x10000
call fcn.00412ed0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a89f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403bb8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a804
mov eax, dword [ebp - 0x26c]
and eax, 0x10
je 0x40a7dc
mov dword [ebp - 8], 0
jmp 0x40a77a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x22
jae 0x40a7a2
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x414130]
push eax
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a7a0
jmp 0x40a7dc
jmp 0x40a771
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403bc0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a6b0
add esp, 4
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a75d
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40a893
cmp dword [0x41425c], 0
je 0x40a893
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00412ed0
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x403bc4
call fcn.00404d30
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412f00
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.00412f00
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40a9a0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0x4000
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x13
push 0
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x40aa6c
mov edx, dword [ebp - 8]
push edx
call fcn.00412ed0
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40aa63
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x40aa57
mov dword [ebp - 4], 0
jmp 0x40aa0f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jae 0x40aa55
mov eax, dword [ebp - 4]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0xc]
and edx, 2
je 0x40aa3d
mov eax, dword [ebp - 4]
shl eax, 5
add eax, dword [ebp + 8]
push eax
call fcn.0040a9a0
add esp, 4
jmp 0x40aa53
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x14]
push eax
call fcn.0040a6b0
add esp, 4
jmp 0x40aa06
jmp 0x40a9e4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412f00
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call sub.MPR.dll_WNetCloseEnum
mov esp, ebp
pop ebp
ret

Function at 0x40aa70
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40aac1
cmp dword [ebp - 0xc], 0xea
jne 0x40ab8e
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 1
jmp 0x40aad9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
ja 0x40ab85
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x40aafa
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x80000000
jne 0x40ab77
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x40ab77
push 0x403bdc
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40ab77
push 0x403bec
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x403bf4
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xe4]
push eax
call fcn.0040a6b0
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov dword [ebp - 4], ecx
jmp 0x40aad0
mov edx, dword [ebp - 0x14]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0xc], 0xea
je 0x40aa8e
mov esp, ebp
pop ebp
ret
Function at 0x40aba0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0xe
call fcn.00412ed0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ac7d
push 0x403bf8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403c04
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 2
shl edx, 2
mov eax, dword [ebp - 4]
mov cx, word [ebp + 8]
mov word [eax + edx], cx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ac71
cmp dword [ebp - 0xc], 5
je 0x40ac71
cmp dword [ebp - 0xc], 4
je 0x40ac1e
mov eax, dword [ebp - 4]
push eax
call fcn.0040a6b0
add esp, 4
jmp 0x40ac71
mov dword [ebp - 0x10], 0x104
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
call fcn.00412ed0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ac71
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, 2
shl ecx, 2
add ecx, dword [ebp - 4]
push ecx
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x40ac65
mov edx, dword [ebp - 8]
push edx
call fcn.0040a6b0
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00412f00
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00412f00
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x401563
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5f4]
sub esp, 0x674
mov eax, dword [0x413170]
xor eax, ebp
mov dword [ebp + 0x5f0], eax
mov eax, dword [ebp + 0x600]
push esi
push edi
push 0x10
mov dword [ebp - 0x2c], eax
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00402f80
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00402f80
mov dword [ebp - 0x80], esi
mov esi, 0x104
push esi
lea eax, [ebp + 0x3e8]
push edi
push eax
call fcn.00402f80
push 0x208
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00402f80
add esp, 0x30
call fcn.004014bd
push esi
lea eax, [ebp + 0x3e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40169b
lea eax, [ebp + 0x3e8]
push 0x5c
push eax
call fcn.00402629
cmp eax, edi
pop ecx
pop ecx
je 0x401600
mov word [eax], di
push ebx
push str.Adobe_Updater.exe
lea eax, [ebp + 0x3e8]
push esi
push eax
call fcn.00402f06
mov edi, 0x40f220
push edi
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402e9a
lea eax, [ebp + 0x3e8]
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402f06
push edi
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402f06
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402e7e
xor ebx, ebx
inc ebx
add esp, 0x38
cmp dword [ebp + 0x5fc], ebx
mov edi, eax
jle 0x401694
push 0x40f21c
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402f06
mov eax, dword [ebp - 0x2c]
push dword [eax + ebx*4]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402f06
mov eax, dword [ebp - 0x2c]
push esi
push dword [eax + ebx*4]
call fcn.00402e7e
add esp, 0x20
inc ebx
cmp ebx, dword [ebp + 0x5fc]
lea edi, [edi + eax + 1]
jl 0x401659
cmp edi, esi
pop ebx
jae 0x4016d0
xor edi, edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x8000400
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4016d0
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
xor eax, eax
jmp 0x4016d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x5f0]
pop edi
xor ecx, ebp
pop esi
call fcn.00402b2e
add ebp, 0x5f4
leave
ret
Function at 0x4016ed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x413170]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push esi
mov esi, dword [ebp + 0x1a8]
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40172b
xor eax, eax
jmp 0x401837
push ebx
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
cmp esi, ebx
je 0x401833
cmp esi, edi
jb 0x40175e
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x401833
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x401833
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x4017ae
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x4017a2
movzx eax, ax
push eax
jmp 0x4017a4
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x40182a
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
cmp esi, ebx
jne 0x4017d1
cmp word [ebp - 0x6c], bx
je 0x4017d1
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401807
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esi + 1]
cmp edi, dword [ebp + 0x1b0]
jbe 0x4017f4
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x401807
push dword [ebp + 0x1b0]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40182a
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop esi
call fcn.00402b2e
add ebp, 0x1a0
leave
ret 0xc

Function at 0x401a45
Capabilities:
Get common file path

Disassembly:
push ebx
push dword [esp + 0xc]
xor ebx, ebx
push dword [esp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401a5d
mov bl, 1
mov al, bl
pop ebx
ret