joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003700
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
push str.GetFileSizeMb._1.__s.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x10
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x100037e7
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10003798
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeMb._2.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
jmp 0x100037db
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeMb._3.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x18
push 0
push 0x100000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.1001e9b0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003806
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeMb._4.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
push str.GetFileSizeMb._5.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x10
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004b70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10004b97
xor al, al
jmp 0x10004cbf
push str.CompressPath
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10036c04], eax
cmp dword [0x10036c04], 0
je 0x10004c55
push str.UncompressPath
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10036c08], eax
cmp dword [0x10036c08], 0
je 0x10004c55
push str.IsFileCompressed
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10036c0c], eax
cmp dword [0x10036c0c], 0
je 0x10004c55
push str.GetFirstFileNameFromArchive
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10036c10], eax
cmp dword [0x10036c10], 0
je 0x10004c55
push str.CompressData
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10036c14], eax
cmp dword [0x10036c14], 0
je 0x10004c55
push str.UncompressData
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10036c18], eax
cmp dword [0x10036c18], 0
jne 0x10004cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov dword [0x10036c04], 0
mov dword [0x10036c08], 0
mov dword [0x10036c0c], 0
mov dword [0x10036c10], 0
mov dword [0x10036c14], 0
mov dword [0x10036c18], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x10004cbf
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004cd0
Capabilities:
Connect network resource
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push str.ConnectToResource._1.__s.__s.__08X
push 0x100273cc
push 3
call fcn.1000e720
add esp, 0x18
push 2
push 0x10027b88
mov edx, dword [ebp + 0xc]
push edx
call fcn.1001ee60
add esp, 0xc
test eax, eax
jne 0x10004d77
push 0x5c
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.1001ed00
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10004d77
push 0x5c
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
call fcn.1001ed00
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10004d77
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.10026590
add esp, 0xc
test eax, eax
jne 0x10004d81
mov eax, 1
jmp 0x10004e1d
mov edx, dword [ebp - 0x28]
mov byte [edx], 0
push 0x20
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.1001ea50
add esp, 0xc
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
push 0xc
push 0
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MPR.dll_WNetAddConnection3A
test eax, eax
je 0x10004df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
push str.ConnectToResource._2.__08X.
push 0x100273cc
push 1
call fcn.1000e720
add esp, 0x10
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x28]
mov byte [eax], 0x5c
xor eax, eax
jmp 0x10004e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectToResource._3.__08X
push 0x100273cc
push 3
call fcn.1000e720
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0x5c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d450
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
je 0x1000d477
mov eax, dword [ebp - 4]
jmp 0x1000d574
mov dword [ebp - 0xac], 0x94
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 1
jne 0x1000d49f
mov eax, dword [ebp - 4]
jmp 0x1000d574
mov edx, dword [ebp + 8]
push edx
push str.._s
lea eax, [ebp - 0x18]
push eax
call fcn.1001e7d5
add esp, 0xc
mov byte [ebp - 0x12], 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.10026b06
add esp, 4
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
push 0x227
call fcn.1001ee4b
add esp, 4
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc], eax
push 0x227
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1001ea50
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0x227
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.1000d3f0
add esp, 8
test eax, eax
je 0x1000d54f
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x1c], 7
je 0x1000d548
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 4
je 0x1000d548
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1c], 8
jne 0x1000d54f
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.1001ee40
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dd20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 1
je 0x1000dd66
cmp dword [ebp - 0x98], 2
je 0x1000ddba
jmp 0x1000de47
cmp dword [ebp - 0x90], 4
jne 0x1000dd82
cmp dword [ebp - 0x8c], 0
jne 0x1000dd82
mov eax, 1
jmp 0x1000de49
cmp dword [ebp - 0x90], 4
jne 0x1000dd9e
cmp dword [ebp - 0x8c], 0xa
jne 0x1000dd9e
mov eax, 2
jmp 0x1000de49
cmp dword [ebp - 0x90], 4
jne 0x1000ddba
cmp dword [ebp - 0x8c], 0x5a
jne 0x1000ddba
mov eax, 3
jmp 0x1000de49
cmp dword [ebp - 0x90], 4
ja 0x1000ddca
mov eax, 4
jmp 0x1000de49
cmp dword [ebp - 0x90], 5
jne 0x1000dde3
cmp dword [ebp - 0x8c], 0
jne 0x1000dde3
mov eax, 5
jmp 0x1000de49
cmp dword [ebp - 0x90], 5
jne 0x1000ddfc
cmp dword [ebp - 0x8c], 1
jne 0x1000ddfc
mov eax, 6
jmp 0x1000de49
cmp dword [ebp - 0x90], 5
jne 0x1000de15
cmp dword [ebp - 0x8c], 2
jne 0x1000de15
mov eax, 7
jmp 0x1000de49
cmp dword [ebp - 0x90], 6
jne 0x1000de2e
cmp dword [ebp - 0x8c], 0
jne 0x1000de2e
mov eax, 8
jmp 0x1000de49
cmp dword [ebp - 0x90], 6
jne 0x1000de47
cmp dword [ebp - 0x8c], 1
jne 0x1000de47
mov eax, 9
jmp 0x1000de49
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ea50
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x1002a17c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 8], eax
jmp 0x1000ea84
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
shr edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x1000ead6
mov eax, dword [ebp - 8]
and eax, 1
test eax, eax
je 0x1000ead4
movsx ecx, byte [ebp - 4]
add ecx, 0x41
mov byte [ebp - 0xc], cl
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x1000ead4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push str._sDK__s.log
push 0x10038abc
call fcn.1001e7d5
add esp, 0x10
push 0x10038abc
call fcn.1001ea18
add esp, 4
jmp 0x1000ea73
push 0
push 5
push 0x10038abc
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1000eb00
push 0
push 0
push 0x10038abc
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1000eb38
push 0x10029d48
push 0x10038abc
call fcn.1001e2a0
add esp, 8
mov edx, dword [ebp + 8]
push edx
push str.DK__s.log
push 0x10038abc
call fcn.1001e830
add esp, 4
add eax, 0x10038abc
push eax
call fcn.1001e7d5
add esp, 0xc
jmp 0x1000eb3f
mov byte [0x10038abc], 0
push 0x10038abc
call fcn.1001ea18
add esp, 4
mov byte [0x10038abc], 0
mov dword [0x10038bc4], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011a60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
mov al, byte [0x100273cc]
mov byte [ebp - 0x104], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.1001e290
add esp, 8
push 0x10029d48
lea eax, [ebp - 0x104]
push eax
call fcn.1001e2a0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.1001e2a0
add esp, 8
push str..SYS
lea eax, [ebp - 0x104]
push eax
call fcn.1001e2a0
add esp, 8
push 0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014b10
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3df4
call fcn.1001eab0
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10014b54
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteDisk._1.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10014d0c
lea ecx, [ebp - 0x3dac]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.1000a100
add esp, 0xc
test eax, eax
je 0x10014b82
lea eax, [ebp - 0x3dac]
mov dword [ebp - 0x3db0], eax
jmp 0x10014b8e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x3db0], edx
mov eax, dword [ebp - 0x3db0]
lea ecx, [ebp - 0x3dac]
cmp eax, ecx
je 0x10014bd5
mov edx, dword [ebp + 8]
cmp dword [edx], 0x3dac
je 0x10014bd5
mov eax, dword [ebp + 8]
cmp dword [eax], 0x3ac
je 0x10014bd5
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x6ac
je 0x10014bd5
mov edx, dword [ebp + 8]
cmp dword [edx], 0x2eac
je 0x10014bd5
mov eax, dword [ebp + 8]
cmp dword [eax], 0x38ac
jne 0x10014c0c
mov ecx, dword [ebp - 0x3db0]
mov esi, dword [ecx]
and esi, 0xffff0000
call fcn.1001d3f0
cmp esi, eax
ja 0x10014c0c
push 8
push 0x10028680
mov edx, dword [ebp - 0x3db0]
add edx, 0x190
push edx
call fcn.1001eae0
add esp, 0xc
test eax, eax
je 0x10014c4e
call fcn.1001d450
push eax
mov eax, dword [ebp - 0x3db0]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteDisk._2.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x1c
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10014d0c
push 0
mov ecx, dword [ebp - 0x3db0]
add ecx, 0x84
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x10014c80
mov edx, dword [ebp - 0x3db0]
add edx, 0x84
push edx
call fcn.1001ea18
add esp, 4
test eax, eax
je 0x10014cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10014cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x10014cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa1
je 0x10014cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3db4], eax
call fcn.1001d450
push eax
mov eax, dword [ebp - 0x3db0]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x3db4]
push ecx
push str.DeleteDisk._3.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x1c
mov edx, dword [ebp - 0x3db4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10014d0c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.1001ea50
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100162b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x12c], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x130], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10016300
mov eax, dword [ebp - 0x130]
jmp 0x1001637c
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001636c
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x358], 0
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x354]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp + 8]
jne 0x10016358
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10016341
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c4c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x1001c4d5
cmp dword [ebp + 8], 0xffffffff
jne 0x1001c4e4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001c65d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0x3dc0
je 0x1001c505
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001c65d
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x1001c537
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x1001c537
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001c537
push 0x10de
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001c65d
mov eax, dword [ebp - 4]
mov dword [eax], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x1001c550
mov eax, 1
jmp 0x1001c65d
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x8c]
cmp edx, 0x5c
jne 0x1001c575
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x8d]
cmp ecx, 0x5c
je 0x1001c5f1
mov edx, dword [0x10029248]
mov dword [ebp - 0x10], edx
mov eax, dword [0x1002924c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x8c]
mov byte [ebp - 0xc], dl
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x1001c5f1
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0x70024
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001c5e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
jne 0x1001c5e7
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x1001c631
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1b0]
and edx, 4
test edx, edx
jne 0x1001c615
mov dword [ebp - 0x1c], 6
mov eax, dword [ebp - 0x1c]
or al, 0x21
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x8c
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x45dc
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.1001ea50
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1001ee98
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x1001c688
cmp dword [ebp + 8], 0xffffffff
jne 0x1001c697
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001c780
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 4], 0x3dc0
je 0x1001c6b8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001c780
push 0
push 0
push 0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1001c6f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FileHandle._1.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
xor eax, eax
jmp 0x1001c780
push 0
lea ecx, [ebp - 4]
push ecx
push 0x200
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001c714
xor eax, eax
jmp 0x1001c780
push 0x10
mov edx, dword [ebp - 0x48]
add edx, 0x45cc
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.1001e4a0
add esp, 0xc
mov dword [ebp - 0x4c], 0
jmp 0x1001c73e
mov ecx, dword [ebp - 0x4c]
add ecx, 0x10
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x200
jae 0x1001c763
push 1
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x48]
add eax, 0x3dc4
push eax
call fcn.10002be0
add esp, 0xc
jmp 0x1001c735
push 0x10
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 0x45cc
push edx
call fcn.1001e4a0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ca10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x1001ca30
cmp dword [ebp + 8], 0xffffffff
jne 0x1001ca3f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001caf8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0x3dc0
je 0x1001ca60
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001caf8
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1ac]
xor esi, esi
push esi
push eax
push edx
push ecx
call fcn.1001f180
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1001caa6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001caf8
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
imul ecx, dword [eax + 0x1ac]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001cad2
xor eax, eax
jmp 0x1001caf8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.pdapi.dll_DecryptSectors
test eax, eax
jne 0x1001caf3
xor eax, eax
jmp 0x1001caf8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001cb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x1001cb30
cmp dword [ebp + 8], 0xffffffff
jne 0x1001cb3f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001cbf8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0x3dc0
je 0x1001cb60
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001cbf8
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1ac]
xor esi, esi
push esi
push eax
push edx
push ecx
call fcn.1001f180
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1001cba6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001cbf8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sym.pdapi.dll_EncryptSectors
test eax, eax
jne 0x1001cbc7
xor eax, eax
jmp 0x1001cbf8
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
imul eax, dword [edx + 0x1ac]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001cbf3
xor eax, eax
jmp 0x1001cbf8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10