joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50f3f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
ret

Function at 0x50f410
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0050f3f0
add esp, 4
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0063a460
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004239e0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x218], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x50f505
push 0
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp + 0x10]
jne 0x50f4e2
mov dword [ebp - 0x214], 1
jmp 0x50f4ec
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret

Function at 0x50f850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x50f869
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x50f86b
jmp 0x50f88a
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x50f8b0
push 0
push 0
call fcn.00644f69
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret

Function at 0x5100a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x5100b9
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x5100bb
jmp 0x5100da
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x510100
push 0
push 0
call fcn.00644f69
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov esp, ebp
pop ebp
ret
Function at 0x510820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], 0
push 0x69a820
mov ecx, dword [ebp + 8]
call fcn.0040d3c0
push eax
call fcn.00643e6a
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5108f8
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00644811
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.00644e0a
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00644811
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00613615
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0064440b
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jne 0x5108cd
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov dword [ebp - 0xc], 1
jmp 0x5108ec
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00613304
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
push edx
call fcn.00643f54
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x511370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x511382
jmp 0x5113be
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
jne 0x51139f
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x511480
push 0
push 0
call fcn.00644f69
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov esp, ebp
pop ebp
ret
Function at 0x511b00
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c0], ecx
push 0xfde9
mov ecx, dword [ebp + 0xc]
call fcn.0040d3c0
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00421730
mov ecx, eax
call fcn.0040d3c0
push eax
lea ecx, [ebp - 0x224]
call fcn.00421970
lea ecx, [ebp - 0x2a8]
call fcn.00421ba0
lea ecx, [ebp - 0x2b0]
call fcn.00413220
push 0x21
push 0x21
lea ecx, [ebp - 0x2b0]
call fcn.004e2ab0
push eax
lea ecx, [ebp - 0x224]
call fcn.00425220
push eax
lea ecx, [ebp - 0x224]
call fcn.00424f20
push eax
call fcn.005e9440
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [ebp - 0x2b0]
call fcn.004c9de0
push 0x69a95c
lea ecx, [ebp - 0x2b0]
call fcn.00431940
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0063a460
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov byte [ebp - 0x2a9], dl
lea ecx, [ebp - 0x2a9]
call fcn.00514220
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x2b0]
call fcn.0040d3c0
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x511c49
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004131e0
lea ecx, [ebp - 0x2b0]
call fcn.00413870
lea ecx, [ebp - 0x224]
call fcn.00421c30
mov eax, dword [ebp + 8]
jmp 0x511d3e
lea ecx, [ebp - 0x2b4]
call fcn.00413220
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.004131e0
mov edx, dword [ebp - 0x2c0]
mov eax, dword [edx + 0x10]
push eax
push 0xbb8
lea ecx, [ebp - 0x2b4]
push ecx
lea edx, [ebp - 0x2bc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00540370
add esp, 0x14
test eax, eax
jne 0x511c9f
mov dword [ebp - 0x2b8], 1
jmp 0x511ca9
mov dword [ebp - 0x2b8], 0
mov cl, byte [ebp - 0x2b8]
mov byte [ebp - 0x2aa], cl
lea ecx, [ebp - 0x2bc]
call fcn.00413870
movzx edx, byte [ebp - 0x2aa]
test edx, edx
je 0x511d0b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x69a968
mov ecx, dword [ebp + 8]
call fcn.004131e0
lea ecx, [ebp - 0x2b4]
call fcn.00413870
lea ecx, [ebp - 0x2b0]
call fcn.00413870
lea ecx, [ebp - 0x224]
call fcn.00421c30
mov eax, dword [ebp + 8]
jmp 0x511d3e
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004131e0
lea ecx, [ebp - 0x2b4]
call fcn.00413870
lea ecx, [ebp - 0x2b0]
call fcn.00413870
lea ecx, [ebp - 0x224]
call fcn.00421c30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 8
Function at 0x518580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x5185d7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0
je 0x5185d2
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x2c]
add ecx, 4
call fcn.004159d0
test eax, eax
je 0x5185d2
push 0x69ab6c
lea ecx, [ebp - 8]
call fcn.004131e0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x2c]
call fcn.00515240
lea ecx, [ebp - 8]
call fcn.00413870
jmp 0x51865f
push str.phone_data_task
mov ecx, dword [ebp + 0xc]
call fcn.00422730
test eax, eax
jne 0x51860e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2c], 0
je 0x51860e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
add ecx, 4
call fcn.004159d0
test eax, eax
je 0x51860e
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x2c]
call fcn.00515450
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x518632
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.00518690
jmp 0x51865f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0
je 0x51865f
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x2c]
add ecx, 4
call fcn.004159d0
test eax, eax
je 0x51865f
mov edx, dword [ebp - 4]
add edx, 0x18
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
call fcn.005153a0
mov esp, ebp
pop ebp
ret 8
Function at 0x519070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call fcn.0040dd70
movzx eax, al
test eax, eax
jne 0x5191a1
mov ecx, dword [ebp + 8]
call fcn.0040d3c0
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x88
call fcn.00422730
test eax, eax
je 0x5191a1
mov ecx, dword [ebp + 8]
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5191a1
mov ecx, dword [ebp - 4]
call fcn.005195f0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x88
call fcn.0040d360
mov edx, dword [ebp - 4]
mov dword [edx + 0xa0], 1
push 0x14
call fcn.006135e5
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x519109
mov ecx, dword [ebp - 0xc]
call fcn.005ff6f0
mov dword [ebp - 0x10], eax
jmp 0x519110
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x9c], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x88
call fcn.0040d3c0
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x9c]
call fcn.005ffe50
movzx eax, al
test eax, eax
jne 0x51918b
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x9c], 0
je 0x51918b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x9c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x519177
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x18], eax
jmp 0x51917e
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x9c], 0
cmp dword [ebp + 0xc], 0
je 0x5191a1
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x74]
call ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x51a7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x214]
call fcn.00413220
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0063a460
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0x20d], cl
lea edx, [ebp - 0x21c]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x20d]
call fcn.0051b260
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x51a882
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0
push 0x69ad24
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x214]
call fcn.00413a70
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
call fcn.00421650
lea ecx, [ebp - 0x214]
call fcn.00413870
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret
Function at 0x51bb00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x260], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x258]
call fcn.00421650
lea ecx, [ebp - 0x258]
call fcn.004d9310
lea ecx, [ebp - 0x258]
call fcn.0040dd70
movzx ecx, al
test ecx, ecx
je 0x51bb69
mov dword [ebp - 0x26c], 0
lea ecx, [ebp - 0x258]
call fcn.00413870
mov eax, dword [ebp - 0x26c]
jmp 0x51bd72
push 1
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x258]
call fcn.00423820
lea eax, [ebp - 0x264]
push eax
push 0x69ad90
call fcn.0051d5d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x51bbc3
lea edx, [ebp - 0x264]
push edx
push 0x69ad94
call fcn.0051d5d0
add esp, 8
movzx eax, al
test eax, eax
je 0x51bbc3
push 0x69ad98
lea ecx, [ebp - 0x258]
call fcn.004318c0
lea ecx, [ebp - 0x258]
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x51bc04
mov dword [ebp - 0x270], 0
lea ecx, [ebp - 0x264]
call fcn.00413870
lea ecx, [ebp - 0x258]
call fcn.00413870
mov eax, dword [ebp - 0x270]
jmp 0x51bd72
lea ecx, [ebp - 0x254]
push ecx
push 0x69ad9c
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x274]
push eax
call fcn.0051d600
add esp, 0xc
mov ecx, eax
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x274]
call fcn.00413870
cmp dword [ebp - 0x268], 0xffffffff
je 0x51bd32
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.004131e0
push 0x69ada4
lea ecx, [ebp - 0x25c]
call fcn.00414770
test eax, eax
je 0x51bcfe
push 0x69ada8
lea ecx, [ebp - 0x25c]
call fcn.00414770
test eax, eax
je 0x51bcfe
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.00421f30
add esp, 0xc
push eax
lea ecx, [ebp - 0x25c]
call fcn.0040d360
lea ecx, [ebp - 0x278]
call fcn.00413870
mov edx, dword [ebp - 0x254]
and edx, 0x10
je 0x51bce6
lea eax, [ebp - 0x25c]
push eax
call fcn.0051bb00
add esp, 4
mov dword [ebp - 0x260], eax
jmp 0x51bcfe
lea ecx, [ebp - 0x25c]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x260], eax
lea ecx, [ebp - 0x25c]
call fcn.00413870
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x51bc52
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x258]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x27c], ecx
lea ecx, [ebp - 0x264]
call fcn.00413870
lea ecx, [ebp - 0x258]
call fcn.00413870
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret
Function at 0x51c6f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea ecx, [ebp - 8]
call fcn.00413220
mov ecx, dword [ebp + 0xc]
call fcn.0040dd70
movzx eax, al
test eax, eax
je 0x51c729
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00421650
lea ecx, [ebp - 8]
call fcn.00413870
mov eax, dword [ebp + 8]
jmp 0x51c898
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040d3c0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x51c828
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x51c828
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040d3c0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x51c81e
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 4]
push edx
push 0x69b008
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x51c81e
cmp dword [ebp - 0x28], 0
je 0x51c81e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x69b00c
lea eax, [ebp - 8]
push eax
call fcn.00422a10
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x51c857
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
cmp dword [ebp + 0x14], 0
je 0x51c865
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
cmp dword [ebp + 0x18], 0
je 0x51c873
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
cmp dword [ebp + 0x1c], 0
je 0x51c881
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00421650
lea ecx, [ebp - 8]
call fcn.00413870
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x51cae0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0
push 0x69af88
mov ecx, dword [ebp + 8]
call fcn.0042a210
cmp eax, 1
je 0x51cb19
push 0
push 0x69af90
mov ecx, dword [ebp + 8]
call fcn.0042a210
cmp eax, 1
je 0x51cb19
xor eax, eax
jmp 0x51cb7b
push 3
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045e690
or dword [ebp - 4], 1
mov ecx, eax
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x51cb57
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051cb80
add esp, 4
test eax, eax
jne 0x51cb57
mov dword [ebp - 8], 1
jmp 0x51cb5e
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
and eax, 1
je 0x51cb78
and dword [ebp - 4], 0xfffffffe
lea ecx, [ebp - 0xc]
call fcn.00413870
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x51cb80
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x69af6c
mov ecx, dword [ebp + 8]
call fcn.0042a210
cmp eax, 1
je 0x51cbc2
push 0
push 0x69af74
mov ecx, dword [ebp + 8]
call fcn.0042a210
cmp eax, 1
je 0x51cbc2
xor eax, eax
jmp 0x51cd7d
push 2
lea eax, [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045e690
lea ecx, [ebp - 0x820]
push ecx
push 0x69af7c
lea edx, [ebp - 0x81c]
push edx
call fcn.00421f90
add esp, 0xc
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x830], 0
push 0x800
push 0
lea eax, [ebp - 0x804]
push eax
call fcn.0063a460
add esp, 0xc
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x818], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
lea ecx, [ebp - 0x81c]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0xffffffff
jne 0x51cc82
mov dword [ebp - 0x82c], 0
lea ecx, [ebp - 0x81c]
call fcn.00413870
lea ecx, [ebp - 0x820]
call fcn.00413870
mov eax, dword [ebp - 0x82c]
jmp 0x51cd7d
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x80c], 0
mov edx, dword [ebp - 0x818]
mov dword [edx + 4], 0x800
push 0
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x818]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x818]
push eax
push 0xc
lea ecx, [ebp - 0x810]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x51cd11
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x834], 0
lea ecx, [ebp - 0x81c]
call fcn.00413870
lea ecx, [ebp - 0x820]
call fcn.00413870
mov eax, dword [ebp - 0x834]
jmp 0x51cd7d
mov dword [ebp - 0x828], 0
mov ecx, dword [ebp - 0x818]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x824], edx
cmp dword [ebp - 0x824], 4
je 0x51cd3e
cmp dword [ebp - 0x824], 7
je 0x51cd3e
jmp 0x51cd48
mov dword [ebp - 0x828], 1
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x828]
mov dword [ebp - 0x838], ecx
lea ecx, [ebp - 0x81c]
call fcn.00413870
lea ecx, [ebp - 0x820]
call fcn.00413870
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret
Function at 0x51cd90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x51ce7b
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0064f31e
add esp, 8
cmp eax, 0xffffffff
jne 0x51cddf
mov eax, dword [ebp - 0x210]
jmp 0x51ce81
push 6
mov edx, dword [ebp + 8]
push edx
call fcn.0064f31e
add esp, 8
cmp eax, 0xffffffff
jne 0x51cdfd
mov eax, dword [ebp - 0x210]
jmp 0x51ce81
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0063a460
add esp, 0xc
push str.SM_testdir.dat
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0x82
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x51ce6e
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret

Function at 0x51d090
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0063a460
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x51d0e1
xor eax, eax
jmp 0x51d189
mov ecx, dword [ebp + 8]
call fcn.0043bee0
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax]
test ecx, ecx
je 0x51d120
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
sub edx, eax
sar edx, 1
je 0x51d120
mov dword [ebp - 0x218], 1
jmp 0x51d12a
mov dword [ebp - 0x218], 0
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [ebp - 0x21c]
jae 0x51d184
mov edx, dword [ebp - 0x210]
push edx
lea ecx, [ebp - 0x214]
call fcn.004131e0
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043bf50
lea ecx, [ebp - 0x214]
call fcn.0040dcd0
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x210], edx
lea ecx, [ebp - 0x214]
call fcn.00413870
jmp 0x51d0f5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret