joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4243a6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x478f84
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4243d1
sub eax, edx
mov ecx, 0x237f
lea edx, [ebp - 0x18]
call fcn.00422645
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x42440a
xor edi, edi
jmp 0x424422
lea eax, [edi + edi]
call fcn.0044da00
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00417681
mov edi, eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42446f
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x42445f
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x424465
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x424440
jmp 0x424468
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea esp, [ebp - 0x250]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b103
leave
ret

Function at 0x4245bc
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push str.InstallLocation
xor esi, esi
push str.SoftWareMicrosoftWindowsCurrentVersionUninstallA9861883_31C5_4324_BD9A_DC9527EEB675_is1
inc esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x424626
xor eax, eax
jmp 0x424662
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00402ad3
push str.LenovoTray.exe
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424655
xor esi, esi
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, esi
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop esi
call fcn.0043b103
add ebp, 0x198
leave
ret
Function at 0x424678
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x46b5c2
call fcn.004436f7
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push str.InstallPath
xor esi, esi
push str.SoftwareHuorongSysdiag
inc esi
push SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4246ea
xor eax, eax
jmp 0x424749
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ad3
and dword [ebp - 4], 0
lea ebx, [ebp - 0x10]
call fcn.00406b40
push 0x22
mov edi, ebx
call fcn.00413120
mov eax, ebx
call fcn.00406b85
mov eax, ebx
call fcn.004249ad
push str.binHipsTray.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42473c
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043b103
add ebp, 0x20c
leave
ret

Function at 0x42476c
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x190], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Path
push str.SOFTWARE2345PCSafe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4247d6
xor eax, eax
jmp 0x4247ff
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push str.2345SafeTray.exe
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0043b103
add ebp, 0x194
leave
ret

Function at 0x4261ec
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
push esi
lea esi, [eax + 0x5c]
push 0x40
push esi
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
call fcn.00426a78
mov byte [esi], 0x80
pop esi
ret

Function at 0x427e53
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x428640
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
xor ecx, ecx
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
call fcn.0042e6a0
add esp, 4
lea esi, [esp + 4]
mov ecx, edi
call fcn.0042e740
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.0043b103
add esp, 0x5c
ret

Function at 0x4286b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
xor ecx, ecx
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
call fcn.0042e6a0
add esp, 4
lea esi, [esp + 4]
mov ecx, edi
call fcn.0042e740
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.0043b103
add esp, 0x5c
ret
Function at 0x428820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x20119
xor edi, edi
push edi
push str.SOFTWARE360MachineSignature
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4289b1
mov dword [esi], eax
push ebp
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 0x4288b3
cmp dword [esp + 0x14], 1
jne 0x428998
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x428998
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 0x4288f8
cmp dword [esp + 0x14], 1
jne 0x428998
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x428998
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 0x42892f
cmp dword [esp + 0x14], 1
jne 0x428998
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x428998
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 0x428998
cmp dword [esp + 0x14], 3
jne 0x428998
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x428998
lea eax, [esi + 0xc]
call fcn.00428720
test eax, eax
je 0x428998
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]
pop ebp
pop edi
mov eax, esi
pop esi
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]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x428f50
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
lea eax, [esp + 4]
mov esi, edx
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0042c570
add esp, 8
test eax, eax
jne 0x428fbb
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0043b103
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
test eax, eax
jbe 0x428fd0
push esi
lea ecx, [esp + 0x10]
call fcn.0042e6a0
add esp, 4
lea esi, [esp + 0xc]
mov ecx, ebx
call fcn.0042e740
test edi, edi
je 0x428fee
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, dword [esp + 4]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043b103
add esp, 0x64
ret

Function at 0x429050
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 4]
mov edi, ecx
push eax
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
call fcn.0042c760
add esp, 4
pop edi
test eax, eax
jne 0x4290ac
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0043b103
add esp, 0x5c
ret
push esi
lea esi, [esp + 4]
mov ecx, ebx
call fcn.0042e740
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043b103
add esp, 0x5c
ret

Function at 0x4290d0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x6c
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp]
push ecx
push eax
mov dword [esp + 8], 0x6a09e667
mov dword [esp + 0xc], 0xbb67ae85
mov dword [esp + 0x10], 0x3c6ef372
mov dword [esp + 0x14], 0xa54ff53a
mov dword [esp + 0x18], 0x510e527f
mov dword [esp + 0x1c], 0x9b05688c
mov dword [esp + 0x20], 0x1f83d9ab
mov dword [esp + 0x24], 0x5be0cd19
call fcn.0042c840
add esp, 8
test eax, eax
jne 0x42914c
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0043b103
add esp, 0x6c
ret
push edi
mov eax, esi
lea edi, [esp + 4]
call fcn.0042dd50
mov ecx, dword [esp + 0x6c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0043b103
add esp, 0x6c
ret

Function at 0x42a700
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 0x42a72b
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x42a744
push 0x474f2c
call fcn.0042f610
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x42a750
Capabilities:
Write 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_WriteFile]
test eax, eax
jne 0x42a77b
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x42a794
push 0x474f2c
call fcn.0042f610
add esp, 4
xor eax, eax
pop ecx
ret

Function at 0x42a810
Capabilities:
Clear file content

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a830
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

Function at 0x42a840
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42a877
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
cmp esi, edi
ja 0x42a99e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
jb 0x42a899
cmp ecx, edx
jae 0x42a99e
mov eax, edx
sub eax, ecx
mov ecx, edi
sbb ecx, esi
mov ebx, eax
shrd ebx, ecx, 0xf
shr ecx, 0xf
and eax, 0x7fff
mov dword [esp + 0x10], ebx
mov esi, eax
jne 0x42a8be
mov esi, 0x8000
jmp 0x42a8c3
inc ebx
mov dword [esp + 0x10], ebx
xor eax, eax
sub edx, esi
sbb edi, eax
mov eax, dword [esp + 0x40]
mov ebp, edi
xor edi, edi
mov ebx, edx
add eax, ebx
adc edi, ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
jbe 0x42a99e
mov edi, edi
mov ecx, dword [esp + 0x34]
push 0
push 0
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42a85b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a85b
cmp esi, dword [esp + 0x18]
jne 0x42a9ab
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push 0
push 0
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42a85b
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a85b
cmp esi, dword [esp + 0x1c]
jne 0x42a9ab
mov eax, dword [esp + 0x14]
add ebx, 0xffff8000
adc ebp, 0xffffffff
add dword [esp + 0x20], 0xffff8000
mov esi, 0x8000
adc edi, 0xffffffff
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x42a8f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
push 0x474f2c
mov eax, 1
call fcn.0042f610
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x42ab80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x20]
lea esi, [edi + 7]
shr esi, 3
add esi, esi
push eax
add esi, esi
add esi, esi
push esi
push ebp
push ecx
push ebx
call fcn.0042a840
add esp, 0x14
test eax, eax
je 0x42ac54
mov edx, dword [esp + 0x14]
push 0
push 0
push ebp
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42ac2c
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ac2c
cmp edi, dword [esp + 0xc]
je 0x42abff
push 0x474f2c
mov eax, 1
call fcn.0042f610
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
sub esi, edi
je 0x42ac5b
mov edx, dword [esp + 0x20]
push esi
push 0
push edx
call fcn.0043e180
add esp, 0xc
xor eax, eax
add edi, dword [esp + 0x14]
push 0
push 0
adc eax, ebp
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42ac45
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x20]
mov edx, ebx
call fcn.0042a750
test eax, eax
jne 0x42ac5b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x42b500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
cmp eax, ebx
jne 0x42b532
mov dword [esp + 8], 0xffffffff
jmp 0x42b538
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42b567
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
jmp 0x42b647
push 0
lea edx, [esp + 0x18]
push edx
push 8
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42b597
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
jmp 0x42b647
mov eax, 8
cmp dword [esp + 0x14], eax
je 0x42b5b9
mov eax, 1
push 0x474f2c
call fcn.0042f610
add esp, 4
jmp 0x42b647
cmp dword [esp + 0x3c], ebx
je 0x42b5f5
mov ebx, eax
cmp dword [esp + 0xc], eax
jae 0x42b5db
mov eax, 5
push 0x474f2c
call fcn.0042f610
add esp, 4
jmp 0x42b647
mov ecx, dword [esp + 0x20]
mov dx, word [esp + 0x24]
mov dword [esi], ecx
mov cx, word [esp + 0x26]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x42b63f
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0xc]
jbe 0x42b603
mov ebx, esi
jmp 0x42b5c7
mov edx, dword [esp + 0x34]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42b62c
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
jmp 0x42b647
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.0042a700
test eax, eax
je 0x42b647
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x18]
pop ebp
test eax, eax
je 0x42b652
mov dword [eax], ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.0043b103
add esp, 0x24
ret
Function at 0x42bc40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push ecx
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
push ecx
push eax
push esi
call ebx
test eax, eax
jne 0x42bc88
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 8
lea eax, [esp + 0x24]
push eax
push esi
call ebp
test eax, eax
je 0x42bc6c
cmp dword [esp + 0x10], 8
jne 0x42bced
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov eax, edi
call fcn.0042caa0
add esp, 4
test eax, eax
je 0x42bcff
mov edi, dword [edi + 4]
xor eax, eax
push eax
push eax
push eax
push edi
push esi
call ebx
test eax, eax
je 0x42bc6c
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call ebp
test eax, eax
je 0x42bc6c
cmp dword [esp + 0x10], 4
je 0x42bd09
push 0x474f2c
mov eax, 1
call fcn.0042f610
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x42c3c0
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 0x42c406
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
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 0x42c498
jg 0x42c42e
cmp ebx, ecx
jb 0x42c498
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 0x42c45d
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.0042a700
test eax, eax
je 0x42c453
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42c47e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42c4a5
pop edi
pop esi
mov ecx, 1
pop ebp
mov word [eax], cx
mov eax, ecx
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x42c4a5
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x42cf40
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x483260]
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 0x42d080
cmp dword [esp + 0x28], ebp
je 0x42d080
push ebx
push 0x2800
call fcn.0043e6bc
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x42cfa3
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.0043b103
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x42cfb0
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.0042a3e0
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 0x42d056
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.0043e180
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 0x42d049
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x42d049
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.0042ccd0
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x42d060
inc edi
cmp edi, 0x10
jl 0x42cfb0
push ebx
call fcn.0043e565
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.0043b103
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0043b103
add esp, 0x1c
ret