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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41ae98
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41aeca
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x41aec6
cmp esi, eax
jae 0x41aeca
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41aeb8
cmp esi, eax
jb 0x41aed0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x41b9a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1c88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x10]
call fcn.0041bc40
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.0041bb10
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41ba17
test al, 1
jne 0x41ba17
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x41ba17
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41ba30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1448
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ecx]
mov dword [esp + 0xc], 0
test eax, eax
je 0x41bab4
mov dword [esp + 0xc], eax
test al, 1
je 0x41ba9f
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jmp 0x41bab4
push 0
lea edx, [esp + 0x18]
and eax, 0xfffffffe
mov eax, dword [eax]
push edx
add ecx, 8
push ecx
call eax
add esp, 0xc
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.004122c0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41baf1
test al, 1
jne 0x41baf1
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x41baf1
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41bba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edi
push 0
push 0
push 1
push 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
lea edx, [ebp - 0xc]
push edx
push 0x41bc10
push 0
push 0
mov dword [ebp - 4], eax
mov dword [esi], 0
call fcn.00454ceb
mov edi, eax
add esp, 0x18
test edi, edi
je 0x41bbf5
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
mov dword [esi], edi
test eax, eax
je 0x41bc05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43cc90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc3bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044dea1
push 4
mov dword [ebp - 4], 0
call fcn.0045401f
mov edi, eax
add esp, 4
test edi, edi
je 0x43cd0c
call fcn.0044d930
mov dword [edi], eax
call fcn.0044d6ef
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044da24
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x43cd02
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044da4c
jmp 0x43cd0e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x444550
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc38b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044dea1
push 4
mov dword [ebp - 4], 0
call fcn.0045401f
mov edi, eax
add esp, 4
test edi, edi
je 0x4445d0
call fcn.0044d930
mov dword [edi], eax
call fcn.0044d6ef
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044da24
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4445c6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044da4c
jmp 0x4445d2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f9b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c9050
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50f880]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x44f9fc
mov eax, dword [edi]
jmp 0x44f9fe
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44fa1c
push esi
push edi
push ebp
call fcn.0044f7e0
add esp, 0xc
jmp 0x44fb6f
test ebx, 0x400
je 0x44fb2b
cmp dword [edi + 0x14], 8
jb 0x44fa32
mov edx, dword [edi]
jmp 0x44fa34
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44fa50
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00417a80
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x44fa81
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x44fab6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00453bd6
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x44fae6
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.0044f7e0
add esp, 0xc
jmp 0x44fb6f
push edi
call fcn.0044e4a0
add esp, 4
test al, al
jne 0x44fb18
push ebx
push edi
call fcn.0044e9f0
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44fb6f
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x44fb3d
mov dword [esi], 0
call fcn.00452dd0
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x44fb54
mov dword [esp + 0x1c], 2
call fcn.0044e9f0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00453be1
add esp, 0x38
ret
Function at 0x453be1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50f880]
jne 0x453beb
repz ret
jmp fcn.0045a4ed

Function at 0x46573c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045e09a
and dword [ebp - 0x14], 0
cmp dword [0x519d84], 0
mov dword [ebp - 0x18], eax
jne 0x4657ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x465897
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x465897
mov esi, dword [section..data]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x519d84], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x519d88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x519d8c], eax
call edi
push eax
call esi
mov dword [0x519d94], eax
test eax, eax
je 0x4657ef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x519d90], eax
mov eax, dword [0x519d90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x50f004]
cmp eax, ecx
je 0x465848
cmp dword [0x519d94], ecx
je 0x465848
push eax
call esi
push dword [0x519d94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x465848
test ebx, ebx
je 0x465848
call edi
test eax, eax
je 0x46583f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46583f
test byte [ebp - 8], 1
jne 0x465848
or dword [ebp + 0x10], 0x200000
jmp 0x46587b
mov eax, dword [0x519d88]
cmp eax, dword [ebp - 0x18]
je 0x46587b
push eax
call esi
test eax, eax
je 0x46587b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46587b
mov eax, dword [0x519d8c]
cmp eax, dword [ebp - 0x18]
je 0x46587b
push eax
call esi
test eax, eax
je 0x46587b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x519d84]
call esi
test eax, eax
je 0x465897
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x465899
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453be1
leave
ret
Function at 0x46ca30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c9fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50f880]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x46cb79
cmp byte [edi + 0x49], 0
je 0x46cb79
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x46cb6c
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x46cab3
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov edx, eax
cmp ebp, 0x10
jae 0x46cad7
lea edx, [esp + 0x18]
mov eax, edx
add edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x14]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x46cb00
dec eax
je 0x46cb04
sub eax, 2
lea ecx, [esp + 0x18]
jne 0x46cb67
jmp 0x46cb74
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp ebp, 0x10
jae 0x46cb17
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x46cb44
cmp ebp, 0x10
jae 0x46cb28
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00488eea
add esp, 0x10
cmp esi, eax
jne 0x46cb63
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x49], 0
je 0x46cb70
test esi, esi
jne 0x46caca
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004525e0
jmp 0x46cac2
lea ecx, [esp + 0x18]
call fcn.0043b070
xor al, al
jmp 0x46cb7b
lea ecx, [esp + 0x18]
call fcn.0043b070
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00453be1
add esp, 0x30
ret
Function at 0x46e8f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4ca167
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x2c], ebx
je 0x46e943
mov dword [ebp], 0x4dda5c
mov dword [ebp + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 1
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp]
mov edi, dword [edx + 4]
add edi, ebp
mov ecx, edi
call fcn.00440660
lea esi, [ebp + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], ebx
call fcn.00444370
mov byte [edi + 0x40], al
cmp dword [edi + 0x38], ebx
jne 0x46e98b
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.00440560
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [esp + 0x24], 2
call fcn.00444550
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x519e34]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x490180
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ccd8f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea eax, [esi + 0xa4]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [esp + 0x10], al
fld qword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x28], ebx
fstp qword [esi + 0x60]
fldz
push 8
fst qword [esi + 0x68]
mov byte [esi + 0x58], bl
fldz
mov byte [esi + 0x78], al
fst dword [esi + 0x5c]
mov dword [esi + 0x7c], ebx
fst dword [esi + 0x70]
fstp dword [esi + 0x74]
fstp qword [esi + 0x88]
call fcn.0045401f
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x490206
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x490208
xor edi, edi
lea eax, [esp + 0x14]
push eax
call fcn.0044cf20
mov ecx, dword [eax]
mov edx, dword [esi + 0x40]
mov dword [eax], edx
mov dword [esi + 0x40], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x44], edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49025c
mov edi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49025c
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49025c
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
push 8
call fcn.0045401f
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x490275
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x490277
xor edi, edi
lea eax, [esp + 0x14]
push eax
call fcn.0044cf20
mov ecx, dword [eax]
mov edx, dword [esi + 0x48]
mov dword [eax], edx
mov dword [esi + 0x48], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x4c], edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4902cb
mov edi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4902cb
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4902cb
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
fldz
lea eax, [esi + 0xa0]
fld st(0)
push 0x4dfca0
fld st(1)
push eax
fxch st(1)
xor ebx, ebx
fstp qword [esi + 0x30]
fstp qword [esi + 0x38]
fstp qword [esi + 0x98]
call fcn.0041b280
fldz
fstp qword [esi + 0x80]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
cmp ecx, edx
je 0x490333
mov eax, edx
cmp edx, edx
je 0x490330
lea ebx, [ebx]
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov dword [ecx + 8], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 0xc], edi
add eax, 0x10
add ecx, 0x10
cmp eax, edx
jne 0x490310
mov dword [esi + 0xc], ecx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49c310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
push edi
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x49c394
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
sete bl
test bl, bl
jne 0x49c38c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp + 8]
push edx
push eax
push esi
push edi
push str.ReadFile_failed_with_error_code:_0x_08x__hVolume:_0x_08x__count:__d__read:__d_
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4e6eec
mov dword [ebp - 0xc], 0x4b
mov dword [ebp - 8], 1
call fcn.00409be0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
mov edi, eax
push esi
push edi
push str.SetFilePointerEx_failed_with_error_code:_0x_08x__hVolume:_0x_08x__offset:__I64d_
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], str.CNtfs::ReadFileRange
mov dword [ebp - 0xc], 0x54
mov dword [ebp - 8], 1
call fcn.00409be0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0a20
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc92a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
push 0x1000
mov dword [ebp - 0x2c], eax
mov edi, ecx
mov ebx, edx
mov byte [eax], 0
call fcn.0044d57b
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x4a0a91
push eax
mov dword [ebx], 5
call fcn.00454014
add esp, 4
xor al, al
jmp 0x4a0bf6
push 0x1000
push 0
push esi
call fcn.00457de0
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x1000
push esi
push 0xc
lea edx, [ebp - 0x1c]
push edx
push 0x2d1400
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], al
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4a0ae3
push esi
mov dword [ebx], 6
call fcn.00454014
add esp, 4
xor al, al
jmp 0x4a0bf6
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4a0b2d
lea ebx, [eax + esi]
lea eax, [ebp - 0x24]
call fcn.004165c0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a0b42
lea ebx, [eax + esi]
lea eax, [ebp - 0x20]
call fcn.004165c0
mov ebx, dword [ebp - 0x20]
cmp dword [edi - 0xc], 0
jl 0x4a0ba2
push str.SAMSUNG_HD155UI
push edi
call fcn.00456001
add esp, 8
test eax, eax
je 0x4a0b60
sub eax, edi
sar eax, 1
je 0x4a0b7e
cmp dword [edi - 0xc], 0
jl 0x4a0ba2
push str.SAMSUNG_HD204UI
push edi
call fcn.00456001
add esp, 8
test eax, eax
je 0x4a0ba2
sub eax, edi
sar eax, 1
jne 0x4a0ba2
cmp dword [ebx - 0xc], 0
jl 0x4a0b9c
push str.1AQ10003
push ebx
call fcn.00456001
add esp, 8
test eax, eax
je 0x4a0b9c
sub eax, ebx
sar eax, 1
je 0x4a0ba2
mov eax, dword [ebp - 0x2c]
mov byte [eax], 1
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x28], ecx
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a0bcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a0beb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.00454014
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret 8