joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4620f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x403333
mov eax, dword [eax]
push eax
call fcn.00412080
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4034b2
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 8]
test eax, eax
je 0x403368
cmp dword [eax + 4], 0
jne 0x4034b2
lea eax, [ebp - 0x18]
push eax
call fcn.00418a10
add esp, 4
mov ebx, dword [ebp + 0xc]
mov edx, dword [eax]
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 8
jb 0x403387
mov ecx, dword [ebx]
jmp 0x403389
mov ecx, ebx
mov eax, dword [edx]
push 0
push 0
push ecx
mov ecx, edx
call dword [eax + 0x84]
test eax, eax
je 0x4033a1
lea esi, [eax + 8]
jmp 0x4033a3
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test eax, eax
je 0x4033c2
mov ecx, dword [eax + 4]
add eax, 4
push 1
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
test esi, esi
je 0x403495
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 8]
test eax, eax
je 0x4033e2
cmp dword [eax + 4], 0
jne 0x403495
push 0x19000
call fcn.004060ba
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x403495
mov byte [ebp + 0xb], 0
jmp 0x403405
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov edx, dword [edi]
push eax
push 0x19000
push ecx
mov ecx, edi
call dword [edx]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 8]
test eax, eax
je 0x403430
cmp dword [eax + 4], 0
jne 0x403459
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40345d
mov eax, dword [esi]
lea edx, [ebp - 0x10]
push edx
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 8]
test eax, eax
je 0x403402
cmp dword [eax + 4], 0
je 0x403402
mov byte [ebp + 0xb], 1
push dword [ebp + 0xc]
call fcn.004060b5
add esp, 4
lea ecx, [ebp - 0x14]
push 0
call fcn.004042a0
mov al, byte [ebp + 0xb]
test al, al
je 0x40348d
cmp dword [ebx + 0x14], 8
jb 0x403481
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [ebp + 0xb]
test al, al
mov esi, dword [ebp - 0x14]
sete bl
jmp 0x403497
xor bl, bl
mov byte [ebp - 4], 0
test esi, esi
je 0x4034b4
mov eax, dword [esi + 4]
push 1
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
jmp 0x4034b4
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4034d0
mov ecx, dword [edi + 4]
push 1
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, edi
mov edx, dword [ecx]
call dword [edx]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004037c0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004034f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4036bc
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401b70
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push esi
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4036a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4036bc
lea eax, [ebp - 0x40]
cmp edi, eax
je 0x4036ba
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401f50
xor esi, esi
cmp dword [ebp - 0x14], 8
jb 0x4036cd
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4036f2
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
mov eax, esi
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.004051a4
mov esp, ebp
pop ebp
ret

Function at 0x404380
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 1
push 0
push str.SeShutdownPrivilege
call fcn.00404480
add esp, 0xc
test al, al
je 0x404445
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x445b34
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404403
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x445b5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x404403
push str.NtShutdownSystem
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4043f4
xor ecx, ecx
cmp byte [ebp + 0xc], cl
sete cl
inc ecx
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov bl, byte [ebp + 8]
movzx esi, al
push esi
movzx eax, bl
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x4043fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4f7
jne 0x404445
test bl, bl
jne 0x404445
push esi
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x4043fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bef5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a19b
mov dword [ebp - 0x14], eax
cmp dword [0x46506c], esi
jne 0x40bfe8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bf75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c0c8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c0c8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c0c8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x46506c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x465070], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x465074], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46507c], eax
test eax, eax
je 0x40bfe5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465078], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c00d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c000
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c022
push 4
pop eax
jmp 0x40c0ca
cmp dword [ebp - 0x14], esi
je 0x40c022
push dword [0x46506c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c007
mov eax, dword [0x465078]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c080
cmp dword [0x46507c], edi
je 0x40c080
push eax
call ebx
push dword [0x46507c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c080
test eax, eax
je 0x40c080
call ecx
test eax, eax
je 0x40c075
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c075
test byte [ebp - 8], 1
jne 0x40c080
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c0b0
mov eax, dword [0x465070]
cmp eax, edi
je 0x40c0ad
push eax
call ebx
test eax, eax
je 0x40c0ad
call eax
mov esi, eax
test esi, esi
je 0x40c0ad
mov eax, dword [0x465074]
cmp eax, edi
je 0x40c0ad
push eax
call ebx
test eax, eax
je 0x40c0ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x46506c]
call ebx
test eax, eax
je 0x40c0c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c0ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051a4
mov esp, ebp
pop ebp
ret
Function at 0x417710
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 8]
test eax, eax
je 0x417735
cmp dword [eax + 4], 0
je 0x417735
mov eax, 0x89
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xc], 0
jne 0x417761
mov al, byte [esi + 0x10]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
mov word [ebp - 3], 0x5c3a
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call fcn.004169e0
add esp, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417f90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x20
mov dword [ebp - 4], 0
call fcn.0040499f
mov esi, eax
add esp, 4
test esi, esi
je 0x41800d
mov dword [esi + 4], 0x44d294
mov dword [esi + 0x18], vtable.file_object.0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 4]
mov dword [esi], vtable.i_dir::iterator.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.i_dir::iterator.1.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.win32_dir::letter_iterator.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.win32_dir::letter_iterator.1.0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], 0
mov word [esi + 0x14], ax
mov eax, esi
mov dword [esi + 0x10], 0x3a0040
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e92b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x465176], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], 0
jne 0x418a5b
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov byte [0x465176], 1
cmp byte [0x465179], 0
jne 0x418a96
push 0x465180
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x418a7f
cmp eax, 0x104
jbe 0x418a8f
push 0x105
push 0x465180
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov byte [0x465179], 1
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
push eax
push 0x465180
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004159d0
add esp, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 8
jb 0x418aea
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
push 0x44
call fcn.0040499f
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x418b0e
push 1
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00416420
jmp 0x418b10
xor eax, eax
cmp dword [ebp - 0x14], 8
mov dword [esi], eax
jb 0x418b23
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret
Function at 0x41b150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eba8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4620f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 8]
test eax, eax
je 0x41b19c
cmp dword [eax + 4], 0
jne 0x41b2ce
mov edi, dword [ebp + 0xc]
mov esi, edi
mov ebx, dword [ebp + 8]
cmp esi, edi
mov dword [ebp + 8], esi
lea edx, [ebp + 0xc]
lea eax, [ebp + 8]
cmovae eax, edx
push 0
mov esi, dword [eax]
lea eax, [ebp + 8]
push eax
push esi
push ebx
push dword [ecx + 0x10]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x41b22c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x41b1f4
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
push ebx
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41b1f7
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41b22c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
jne 0x41b253
cmp esi, 0x1000
jbe 0x41b253
lea eax, [esi + 1]
mov esi, 0x44e060
shr eax, 1
lea ecx, [ebp + 8]
cmp eax, 0x1000
mov dword [ebp + 8], eax
cmovae esi, ecx
mov esi, dword [esi]
jmp 0x41b243
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add dword [ecx], eax
cmp eax, esi
jne 0x41b2ce
add ebx, esi
sub edi, esi
mov dword [ebp + 0xc], edi
test edi, edi
je 0x41b2ce
mov ecx, dword [ebp - 0x10]
jmp 0x41b1a4
push str.Error_occurred_while_reading_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push 0x40001
push 0x44e0d8
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x9fb1203c
mov dword [ecx + 4], 0x7ceb2cdc
mov dword [ecx + 8], 0x44e0f8
mov dword [ecx + 0xc], str.win32_file::Read
mov dword [ecx + 0x10], 0x93
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00416a40
add esp, 0x28
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov eax, dword [ecx + 4]
add ecx, 8
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b510
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ec08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4620f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi - 4]
mov eax, dword [ecx + 4]
mov eax, dword [eax + edi]
test eax, eax
je 0x41b551
cmp dword [eax + 4], 0
jne 0x41b62a
mov eax, dword [ecx + 0xc]
lea ecx, [edi - 4]
add ecx, eax
push 0
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [edi - 4]
mov ebx, eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
push dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
add ecx, 0xfffffffc
add ecx, edi
mov esi, dword [ecx]
call dword [esi]
mov eax, dword [edi - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi]
test eax, eax
je 0x41b595
cmp dword [eax + 4], 0
jne 0x41b62a
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41b617
push str.Error_occurred_while_writing_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push 0x40003
push 0x44d7c8
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x9fb120a6
mov dword [ecx + 4], 0x7ceb2cdc
mov dword [ecx + 8], 0x44d7f0
mov dword [ecx + 0xc], str.win32_file::Truncate
mov dword [ecx + 0x10], 0xfd
mov dword [ecx + 0x14], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00416a40
add esp, 0x28
push eax
mov eax, dword [edi - 4]
mov dword [ebp - 4], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.004030c0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f20
mov eax, dword [edi - 4]
lea ecx, [edi - 4]
push dword [ebp - 0x10]
push ebx
mov eax, dword [eax + 0xc]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41b750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ec38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4620f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx]
test eax, eax
je 0x41b79b
cmp dword [eax + 4], 0
jne 0x41b889
mov edi, dword [ebp + 0xc]
mov esi, edi
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x41b7cd.5
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffb
cmp eax, 0x6b
ja case.0x41b7cd.6
movzx eax, byte [eax + 0x41b8a8]
jmp dword [eax*4 + 0x41b8a0]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41b7ec
cmp esi, 2
jb 0x41b889
mov ecx, dword [ebp - 0x10]
inc esi
shr esi, 1
jmp 0x41b7a3
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
sub edi, eax
je 0x41b889
cmp eax, esi
jne 0x41b889
mov ecx, dword [ebp - 0x10]
add ebx, eax
cmp edi, esi
ja 0x41b7a3
lea esi, [edi + 1]
shr esi, 1
jmp 0x41b7a3
push str.Error_occurred_while_writing_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
push 0x40003
push 0x44e148
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x9fb1205f
mov dword [ecx + 4], 0x7ceb2cdc
mov dword [ecx + 8], str.c:jenkins_agentworkspace_ati_main_win599core_filewindowswin32_file.cpp
mov dword [ecx + 0xc], str.win32_file::Write
mov dword [ecx + 0x10], 0xb6
mov dword [ecx + 0x14], eax
lea eax, [ebp + 8]
push eax
call fcn.00416a40
add esp, 0x28
mov edx, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
mov eax, dword [edx - 4]
mov ecx, dword [eax + 4]
add ecx, edx
call fcn.004030c0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41be00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ed00
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], 0
je 0x41be65
mov dword [esi], 0x45105c
mov dword [esi + 8], vtable.Common::NonCopyable.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x238], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.UsnFile.0
mov dword [esi + 4], 0xffffffff
cmp dword [ecx + 0x14], 8
jb 0x41be80
mov ecx, dword [ecx]
push 0x208
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x41beff
push str.Error_occurred_while_opening_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x40007
push 0x451064
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21f7f3
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], str.c:jenkins_agentworkspace_ati_main_win599core_filewindowswinnt_dir.cpp
mov dword [ecx + 0xc], str.UsnFile::UsnFile
mov dword [ecx + 0x10], 0xea
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x234]
push eax
call fcn.00416a40
add esp, 0x28
lea eax, [ebp - 0x234]
push 0x45cffc
push eax
call fcn.004051b3
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x41bf29
xor ecx, ecx
jmp 0x41bf41
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bf32
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402070
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 1
lea ecx, [eax - 1]
cmp eax, ecx
jae 0x41bf72
push str.invalid_string_position
call fcn.0041196e
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], ecx
cmovae eax, dword [ebp - 0x230]
xor edx, edx
push edx
push edx
push 3
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push edx
cmovae eax, dword [ebp - 0x230]
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x41c005
push str.Error_occurred_while_opening_the_file.
call fcn.004029e0
add esp, 4
push eax
push 0x40007
push 0x4510ec
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21f7fc
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], str.c:jenkins_agentworkspace_ati_main_win599core_filewindowswinnt_dir.cpp
mov dword [ecx + 0xc], str.UsnFile::UsnFile
mov dword [ecx + 0x10], 0xf3
jmp 0x41bed6
cmp dword [ebp - 0x21c], 8
jb 0x41c01c
push dword [ebp - 0x230]
call fcn.00404a15
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret 8
Function at 0x41de50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f190
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4620f4]
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 ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 0x450adc
push eax
call fcn.0041f5c0
test al, al
je 0x41df9f
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x41decb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41ded8
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403be0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042c470
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x41df0b
cmp dword [eax + 4], 0
je 0x41df0b
mov edi, 0x84
jmp 0x41df68
lea ecx, [ebp - 0x38]
call fcn.00436e20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call edi
mov esi, eax
cmp esi, 1
jne 0x41df51
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0041f800
test al, al
je 0x41df51
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
mov esi, eax
push esi
call fcn.004169e0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.00436eb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0042c690
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x41dfa4
nop
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x41dfa4
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, esi
test esi, esi
jne 0x41df80
jmp 0x41dfa4
mov edi, 0x89
cmp dword [ebp - 0x14], 8
jb 0x41dfb5
push dword [ebp - 0x28]
call fcn.00404a15
add esp, 4
mov eax, edi
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.004051a4
mov esp, ebp
pop ebp
ret