joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4579dd
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
push edi
mov edi, eax
cmp dword [esi], ecx
je 0x457ae8
cmp dword [esi + 4], ecx
je 0x457ae8
mov dword [esi + 8], ecx
xor eax, eax
push ebx
mov ebx, dword [eax + 0x50ce58]
mov edx, dword [esi]
mov dword [eax + edx], ebx
add eax, 4
cmp eax, 0x48
jl 0x4579fd
xor eax, eax
mov edx, 0x100
mov ebx, dword [eax + 0x50cea0]
mov ecx, dword [esi + 4]
mov dword [eax + ecx], ebx
add eax, 4
dec edx
jne 0x457a17
cmp eax, 0x1000
jl 0x457a12
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov al, byte [ecx + edi]
mov byte [ebp + 0xb], al
lea eax, [ecx + 1]
cdq
idiv ebx
mov al, byte [edx + edi]
mov byte [ebp + 0xa], al
lea eax, [ecx + 2]
cdq
idiv ebx
mov al, byte [edx + edi]
mov byte [ebp + 9], al
lea eax, [ecx + 3]
cdq
idiv ebx
mov al, byte [edx + edi]
mov edx, dword [ebp - 4]
mov byte [ebp + 8], al
mov eax, dword [esi]
add eax, edx
mov edx, dword [ebp + 8]
xor dword [eax], edx
lea eax, [ecx + 4]
cdq
idiv ebx
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x48
mov ecx, edx
jl 0x457a38
and dword [ebp - 4], 0
and dword [ebp + 8], 0
xor edi, edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.00457280
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [edi + eax], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov dword [edi + eax + 4], ecx
add edi, 8
cmp edi, 0x48
jl 0x457a8a
xor edi, edi
mov ebx, 0x80
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.00457280
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [edi + eax], ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 4]
mov dword [eax + edi + 4], ecx
add edi, 8
dec ebx
jne 0x457ab8
cmp edi, 0x1000
jl 0x457ab3
pop ebx
pop edi
leave
ret 4

Function at 0x458065
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
and dword [esi + 0x40], 0
push edi
lea ebx, [esi + 0x30]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00457f1e
mov eax, esi
call fcn.00457f76
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x45815c
push edi
push edi
mov dword [ebp - 4], edi
call fcn.004af4b1
mov ecx, dword [ebp - 4]
add esp, 0x18
push 0xffffffffffffffff
push dword [esi + 0x38]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
cmp dword [ebx], edi
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x458381
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x50ab8c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 8
mov esi, ecx
mov dword [ebp - 0x5c], eax
call fcn.004495dc
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
cmp eax, ebx
je 0x4583c2
call eax
jmp 0x4583c8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4584ba
push 0x11
mov dword [ebp - 0x54], ebx
call fcn.004495dc
pop ecx
cmp eax, ebx
je 0x4583eb
lea ecx, [ebp - 0x54]
push ecx
push edi
call eax
jmp 0x4583f6
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x54], ebx
jne 0x4584b4
cmp eax, ebx
je 0x4584b4
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x50], ebx
call fcn.004582e8
test eax, eax
je 0x4584b4
mov eax, 0x5a4d
cmp word [ebp - 0x4c], ax
jne 0x4584b4
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x60], ebx
push edi
call fcn.00458313
cmp eax, 0xffffffff
je 0x4584b4
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x15c]
push eax
push edi
call fcn.004582e8
test eax, eax
je 0x4584b4
mov eax, 0x8664
cmp word [ebp - 0x158], ax
jne 0x4584cb
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x64], ebx
push edi
call fcn.00458313
cmp eax, 0xffffffff
je 0x4584b4
lea eax, [ebp - 0x50]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.004582e8
test eax, eax
je 0x4584b4
mov eax, dword [ebp - 0x1bc]
cmp eax, ebx
je 0x4584b4
mov esi, dword [ebp - 0x1b8]
cmp esi, ebx
jne 0x4584dd
push edi
call fcn.00449614
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ab7a8
leave
ret
mov eax, dword [ebp - 0xc4]
cmp eax, ebx
je 0x4584b4
mov esi, dword [ebp - 0xc0]
jmp 0x4584b0
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x58]
ja 0x4584b4
cmp ecx, eax
jb 0x4584b4
lea ecx, [ebp - 0x60]
push ecx
push eax
push edi
call fcn.00458313
cmp eax, 0xffffffff
je 0x4584b4
mov ecx, dword [ebp - 0x5c]
push ebx
push esi
call fcn.0041f852
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push eax
push esi
push ebx
call fcn.004129cf
push eax
push edi
call fcn.004582e8
push edi
test eax, eax
je 0x4584b5
call fcn.00449614
xor eax, eax
inc eax
jmp 0x4584bc

Function at 0x45b0d2
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
cmp eax, ecx
jne 0x45b0dc
xor eax, eax
inc eax
ret
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
ret
Function at 0x45b39e
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x1c]
mov byte [ecx + eax + 0x20], 0x80
inc dword [eax + 0x1c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x1c]
jle 0x45b3e8
jmp 0x45b3be
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x40
jl 0x45b3b3
call fcn.0045b1e4
jmp 0x45b3d5
mov ecx, dword [eax + 0x1c]
mov byte [eax + ecx + 0x20], 0
inc dword [eax + 0x1c]
cmp dword [eax + 0x1c], 0x38
jl 0x45b3ca
jmp 0x45b3ed
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x38
jl 0x45b3dd
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x58], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x18]
shr edx, 0x10
mov byte [eax + 0x5b], cl
mov ecx, dword [eax + 0x14]
mov byte [eax + 0x59], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5c], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x5e], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5d], dl
mov byte [eax + 0x5f], cl
jmp fcn.0045b1e4

Function at 0x45b7b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x50ab8c]
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.004610d0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00461170
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004ab7a8
add esp, 0x68
ret

Function at 0x45b820
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x50ab8c]
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.004610d0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00461170
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004ab7a8
add esp, 0x68
ret
Function at 0x45c0c0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x50ab8c]
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.0045f6c0
add esp, 8
test eax, eax
jne 0x45c12b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004ab7a8
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x45c140
push esi
lea ecx, [esp + 0x14]
call fcn.004610d0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.00461170
test edi, edi
je 0x45c15e
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.004ab7a8
add esp, 0x6c
ret

Function at 0x45c1c0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x50ab8c]
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.0045f8b0
add esp, 4
test eax, eax
jne 0x45c21e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004ab7a8
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00461170
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004ab7a8
add esp, 0x64
ret

Function at 0x45c240
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x50ab8c]
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.0045f990
add esp, 8
test eax, eax
jne 0x45c2bf
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004ab7a8
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.00460e90
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004ab7a8
add esp, 0x74
ret

Function at 0x45d870
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 0x45d89b
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x45d8b4
push 0x4eee28
call fcn.00462040
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x45d8c0
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 0x45d8eb
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x45d904
push 0x4eee28
call fcn.00462040
add esp, 4
xor eax, eax
pop ecx
ret

Function at 0x45d980
Capabilities:
Clear file content

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45d9a0
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
add esp, 4
xor eax, eax
ret
mov eax, 1
ret

Function at 0x45d9b0
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 0x45d9e7
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
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 0x45db0e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
jb 0x45da09
cmp ecx, edx
jae 0x45db0e
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 0x45da2e
mov esi, 0x8000
jmp 0x45da33
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 0x45db0e
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 0x45d9cb
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 0x45d9cb
cmp esi, dword [esp + 0x18]
jne 0x45db1b
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 0x45d9cb
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 0x45d9cb
cmp esi, dword [esp + 0x1c]
jne 0x45db1b
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 0x45da60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
push 0x4eee28
mov eax, 1
call fcn.00462040
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x45dcf0
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.0045d9b0
add esp, 0x14
test eax, eax
je 0x45ddc4
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 0x45dd9c
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 0x45dd9c
cmp edi, dword [esp + 0xc]
je 0x45dd6f
push 0x4eee28
mov eax, 1
call fcn.00462040
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
sub esi, edi
je 0x45ddcb
mov edx, dword [esp + 0x20]
push esi
push 0
push edx
call fcn.004ae3b0
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 0x45ddb5
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
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.0045d8c0
test eax, eax
jne 0x45ddcb
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 0x45e670
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x50ab8c]
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 0x45e6a3
mov dword [esp + 0x10], 0xffffffff
jmp 0x45e6a9
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 0x45e6d7
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
add esp, 4
jmp 0x45e7b7
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 0x45e707
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
add esp, 4
jmp 0x45e7b7
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x45e729
mov eax, 1
push 0x4eee28
call fcn.00462040
add esp, 4
jmp 0x45e7b7
cmp dword [esp + 0x40], ebx
je 0x45e765
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x45e74b
mov eax, 5
push 0x4eee28
call fcn.00462040
add esp, 4
jmp 0x45e7b7
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 0x45e7af
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x45e773
mov ebx, esi
jmp 0x45e737
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 0x45e79c
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
add esp, 4
jmp 0x45e7b7
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.0045d870
test eax, eax
je 0x45e7b7
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45e7c1
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.004ab7a8
add esp, 0x28
ret
Function at 0x45ed90
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 0x45edd8
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
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 0x45edbc
cmp dword [esp + 0x10], 8
jne 0x45ee3d
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov eax, edi
call fcn.0045fbf0
add esp, 4
test eax, eax
je 0x45ee4f
mov edi, dword [edi + 4]
xor eax, eax
push eax
push eax
push eax
push edi
push esi
call ebx
test eax, eax
je 0x45edbc
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call ebp
test eax, eax
je 0x45edbc
cmp dword [esp + 0x10], 4
je 0x45ee59
push 0x4eee28
mov eax, 1
call fcn.00462040
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 0x45f510
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 0x45f556
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
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 0x45f5e8
jg 0x45f57e
cmp ebx, ecx
jb 0x45f5e8
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 0x45f5ad
push 0x4eee28
mov eax, 0x4eee28
call fcn.00461d90
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.0045d870
test eax, eax
je 0x45f5a3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45f5ce
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45f5f5
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 0x45f5f5
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x460090
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x50ab8c]
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 0x4601d0
cmp dword [esp + 0x28], ebp
je 0x4601d0
push ebx
push 0x2800
call fcn.004b00e8
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x4600f3
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.004ab7a8
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x460100
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.0045d550
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 0x4601a6
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.004ae3b0
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 0x460199
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x460199
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.0045fe20
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x4601b0
inc edi
cmp edi, 0x10
jl 0x460100
push ebx
call fcn.004afe24
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.004ab7a8
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.004ab7a8
add esp, 0x1c
ret