joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b1c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x46b245
push edi
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x46b23d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46b23d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x46b236
mov ecx, dword [ebp - 4]
push ecx
call fcn.0048c93d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46b236
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.00491f60
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor esi, esi
cmp ebx, esi
je 0x46b289
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4bd884
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46b280
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, 1
push ebx
call fcn.0048c860
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46c8d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
call fcn.0046ef70
add esp, 8
test al, al
je 0x46c974
mov eax, dword [0x4dda5c]
cmp eax, 0xffffffff
je 0x46c914
mov dword [esi + 4], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
push 0x2b0
lea edx, [ebp - 0x2b4]
push 0
push edx
mov dword [ebp - 0x2b8], 0
call fcn.0048f0a0
add esp, 0xc
push 0x111
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push str.dummy
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x46c974
mov eax, dword [ebp - 0x2b4]
mov dword [esi + 4], eax
mov dword [0x4dda5c], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
Function at 0x46d300
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x24c
lea eax, [ebp - 0x254]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], edi
call fcn.0048f0a0
mov eax, dword [0x4e7008]
mov esi, dword [esi]
add esp, 0xc
cmp eax, edi
jne 0x46d34f
call fcn.00449cf0
mov dword [0x4e7008], eax
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x46d36e
mov eax, dword [0x4e7008]
mov edx, dword [eax + 0x140]
cmp edx, ecx
jne 0x46d36e
mov eax, dword [eax + 0x64]
jmp 0x46d370
xor eax, eax
cmp eax, edi
je 0x46d380
lea ecx, [ebp - 0x258]
push ecx
push esi
call eax
jmp 0x46d38e
lea edx, [ebp - 0x258]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46d442
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
cmp word [ebp - 0x22c], 0x2e
jne 0x46d3c6
mov ax, word [ebp - 0x22a]
test ax, ax
je 0x46d3d0
cmp ax, 0x2e
jne 0x46d3c6
cmp word [ebp - 0x228], 0
je 0x46d3d0
mov dword [ebp - 0x25c], 1
mov eax, dword [0x4e7008]
test eax, eax
jne 0x46d3e3
call fcn.00449cf0
mov dword [0x4e7008], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x46d403
mov eax, dword [0x4e7008]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x46d403
mov eax, dword [eax + 0x6c]
jmp 0x46d405
xor eax, eax
test eax, eax
je 0x46d415
lea edx, [ebp - 0x258]
push edx
push esi
call eax
jmp 0x46d41f
lea eax, [ebp - 0x258]
push eax
push esi
call edi
test eax, eax
jne 0x46d3a0
call fcn.00449b10
mov eax, dword [ebp - 0x25c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
Function at 0x46dda0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46de7c
mov edx, dword [esi + 4]
push edi
lea ecx, [ebp - 0x2c0]
push ecx
push 0
push edx
mov dword [ebp - 0x2c0], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, dword [ebp - 0x2c0]
test edi, edi
je 0x46de7b
push 0x2b0
lea eax, [ebp - 0x2b4]
push 0
push eax
mov dword [ebp - 0x2b8], 0
call fcn.0048f0a0
add esp, 0xc
push 0x4009
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 4]
push eax
push 0
push 0x1109
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x2bc]
push eax
mov dword [ebp - 0x2bc], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x46de7b
mov edx, dword [ebp - 0x2c0]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret

Function at 0x46de90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
test eax, eax
je 0x46df3b
lea ebx, [eax + 2]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
push 0x4e2d14
neg ecx
or ecx, eax
push ecx
call fcn.0048bb06
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x46df3b
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.0048f0a0
add esp, 0xc
push esi
push ebx
call edi
test eax, eax
je 0x46df32
push ebx
push esi
call fcn.0048bd24
mov edi, eax
add esp, 8
test edi, edi
je 0x46df2f
cmp edi, ebx
jae 0x46df2f
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push esi
push ecx
mov edx, 0xffff0002
xor ecx, ecx
call fcn.0046cb60
lea esi, [esi + edi*2 + 2]
push ebx
push esi
call fcn.0048bd24
mov edi, eax
add esp, 8
test edi, edi
jne 0x46df00
mov esi, dword [ebp - 4]
push esi
call fcn.00480ff0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46df50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0048f0a0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x46dfea
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.0048bd24
add esp, 8
cmp eax, 3
jb 0x46dfea
jne 0x46dfd0
mov edx, 0x5c
cmp dx, word [ebp - 0x20c]
je 0x46dfea
push 0
push 0
push 1
lea eax, [ebp - 0x210]
push eax
push esi
mov edx, 0xffff0002
xor ecx, ecx
call fcn.0046cb60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret

Function at 0x46e000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0048f0a0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x46e09a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.0048bd24
add esp, 8
cmp eax, 3
jb 0x46e09a
jne 0x46e080
mov edx, 0x5c
cmp dx, word [ebp - 0x20c]
je 0x46e09a
push 0
push 0
push 1
lea eax, [ebp - 0x210]
push eax
push esi
mov edx, 0xffff0002
xor ecx, ecx
call fcn.0046cb60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret

Function at 0x46fc60
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [0x4e7008]
test eax, eax
jne 0x46fc73
call fcn.00449cf0
mov dword [0x4e7008], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x46fc93
mov eax, dword [0x4e7008]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x46fc93
mov eax, dword [eax + 0x3c]
jmp 0x46fc95
xor eax, eax
push esi
test eax, eax
je 0x46fc9d
call eax
ret
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
Function at 0x470ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b13e2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4dbe18]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
push 0x206
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 0x220], 0
push ecx
mov dword [ebp - 0x224], edi
mov word [ebp - 0x218], ax
call fcn.0048f0a0
add esp, 0xc
push edi
mov esi, 0x4bcd08
call fcn.00403c50
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x21c]
push edx
push eax
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x220], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x470d5a
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x470d5a
lea edx, [ebp - 0x218]
call fcn.00403c10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ac3c
mov esp, ebp
pop ebp
ret
Function at 0x471eb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1373
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
call esi
test eax, eax
je 0x472077
lea ebx, [eax + 2]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
push 0x4e2d14
mov dword [ebp - 0x24], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0048bb06
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
test edi, edi
je 0x472077
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.0048f0a0
add esp, 0xc
push edi
push ebx
call esi
test eax, eax
je 0x47206e
push ebx
push edi
mov esi, edi
call fcn.0048bd24
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47206e
jmp 0x471f63
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jae 0x47206e
push 0x4e2d14
push 8
call fcn.0048c58e
mov edi, eax
add esp, 8
mov dword [ebp - 0x28], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x471fb8
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403c50
mov byte [ebp - 4], 1
or dword [ebp - 0x14], 1
mov dword [edi], vtable.FullMatchFilter.0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.00406650
add eax, 0x10
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x471fba
xor edi, edi
push edi
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 2
push edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00473a20
mov dword [ebp - 4], 4
test byte [ebp - 0x14], 1
je 0x472001
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x472001
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 0
je 0x472018
mov edi, dword [ebp + 8]
add edi, 4
lea ebx, [ebp - 0x30]
call fcn.00472920
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x2c]
lea esi, [esi + ecx*2 + 2]
test edi, edi
je 0x472056
lea edx, [edi + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x472056
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x472056
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
push ebx
push esi
call fcn.0048bd24
mov edi, dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x471f60
push edi
call fcn.00480ff0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x474790
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4dbe18]
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.00478340
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004783e0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0048ac3c
add esp, 0x68
ret
Function at 0x474900
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 0x4c4254
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x474a91
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 0x474993
cmp dword [esp + 0x14], 1
jne 0x474a78
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x474a78
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 0x4749d8
cmp dword [esp + 0x14], 1
jne 0x474a78
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x474a78
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 0x474a0f
cmp dword [esp + 0x14], 1
jne 0x474a78
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x474a78
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 0x474a78
cmp dword [esp + 0x14], 3
jne 0x474a78
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x474a78
lea eax, [esi + 0xc]
call fcn.00474800
test eax, eax
je 0x474a78
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 0x474e60
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4dbe18]
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.00476e70
add esp, 8
test eax, eax
jne 0x474ecb
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x474ee0
push esi
lea ecx, [esp + 0x14]
call fcn.00478340
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.004783e0
test edi, edi
je 0x474efe
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.0048ac3c
add esp, 0x6c
ret

Function at 0x474f60
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4dbe18]
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.00477070
add esp, 4
test eax, eax
jne 0x474fbe
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.004783e0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0048ac3c
add esp, 0x64
ret

Function at 0x474fe0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x4dbe18]
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.00477150
add esp, 8
test eax, eax
jne 0x47505f
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.00477f30
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0048ac3c
add esp, 0x74
ret

Function at 0x4759d0
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 0x4759fd
push 0x4bcd08
push eax
push eax
mov edx, 0x4bcd08
call fcn.00478e60
add esp, 0xc
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x475a16
push 0x4bcd08
call fcn.00478ee0
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x4762c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4dbe18]
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 0x4762f3
mov dword [esp + 0x10], 0xffffffff
jmp 0x4762f9
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 0x4763b2
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
je 0x4763b2
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x476353
mov eax, 1
push 0x4bcd08
call fcn.00478ee0
add esp, 4
jmp 0x4763e5
cmp dword [esp + 0x40], ebx
je 0x47638f
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x476375
mov eax, 5
push 0x4bcd08
call fcn.00478ee0
add esp, 4
jmp 0x4763e5
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 0x4763dd
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x47639d
mov ebx, esi
jmp 0x476361
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 0x4763ca
push 0x4bcd08
push 0
push 0
mov edx, 0x4bcd08
call fcn.00478e60
add esp, 0xc
jmp 0x4763e5
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.004759d0
test eax, eax
je 0x4763e5
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4763ef
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.0048ac3c
add esp, 0x28
ret
Function at 0x476cf0
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]
test eax, eax
jne 0x476d38
push 0x4bcd08
push ebp
push ebp
mov edx, 0x4bcd08
call fcn.00478e60
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]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x476dcc
jg 0x476d60
cmp ebx, ecx
jb 0x476dcc
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 0x476d91
push 0x4bcd08
push eax
push eax
mov edx, 0x4bcd08
call fcn.00478e60
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.004759d0
test eax, eax
je 0x476d87
mov eax, dword [esp + 0x20]
test eax, eax
je 0x476db2
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x476dd9
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 0x476dd9
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x477690
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4dbe18]
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 0x4777d0
cmp dword [esp + 0x28], ebp
je 0x4777d0
push edi
push 0x2800
call fcn.0048c93d
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x4776f3
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x1c
ret
push ebx
push esi
xor ebx, ebx
jmp 0x477700
push ebx
push str..PhysicalDrive_d
push 0x2800
call fcn.004758a0
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4777a6
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.0048f0a0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push edi
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x477799
mov eax, dword [edi + 0x18]
cmp eax, ebp
jbe 0x477799
mov edx, dword [esp + 0x18]
add eax, edi
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.00477420
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x4777b0
inc ebx
cmp ebx, 0x10
jl 0x477700
push edi
call fcn.0048c860
mov eax, dword [esp + 0x14]
add esp, 4
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0048ac3c
add esp, 0x1c
ret