joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040d32
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], edi
mov edx, 0x104
mov dword [ebp - 0x218], edi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x208
push 0x10008408
call fcn.10015ac7
lea eax, [ebp - 0x210]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10040de3
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push 0x10008454
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10040de3
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 4

Function at 0x10040df8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], edi
mov edx, 0x104
mov dword [ebp - 0x218], edi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x208
push 0x10008408
call fcn.10015ac7
lea eax, [ebp - 0x210]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10040ea9
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1000846c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10040ea9
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 4
Function at 0x10040ebe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], edi
mov edx, 0x104
lea ecx, [ebp - 0x20c]
push 0x10008488
call fcn.10015ac7
lea eax, [ebp - 0x210]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10040f80
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], edi
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x218], 4
push eax
push edi
push 0x100084c4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10040f80
mov edi, dword [ebp - 0x214]
shr edi, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10083b20
mov esp, ebp
pop ebp
ret

Function at 0x10040f92
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], edi
mov edx, 0x104
mov dword [ebp - 0x218], edi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x208
push 0x100084e0
call fcn.10015ac7
lea eax, [ebp - 0x210]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041043
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push 0x10008528
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10041043
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 4
Function at 0x10041058
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], edi
mov edx, 0x104
mov dword [ebp - 0x218], edi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x208
push 0x100084e0
call fcn.10015ac7
lea eax, [ebp - 0x210]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041109
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1000853c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10041109
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 4

Function at 0x1004111e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x48]
push 0x40
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x144], ebx
mov edi, 0xffff
call sub.msvcrt.dll_memset
push pe_nt_image_headers32
lea eax, [ebp - 0x140]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004125c
push ebx
lea eax, [ebp - 0x144]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10041255
mov eax, 0x5a4d
cmp word [ebp - 0x48], ax
jne 0x10041255
push ebx
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10041255
push ebx
lea eax, [ebp - 0x144]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10041255
movzx eax, word [ebp - 0x13c]
mov ecx, 0x1f0
cmp eax, ecx
ja 0x1004122a
je 0x10041226
sub eax, 0x14c
je 0x10041222
sub eax, 0x16
je 0x1004121d
sub eax, 4
je 0x1004121d
sub eax, 0x1e
je 0x10041219
sub eax, 0x40
jne 0x10041255
push 5
jmp 0x10041254
push 2
jmp 0x10041254
xor edi, edi
inc edi
jmp 0x10041255
mov edi, ebx
jmp 0x10041255
push 3
jmp 0x10041254
cmp eax, 0x200
je 0x10041252
cmp eax, 0x284
je 0x1004124e
cmp eax, 0x8664
je 0x1004124a
cmp eax, 0xaa64
jne 0x10041255
push 0xc
jmp 0x10041254
push 9
jmp 0x10041254
push 7
jmp 0x10041254
push 6
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret
Function at 0x1004126f
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, edx
push 0x208
push eax
mov edi, eax
mov ebx, ecx
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
je 0x10041424
xor eax, eax
cmp word [ebx], ax
je 0x10041424
test esi, esi
je 0x10041424
cmp word [esi], ax
je 0x10041424
push esi
mov esi, 0x104
lea ecx, [ebp - 0x210]
mov edx, esi
call fcn.10015ac7
test eax, eax
js 0x10041420
push 0x10008560
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.1001a5bc
test eax, eax
js 0x10041420
lea edx, [ebp - 0x210]
mov ecx, ebx
call fcn.10080125
mov esi, eax
mov dword [ebp - 0x264], esi
test esi, esi
je 0x10041420
push 0x250
lea eax, [ebp - 0x258]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x10041410
mov esi, dword [ebp - 0x260]
xor eax, eax
inc eax
inc edi
test eax, eax
je 0x10041403
push 0xffffffffffffffff
push 0x100051e4
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x100413ec
push 0xffffffffffffffff
push 0x10008568
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x100413ec
lea edx, [ebp - 0x22c]
mov ecx, ebx
call fcn.10080125
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x100413ea
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x25c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100413ec
xor edi, edi
test edi, edi
je 0x10041403
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x10041356
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x264]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x1004142e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret
Function at 0x10047de7
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xa
mov esi, ecx
mov dword [ebp - 0x44], eax
xor eax, eax
lea edi, [ebp - 0x34]
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], eax
mov ecx, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x38]
push eax
push 0x200000
push 0x180
call fcn.100483a6
mov esi, eax
test esi, esi
jns 0x10047e47
push esi
push 0x83
mov ecx, 0x10009300
call fcn.1003a254
jmp 0x10047ee6
push 4
push 0x28
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x10047e70
mov esi, eax
or esi, 0x10000000
push esi
push 0x8e
jmp 0x10047e38
cmp dword [ebp - 0x40], 0
jge 0x10047e87
mov esi, dword [ebp - 0x40]
or esi, 0x10000000
push esi
push 0x8f
jmp 0x10047e38
mov ebx, dword [ebp - 0x14]
lea edi, [ebp - 0x34]
push 0xa
pop ecx
xor eax, eax
push 4
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], 0x80
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x10047ec7
mov esi, eax
or esi, 0x10000000
push esi
push 0xa0
jmp 0x10047e38
cmp dword [ebp - 0x40], 0
jge 0x10047ee1
mov esi, dword [ebp - 0x40]
or esi, 0x10000000
push esi
push 0xa1
jmp 0x10047e38
mov eax, dword [ebp - 0x44]
mov dword [eax], ebx
cmp dword [ebp - 0x38], 0
je 0x10047ef5
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 4
Function at 0x10048512
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], edx
and dword [ebp - 0x10], esi
mov ebx, 0x10c
and dword [ebp - 0xc], esi
push edi
mov dword [ebp - 4], ecx
xor edi, edi
test edi, edi
je 0x10048546
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add ebx, ebx
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10048610
push 9
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, 0x80000005
je 0x10048583
test eax, eax
js 0x100485c5
cmp dword [ebp - 0x10], esi
jl 0x100485b4
test eax, eax
js 0x10048532
mov eax, dword [edi]
add eax, 2
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100485df
mov eax, 0x8007000e
push eax
mov esi, eax
push 0x2ea
jmp 0x100485d3
mov esi, dword [ebp - 0x10]
or esi, 0x10000000
push esi
push 0x2df
jmp 0x100485d3
mov esi, eax
or esi, 0x10000000
push esi
push 0x2de
mov ecx, 0x100093f0
call fcn.1003a254
jmp 0x100485fe
push dword [ebp - 4]
push 0
push ebx
call sub.msvcrt.dll_memset
push dword [edi]
lea eax, [edi + 4]
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0x18
mov dword [eax], ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10048627
mov eax, 0x8007000e
mov ecx, 0x100093f0
push eax
push 0x2d1
mov esi, eax
call fcn.1003a254
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10048aff
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
mov dword [ebp - 0x25c], edx
lea eax, [ebp - 0x258]
mov dword [ebp - 0x260], ecx
push ebx
push eax
xor esi, esi
or edi, 0xffffffff
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x260]
add esp, 0xc
test eax, eax
je 0x10048c2d
cmp dword [ebp - 0x25c], ebx
je 0x10048c2d
mov edx, 0x10008560
mov ecx, eax
call fcn.10080125
mov ebx, eax
test ebx, ebx
jne 0x10048b85
mov esi, 0x8007000e
mov ecx, 0x100094d4
push esi
push 0x428
call fcn.1003a254
jmp 0x10048c62
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10048bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x10048bb0
movzx eax, ax
or eax, edi
test eax, eax
jns 0x10048bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10048bca
movzx esi, si
or esi, edi
jmp 0x10048bca
mov esi, 0x80004005
push esi
push 0x42d
mov ecx, 0x100094d4
call fcn.1003a254
jmp 0x10048c4e
lea eax, [ebp - 0x22c]
push 0x100051e4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10048c0c
lea eax, [ebp - 0x22c]
push 0x10008568
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10048c29
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10048bdc
inc eax
mov ecx, dword [ebp - 0x25c]
mov dword [ecx], eax
jmp 0x10048c42
xor eax, eax
jmp 0x10048c1f
mov esi, 0x80070057
mov ecx, 0x100094d4
push esi
push 0x420
call fcn.1003a254
cmp edi, 0xffffffff
je 0x10048c4e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x10048c62
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret
Function at 0x10048eca
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, ecx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 8], eax
push edi
mov esi, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov edi, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10048f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x10048f10
movzx eax, ax
or eax, edi
test eax, eax
jns 0x10048f25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10048f2a
movzx esi, si
or esi, edi
jmp 0x10048f2a
mov esi, 0x80004005
push esi
push 0x526
mov ecx, 0x1000955c
call fcn.1003a254
jmp 0x10048fcd
cmp dword [ebp - 0x10], esi
je 0x10048f51
mov esi, 0x8007007a
push esi
push 0x531
jmp 0x10048f30
push ebx
push dword [ebp - 0x14]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10048f81
mov esi, 0x8007000e
mov ecx, 0x1000955c
push esi
push 0x535
call fcn.1003a254
jmp 0x10048fcc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10048fb1
push 0
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
lea eax, [edi + ebx]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10048fd7
add edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
cmp edi, ecx
jb 0x10048f8d
mov eax, dword [ebp - 0xc]
mov dword [eax], ebx
xor ebx, ebx
test ebx, ebx
je 0x10048fcc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x10048fed
movzx eax, ax
or eax, edi
test eax, eax
jns 0x10049002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10049007
movzx esi, si
or esi, edi
jmp 0x10049007
mov esi, 0x80004005
push esi
push 0x547
mov ecx, 0x1000955c
call fcn.1003a254
jmp 0x10048fb8

Function at 0x10049019
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
mov esi, ecx
lea edi, [ebp - 0x30]
pop ecx
xor eax, eax
xor ebx, ebx
push 4
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], ebx
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
push eax
push esi
mov dword [ebp - 0x10], edx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x1004906c
mov ebx, eax
or ebx, 0x10000000
push ebx
push 0x579
jmp 0x10049080
cmp dword [ebp - 0x38], ebx
jge 0x1004908a
mov ebx, dword [ebp - 0x38]
or ebx, 0x10000000
push ebx
push 0x57a
mov ecx, 0x1000958c
call fcn.1003a254
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret
Function at 0x1004b661
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x14
pop ebx
push 2
xor eax, eax
mov dword [ebp - 0x10], 0x11
pop esi
push esi
lea edx, [ebp - 0x10]
mov byte [ebp - 0xc], al
xor ecx, ecx
mov dword [ebp - 8], 0x12
mov edi, eax
mov byte [ebp - 4], al
call fcn.10039af9
test eax, eax
jns 0x1004b6ae
push eax
push 0x3d9
mov ecx, 0x10009ce8
call fcn.1003a254
jmp 0x1004b812
mov eax, ebx
xor ebx, ebx
mul esi
mov esi, eax
cmp edx, ebx
ja 0x1004b7e0
jb 0x1004b6c9
cmp esi, 0xffffffff
ja 0x1004b7e0
test edi, edi
je 0x1004b6dc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1004b7d4
push edi
shr esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
test ebx, ebx
je 0x1004b792
push 2
cmp ebx, esi
pop esi
ja 0x1004b6ae
xor eax, eax
xor ebx, ebx
mov esi, edi
cmp ax, word [edi]
je 0x1004b7f4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1004b725
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x1004b75c
cmp word [esi + 2], 0x3a
jne 0x1004b75c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1004b75c
mov ecx, esi
call fcn.1004b05b
mov ecx, esi
call fcn.1004b174
jmp 0x1004b76f
push esi
push 0x10009d18
push 0x40000
call fcn.10039c80
add esp, 0xc
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1004b774
sub ecx, edx
xor eax, eax
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp ax, word [esi]
jne 0x1004b720
jmp 0x1004b7f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x80070000
test eax, eax
jle 0x1004b7a8
movzx eax, ax
or eax, esi
test eax, eax
jns 0x1004b7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1004b7c0
movzx eax, ax
or eax, esi
jmp 0x1004b7c0
mov eax, 0x80004005
push eax
push 0x3ed
mov ecx, 0x10009ce8
call fcn.1003a254
xor ebx, ebx
jmp 0x1004b7f4
push 0x8007000e
push 0x3e8
jmp 0x1004b7ea
push 0x80070216
push 0x3e3
mov ecx, 0x10009ce8
call fcn.1003a254
push 2
pop edx
lea ecx, [ebp - 0x10]
call fcn.10039c22
test edi, edi
je 0x1004b812
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004d746
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x18], 0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], edx
push esi
mov esi, dword [ebp + 8]
inc ebx
mov dword [ebp - 0x1c], ecx
push edi
test esi, esi
je 0x1004d76e
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
mov eax, edi
mov ecx, dword [ebp + 0x18]
or eax, ecx
mov dword [ebp - 0xc], ecx
je 0x1004d8aa
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
test esi, esi
je 0x1004d7ab
lea ecx, [ebp - 0x14]
call fcn.1003f36f
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov edx, dword [ebp + 0x1c]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
mov eax, edi
or eax, ecx
je 0x1004d88e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x1004d7c6
cmp eax, edi
jbe 0x1004d7c6
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 8]
mov eax, edx
or eax, ecx
je 0x1004d80d
push 0
push 0xa00000
push ecx
push edx
call fcn.10084c60
test eax, eax
jne 0x1004d807
test edx, edx
jne 0x1004d807
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push edx
mov edx, 0x948e
call fcn.1002894a
cmp eax, 0xffffffff
jne 0x1004d807
push 0x4d3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
test ebx, ebx
je 0x1004d875
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
and dword [ebp - 0x30], 0
and dword [ebp - 0x24], 0
push 0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x20]
call fcn.10028fbd
test eax, eax
je 0x1004d875
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add edx, eax
mov ecx, dword [ebp - 0xc]
adc dword [ebp - 8], 0
sub edi, eax
mov dword [ebp - 4], edx
sbb ecx, 0
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x1004d886
push 0
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x1004d880
push 7
pop ecx
int 0x29
jmp 0x1004d880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
test ebx, ebx
jne 0x1004d7ab
test esi, esi
je 0x1004d89c
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.1003f27c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004d8aa
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c