joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003b70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10003bad
cmp byte [ebp - 0x190], 2
jne 0x10003ba7
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x10003ba7
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x10003c67
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003cae
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10003cae
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10003cb2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003cd0
xor eax, eax
jmp 0x10003d0f
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003d0d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x10003d0f
mov eax, esi
pop esi
leave
ret
Function at 0x10003f48
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x100910d0], esi
jne 0x10003f7d
push edi
push esi
push esi
push esi
push 0x100042b2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003f75
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x1000470b
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x100046a4
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x10004cbd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x10004d0d
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x10004cd2
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
Function at 0x10005441
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push 0x100912dc
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x100911d8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x100910d4
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x100913e0
push esi
push ebx
push 0
call edi
mov eax, dword [0x100916ec]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x1000549c
push esi
mov esi, 0x100915e8
push esi
push eax
call edi
push esi
call ebp
pop ecx
push ebx
call ebp
push ebx
call fcn.100054b8
push eax
push 0x100914e4
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10005714
Capabilities:
Set file attributes

Disassembly:
push 6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x100057a6
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x10006277
Capabilities:
Accept command line arguments
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.ServerMain
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x100062bf
add esi, 0xb
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x100062bf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100062a6
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100062c9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 8
Function at 0x1000633b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
jne 0x1000638a
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
jne 0x10006382
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x1000a0f0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 8
Function at 0x10006041
Capabilities:
Encode data using xor

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x5c], 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0x58], 0
mov esi, dword [ecx]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x60], ebx
mov ebx, dword [ecx + 0xc]
sub eax, 8
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x64], ebx
mov ebx, dword [ecx + 0x10]
mov edx, dword [ebx + 0xf8]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + 0x104]
mov dword [ebp - 0x1c], edx

Function at 0x10008430
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10008456
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
cdq
push edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
call sym.vmtools.dll_W32Util_GetModuleByAddress
add esp, 4
test eax, eax
je 0x1000844e
push eax
call sym.vmtools.dll_Win32U_GetModuleFileName
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x1000844e
push esi
mov esi, dword [ebx]
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10008509
mov esi, dword [esi + 0x3c]
add esi, dword [ebx]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10008509
movzx edx, word [esi + 0x14]
add edx, 0xf8
push edx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10008509
movzx eax, word [esi + 0x14]
lea eax, [eax + esi + 0x18]
push 0x28
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10008509
movzx eax, word [esi + 6]
sub edi, dword [ebx]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], eax
test eax, eax
jbe 0x10008509
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov esi, dword [eax]
mov edi, dword [eax - 8]
mov edx, dword [eax - 4]
cmp esi, edi
ja 0x100084f6
mov esi, edi
cmp ecx, edx
jb 0x10008500
add esi, edx
cmp ecx, esi
jbe 0x10008512
inc ebx
add eax, 0x28
cmp ebx, dword [ebp - 4]
jb 0x100084e8
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
inc ebx
pop esi
sub ecx, edx
mov edx, dword [ebp + 0x18]
mov dword [eax], ebx
pop edi
mov dword [edx], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100113db
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
or al, 1
jne 0x10011449
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push dword [0x1008525c]
call esi
push 0
mov edi, eax
call esi
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + eax + 0x28]
and dword [ebp + 0xc], 0
add esi, eax
mov eax, dword [0x10085258]
mov ecx, dword [0x10085270]
push dword [0x10085260]
sub ecx, eax
push edi
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp + 0xc]
push ecx
push 0x40
push dword [0x1008526c]
push esi
call eax
push dword [0x1008526c]
push dword [0x10085258]
push esi
invalid

Function at 0x100113e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
or al, 1
jne 0x10011449
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push dword [0x1008525c]
call esi
push 0
mov edi, eax
call esi
mov ecx, dword [eax + 0x3c]
mov esi, dword [ecx + eax + 0x28]
and dword [ebp + 0xc], 0
add esi, eax
mov eax, dword [0x10085258]
mov ecx, dword [0x10085270]
push dword [0x10085260]
sub ecx, eax
push edi
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp + 0xc]
push ecx
push 0x40
push dword [0x1008526c]
push esi
call eax
push dword [0x1008526c]
push dword [0x10085258]
push esi
invalid

Function at 0x10011bd0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 1
push eax
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push edi
mov ebx, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10011c50
mov ecx, dword [ebp - 8]
push ecx
call sym.vmtools.dll_UtilSafeMalloc0
mov edx, dword [ebp - 4]
mov esi, eax
lea eax, [edx + edx]
push eax
call sym.vmtools.dll_UtilSafeMalloc0
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
mov edi, eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10011c50
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
push ebx
call edi
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x18]
lea edx, [ebp - 0x20c]
push edx
mov edx, dword [ebp + 0x14]
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov dword [edi], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jl 0x10011cc8
push 1
lea edx, [ebp - 0x20c]
push 0xffffffffffffffff
push edx
call sym.vmtools.dll_Unicode_AllocWithLength
mov dword [edi], eax
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x10011ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
push eax
mov dword [ebp - 4], 0
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0xc]
push 1
push ecx
mov edi, eax
call sym.vmtools.dll_Unicode_GetAllocBytes
push 0x208
mov ebx, eax
call sym.vmtools.dll_UtilSafeMalloc0
add esp, 0x14
mov esi, eax
push esi
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10012046
push 1
push 0xffffffffffffffff
push esi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
mov dword [ebp - 4], eax
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
push ebx
call edi
push esi
call edi
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100120e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push edi
xor esi, esi
push esi
push esi
xor edi, edi
call ebx
test eax, eax
je 0x1001211e
jmp 0x10012100
cmp eax, edi
jbe 0x10012132
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
push esi
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
mov esi, eax
push esi
push edi
call ebx
test eax, eax
jne 0x10012100
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10012140
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
xor edi, edi
xor ebx, ebx
call sym.vmtools.dll_DynBuf_Init
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x1001219d
movzx eax, ax
jmp 0x10012160
mov ecx, edi
test ax, ax
je 0x1001216f
inc edi
cmp word [esi + edi*2], 0
jne 0x10012167
push 1
lea edx, [esi + ecx*2]
push 0xffffffffffffffff
push edx
call sym.vmtools.dll_Unicode_AllocWithLength
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
call sym.vmtools.dll_DynBuf_Append
movzx eax, word [esi + edi*2 + 2]
inc edi
add esp, 0x18
inc ebx
test ax, ax
jne 0x10012160
lea edx, [ebp - 0x10]
push edx
call sym.vmtools.dll_DynBuf_Detach
mov ecx, dword [ebp + 8]
push esi
mov dword [ecx], eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012200
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call ebx
test eax, eax
jne 0x10012233
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10012277
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10012277
lea eax, [ebp - 4]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x10012277
push 1
push 0xffffffffffffffff
push esi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012290
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10012450
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
push 1
push eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x420], ecx
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
push 0x105
mov esi, eax
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x210]
push edx
push eax
push ebx
push edi
push 0x105
lea ecx, [ebp - 0x41c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [ebp - 0x424]
add esp, 4
test esi, esi
je 0x100124f2
test edi, edi
je 0x100124ee
push 1
lea edx, [ebp - 0x41c]
push 0xffffffffffffffff
push edx
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
jmp 0x100124f0
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x420]
test esi, esi
je 0x10012519
test edi, edi
je 0x10012515
push 1
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
jmp 0x10012517
xor eax, eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
Function at 0x10012530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100125e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0xc]
add esp, 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
ret

Function at 0x10012600
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10012630
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0xc]
add esp, 8
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10012670
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100126b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add esp, 8
push ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100126f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 1
push eax
mov dword [ebp - 4], 0xffffffff
mov ebx, 0x104
xor esi, esi
call sym.vmtools.dll_Unicode_GetAllocBytes
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 8], eax
call sym.vmtools.dll_DynBuf_Init
add esp, 0xc
mov edi, edi
lea edi, [ebx + ebx]
push edi
push esi
call sym.vmtools.dll_UtilSafeRealloc0
mov edx, dword [ebp - 8]
add esp, 8
push ebx
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10012771
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10012775
mov edi, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
call sym.vmtools.dll_DynBuf_Destroy
mov eax, dword [ebp - 8]
mov ebx, dword [sym.imp.MSVCR90.dll_free]
push eax
call ebx
push esi
call ebx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jb 0x10012779
mov ebx, edi
jmp 0x10012720
lea eax, [esi + eax*2]
xor edi, edi
mov ecx, esi
mov dword [ebp - 0xc], eax
mov ebx, esi
cmp esi, eax
je 0x100127cb
lea esp, [esp]
cmp word [ebx], 0
jne 0x100127c4
cmp ebx, ecx
je 0x100127cb
push 1
push 0xffffffffffffffff
push ecx
call sym.vmtools.dll_Unicode_AllocWithLength
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
call sym.vmtools.dll_DynBuf_Append
add esp, 0x18
test al, al
je 0x100127e1
mov eax, dword [ebp - 0xc]
inc edi
lea ecx, [ebx + 2]
add ebx, 2
cmp ebx, eax
jne 0x10012790
lea eax, [ebp - 0x18]
push eax
call sym.vmtools.dll_DynBuf_Detach
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
jmp 0x1001274d
lea edx, [ebp - 0x18]
push edx
call sym.vmtools.dll_DynBuf_Detach
push eax
mov ebx, edi
call fcn.10011b70
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x1001274a

Function at 0x100128e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x208
push 0
mov dword [ebp - 4], 0
mov ebx, 0x104
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x10012959
cmp esi, ebx
jb 0x10012949
lea eax, [esi + esi]
push eax
push edi
mov ebx, esi
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
jne 0x10012912
push edi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xffffffffffffffff
push edi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret