joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov esi, eax
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x10]
push eax
push 0x54
lea edi, [esi + 7]
push edi
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10012f9e
and eax, 0xffff
or eax, 0x80070000
jmp 0x10012f9e
cmp dword [esp + 0xc], 0x54
je 0x10012f93
mov eax, 0x803c0005
jmp 0x10012f9e
mov eax, esi
call fcn.10013d50
test eax, eax
jge 0x10012ff8
cmp byte [esi + 4], 0
je 0x10012ff8
push 0x54
push 0
push edi
call fcn.1001cf30
xor eax, eax
add esp, 0xc
push esi
lea ecx, [eax + 0x54]
mov edx, edi
mov dword [edi], 0x303633
mov dword [esi + 0xb], 0x10000
mov dword [esi + 0x23], 0x154
mov dword [esi + 0x27], eax
mov dword [esi + 0x2b], 0x154
mov dword [esi + 0x2f], eax
call fcn.10014360
test eax, eax
jl 0x10012ff3
push 0
push 0x154
call fcn.100143d0
test eax, eax
jge 0x10012ff8
mov eax, 0x803c0001
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10013110
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [edi]
sub esp, 0x14
push ebx
push ebp
push esi
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001314f
call ebp
test eax, eax
jle 0x10013149
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10013203
mov edx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x28]
push eax
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x38], 0
call ebx
test eax, eax
jne 0x100131aa
call ebp
test eax, eax
jle 0x10013186
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10013203
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x30], eax
jae 0x100131bf
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1001319c
mov dword [ecx], eax
mov eax, 0x803c0002
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp dword [esp + 0x24], 0x10
je 0x10013188
mov eax, 0x803c0005
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
mov esi, eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x44], 0
call ebx
test eax, eax
jne 0x1001320c
call ebp
test eax, eax
jle 0x100131f1
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10013203
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10013201
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp dword [esp + 0x30], esi
je 0x100131f3
pop esi
pop ebp
mov eax, 0x803c0005
pop ebx
add esp, 0x14
ret 0x14
Function at 0x100135a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1002a7f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100331b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov edi, ecx
add edi, 0x10
xor eax, eax
mov esi, edi
lea ebx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.10001970
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x18]
push 0
test ebx, ebx
jne 0x1001360d
call fcn.1001ba90
add esp, 4
mov eax, 0x8007000e
jmp 0x1001373a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10013651
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001363b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x10013651
push ebx
call fcn.1001ba90
add esp, 4
mov eax, esi
jmp 0x1001373a
mov ecx, dword [ebp]
push 0
lea eax, [esp + 0x34]
push eax
push edi
push ebx
push ecx
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100136d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10013684
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10013641
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edx, dword [ebp]
push 0
push 0
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100136e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100136ba
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jge 0x100136e9
mov eax, dword [esp + 0x18]
push eax
call fcn.1001ba90
add esp, 4
mov eax, esi
jmp 0x1001373a
cmp dword [esp + 0x30], edi
je 0x1001368a
push ebx
mov esi, 0x803c0005
call fcn.1001ba90
add esp, 4
mov eax, esi
jmp 0x1001373a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebp
call fcn.10014360
mov esi, eax
test esi, esi
jge 0x1001370e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1001ba90
add esp, 4
mov eax, esi
jmp 0x1001373a
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x48]
push ebx
push edx
push eax
mov eax, ebp
call fcn.10013750
mov esi, eax
test esi, esi
jl 0x100136fd
mov edx, dword [esp + 0x18]
push edx
call fcn.1001ba90
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x18
Function at 0x10013810
Capabilities:
Clear file content
Read file on windows

Disassembly:
mov eax, dword [esi + 0x33]
sub esp, 0x28
or eax, dword [esi + 0x37]
push ebx
push ebp
push edi
jne 0x10013886
add dword [esi + 0x1b], 0x4000
mov ecx, dword [esi + 0x23]
mov edx, dword [esi + 0x27]
mov ebp, eax
adc dword [esi + 0x1f], ebp
add ecx, dword [esi + 0x1b]
push ebp
adc edx, dword [esi + 0x1f]
mov eax, ecx
push ebp
mov dword [esi + 0x2b], ecx
mov ecx, edx
push ecx
push eax
mov eax, dword [esi]
push eax
mov dword [esi + 0x2f], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10013870
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jle 0x100139a4
and eax, 0xffff
or eax, 0x80070000
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10013851
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov ecx, dword [esi + 0x2f]
mov eax, dword [esi + 0x2b]
mov edx, dword [esi]
push ebp
push ebp
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100138c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jle 0x100138bd
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebp
jl 0x100139a2
mov edx, dword [esi]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100139ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jle 0x100138fd
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebp
jl 0x100139a2
mov eax, dword [esi + 0x2b]
mov ecx, dword [esi + 0x2f]
lea edx, [esp + 0x14]
push edx
mov edx, eax
add edx, dword [esi + 0x33]
mov edi, ecx
adc edi, dword [esi + 0x37]
push edi
push edx
push ecx
mov ecx, dword [esp + 0x30]
push eax
push esi
call fcn.100135a0
mov edi, eax
cmp edi, ebp
jl 0x100139a2
mov eax, dword [esp + 0x20]
xor ecx, ecx
add eax, 0x10
add dword [esi + 0x1b], eax
adc dword [esi + 0x1f], ecx
add dword [esi + 0x2b], eax
adc dword [esi + 0x2f], ecx
add dword [esp + 0x18], eax
adc ebx, ecx
cmp ebx, ebp
ja 0x10013963
jb 0x10013892
cmp dword [esp + 0x18], 0x4000
jb 0x10013892
push ebp
push ebp
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10013990
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jle 0x1001398e
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebp
jl 0x100139a4
lea edx, [esi + 7]
push esi
mov ecx, 0x54
call fcn.10014360
cmp eax, ebp
jl 0x100139a4
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
cmp dword [esp + 0x10], 0x10
je 0x10013907
mov edi, 0x803c0005
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x10013d50
Capabilities:
Get file size

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
cmp dword [esi + 7], 0x303633
push edi
jne 0x10013e20
cmp dword [esi + 0xb], 0x10000
jne 0x10013e20
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
xor edi, edi
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10013e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10013da5
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jl 0x10013e25
mov ecx, dword [esi + 0x1b]
mov edx, dword [esi + 0x1f]
mov ebp, dword [esi + 0xf]
mov eax, edx
mov edi, ecx
shrd edi, eax, 4
shr eax, 4
xor ebx, ebx
cmp ebx, eax
ja 0x10013e13
jb 0x10013dc7
cmp ebp, edi
ja 0x10013e13
mov eax, dword [esi + 0x23]
mov edi, dword [esi + 0x2b]
mov ebx, dword [esi + 0x2f]
add eax, ecx
mov ecx, dword [esi + 0x27]
adc ecx, edx
cmp eax, edi
jne 0x10013e13
cmp ecx, ebx
jne 0x10013e13
mov eax, dword [esi + 0x33]
mov esi, dword [esi + 0x37]
add eax, edi
adc esi, ebx
cmp esi, dword [esp + 0x14]
ja 0x10013e13
jb 0x10013df7
cmp eax, dword [esp + 0x10]
ja 0x10013e13
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jmp 0x10013da7
mov eax, 0x803c0005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, 0x803c0004
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x10013e30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push edi
xor ecx, ecx
push ecx
push ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10013e63
call edi
test eax, eax
jle 0x10013e61
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10013e9b
mov eax, dword [esi]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x54
lea edx, [esi + 7]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10013ea0
call edi
test eax, eax
jle 0x10013e97
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10013e9b
xor eax, eax
pop edi
add esp, 8
ret
cmp dword [esp + 8], 0x54
je 0x10013e99
mov eax, 0x803c0005
pop edi
add esp, 8
ret
Function at 0x10013fb0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
cmp ebp, ecx
jbe 0x10013fca
mov eax, ebp
mov ebp, ecx
mov dword [esp + 0x28], eax
xor edi, edi
lea esi, [esp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.10014420
cmp dword [esp + 0x10], edi
jne 0x10014000
push edi
call fcn.1001ba90
add esp, 4
mov eax, 0x8007000e
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0x14
mov eax, dword [esp + 0x28]
sub eax, ebp
cmp eax, 0x100
jae 0x100140c7
mov edi, eax
test edi, edi
je 0x100140f4
mov eax, ebp
xor ecx, ecx
shl eax, 4
add eax, dword [ebx + 0x23]
push 0
adc ecx, dword [ebx + 0x27]
push 0
push ecx
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10014059
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001404f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x100140f9
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx]
push 0
lea edx, [esp + 0x28]
push edx
mov esi, edi
shl esi, 4
push esi
push eax
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100140d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10014094
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x100140f9
xor eax, eax
test edi, edi
jbe 0x100140c0
mov ecx, dword [esp + 0x10]
add ecx, 8
mov edx, dword [ecx]
cmp edx, dword [esp + 0x1c]
jne 0x100140b8
mov edx, dword [ecx + 4]
cmp edx, dword [esp + 0x20]
je 0x10014111
inc eax
add ecx, 0x10
cmp eax, edi
jb 0x100140a7
add ebp, edi
jmp 0x10014000
mov edi, pe_nt_image_headers32
jmp 0x1001401b
cmp dword [esp + 0x24], esi
je 0x1001409a
mov eax, dword [esp + 0x10]
push eax
mov esi, 0x803c0005
call fcn.1001ba90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0x14
mov esi, 0x803c0006
mov eax, dword [esp + 0x10]
push eax
call fcn.1001ba90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0x14
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add eax, ebp
push edx
mov dword [ecx], eax
call fcn.1001ba90
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 0x14
Function at 0x10014140
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x18]
push edi
cmp eax, dword [esi + 0xf]
jb 0x1001415b
mov eax, 0x803c0006
pop edi
pop ebp
add esp, 0x10
ret 4
shl eax, 4
xor ecx, ecx
add eax, dword [esi + 0x23]
push 0
adc ecx, dword [esi + 0x27]
push 0
push ecx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10014193
call edi
test eax, eax
jle 0x10014191
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10014201
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x10
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10014209
call edi
test eax, eax
jle 0x100141c8
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x10014201
mov ecx, dword [esi + 0x33]
add ecx, dword [esi + 0x2b]
mov eax, dword [esi + 0x37]
adc eax, dword [esi + 0x2f]
mov edx, dword [esp + 0x14]
cmp edx, eax
mov eax, dword [esp + 0x10]
jb 0x100141e8
ja 0x10014210
cmp eax, ecx
jae 0x10014210
mov dword [ebx], eax
mov dword [ebx + 4], edx
test ebp, ebp
je 0x100141ff
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
xor eax, eax
pop edi
pop ebp
add esp, 0x10
ret 4
cmp dword [esp + 0x1c], 0x10
je 0x100141ca
pop edi
mov eax, 0x803c0005
pop ebp
add esp, 0x10
ret 4

Function at 0x100148b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x100331b0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.100186b0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.10018750
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1001b630
add esp, 0x68
ret
Function at 0x10014a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x1002f388
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10014bd1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10014ad3
cmp dword [esp + 0x14], 1
jne 0x10014bb8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x10014bb8
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x10014b18
cmp dword [esp + 0x14], 1
jne 0x10014bb8
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x10014bb8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x10014b4f
cmp dword [esp + 0x14], 1
jne 0x10014bb8
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x10014bb8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x10014bb8
cmp dword [esp + 0x14], 3
jne 0x10014bb8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x10014bb8
lea eax, [esi + 0xc]
call fcn.10014920
test eax, eax
je 0x10014bb8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10015000
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x100331b0]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.100171e0
add esp, 8
test eax, eax
jne 0x1001506b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1001b630
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x10015080
push esi
lea ecx, [esp + 0x14]
call fcn.100186b0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.10018750
test edi, edi
je 0x1001509e
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.1001b630
add esp, 0x6c
ret

Function at 0x100150e0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x100331b0]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.100173e0
add esp, 4
test eax, eax
jne 0x1001513e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1001b630
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.10018750
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.1001b630
add esp, 0x64
ret

Function at 0x10015160
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x100331b0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.100174d0
add esp, 8
test eax, eax
jne 0x100151df
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1001b630
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.10018290
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.1001b630
add esp, 0x74
ret

Function at 0x10015b30
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10015b62
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.10019590
add esp, 0xc
xor eax, eax
pop ecx
ret
cmp esi, dword [esp]
je 0x10015b87
push 0x1002f51c
push 0xfe
push str..QHImageHlp.c
mov edx, 1
call fcn.100196c0
add esp, 0xc
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x10017050
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x1001709d
push str.GetFileSizeEx__
push 0x11e
push str..QHImageHlp.c
call fcn.10019590
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x10017134
jg 0x100170c3
cmp ebx, ecx
jb 0x10017134
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100170f9
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.10019590
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.10015b30
test eax, eax
je 0x100170ef
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001711a
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10017141
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x10017141
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x100179f0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x100331b0]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x10017b30
cmp dword [esp + 0x28], ebp
je 0x10017b30
push ebx
push 0x2800
call fcn.1001c856
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x10017a53
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1001b630
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x10017a60
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.100159c0
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10017b06
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.1001cf30
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10017af9
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x10017af9
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.100177a0
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x10017b10
inc edi
cmp edi, 0x10
jl 0x10017a60
push ebx
call fcn.1001c3d1
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1001b630
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.1001b630
add esp, 0x1c
ret