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

Disassembly:
call fcn.00478180
test eax, eax
je 0x40e91f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x40e9a0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40e9a0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.005c8d38
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e9a0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x40e9a0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.00424230
add esp, 0x10
test eax, eax
je 0x40e9a0
push esi
call fcn.00441ab0
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x40ea00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor ecx, ecx
xor edi, edi
xor eax, eax
mov esi, 0x200
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x40ea2a
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 1
jne 0x40ea36
mov esi, 0x400
jmp 0x40eaaa
cmp eax, 2
jne 0x40eaaa
xor eax, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x2c], eax
push 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push 0x70000
push ebp
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, dword [0x6646f8]
je 0x40eb14
test eax, eax
je 0x40ea9e
push str.CDiskInfoHelper::ReadFileBySectorSize_2
push str.Asset
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x10
mov esi, dword [esp + 0x2c]
cmp esi, 0x200
jb 0x40eb0a
push esi
call fcn.005c8d38
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x40eb00
mov edx, dword [ebx]
push edx
call fcn.005c8d61
mov eax, dword [esp + 0x14]
add esp, 4
inc eax
mov dword [ebx], edi
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x40ea24
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test eax, eax
je 0x40eb0a
push str.CDiskInfoHelper::ReadFileBySectorSize_1
push str.Asset
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40ec30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x28
xor edx, edx
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34]
cmp ebx, edx
je 0x40edde
cmp dword [esp + 0x38], 0x200
jne 0x40edde
push esi
push edi
mov ecx, 7
lea edi, [esp + 0x16]
mov word [esp + 0x14], dx
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x44], edx
rep stosd dword es:[edi], eax
mov eax, dword [0x62e65c]
mov ecx, dword [0x62e660]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
add eax, 0x41
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], ax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], edx
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40eda4
lea edx, [esp + 0x14]
push edx
call fcn.00441ab0
lea esi, [ebx + 0x36]
push 5
push str.FAT16
push esi
mov edi, eax
call fcn.00448f70
add esp, 0x10
test eax, eax
jne 0x40ed04
cmp edi, 5
jne 0x40ed3d
push edi
lea eax, [esp + 0x18]
push 0x62e648
push eax
call fcn.005998f3
add esp, 0xc
test eax, eax
je 0x40ed59
push 5
push str.FAT12
push esi
call fcn.00448f70
add esp, 0xc
test eax, eax
jne 0x40ed65
cmp edi, 3
jne 0x40ed65
push edi
lea edx, [esp + 0x18]
push 0x62e638
push edx
call fcn.005998f3
add esp, 0xc
test eax, eax
jne 0x40ed65
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x28
ret
cmp edi, 3
jne 0x40ed04
push edi
lea ecx, [esp + 0x18]
push 0x62e638
push ecx
call fcn.005998f3
add esp, 0xc
test eax, eax
jne 0x40ed04
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x28
ret
push 5
lea eax, [ebx + 0x52]
push str.FAT32
push eax
call fcn.00448f70
add esp, 0xc
test eax, eax
jne 0x40eda4
cmp edi, 5
jne 0x40eda4
push edi
lea ecx, [esp + 0x18]
push 0x62e624
push ecx
call fcn.005998f3
add esp, 0xc
test eax, eax
jne 0x40eda4
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x28
ret
lea esi, [ebx + 3]
push 5
push str.EXFAT
push esi
call fcn.00448f70
add esp, 0xc
test eax, eax
jne 0x40edc7
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x28
ret
push 4
push str.NTFS
push esi
call fcn.00448f70
add esp, 0xc
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x40faf0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d8190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test ebp, ebp
je 0x40fc3d
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40fc3d
push ebp
lea ecx, [esp + 0x10]
call fcn.005c86d5
push 3
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.005c8b96
push 2
push 0x62e9a8
push ebp
mov esi, eax
call fcn.00442254
add esp, 0xc
test eax, eax
jne 0x40fb6b
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.005c8b96
mov esi, eax
cmp esi, 0xffffffff
je 0x40fbf6
mov ebp, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.005c5ab9
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x18], 1
push ecx
call edi
cmp eax, 0xffffffff
jne 0x40fbd0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40fc1e
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov edx, ebp
or edx, 0x10
cmp eax, edx
je 0x40fbd4
mov eax, dword [esp + 0x20]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40fbd4
test al, 0x10
je 0x40fc1e
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.005c8b96
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.005c8667
cmp esi, 0xffffffff
jne 0x40fb7e
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.005c8667
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.005c8667
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.005c8667
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x410250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d826c
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
mov esi, dword [esp + 0x168]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x410434
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410434
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410434
test al, 0x10
je 0x410434
push ebp
push esi
lea ecx, [esp + 0x18]
call fcn.005c86d5
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], ebx
call fcn.005c60ad
mov ecx, 0x4e
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push 0x62e154
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005c88fc
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.005c8667
cmp ebp, 0xffffffff
je 0x410418
mov esi, dword [esp + 0x178]
mov edi, dword [esp + 0x174]
mov bl, 2
lea eax, [esp + 0x4c]
push 0x62e448
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4103eb
lea ecx, [esp + 0x4c]
push 0x62e444
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4103eb
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
call fcn.005c86d5
mov al, byte [esp + 0x20]
mov byte [esp + 0x168], 1
test al, 0x10
je 0x4103d0
lea eax, [esp + 0x14]
push 0x6283c8
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.005c88fc
lea edx, [esp + 0x10]
mov byte [esp + 0x168], bl
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005c8896
mov eax, dword [eax]
push esi
push edi
push eax
mov byte [esp + 0x174], 3
call fcn.00410250
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.005c8667
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 1
call fcn.005c8667
jmp 0x4103d2
inc dword [edi]
test esi, esi
je 0x4103da
cmp esi, dword [edi]
jbe 0x410400
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005c8667
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x410411
jmp 0x41031f
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005c8667
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0xffffffff
call fcn.005c8667
mov eax, 1
pop ebp
jmp 0x410436
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x4110a0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x2818
call fcn.00442090
mov eax, dword [esp + 0x2820]
mov ecx, dword [esp + 0x2824]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2828]
push edi
xor ebx, ebx
xor edi, edi
mov dword [eax], ebx
cmp esi, ebx
mov dword [esp + 0x1c], edi
mov dword [ecx], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
je 0x4111f1
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push 0x2800
push eax
push 2
push esi
mov dword [esp + 0x34], ebx
call ebp
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41113f
call ebx
cmp eax, 0x7a
jne 0x41121e
mov edi, dword [esp + 0x20]
push edi
call fcn.005c8d38
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x41120b
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push 2
push esi
call ebp
test eax, eax
je 0x41121e
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push eax
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x411231
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jbe 0x411256
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0x2c]
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
jne 0x4111c1
mov eax, dword [esp + 0x28]
inc esi
add edi, 8
cmp esi, eax
jb 0x4111a2
jmp 0x411256
mov eax, dword [esp + esi*8 + 0x30]
mov dword [esp + 0x1c], 1
test al, 8
je 0x4111de
mov ecx, dword [esp + 0x2830]
mov dword [ecx], 1
test al, 4
je 0x411256
mov edx, dword [esp + 0x2834]
mov dword [edx], 1
jmp 0x411256
cmp dword [0x6646f8], ebx
je 0x4112a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___GetCurrentToken_Failed____08x_
jmp 0x411242
mov eax, dword [0x6646f8]
test eax, eax
je 0x411256
call ebx
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___new_UCHAR_Failed____08x_
jmp 0x411242
mov eax, dword [0x6646f8]
test eax, eax
je 0x411256
call ebx
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___GetTokenInformation_Failed____08x_
jmp 0x411242
mov eax, dword [0x6646f8]
test eax, eax
je 0x411256
call ebx
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___AllocateAndInitializeSid_Failed____08x_
push str.Funclib
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x14
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x41126b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41127c
push eax
call fcn.005c8d61
add esp, 4
mov eax, dword [0x6646f8]
mov edi, dword [esp + 0x1c]
cmp eax, ebx
je 0x4112a3
push edi
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin____d_
push str.Funclib
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2818
ret
Function at 0x412640
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d83cb
push eax
mov edx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x414
push ebp
push esi
xor esi, esi
cmp edx, esi
je 0x412768
mov ebp, dword [esp + 0x430]
cmp ebp, esi
jne 0x41268c
cmp dword [esp + 0x434], esi
jne 0x41268c
cmp dword [esp + 0x438], esi
je 0x412768
push ebx
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
call fcn.0045a830
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [esp + 0x42c], esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4126eb
test al, 0x10
je 0x4126eb
mov ecx, dword [esp + 0x440]
mov edx, dword [esp + 0x43c]
mov eax, dword [esp + 0x10]
push ecx
push edx
push ebp
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x412739
mov edx, dword [esp + 0x10]
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x207
push ecx
push edx
call fcn.0047bcc0
add esp, 0xc
test eax, eax
je 0x412739
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004430a0
add esp, 8
test eax, eax
je 0x412739
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.0045b380
jmp 0x4126b9
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.0045b0a0
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x414]
mov dword fs:[0], ecx
add esp, 0x420
ret
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x420
ret
Function at 0x4153a0
Capabilities:
Copy file

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x415420
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4153c1
push 0
push edi
call fcn.00483be0
add esp, 8
test eax, eax
jne 0x4153d8
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4153f2
push 0
push edi
call fcn.00483be0
add esp, 8
test eax, eax
je 0x4153f2
push esi
push edi
call fcn.00415260
add esp, 8
test eax, eax
jne 0x415420
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
ret
mov edi, dword [esp + 0x10]
test edi, edi
je 0x415420
push 0
push edi
call fcn.00483be0
add esp, 8
test eax, eax
je 0x415420
push esi
push edi
call fcn.00415260
add esp, 8
test eax, eax
jne 0x415420
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
ret
Function at 0x4190a0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
xor ebp, ebp
xor ebx, ebx
cmp edi, esi
je 0x419181
xor eax, eax
push 2
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push 0xc
push ecx
mov dword [esp + 0x24], eax
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 8
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x419188
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x41918d
test eax, eax
jbe 0x41918d
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x419140
mov eax, dword [esp + 0x20]
test byte [eax + 1], 0x10
jne 0x419147
add eax, 8
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41914e
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4190ff
jmp 0x41918d
mov ebx, 3
jmp 0x41918d
mov ebx, 4
jmp 0x41918d
mov eax, dword [esp + 0x28]
mov ebp, 1
cmp eax, 0x10000000
jne 0x41918d
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x419178
mov ecx, dword [eax + 4]
and ecx, 0x1f0000
cmp ecx, 0x1f0000
je 0x41918d
mov ebx, 5
xor ebp, ebp
jmp 0x41918d
mov ebx, 1
jmp 0x41918d
mov ebx, 2
mov eax, dword [0x6646f8]
test eax, eax
je 0x4191bd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push esi
push edx
push eax
push edi
push ebx
push ebp
push str.CKSecurity::IsInAcl_____Inner___ret:__d___myerror:__d___Acl:__08x___Sid:__08x___Mask:__08x___Index:__d_
push str.Security
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x28
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x419300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d88a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x60], 0x5edb7c
mov dword [esi + 0x64], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x80]
mov dword [esp + 0x18], edi
call fcn.00461db0
lea ecx, [esi + 0x90]
mov byte [esp + 0x18], 1
call fcn.00461db0
lea ebx, [esi + 0xa0]
push edi
mov ecx, ebx
mov byte [esp + 0x1c], 2
call fcn.004405ae
mov dword [ebx], 0x5edb64
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [esp + 0x18], 3
mov dword [esi], 0x5edb60
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.004194c0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419740
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [0x665290]
test eax, eax
jne 0x41975f
push 1
push 0x632f44
push 0xffffffffffffffff
call fcn.0048ecf0
add esp, 0xc
mov dword [0x665290], eax
ret

Function at 0x41a710
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x30c
push ebp
push esi
mov esi, dword [esp + 0x318]
push edi
test esi, esi
mov ebp, ecx
je 0x41a910
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41a910
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004423e0
mov al, byte [esp + 0x18]
add esp, 0xc
cmp al, 0x5c
jne 0x41a880
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xc
lea ecx, [esp + 0x10]
push 0x6333fc
push ecx
stosb byte es:[edi], al
call fcn.00448f70
add esp, 0xc
test eax, eax
jne 0x41a82e
mov edi, 0x6333ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11d]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x120], 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x41a910
cmp eax, 0x104
jb 0x41a879
pop edi
pop esi
pop ebp
add esp, 0x30c
ret 8
push 4
lea eax, [esp + 0x10]
push 0x62e82c
push eax
call fcn.00448f70
add esp, 0xc
test eax, eax
jne 0x41a880
lea ecx, [esp + 0x10]
push 0x103
lea edx, [esp + 0x114]
push ecx
push edx
call fcn.004423e0
lea eax, [esp + 0x11c]
push 0x103
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004423e0
add esp, 0x18
jmp 0x41a880
mov esi, dword [esp + 0x31c]
lea edx, [esp + 0xc]
push 0x104
push edx
mov ecx, ebp
call fcn.0041b0c0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 4]
test eax, eax
je 0x41a8f9
lea eax, [esp + 0xc]
push 0x7e
push eax
call fcn.00442520
add esp, 8
test eax, eax
je 0x41a8f9
lea ecx, [esp + 0x214]
push 0x104
lea edx, [esp + 0x10]
push ecx
push edx
call dword [ebp + 4]
test eax, eax
jbe 0x41a8f9
cmp eax, 0x104
jae 0x41a8f9
mov eax, dword [esp + 0x320]
lea ecx, [esp + 0x214]
dec eax
push eax
push ecx
jmp 0x41a907
mov edx, dword [esp + 0x320]
lea eax, [esp + 0xc]
dec edx
push edx
push eax
push esi
call fcn.004423e0
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x30c
ret 8
Function at 0x41a920
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d89a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00461e80
mov ebp, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.00461e80
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x41a996
cmp eax, ecx
jne 0x41a996
mov edx, dword [esi + 0x78]
test edx, edx
je 0x41a996
cmp edi, edx
jb 0x41a996
add edx, 0x493e0
cmp edx, edi
jae 0x41a99e
mov dword [esp + 0x38], 1
mov edx, dword [0x6646f8]
test edx, edx
je 0x41a9d1
mov edx, dword [esi + 0x7c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esi + 0x78]
push edi
push edx
push eax
push ecx
push str.CProcMgr::EnumVolumesW___08x______08x____d______d____enum_:__d___loop_:__d_
push str.EnumVolumes
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x28
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x41aa24
mov ecx, dword [esi + 0x7c]
lea eax, [esi + 0xa0]
inc ecx
push 1
mov dword [esi + 0x7c], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00440795
lea ecx, [esi + 0x80]
mov dword [esp + 0x30], 0
push ecx
mov ecx, ebx
call fcn.004620d0
add esi, 0x90
mov ecx, ebp
push esi
call fcn.004620d0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x41aa96
push ebp
push ebx
mov ecx, esi
mov dword [esi + 0x7c], 0
call fcn.0041aae0
lea edx, [esi + 0xa0]
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.00440795
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x78], edi
lea edi, [esi + 0x80]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x38], 1
mov dword [esi + 0x74], eax
call fcn.00461e80
push ebx
mov ecx, edi
call fcn.004620d0
add esi, 0x90
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00461e80
push ebp
mov ecx, esi
call fcn.004620d0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004407d1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8