joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098f7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040533d
xor ebx, ebx
cmp dword [0x413d44], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4099cc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x409937
xor eax, eax
jmp 0x409a90
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ecb8
push edi
call esi
cmp eax, ebx
je 0x409930
push eax
call fcn.004052da
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413d44], eax
call esi
push eax
call fcn.004052da
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413d48], eax
call esi
push eax
call fcn.004052da
mov dword [0x413d4c], eax
lea eax, [ebp - 8]
push eax
call fcn.00405a2c
test eax, eax
pop ecx
pop ecx
je 0x40999a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040743c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4099cc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004052da
cmp eax, ebx
pop ecx
mov dword [0x413d54], eax
je 0x4099cc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004052da
pop ecx
mov dword [0x413d50], eax
mov eax, dword [0x413d50]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x409a45
cmp dword [0x413d54], esi
je 0x409a45
push eax
call fcn.00405346
pop ecx
call eax
cmp eax, ebx
je 0x409a12
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x413d54]
call fcn.00405346
pop ecx
call eax
test eax, eax
je 0x409a12
test byte [ebp - 0x18], 1
jne 0x409a45
lea eax, [ebp - 0xc]
push eax
call fcn.00405a63
test eax, eax
pop ecx
je 0x409a2d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040743c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x409a3c
or dword [ebp + 0x10], 0x200000
jmp 0x409a76
or dword [ebp + 0x10], 0x40000
jmp 0x409a76
mov eax, dword [0x413d48]
cmp eax, esi
je 0x409a76
push eax
call fcn.00405346
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x409a76
mov eax, dword [0x413d4c]
cmp eax, esi
je 0x409a76
push dword [ebp - 4]
push eax
call fcn.00405346
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x413d44]
call fcn.00405346
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x6c803dc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
sub esp, 0x3c
mov word [ebp - 0x1e], ax
test byte [0x6c845720], 8
jne 0x6c803e28
test si, si
je 0x6c803e67
movzx eax, si
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x1c], eax
lea esi, [esi]
movsx eax, byte [edi + esi]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlUpperChar]
movsx eax, al
sub esp, 4
add eax, esi
add esi, 1
xor ebx, eax
cmp esi, dword [ebp - 0x1c]
jne 0x6c803df0
mov eax, ebx
xor edx, edx
div word [ebp - 0x1e]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
mov eax, edx
ret
movzx edx, cx
movzx eax, ax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._x___s___x_n
mov dword [esp + 8], str.ATOM_Hash
mov dword [esp + 4], 0x6c845720
mov dword [esp], 3
call fcn.6c803d60
test si, si
jne 0x6c803de3
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret

Function at 0x6c804a60
Capabilities:
Create thread

Disassembly:
mov eax, 1
xchg dword [0x6c852018], eax
test eax, eax
je 0x6c804a70
ret
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6c852024]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x6c8048f0
add eax, 0x400
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
leave
ret
Function at 0x6c804ad0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x10ffff
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x3000
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
sub esp, 0x18
test eax, eax
jne 0x6c804c64
mov eax, dword [ebp - 0x10]
cmp eax, 0x10000
jbe 0x6c804c20
test byte [0x6c845740], 4
jne 0x6c804c38
mov ecx, eax
xor edx, edx
mov dword [0x6c852028], ecx
mov dword [0x6c852020], edx
mov dword [0x6c852024], eax
mov dword [esp + 4], 0x6c805530
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
mov dword [0x6c85201c], eax
mov eax, dword [0x6c852024]
sub esp, 8
mov dword [esp + 0x10], 0x13
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10000
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.6c808940
mov dword [esp + 0x10], 0x13
mov word [0x6c852008], ax
mov eax, dword [0x6c852024]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov dword [esp], 0
add eax, 0x400
mov dword [esp + 4], eax
call fcn.6c808940
mov dword [esp + 0x10], 0x13
mov word [0x6c852006], ax
mov eax, dword [0x6c852028]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10000
mov dword [esp], 0
add eax, 0xf0000
mov dword [esp + 4], eax
call fcn.6c808940
mov word [0x6c852004], ax
mov eax, 1
leave
ret
xor ecx, ecx
mov edx, 0x10000
mov eax, 0xf0000
jmp 0x6c804b41
mov dword [esp + 0xc], str.First_megabyte_not_available_for_DOS_address_space._n
mov dword [esp + 8], str.DOSMEM_Init
mov dword [esp + 4], 0x6c845740
mov dword [esp], 2
call fcn.6c804a00
mov eax, dword [ebp - 0x10]
jmp 0x6c804b3d
test byte [0x6c845740], 2
jne 0x6c804c7a
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Cannot_allocate_DOS_memory_n
mov dword [esp + 8], str.DOSMEM_Init
mov dword [esp + 4], 0x6c845740
mov dword [esp], 1
call fcn.6c804a00
jmp 0x6c804c6d
Function at 0x6c805750
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [0x6c85200c]
test ebx, ebx
jne 0x6c80582e
mov eax, dword [0x6c852028]
test eax, eax
jne 0x6c80583a
lea eax, [ebp - 0xc]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x110000
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6c80583a
mov esi, dword [0x6c852028]
mov dword [esp + 8], 0x500
mov eax, dword [0x6c852024]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
movzx eax, word [0x6c852008]
mov dword [esp + 4], 0
mov dword [0x6c852024], esi
mov dword [esp], eax
call sym.krnl386.exe16_SetSelectorBase
movzx eax, word [0x6c852006]
sub esp, 8
mov dword [esp + 4], 0x400
mov dword [esp], eax
call sym.krnl386.exe16_SetSelectorBase
mov edx, dword [0x6c852028]
sub esp, 8
lea esi, [esi]
mov eax, ebx
shl eax, 8
or eax, 0x90cf00cd
mov dword [edx + ebx*4 + 0xf0000], eax
add ebx, 1
cmp ebx, 0x100
jne 0x6c805808
mov dword [0x6c85200c], 1
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret
test byte [0x6c845740], 2
jne 0x6c805850
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Need_full_access_to_the_first_megabyte_for_DOS_mode_n
mov dword [esp + 8], str.DOSMEM_MapDosLayout
mov dword [esp + 4], 0x6c845740
mov dword [esp], 1
call fcn.6c804a00
jmp 0x6c805843
Function at 0x6c806e40
Capabilities:
Get common file path

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x11c]
push esi
push ebx
push ecx
sub esp, 0x138
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 4], 0xfd
mov dword [esp], edi
mov dword [ebp - 0x12c], eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov esi, eax
sub esp, 8
add eax, 8
cmp ax, word [ebp - 0x12c]
jbe 0x6c806ea0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [esp], ebx
call sub.ucrtbase.dll_strlen
mov ecx, dword [0x6c847ad4]
mov edx, dword [str.SYSTEM]
mov dword [ebx + eax + 4], ecx
mov dword [ebx + eax], edx
lea esp, [ebp - 0x10]
pop ecx
lea eax, [esi + 7]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
Function at 0x6c808660
Capabilities:
Get process heap flags

Disassembly:
push ebp
shr ax, 3
movzx edx, dx
mov ebp, esp
push esi
movzx esi, ax
push ebx
add edx, esi
sub esp, 0x10
cmp edx, dword [0x6c852524]
mov eax, dword [0x6c852528]
jle 0x6c8086a0
lea ebx, [edx + 0xff]
xor bl, bl
test eax, eax
je 0x6c8086b0
cmp ebx, 0x2000
jg 0x6c8086f0
mov eax, dword [0x6c852528]
mov dword [0x6c852524], ebx
shl esi, 4
add eax, esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [0x6c852528], eax
test eax, eax
je 0x6c8086f0
mov edx, dword [0x6c845a20]
mov dword [edx], eax
jmp 0x6c80868d
xor eax, eax
jmp 0x6c8086a5
Function at 0x6c80cf10
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
sub esp, 0x5c
mov dword [ebp - 0x1e], 0x3a0041
mov word [ebp - 0x1a], di
call fcn.6c80cdb0
mov ebx, eax
mov eax, esi
cmp al, 0x19
jbe 0x6c80cf40
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x1e]
movzx eax, al
add word [ebp - 0x1e], ax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
mov dword [ebp - 0x3c], eax
cmp eax, 1
jbe 0x6c80cf35
lea eax, [ebp - 0x24]
mov dword [esp], edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceW]
sub esp, 0x14
test eax, eax
je 0x6c80cf35
mov eax, esi
movzx edi, al
imul edx, edi, 0x3d
add edx, ebx
mov byte [edx + 0x2b5], al
mov eax, dword [ebp - 0x2c]
mov byte [edx + 0x2b6], 0
mov byte [edx + 0x2ba], 0
mov word [edx + 0x2b7], ax
mov eax, dword [ebp - 0x30]
lea esi, [eax - 1]
mov ecx, esi
mov byte [edx + 0x2b9], cl
cmp eax, 1
jbe 0x6c80cfe8
mov edx, 1
lea esi, [esi]
shr eax, 1
mov esi, edx
add edx, 1
cmp eax, 1
jne 0x6c80cfd0
imul eax, edi, 0x3d
mov ecx, esi
mov byte [ebx + eax + 0x2ba], cl
imul ecx, edi, 0x3d
cmp dword [ebp - 0x3c], 3
mov edx, 0x200
lea eax, [ebx + ecx]
mov ebx, dword [ebp - 0x24]
mov word [eax + 0x2bf], dx
mov edx, dword [ebp - 0x28]
sete cl
xor esi, esi
lea ecx, [ecx*8 - 0x10]
mov dword [eax + 0x2bb], 0x2010000
mov byte [eax + 0x2cc], cl
xor ecx, ecx
mov byte [eax + 0x2c1], 0
mov word [eax + 0x2c2], bx
mov dword [eax + 0x2c4], 0x10001
mov dword [eax + 0x2c8], 0
mov byte [eax + 0x2cd], 0
mov dword [eax + 0x2ce], 0
mov word [eax + 0x2d2], cx
mov dword [eax + 0x2d4], edx
mov dword [eax + 0x2d8], 0xffff0000
mov dword [eax + 0x2dc], 0xffff
mov word [eax + 0x2e0], si
mov dword [eax + 0x2e2], ebx
mov dword [eax + 0x2e6], 0x20
mov dword [eax + 0x2ea], 0
mov dword [eax + 0x2ee], 0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6c80d810
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x44c
mov eax, dword [eax + 0xa8]
mov dword [esp + 4], eax
movzx eax, word [ebx + 0x98]
mov dword [esp], eax
call fcn.6c82fe60
mov esi, eax
mov eax, dword [ebx + 0x9c]
mov dword [esp + 4], eax
movzx eax, word [ebx + 0x94]
mov dword [esp], eax
call fcn.6c82fe60
mov ebx, eax
test byte [0x6c8457b0], 8
jne 0x6c80d8f0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], esi
lea edi, [ebp - 0x428]
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
lea esi, [ebp - 0x220]
mov dword [esp + 0xc], 0xffffffff
mov dword [ebp - 0x42c], edx
mov dword [esp + 4], 0
mov dword [esp], 1
call edx
mov edx, dword [ebp - 0x42c]
sub esp, 0x18
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 1
call edx
sub esp, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_MoveFileW]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.RENAME_FILE__s_to__s_n
mov dword [esp + 8], str.INT21_RenameFile
mov dword [esp + 4], 0x6c8457b0
mov dword [esp], 3
call fcn.6c80d340
jmp 0x6c80d861

Function at 0x6c80d930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x230
mov edx, dword [eax + 0xa8]
mov dword [esp + 4], edx
movzx eax, word [eax + 0x98]
mov dword [esp], eax
call fcn.6c82fe60
mov ebx, eax
test byte [0x6c8457b0], 8
jne 0x6c80d9f0
mov dword [esp + 0x14], 0x104
lea esi, [ebp - 0x210]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x6c80d9e0
mov edx, dword fs:[0x18]
mov edx, dword [edx + 0x34]
cmp edx, 0xb7
je 0x6c80da20
cmp edx, 0xce
je 0x6c80da20
cmp edx, 0x70
je 0x6c80da20
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.CREATE_DIRECTORY__s_n
mov dword [esp + 8], str.INT21_CreateDirectory
mov dword [esp + 4], 0x6c8457b0
mov dword [esp], 3
call fcn.6c80d340
jmp 0x6c80d963
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 5
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6c80e860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x210]
sub esp, 0x224
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je 0x6c80e8c0
cmp word [ebp - 0x20e], 0x3a
jne 0x6c80e8c0
movzx ebx, word [ebp - 0x210]
lea eax, [ebx - 0x41]
cmp ax, 0x19
jbe 0x6c80e900
lea eax, [ebx - 0x61]
sub ebx, 0x61
cmp ax, 0x1a
mov eax, 0x1a
cmovae ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, 0x1a
test byte [0x6c8457b0], 8
je 0x6c80e8b4
mov dword [esp + 0xc], str.Failed_to_get_current_drive._n
mov dword [esp + 8], str.INT21_GetCurrentDrive
mov dword [esp + 4], 0x6c8457b0
mov dword [esp], 3
call fcn.6c80d340
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
sub ebx, 0x41
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x6c80e910
Capabilities:
Check if file exists
Get file attributes
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x23c
mov edx, dword [eax + 0xa8]
mov dword [esp + 4], edx
movzx eax, word [eax + 0x98]
mov dword [esp], eax
call fcn.6c82fe60
mov esi, eax
call fcn.6c80e860
mov edi, eax
test byte [0x6c8457b0], 8
jne 0x6c80e9d8
mov dword [esp + 0x14], 0x104
lea ebx, [ebp - 0x220]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
jne 0x6c80e9b0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x6c80e9c5
test al, 0x10
jne 0x6c80ea08
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 3
jmp 0x6c80e9a5
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.SET_CURRENT_DIRECTORY__s_n
mov dword [esp + 8], str.INT21_SetCurrentDirectory
mov dword [esp + 4], 0x6c8457b0
mov dword [esp], 3
call fcn.6c80d340
jmp 0x6c80e94b
mov eax, 0x3d
mov dword [esp + 4], ebx
mov word [ebp - 0x228], ax
movzx eax, word [ebp - 0x220]
mov dword [ebp - 0x224], 0x3a
mov word [ebp - 0x226], ax
lea eax, [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
sub esp, 8
test eax, eax
je 0x6c80e9a5
movzx edx, word [ebp - 0x220]
lea ecx, [edx - 0x41]
cmp cx, 0x19
jbe 0x6c80ea90
lea ecx, [edx - 0x61]
sub edx, 0x61
cmp cx, 0x1a
mov ecx, 0x1a
cmovae edx, ecx
mov ecx, edi
cmp cl, dl
jne 0x6c80e9a7
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
jmp 0x6c80e9a7
sub edx, 0x41
jmp 0x6c80ea6c
Function at 0x6c80eca0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
test dl, dl
je 0x6c80ecf8
movzx eax, dl
mov ebx, edx
mov dword [ebp - 0x1c], 0x3a
add eax, 0x40
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x1e]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 1
jbe 0x6c80ed80
sub ebx, 1
movzx edi, bl
mov eax, edi
call fcn.6c80cf10
test eax, eax
jne 0x6c80ed0d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.6c80e860
movzx edi, al
mov ebx, edi
mov eax, edi
call fcn.6c80cf10
test eax, eax
je 0x6c80eceb
call fcn.6c80cdb0
imul edi, edi, 0x3d
add eax, edi
movzx ecx, byte [eax + 0x2b9]
lea edx, [ecx + 1]
mov byte [esi + 0xb0], dl
movzx edx, word [eax + 0x2b7]
mov word [esi + 0xac], dx
movzx eax, word [eax + 0x2c2]
mov word [esi + 0xa8], ax
call fcn.6c80cdb0
mov edx, 0x3d
movzx eax, word [eax + 0x2b3]
mov dword [esi + 0x98], eax
mov eax, ebx
mul dl
add ax, 0x2cc
mov word [esi + 0xa4], ax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 0x1a
mov ebx, 0x1a
jmp 0x6c80ed02
Function at 0x6c8182b0
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ecx, ecx
mov eax, 0x41
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x26], 0x5c005c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x22], 0x5c002e
mov dword [ebp - 0x1e], 0x3a0041
mov word [ebp - 0x1a], cx
test byte [0x6c8457c0], 8
jne 0x6c8183b0
movzx edx, bl
mov dword [esp + 0x18], 0
add edx, eax
mov dword [esp + 0x14], 0x2000000
lea eax, [ebp - 0x26]
mov word [ebp - 0x1e], dx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, dword [ebp + 0x10]
sub esp, 0x1c
mov esi, eax
shl edi, 9
cmp eax, 0xffffffff
je 0x6c818400
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
shl ebx, 9
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x2c]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.abs_diskread__drive__d__sector__ld__count__ld__buffer__p_n
mov dword [esp + 8], str.DOSVM_RawRead
mov dword [esp + 4], 0x6c8457c0
mov dword [esp], 3
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
movzx eax, bl
mov dword [esp + 0x10], eax
call fcn.6c818260
movzx eax, word [ebp - 0x1e]
jmp 0x6c8182e9
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ucrtbase.dll_memset
mov edx, dword [ebp + 0x18]
xor eax, eax
test edx, edx
je 0x6c81839f
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x6c818448
cmp dword [ebp + 0x10], 1
jbe 0x6c818448
mov eax, dword [ebp + 0x14]
mov byte [eax + 0x200], 0xf8
mov eax, 1
jmp 0x6c81839f
cmp dword [ebp + 0xc], 1
mov eax, 1
jne 0x6c81839f
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 0xf8
jmp 0x6c81839f
Function at 0x6c818640
Capabilities:
Write file on windows

Disassembly:
push ebp
xor ecx, ecx
mov eax, 0x41
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0x16], 0x5c005c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x12], 0x5c002e
mov dword [ebp - 0xe], 0x3a0041
mov word [ebp - 0xa], cx
test byte [0x6c8457d0], 8
jne 0x6c818740
movzx ebx, bl
mov dword [esp + 0x18], 0
add ebx, eax
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x16]
mov word [ebp - 0xe], bx
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x6c818730
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
shl eax, 9
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
shl eax, 9
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [ebp - 4]
mov eax, 1
sub esp, 4
leave
ret
mov edx, dword [ebp + 0x18]
xor eax, eax
mov ebx, dword [ebp - 4]
leave
test edx, edx
setne al
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.abs_diskwrite__drive__d__sector__ld__count__ld__buffer__p_n
mov dword [esp + 8], str.DOSVM_RawWrite
mov dword [esp + 4], 0x6c8457d0
mov dword [esp], 3
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
movzx eax, bl
mov dword [esp + 0x10], eax
call fcn.6c8185f0
movzx eax, word [ebp - 0xe]
jmp 0x6c818677