joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e590
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0x20], edx
mov ebx, ecx
mov dword [esp + 0x30], 0x40
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
cmp ecx, esi
ja 0x1001e5de
mov eax, dword [esp + 0x38]
jb 0x1001e5e2
cmp eax, edx
jb 0x1001e5e2
mov eax, edx
mov ecx, esi
test ecx, ecx
jne 0x1001e5ed
cmp eax, 0x1000000
jbe 0x1001e60a
add eax, 0xff000000
mov dword [esp + 0x1c], eax
adc ecx, 0xffffffff
mov dword [esp + 0x18], ecx
test ecx, ecx
ja 0x1001e61a
jb 0x1001e60a
cmp eax, 0x1000000
jae 0x1001e61a
mov dword [esp + 0x1c], 0x1000000
mov dword [esp + 0x18], 0
cmp ebx, 9
jb 0x1001e629
mov dword [esp + 0x14], 0x4000000
jmp 0x1001e65a
cmp ebx, 7
jb 0x1001e638
mov dword [esp + 0x14], 0x2000000
jmp 0x1001e65a
cmp ebx, 5
jb 0x1001e647
mov dword [esp + 0x14], 0x1000000
jmp 0x1001e65a
cmp ebx, 3
sbb eax, eax
and eax, 0xfff10000
add eax, 0x100000
mov dword [esp + 0x14], eax
xor ecx, ecx
mov ebx, 0x14
mov dword [esp + 0x10], ecx
xor esi, esi
lea eax, [ebx - 1]
nop word [eax + eax]
cmp ebx, 0x14
jne 0x1001e679
test esi, esi
jne 0x1001e6d2
lea edi, [esi + 2]
mov ecx, eax
shl edi, cl
cmp edi, 0x4000000
ja 0x1001e6ce
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
sub esp, 0x10
movlpd qword [esp + 0x3c], xmm0
mov edx, edi
push dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.1001e390
add esp, 0x1c
cmp edi, dword [esp + 0x14]
ja 0x1001e6cb
cmp edx, dword [esp + 0x18]
ja 0x1001e6cb
jb 0x1001e6c0
cmp eax, dword [esp + 0x1c]
ja 0x1001e6cb
mov ecx, edi
lea eax, [ebx - 1]
mov dword [esp + 0x10], ecx
jmp 0x1001e6d2
lea eax, [ebx - 1]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, 2
jb 0x1001e670
inc ebx
cmp ebx, 0x1f
jbe 0x1001e665
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x70]
pop esi
pop ebx
xor ecx, esp
call fcn.10142783
mov esp, ebp
pop ebp
ret
Function at 0x1001ee20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov edx, ecx
test ebp, ebp
je 0x1001eea6
push ebx
xor ebx, ebx
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
cmp dword [esp + 0x10], ebx
jle 0x1001eea5
push esi
push edi
mov eax, 0x12345678
mov edi, 0x23456789
mov esi, 0x34567890
nop dword [eax]
movzx ecx, byte [ebx + ebp]
inc ebx
mov ebp, dword [edx + 0xc]
xor ecx, eax
movzx ecx, cl
shr eax, 8
xor eax, dword [ebp + ecx*4]
movzx ecx, al
add ecx, edi
mov dword [edx], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [edx + 4], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
movzx ecx, cl
xor esi, dword [ebp + ecx*4]
mov ebp, dword [esp + 0x14]
mov dword [edx + 8], esi
cmp ebx, dword [esp + 0x18]
jl 0x1001ee60
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001eeb0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x14
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, ecx
push ebx
push ebp
push esi
movq xmm0, qword [eax]
xor ebp, ebp
mov eax, dword [eax + 8]
mov ebx, dword [edx]
mov esi, dword [edx + 8]
push edi
mov edi, dword [edx + 4]
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], eax
mov ax, word [edx + 8]
or ax, 2
movzx eax, ax
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor cl, byte [esp + ebp + 0x14]
movzx eax, cl
xor eax, ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 0xc]
movzx eax, al
shr ebx, 8
xor ebx, dword [ecx + eax*4]
movzx eax, bl
add eax, edi
mov dword [edx], ebx
imul edi, eax, 0x8088405
inc edi
mov eax, edi
mov dword [edx + 4], edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ecx + eax*4]
mov ecx, dword [esp + 0x10]
mov byte [esp + ebp + 0x14], cl
inc ebp
mov dword [edx + 8], esi
movzx eax, si
cmp ebp, 0xb
jl 0x1001eee3
or eax, 2
movzx eax, ax
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor cl, byte [esp + ebp + 0x14]
mov ebp, dword [edx + 0xc]
movzx eax, cl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [ebp + eax*4]
movzx eax, bl
add eax, edi
mov dword [edx], ebx
imul eax, eax, 0x8088405
pop edi
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4]
xor eax, eax
mov dword [edx + 8], esi
pop esi
pop ebp
pop ebx
cmp cl, byte [esp + 0x20]
jne 0x1001efaf
mov ecx, dword [esp]
cmp cl, byte [esp + 0x1c]
setne al
mov dword [edx + 0x10], eax
mov eax, 1
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10142783
add esp, 0x14
ret 0xc
Function at 0x1001fdb0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esi + 0x6d0]
test eax, eax
je 0x1001ff8d
push ebx
push edi
cmp eax, 1
je 0x1001fef3
cmp eax, 5
je 0x1001fef3
cmp eax, 2
je 0x1001fec1
cmp eax, 3
je 0x1001fec1
cmp eax, 4
je 0x1001fec1
cmp eax, 6
je 0x1001fec1
cmp eax, 7
je 0x1001fec1
cmp eax, 0x106
je 0x1001ff8b
cmp eax, 0x107
je 0x1001ff8b
cmp eax, 0x108
je 0x1001ff8b
cmp eax, 8
je 0x1001fe36
cmp eax, 9
jne 0x1001ff8b
cmp dword [esi + 0x4d8], 0
mov ebx, dword [esp + 0x18]
jne 0x1001fe5f
mov eax, ebx
and eax, 0x8000000f
jns 0x1001fe53
dec eax
or eax, 0xfffffff0
add eax, 1
je 0x1001fe5f
mov dword [esi + 0x4d8], 1
cmp dword [esi + 0x4e0], ebx
jge 0x1001fe8a
push ebx
push dword [esi + 0x4dc]
call fcn.1014d427
add esp, 8
test eax, eax
je 0x1001ff8b
mov dword [esi + 0x4dc], eax
mov dword [esi + 0x4e0], ebx
mov edi, dword [esp + 0x14]
push ebx
push edi
push dword [esi + 0x4dc]
call fcn.10146160
mov edx, dword [esi + 0x4dc]
lea eax, [esi + 0x1c4]
push eax
lea eax, [esi + 0x4c8]
mov ecx, edi
push eax
push ebx
call fcn.100de1c0
add esp, 0x18
pop edi
pop ebx
pop esi
pop ecx
ret 8
mov edx, dword [esp + 0x18]
lea ebx, [esi + 0x4fc]
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x114]
push eax
call fcn.100dbb10
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
call fcn.10090910
add esp, 8
pop edi
pop ebx
pop esi
pop ecx
ret 8
mov eax, dword [esi + 0x4f4]
mov edx, dword [esi + 0x4e8]
mov ebx, dword [esi + 0x4ec]
mov edi, dword [esi + 0x4f0]
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x1001ff78
mov esi, dword [esp + 0x18]
nop dword [eax]
mov eax, edi
lea esi, [esi + 1]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [esi - 1]
movzx eax, cl
xor eax, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
movzx eax, al
shr edx, 8
xor edx, dword [ecx + eax*4]
movzx eax, dl
add eax, ebx
imul ebx, eax, 0x8088405
inc ebx
mov eax, ebx
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov ecx, dword [esp + 0x18]
mov byte [esi - 1], cl
sub ebp, 1
jne 0x1001ff20
mov esi, dword [esp + 0x10]
mov dword [esi + 0x4e8], edx
mov dword [esi + 0x4ec], ebx
mov dword [esi + 0x4f0], edi
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret 8
Function at 0x10024f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x408
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x404], eax
mov al, byte [esp + 0x41c]
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x414]
push esi
mov esi, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x428]
cmp al, 0x4c
je 0x10024fce
cmp al, 0x4b
jne 0x10024ff8
push 0x200
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10143f10
add esp, 0xc
lea eax, [esp + 0x10]
push 0x64
push str.._.__LongLink
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
test eax, eax
jne 0x10025010
push 0
push 0
push 0xa0000047
lea ecx, [ebx + 8]
call fcn.1000baa0
xor eax, eax
jmp 0x1002514f
test esi, esi
je 0x1002502b
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10025020
sub ecx, edx
jmp 0x1002502d
xor ecx, ecx
lea eax, [ecx + 1]
cdq
lea ecx, [esp + 0x8c]
push edx
push eax
mov edx, 0xc
call fcn.10023ec0
mov al, byte [esp + 0x434]
lea ecx, [esp + 0x18]
movq xmm0, qword [str.00000000000]
add esp, 8
mov byte [esp + 0xac], al
mov eax, dword [0x101d33b8]
mov dword [esp + 0x74], 0x30303030
mov dword [esp + 0x78], 0x343436
mov dword [esp + 0x7c], 0x30303030
mov dword [esp + 0x80], 0x303030
mov dword [esp + 0x84], 0x30303030
mov dword [esp + 0x88], 0x303030
movq qword [esp + 0x98], xmm0
mov dword [esp + 0xa0], eax
call fcn.10023e30
push 0x200
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
push ebp
call fcn.10024ed0
test eax, eax
jne 0x100250df
push eax
push dword [edi + 4]
lea ecx, [ebx + 8]
push 0xa0000030
call fcn.1000baa0
xor eax, eax
jmp 0x1002514f
test esi, esi
je 0x1002514a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
jle 0x1002514a
push 0x200
lea eax, [esp + 0x214]
push 0
push eax
call fcn.10143f10
add esp, 0xc
lea eax, [esp + 0x210]
push 0x200
push esi
push eax
call fcn.1014e630
add esp, 0xc
lea eax, [esp + 0x210]
mov ecx, ebx
push 0x200
push eax
push ebp
call fcn.10024ed0
test eax, eax
je 0x10025009
sub edi, 0x200
add esi, 0x200
test edi, edi
jg 0x100250f0
mov eax, 1
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x408
ret 0x14

Function at 0x1002593e
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
test eax, eax
jne 0x10025960
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10142783
add esp, 8
ret
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
mov eax, dword [esp + 4]
cmp eax, dword [esi + 0x13c]
je 0x100259a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10142783
add esp, 8
ret
mov eax, ecx
mov dword [esi + 0x13c], 0
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.10142783
add esp, 8
ret
Function at 0x10025a10
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x18
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebx, ecx
push edi
mov edi, dword [esp + 0x30]
neg edi
mov dword [esp + 0x10], edx
push 0
sbb edi, edi
xor eax, eax
push 0x80
and edi, 4
test esi, esi
push 2
push 0
setne al
or edi, eax
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10025b70
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edi, eax
cmp edi, 5
je 0x10025b1f
cmp edi, 0x7b
je 0x10025b1f
cmp edi, 3
jne 0x10025b5f
cmp dword [esp + 0x34], 0
je 0x10025b68
sub esp, 0xc
mov dword [esp + 0x2c], 0
mov ecx, esp
xorps xmm0, xmm0
movq qword [esp + 0x24], xmm0
push ebx
mov dword [ecx], 0x101d1eb4
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.100100c0
lea ecx, [esp + 0x24]
call fcn.1000e3f0
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ebx
call eax
mov esi, eax
call ebp
mov edi, eax
test ebx, ebx
je 0x10025b05
cmp ebx, 0x101d1eb4
je 0x10025b05
push ebx
call fcn.10146720
add esp, 4
cmp esi, 0xffffffff
je 0x10025b5f
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10142783
add esp, 0x18
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10025b5f
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x10025b70
call ebp
mov edi, eax
test edi, edi
jne 0x10025b68
mov edi, 0xa0000031
mov eax, dword [esp + 0x10]
mov dword [eax], edi
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x18
ret
Function at 0x10025d20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015ff5d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101ed004]
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
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, byte [ebp + 0x20]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
call fcn.10001510
mov esi, eax
test esi, esi
je 0x10025f07
mov eax, dword [edi + 0x140]
cmp dword [eax + 0x1c], 0
je 0x10025e17
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025d80
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x10025e17
sub esp, 0xc
mov dword [ebp - 0x1c], 0
mov ecx, esp
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
push esi
mov dword [ecx], 0x101d1eb4
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.100100c0
lea ecx, [ebp - 0x24]
call fcn.1000e3f0
push dword [ebp - 0x24]
call fcn.10147912
add esp, 0x10
test eax, eax
je 0x10025deb
push esi
mov esi, eax
call fcn.10146720
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10025e02
cmp eax, 0x101d1eb4
je 0x10025e02
push eax
call fcn.10146720
add esp, 4
mov dword [ebp - 0x24], 0x101d1eb4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp dword [edi + 0xc], 0xffffffff
je 0x10025e30
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x20]
test ebx, ebx
je 0x10025e43
push 0xffffffffffffffff
push esi
push dword [ebp + 0x14]
push ebx
call fcn.1014e92f
add esp, 0x10
mov eax, dword [edi + 0x140]
mov ecx, esi
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x28]
push dword [eax + 0x1c]
push ebx
push dword [ebp + 0x18]
call fcn.10025a10
add esp, 0xc
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x10025ea8
mov edx, dword [edi + 0x140]
mov ecx, esi
push dword [ebp - 0x28]
mov edx, dword [edx + 0x1c]
call fcn.1000ecb0
add esp, 4
test eax, eax
je 0x10025ea4
mov eax, dword [edi + 0x140]
mov ecx, esi
mov edx, dword [ebp - 0x28]
push dword [eax + 0x1c]
push ebx
push dword [ebp + 0x18]
call fcn.10025a10
add esp, 0xc
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x10025ea8
xor edi, edi
jmp 0x10025ef8
push esi
call fcn.10147912
add esp, 4
mov dword [edi + 0x14], eax
test esi, esi
je 0x10025ef3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x10025ef3
cmp word [esi + 2], 0x3a
jne 0x10025ef3
cmp word [esi + 4], 0x5c
jne 0x10025ef3
mov ax, word [esi]
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x16], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi + 0x38], eax
mov edi, 1
test esi, esi
je 0x10025f05
push esi
call fcn.10146720
add esp, 4
mov eax, edi
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.10142783
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10025f3e
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x13c]
cmp ecx, 0x100
jb 0x10025fbc
push 0
lea eax, [esp + 8]
push eax
push ecx
lea eax, [esi + 0x3c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 4]
cmp ecx, dword [esi + 0x13c]
je 0x10025f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10142783
add esp, 8
ret 4
xor ecx, ecx
mov dword [esi + 0x13c], 0
test eax, eax
je 0x10025fa8
cmp ecx, 0x100
jb 0x10025fbc
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10142783
add esp, 8
ret 4
mov al, byte [esp + 0x10]
mov byte [ecx + esi + 0x3c], al
mov eax, 1
inc dword [esi + 0x13c]
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.10142783
add esp, 8
ret 4
Function at 0x10026420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x1002647a
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
cmp eax, dword [esi + 0x13c]
je 0x10026470
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
jmp 0x1002647a
mov dword [esi + 0x13c], 0
push 0
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push dword [ebp + 0xc]
movq qword [esp + 0x14], xmm0
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100264a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x48]
call eax
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.10142783
mov esp, ebp
pop ebp
ret 8

Function at 0x100264c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x10026566
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
push dword [esi + 0x14]
call ebx
cmp eax, 1
je 0x1002659c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x48]
call eax
push dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [esi + 0x14]
call ebx
test eax, eax
jne 0x10026533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x1002655d
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x10026571
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x20]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x18]
call dword [eax + 0x44]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10026590
push eax
call fcn.10146720
add esp, 4
push edi
call fcn.10147912
add esp, 4
mov dword [esi + 0x14], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100265be
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x10026604
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
cmp eax, dword [esi + 0x13c]
je 0x100265fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
jmp 0x10026604
mov dword [esi + 0x13c], 0
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x10026621
or eax, eax
or edx, 0xffffffff
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.10142783
add esp, 0xc
ret
push 1
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
xor ecx, ecx
mov eax, dword [esp + 4]
or ecx, esi
cdq
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.10142783
add esp, 0xc
ret
Function at 0x1002f950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101606ad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x101ed004]
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
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dl, 1
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
call fcn.10001510
mov edi, eax
test edi, edi
je 0x1002fa9d
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
cmp dword [esi + 0x68], 0xffffffff
je 0x1002f9b3
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x20]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002f9c9
push 0xffffffffffffffff
push edi
push dword [ebp + 0x14]
push eax
call fcn.1014e92f
add esp, 0x10
push ebx
push edi
mov ecx, esi
call fcn.1002fac0
test eax, eax
jne 0x1002f9fb
mov edx, dword [esi + 0x88]
mov ecx, edi
push ebx
mov edx, dword [edx + 0x1c]
call fcn.1000ecb0
add esp, 4
test eax, eax
je 0x1002fa61
push ebx
push edi
mov ecx, esi
call fcn.1002fac0
test eax, eax
je 0x1002fa61
push edi
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
call fcn.10147912
mov dword [esi + 0x6c], eax
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1002fa39
push eax
call fcn.10146720
add esp, 4
push 0x8000
call fcn.10146843
add esp, 4
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 0x8000
test eax, eax
jne 0x1002fa65
mov dword [esi + 0x58], 8
mov dword [ebx], 0xa0000063
xor esi, esi
jmp 0x1002fa92
cmp dword [esi + 0xc], 0
jne 0x1002fa8d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push esi
push 0x10030040
push 0
push 0
call fcn.1014f1f4
add esp, 0x18
mov dword [esi + 0xc], eax
mov esi, 1
push edi
call fcn.10146720
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.10142783
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1002fac0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 8], eax
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
mov ecx, esi
mov eax, dword [edi + 0x88]
push dword [eax + 0x1c]
push 1
push 1
call fcn.10025a10
add esp, 0xc
mov dword [edi + 0x68], eax
cmp eax, 0xffffffff
je 0x1002fb3f
test esi, esi
je 0x1002fb3f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x1002fb3f
cmp word [esi + 2], 0x3a
jne 0x1002fb3f
cmp word [esi + 4], 0x5c
jne 0x1002fb3f
mov ax, word [esi]
mov word [esp + 8], ax
xor eax, eax
mov word [esp + 0xe], ax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xe], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi + 0x98], eax
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp dword [edi + 0x68], 0xffffffff
pop edi
setne al
pop esi
xor ecx, esp
call fcn.10142783
add esp, 0xc
ret 8