joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b04c3
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
mov eax, dword [0x4ed820]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x41e348
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e332
push str.version1.0_encodingutf_16
lea ecx, [esp + 0x18]
call fcn.00402953
push dword [ebp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebx
call fcn.00402953
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 1
call fcn.004122f4
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x41e399
call fcn.004029ec
mov byte [esp + 0x68], 4
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e3ab
call fcn.004029ec
cmp dword [esp + 0x4c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x41e3cb
lea ecx, [esp + 0x48]
call fcn.00411ccd
mov eax, ebx
jmp 0x41e334
push 0x4d2224
lea ecx, [esp + 0x18]
call fcn.00402953
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 5
call fcn.00411c50
mov byte [esp + 0x68], 7
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e403
call fcn.004029ec
cmp dword [esp + 0x40], ebx
mov esi, dword [ebp + 8]
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e432
cmp dword [esp + 0x3c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e432
lea ecx, [esi + 8]
lea edx, [esp + 0x38]
call fcn.0041e580
push str.Plugin_AfterSetup
lea ecx, [esp + 0x18]
call fcn.00402953
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 8
call fcn.00411c50
mov byte [esp + 0x68], 0xa
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e46a
call fcn.004029ec
cmp dword [esp + 0x30], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e496
cmp dword [esp + 0x2c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e496
lea ecx, [esi + 0x20]
lea edx, [esp + 0x28]
call fcn.0041e580
push str.Plugin_BeforeUninstall
lea ecx, [esp + 0x18]
call fcn.00402953
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 0xb
call fcn.00411c50
mov byte [esp + 0x68], 0xd
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e4ce
call fcn.004029ec
cmp dword [esp + 0x20], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e4fa
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e4fa
lea ecx, [esi + 0x38]
lea edx, [esp + 0x18]
call fcn.0041e580
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.00402aa4
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.00402aa4
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.00402aa4
xor ebx, ebx
inc ebx
jmp 0x41e3bb
Function at 0x42075c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b02ec
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4ed820]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
call fcn.00420eeb
push 0x4d2468
lea ecx, [esp + 0x10]
call fcn.00402953
mov ecx, dword [ebp + 0xc]
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041f804
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4207c9
call fcn.004029ec
lea eax, [esp + 0x10]
call fcn.00411005
test al, al
je 0x4207f0
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4207e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x42087d
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x4207d6
xor esi, esi
test eax, eax
jle 0x420867
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00411ade
mov byte [esp + 0x38], 3
cmp dword [esp + 0x24], 0
sete al
test al, al
sete al
test al, al
je 0x420859
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x420859
push edi
lea ecx, [esp + 0x20]
call fcn.004209c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00402aa4
inc esi
cmp esi, dword [esp + 0xc]
jl 0x420802
jmp 0x420867
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00402aa4
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42087a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x420d38
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
test eax, eax
jle 0x420e19
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [esp + 0x10]
lea esi, [edi + 4]
call fcn.00420e60
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
je 0x420e07
cmp dword [edi + 0x1c], 0
je 0x420dfe
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x420da1
push 4
lea ecx, [eax + 0x14]
push ecx
push 4
jmp 0x420db2
cmp ecx, 1
jne 0x420dba
mov ecx, dword [eax + 0x18]
mov esi, dword [ecx - 0xc]
add esi, esi
push esi
push ecx
push 1
push dword [eax + 8]
push edx
push dword [eax]
jmp 0x420dfa
cmp ecx, 2
jne 0x420e07
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x14]
push edi
call dword [eax + 8]
lea eax, [esp + 0x430]
push eax
call fcn.00470c3e
pop ecx
add eax, eax
push eax
lea eax, [esp + 0x434]
push eax
push 1
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call ebx
jmp 0x420e07
push edx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x420d75
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.0047021a
mov esp, ebp
pop ebp
ret 4
Function at 0x4217bc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x28], esi
je 0x4217d3
lea edi, [ebx + 0xc]
call fcn.00421e9f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 7
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
jne 0x421800
xor eax, eax
jmp 0x4218a8
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
mov dword [ebp - 4], eax
jge 0x42187c
cmp dword [ebp - 0xc], esi
jne 0x42187c
add eax, 4
push eax
call fcn.004722cd
mov edi, eax
pop ecx
cmp edi, esi
je 0x42187c
mov eax, dword [ebp - 4]
add eax, 4
push eax
push esi
push edi
call fcn.004701a0
add esp, 0xc
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.0042193c
push edi
mov dword [ebp - 0x10], 1
call fcn.00471e3c
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x30]
call fcn.00423121
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 8
Function at 0x422eb1
Capabilities:
Check if file exists
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp dword [eax - 0xc], ebx
jne 0x422eed
mov eax, 0xffffd8ee
jmp 0x42303b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422ee3
mov eax, dword [esi + 0x1c]
push ebx
push 1
push 3
push ebx
push 7
push closesocket
push eax
mov dword [esp + 0x28], 0xffffd8f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x423029
cmp eax, 0xffffffff
je 0x42301f
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x42301f
mov edi, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [esp + 0x44]
push ebx
sub edi, edx
mov eax, edi
mov edi, dword [esi + 4]
push eax
push ebx
push 4
push dword [esp + 0x20]
sub edi, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x423011
add edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x423007
lea eax, [esp + 0x4c]
push eax
push dword [esi + 8]
push edi
call fcn.0040d266
push 0x10
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004750de
add esp, 0x18
test eax, eax
je 0x422fb8
mov dword [esp + 0xc], 0xffffd8ee
jmp 0x423007
push dword [esi + 8]
call fcn.004722cd
mov edi, eax
pop ecx
cmp edi, ebx
je 0x422ee3
push dword [esi + 8]
push dword [esp + 0x24]
push edi
call fcn.00473020
push dword [esp + 0x20]
mov eax, dword [esi + 8]
push dword [esp + 0x28]
mov ecx, dword [esi + 0x1c]
cdq
push edx
push eax
push edi
push ecx
call fcn.0046e11c
push edi
mov esi, eax
call fcn.00471e3c
add esp, 0x28
cmp esi, ebx
jl 0x423007
mov dword [esp + 0xc], 1
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x423037
push dword [esp + 0xc]
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047021a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423500
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4ed820]
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.00426ea0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00426f40
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0047021a
add esp, 0x68
ret
Function at 0x423670
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 0x4d24dc
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423801
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 0x423703
cmp dword [esp + 0x14], 1
jne 0x4237e8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x4237e8
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 0x423748
cmp dword [esp + 0x14], 1
jne 0x4237e8
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4237e8
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 0x42377f
cmp dword [esp + 0x14], 1
jne 0x4237e8
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4237e8
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 0x4237e8
cmp dword [esp + 0x14], 3
jne 0x4237e8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x4237e8
lea eax, [esi + 0xc]
call fcn.00423570
test eax, eax
je 0x4237e8
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 0x423bd0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4ed820]
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.00425be0
add esp, 8
test eax, eax
jne 0x423c3b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0047021a
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x423c50
push esi
lea ecx, [esp + 0x14]
call fcn.00426ea0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.00426f40
test edi, edi
je 0x423c6e
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.0047021a
add esp, 0x6c
ret

Function at 0x423cd0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4ed820]
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.00425dd0
add esp, 4
test eax, eax
jne 0x423d2e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0047021a
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00426f40
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0047021a
add esp, 0x64
ret

Function at 0x423d50
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x4ed820]
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.00425eb0
add esp, 8
test eax, eax
jne 0x423dcf
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0047021a
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.00426c90
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0047021a
add esp, 0x74
ret

Function at 0x424750
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 0x42477b
push 0x4cdf90
mov eax, 0x4cdf90
call fcn.004279a0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x424794
push 0x4cdf90
call fcn.00427a10
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x425030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4ed820]
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 0x425063
mov dword [esp + 0x10], 0xffffffff
jmp 0x425069
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
jne 0x425097
push 0x4cdf90
mov eax, 0x4cdf90
call fcn.004279a0
add esp, 4
jmp 0x425177
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 0x4250c7
push 0x4cdf90
mov eax, 0x4cdf90
call fcn.004279a0
add esp, 4
jmp 0x425177
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x4250e9
mov eax, 1
push 0x4cdf90
call fcn.00427a10
add esp, 4
jmp 0x425177
cmp dword [esp + 0x40], ebx
je 0x425125
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x42510b
mov eax, 5
push 0x4cdf90
call fcn.00427a10
add esp, 4
jmp 0x425177
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 0x42516f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x425133
mov ebx, esi
jmp 0x4250f7
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 0x42515c
push 0x4cdf90
mov eax, 0x4cdf90
call fcn.004279a0
add esp, 4
jmp 0x425177
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00424750
test eax, eax
je 0x425177
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x425181
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.0047021a
add esp, 0x28
ret
Function at 0x425a60
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 0x425aa6
push 0x4cdf90
mov eax, 0x4cdf90
call fcn.004279a0
add esp, 4
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 0x425b38
jg 0x425ace
cmp ebx, ecx
jb 0x425b38
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 0x425afd
push 0x4cdf90
mov eax, 0x4cdf90
call fcn.004279a0
add esp, 4
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.00424750
test eax, eax
je 0x425af3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x425b1e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x425b45
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 0x425b45
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x4263f0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4ed820]
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 0x426530
cmp dword [esp + 0x28], ebp
je 0x426530
push ebx
push 0x2800
call fcn.004722cd
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x426453
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.0047021a
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x426460
push edi
push 0x4d25b0
mov ecx, 0x2800
call fcn.004245e0
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 0x426506
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.004701a0
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 0x4264f9
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x4264f9
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.00426180
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x426510
inc edi
cmp edi, 0x10
jl 0x426460
push ebx
call fcn.00471e3c
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.0047021a
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0047021a
add esp, 0x1c
ret