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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c9100]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bc4e7
cmp byte [ebx], 0xa
jne 0x4bc4e7
or byte [edi + eax + 0x28], 4
jmp 0x4bc4ec
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4bc5eb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4bc5ce
inc eax
cmp dl, 0xd
je 0x4bc518
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4bc53e
cmp eax, ecx
jae 0x4bc54c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4bc500
jmp 0x4bc5eb
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc5c9
cmp dword [ebp - 0x10], 0
je 0x4bc5c9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c9100]
test byte [eax + edi + 0x28], 0x48
je 0x4bc5a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bc58e
mov byte [esi], dl
jmp 0x4bc59f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c9100]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bc5eb
cmp byte [ebp - 1], 0xa
jne 0x4bc5b2
cmp esi, ebx
jne 0x4bc5b2
mov byte [esi], 0xa
jmp 0x4bc5ea
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bc2a0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bc5eb
mov byte [esi], 0xd
jmp 0x4bc5ea
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c9100]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bc5e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bc5eb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bc5f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c9100]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bc63a
cmp word [ebx], dx
jne 0x4bc63a
or byte [eax + edi + 0x28], 4
jmp 0x4bc63f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4bc7a2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4bc782
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4bc680
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bc6b6
cmp eax, edx
jae 0x4bc6c4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4bc65b
jmp 0x4bc7a2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc77d
cmp dword [ebp - 0x18], 0
je 0x4bc77d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c9100]
test byte [eax + edi + 0x28], 0x48
je 0x4bc753
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4bc717
mov word [esi], cx
jmp 0x4bc74e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c9100]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c9100]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c9100]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4bc7a2
pop eax
cmp word [ebp - 4], ax
jne 0x4bc763
cmp esi, ebx
jne 0x4bc763
mov word [esi], ax
jmp 0x4bc79f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bc2a0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4bc7a2
push 0xd
pop eax
jmp 0x4bc75e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c9100]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4bc79c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4bc7a2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bde15
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004bdd91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bdf84
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bdf84
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bdf39
jg 0x4bde71
test eax, eax
je 0x4bdf2f
push 1
push 0x1000
call fcn.004b7ed7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bde94
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bdf26
push 0x8000
push ebx
call fcn.004b5113
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bdebd
jg 0x4bdeb8
cmp ecx, 0x1000
jb 0x4bdebd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b6a61
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bdf02
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bdeb8
jl 0x4bdee9
test ecx, ecx
jne 0x4bdeaa
push dword [ebp - 0xc]
push ebx
call fcn.004b5113
push esi
call fcn.004b78d6
add esp, 0xc
xor ebx, ebx
jmp 0x4bdf92
cmp byte [edi + 0x24], 0
je 0x4bdf19
cmp dword [edi + 0x20], 5
jne 0x4bdf19
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bdf24
mov ebx, dword [edi + 0x18]
jmp 0x4bdf26
xor ebx, ebx
push esi
call fcn.004b78d6
pop ecx
jmp 0x4bdf92
test ecx, ecx
jg 0x4bdefb
jl 0x4bdf39
test eax, eax
jae 0x4bdefb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bc2a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bdf59
cmp byte [edi + 0x1c], 0
je 0x4bdefb
jmp 0x4bdf8a
push ebx
call fcn.004b9bfc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bdefb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bdf92
cmp byte [edi + 0x1c], 0
je 0x4bdf8f
mov ebx, dword [edi + 0x18]
jmp 0x4bdf92
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bc2a0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bff80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4bffad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bffad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408390
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x52f00b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56f28c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004fec3b
push 4
mov dword [esp + 0x24], 0
call fcn.004fff64
mov edi, eax
add esp, 4
test edi, edi
je 0x408412
call fcn.004fef86
mov dword [edi], eax
call fcn.004fedb4
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004fecd8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x408407
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004fed00
jmp 0x408414
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40b8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52f978
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56f28c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
mov ebx, 1
cmp esi, eax
ja 0x40b90a
cmp dword [edi + 0x18], eax
je 0x40b90a
push ebx
push eax
call fcn.004044a0
test al, al
je 0x40b90a
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x40b903
mov eax, dword [edi + 4]
jmp 0x40b906
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x18], ecx
cmp esi, ecx
je 0x40baeb
jmp 0x40b926
mov ecx, dword [esp + 0x18]
mov al, byte [esi]
add esi, ebx
mov byte [esp + 0x20], al
cmp al, 0x22
je 0x40baeb
cmp al, 0x5c
jne 0x40ba27
cmp esi, ecx
je 0x40ba43
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
mov dword [esp + 0x8c], esi
cmp eax, 0x53
ja case.0x40b967.35
movzx eax, byte [eax + 0x40bb2c]
jmp dword [eax*4 + 0x40bb04]
push 0x22
jmp 0x40ba2c
push 0x2f
jmp 0x40ba2c
push 0x5c
jmp 0x40ba2c
push 8
jmp 0x40ba2c
push 0xc
jmp 0x40ba2c
push 0xa
jmp 0x40ba2c
push 0xd
jmp 0x40ba2c
push 9
jmp 0x40ba2c
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea ecx, [esp + 0x98]
mov edx, ebp
call fcn.0040bb80
test al, al
je 0x40ba8f
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x5c]
call fcn.00409ee0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x8c], ebx
call fcn.004080c0
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x74], 0x10
jb 0x40ba09
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004ff610
add esp, 4
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jmp 0x40ba34
mov edx, dword [esp + 0x20]
push edx
push ebx
mov ecx, edi
call fcn.004073a0
cmp esi, dword [esp + 0x18]
jne 0x40b922
jmp 0x40baeb
push 0x1f
xor edi, edi
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
call fcn.00403730
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], edi
call fcn.0040be30
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x40baeb
mov eax, dword [esp + 0x28]
push eax
jmp 0x40bae3
xor al, al
jmp 0x40baed
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.00403730
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x88], 2
call fcn.0040be30
cmp dword [esp + 0x58], 0x10
mov bl, al
jb 0x40baeb
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004ff610
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
Function at 0x40e110
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x56f28c]
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.00412030
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004120d0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004ffa01
add esp, 0x68
ret
Function at 0x40e2a0
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 0x547c04
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e431
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 0x40e333
cmp dword [esp + 0x14], 1
jne 0x40e418
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x40e418
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 0x40e378
cmp dword [esp + 0x14], 1
jne 0x40e418
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x40e418
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 0x40e3af
cmp dword [esp + 0x14], 1
jne 0x40e418
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x40e418
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 0x40e418
cmp dword [esp + 0x14], 3
jne 0x40e418
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x40e418
lea eax, [esi + 0xc]
call fcn.0040e180
test eax, eax
je 0x40e418
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 0x40e830
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x56f28c]
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.00410b50
add esp, 8
test eax, eax
jne 0x40e89b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004ffa01
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x40e8b0
push esi
lea ecx, [esp + 0x14]
call fcn.00412030
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.004120d0
test edi, edi
je 0x40e8ce
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.004ffa01
add esp, 0x6c
ret

Function at 0x40e930
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x56f28c]
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.00410d50
add esp, 4
test eax, eax
jne 0x40e98e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004ffa01
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.004120d0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004ffa01
add esp, 0x64
ret

Function at 0x40e9b0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x56f28c]
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.00410e40
add esp, 8
test eax, eax
jne 0x40ea2f
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004ffa01
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.00411c10
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004ffa01
add esp, 0x74
ret

Function at 0x40f460
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 0x40f492
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.00412f10
add esp, 0xc
xor eax, eax
pop ecx
ret
cmp esi, dword [esp]
je 0x40f4b7
push 0x547d9c
push 0xfe
push str..QHImageHlp.c
mov edx, 1
call fcn.00413040
add esp, 0xc
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x40fde0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x56f28c]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x40fe13
mov dword [esp + 0x10], 0xffffffff
jmp 0x40fe19
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40ff08
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40fe6b
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.00412f10
add esp, 0xc
jmp 0x40ff3e
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x40fe95
push 0x547d9c
push 0xfe
lea edx, [eax - 7]
push str..QHImageHlp.c
call fcn.00413040
add esp, 0xc
jmp 0x40ff3e
cmp dword [esp + 0x40], ebx
je 0x40fedb
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x40fec1
push 0x547e50
push 0x321
mov edx, 5
push str..QHImageHlp.c
call fcn.00413040
add esp, 0xc
jmp 0x40ff3e
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x40ff36
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x40fef3
push 0x547e50
mov ebx, esi
push 0x32d
jmp 0x40fead
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40ff23
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.00412f10
add esp, 0xc
jmp 0x40ff3e
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.0040f460
test eax, eax
je 0x40ff3e
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40ff48
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ffa01
add esp, 0x28
ret
Function at 0x4109c0
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 0x410a0d
push str.GetFileSizeEx__
push 0x11e
push str..QHImageHlp.c
call fcn.00412f10
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 0x410aa4
jg 0x410a33
cmp ebx, ecx
jb 0x410aa4
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 0x410a69
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.00412f10
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.0040f460
test eax, eax
je 0x410a5f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x410a8a
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410ab1
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 0x410ab1
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x411370
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x56f28c]
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 0x4114b0
cmp dword [esp + 0x28], ebp
je 0x4114b0
push ebx
push 0x2800
call fcn.005031fa
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x4113d3
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.004ffa01
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x4113e0
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.0040f2f0
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 0x411486
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.00500270
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 0x411479
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x411479
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.00411110
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x411490
inc edi
cmp edi, 0x10
jl 0x4113e0
push ebx
call fcn.005019e9
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.004ffa01
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.004ffa01
add esp, 0x1c
ret