joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f100
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab448
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x101f5e60], 0
jne 0x1001f16e
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.1001b700
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x24]
mov esi, eax
call fcn.1009cfdf
add esp, 4
test esi, esi
je 0x1001f1f8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10024200
mov edi, eax
cmp edi, 1
je 0x1001f194
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001f15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001f1f8
test edi, edi
je 0x1001f1f8
lea ecx, [ebp - 0x18]
call fcn.10019ec0
cmp edi, 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.10023cf0
test al, al
je 0x1001f1ed
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.1009cfdf
add esp, 4
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
call fcn.1009cfdf
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001f460
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab448
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.10020f00
cmp eax, 0xffffffff
je 0x1001f4af
test al, 0x10
jne 0x1001f4af
test al, 1
je 0x1001f4af
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.100200a0
test al, al
je 0x1001f56a
cmp byte [0x101f5e60], 0
jne 0x1001f4f2
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.1001b700
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x24]
mov esi, eax
call fcn.1009cfdf
add esp, 4
test esi, esi
je 0x1001f56a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10024200
mov edi, eax
cmp edi, 1
je 0x1001f50b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001f4df
test edi, edi
je 0x1001f56a
lea ecx, [ebp - 0x18]
call fcn.10019ec0
cmp edi, 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.10023cf0
push dword [ebp - 0x18]
test al, al
je 0x1001f562
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.1009cfdf
add esp, 4
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1009cfdf
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab4b6
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x100df0c0]
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 [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x101f5e60], cl
jne 0x1001f62a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1001f6f5
cmp eax, 0x114
jae 0x1001f6f5
lea edx, [ebp - 0x128]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x36c]
call fcn.1001b6d0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10019fb0
push dword [ebp - 0x36c]
call fcn.1009cfdf
add esp, 4
mov al, 1
jmp 0x1001f6f7
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x1001f6f5
cmp esi, 0x114
jae 0x1001f677
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.1001a0b0
mov al, 1
jmp 0x1001f6f7
lea ecx, [ebp - 0x360]
call fcn.10019ec0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x1001f69d
push esi
lea ecx, [ebp - 0x360]
call fcn.1001ae30
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x1001f6e7
push esi
lea ecx, [ebp - 0x360]
call fcn.1001fba0
cmp dword [ebp - 0x35c], ebx
jne 0x1001f6e7
lea eax, [esi - 1]
cmp eax, ebx
jne 0x1001f6e7
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.10019fb0
push dword [ebp - 0x360]
call fcn.1009cfdf
add esp, 4
mov al, 1
jmp 0x1001f6f7
push dword [ebp - 0x360]
call fcn.1009cfdf
add esp, 4
xor al, al
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.1009bea4
mov esp, ebp
pop ebp
ret

Function at 0x1001f940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab51b
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x100df0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x101f5e60], 0
jne 0x1001f9ca
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
mov esi, eax
lea ecx, [ebp - 0x360]
call fcn.1001b6d0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10019fb0
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.1009cfdf
add esp, 4
jmp 0x1001f9f5
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x354]
push eax
call fcn.1001a0b0
mov ecx, edi
call fcn.10024570
test esi, esi
je 0x1001fa0c
cmp esi, 0x114
jae 0x1001fa0c
mov al, 1
jmp 0x1001fa0e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009bea4
mov esp, ebp
pop ebp
ret
Function at 0x1001fa30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab568
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
cmp byte [0x101f5e60], 0
jne 0x1001fabb
lea ecx, [ebp - 0x40]
call fcn.1001b700
mov esi, eax
mov edx, ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1001b700
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x34]
mov esi, eax
call fcn.1009cfdf
push dword [ebp - 0x40]
call fcn.1009cfdf
add esp, 8
test esi, esi
je 0x1001fb7e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10024200
mov ecx, edi
mov dword [ebp - 0x10], eax
call fcn.10024200
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x1001fae8
cmp esi, 1
je 0x1001fae8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1001faa7
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1001faf4
test esi, esi
je 0x1001fb7e
lea ecx, [ebp - 0x28]
call fcn.10019ec0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.10019ec0
cmp dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
je 0x1001fb1e
cmp esi, 1
je 0x1001fb1e
mov al, 1
jmp 0x1001fb20
xor al, al
push eax
lea eax, [ebp - 0x1c]
mov edx, edi
push eax
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10024180
push dword [ebp - 0x1c]
test al, al
je 0x1001fb6e
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp - 0x1c]
mov esi, eax
call fcn.1009cfdf
push dword [ebp - 0x28]
call fcn.1009cfdf
add esp, 8
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1009cfdf
push dword [ebp - 0x28]
call fcn.1009cfdf
add esp, 8
xor al, al
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 0x1001fc00
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab448
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x101f5e60], 0
jne 0x1001fc6c
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.1001b700
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x24]
mov esi, eax
call fcn.1009cfdf
add esp, 4
test esi, esi
je 0x1001fce2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10024200
mov edi, eax
cmp edi, 1
je 0x1001fc83
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1001fc59
test edi, edi
je 0x1001fce2
lea ecx, [ebp - 0x18]
call fcn.10019ec0
cmp edi, 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.10023cf0
push dword [ebp - 0x18]
test al, al
je 0x1001fcda
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.1009cfdf
add esp, 4
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1009cfdf
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001ff40
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x101f5e60], 0
jne 0x1001ff79
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.1001b700
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.1009cfdf
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x100201b0
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x100201be
and edx, 0x3fff
jmp fcn.100200a0
Function at 0x10020f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab448
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x101f5e60], 0
jne 0x10020f64
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.1001b700
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0x24]
mov esi, eax
call fcn.1009cfdf
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10024200
mov edi, eax
cmp edi, 1
je 0x10020f7c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10020fdb
test edi, edi
je 0x10020fd8
lea ecx, [ebp - 0x18]
call fcn.10019ec0
cmp edi, 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.10023cf0
push dword [ebp - 0x18]
test al, al
je 0x10020fd0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.1009cfdf
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1009cfdf
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021150
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.10018a60
cmp byte [0x101f5e60], 0
jne 0x1002125b
mov ecx, ebx
call fcn.10018a60
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x100211bc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.1009cfe4
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push esi
push edi
mov dword [ebp - 4], 0
call ebx
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10021316
cmp ebx, edi
ja 0x10021316
lea ecx, [ebp - 0x2c]
call fcn.10019c20
xor eax, eax
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10021246
mov edi, 1
cmp byte [esi + edi - 1], 0
jne 0x1002123f
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.10019f50
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x38]
call fcn.1001b6a0
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.100189b0
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.1009cfdf
add esp, 4
mov eax, edi
inc edi
dec ebx
jne 0x10021201
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
cmp eax, ebx
sete bl
call fcn.1009cfdf
add esp, 4
jmp 0x10021318
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x100211a8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009cfe4
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push esi
push ebx
mov dword [ebp - 4], 3
call edi
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x10021316
cmp edi, ebx
ja 0x10021316
lea ecx, [ebp - 0x38]
call fcn.10019ec0
xor eax, eax
mov byte [ebp - 4], 4
xor ebx, ebx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x10021304
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edi, 2
cmp word [esi + edi - 2], 0
jne 0x100212f6
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x38]
call fcn.1001a0b0
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + 1]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x1c], edi
call fcn.100189b0
mov eax, dword [ebp - 0x10]
mov ecx, edi
inc ebx
add edi, 2
cmp ebx, eax
jb 0x100212c8
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x38]
cmp eax, edi
sete bl
call fcn.1009cfdf
add esp, 4
jmp 0x10021318
xor bl, bl
push esi
call fcn.1009cfdf
mov al, bl
add esp, 4
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 0x10021c20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 0x6d], 0
je 0x10021c46
cmp byte [ecx + 0x6e], 0
je 0x10021c46
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x70]
mov dword [edx], eax
mov eax, dword [ecx + 0x74]
mov dword [edx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10021c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10021c75
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x100222f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10021ee0
Function at 0x10022c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x81014
call fcn.1009d490
mov eax, dword [0x100df0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x80fff
mov dword [ebp - 0x81008], eax
lea eax, [ebp - 0x81003]
push 0
push eax
mov dword [ebp - 0x81014], ebx
mov dword [ebp - 0x8100c], 0
mov byte [ebp - 0x81004], 0
call fcn.1009c990
mov eax, dword [esi + 8]
add esp, 0xc
test eax, eax
jne 0x10022dd5
mov eax, 0x80000
cmp edi, eax
cmova edi, eax
lea eax, [ebp - 0x80004]
push edi
push ebx
push eax
call fcn.1009b860
mov esi, dword [0x101ee678]
lea eax, [ebp - 0x80004]
push esi
sub eax, esi
push 0x101ed678
push eax
mov dword [ebp - 0x81010], eax
call fcn.1009b860
mov ecx, dword [ebp - 0x81010]
lea ebx, [esi + edi]
mov esi, dword [0x101f5920]
add esp, 0x18
mov edx, ebx
push esi
push 0x101f4920
call fcn.10021e40
test eax, eax
je 0x10022d4d
mov eax, dword [0x101f4084]
test eax, eax
je 0x10022db8
cmp dword [0x101ee67c], 0
jne 0x10022db8
push 1
push 0
push 0
push 0
push 0
push dword [0x101f42a8]
mov dword [0x101ee67c], 1
push 0x101f40a0
push dword [0x101f409c]
push dword [0x101f4098]
push dword [0x101f4094]
push dword [0x101f4090]
push dword [0x101f408c]
push dword [0x101f4088]
call eax
mov edx, dword [ebp - 0x81008]
add esp, 0x34
mov al, 1
mov dword [edx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009bea4
mov esp, ebp
pop ebp
ret 0xc
cmp edi, esi
jbe 0x10022d8d
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0x81014]
push esi
push eax
push 0x101ed678
call fcn.1009b860
mov edx, dword [ebp - 0x81008]
add esp, 0xc
mov dword [0x101ee678], esi
mov al, 1
mov dword [edx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009bea4
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, esi
jbe 0x10022d9e
mov eax, edi
sub eax, esi
lea eax, [ebp + eax - 0x80004]
jmp 0x10022d5b
push ebx
push dword [ebp - 0x81010]
push 0x101ed678
call fcn.1009b860
mov dword [0x101ee678], ebx
add esp, 0xc
mov edx, dword [ebp - 0x81008]
mov al, 1
mov dword [edx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009bea4
mov esp, ebp
pop ebp
ret 0xc
push 0
lea ecx, [ebp - 0x8100c]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x81008]
test eax, eax
mov ecx, dword [ebp - 0x8100c]
pop edi
setne al
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1009bea4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10024750
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp byte [0x101f5e60], 0
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
mov dword [ebp - 0x18], ebx
jne 0x100247f9
mov edx, ebx
lea ecx, [ebp - 0x38]
call fcn.1001b700
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push dword [ebp - 0x38]
test eax, eax
setne byte [ebp - 1]
call fcn.1009cfdf
mov edi, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x38]
call fcn.1001b700
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push dword [ebp - 0x38]
test eax, eax
sete bl
call fcn.1009cfdf
add esp, 4
test bl, bl
je 0x10024856
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, dword [ebp + 8]
test eax, eax
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp + 0xc]
setne byte [ebp - 1]
mov dword [edi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x10024859
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mul dword [ebp - 0xc]
cmp byte [ebp - 1], 0
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x1002488f
push edx
push eax
push 0
push dword [ebp - 0x10]
call fcn.1009c890
mov dword [edi], eax
mov dword [edi + 4], edx
push dword [esi + 4]
push dword [esi]
push 0
push dword [ebp - 0x14]
call fcn.1009c890
mov dword [ebx], eax
mov dword [ebx + 4], edx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10025480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
push ebx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push 0
push dword [ebp + 8]
mov dword [ebx], 0
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100254bb
cmp eax, 0xea
jne 0x10025505
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
cmp edi, dword [esi + 4]
je 0x100254f5
mov eax, dword [esi]
test eax, eax
je 0x100254dc
push eax
call fcn.1009cfdf
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
test edi, edi
je 0x100254f5
push edi
call fcn.1009cfe4
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edi
mov ecx, dword [ebp - 8]
push ebx
push dword [esi]
push dword [ebp + 8]
call fcn.10025510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10026400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100df0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov edx, SysReAllocString
lea ecx, [ebp - 0x14]
mov eax, dword [edi]
mov dword [edi + 4], 0
mov byte [eax], 0
call fcn.10004350
cmp dword [ebp - 0x14], 0x80000004
jb 0x10026468
push ebx
xor ebx, ebx
lea esp, [esp]
lea edx, [ebx - 0x7ffffffe]
lea ecx, [ebp - 0x14]
call fcn.10004350
xor esi, esi
mov edx, dword [ebp + esi*4 - 0x14]
mov ecx, edi
call fcn.10026030
inc esi
cmp esi, 4
jb 0x10026450
inc ebx
cmp ebx, 3
jb 0x10026440
pop ebx
mov ecx, edi
call fcn.1001b620
mov ecx, edi
call fcn.1001b590
cmp dword [edi + 4], 0
jne 0x100264b5
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.10004350
mov esi, 1
jmp 0x10026490
mov edx, esi
mov ecx, edi
shr edx, 1
xor edx, esi
mov edx, dword [ebp + edx*4 - 0x14]
call fcn.10026030
inc esi
cmp esi, 4
jb 0x10026490
mov ecx, edi
call fcn.1001b620
mov ecx, edi
call fcn.1001b590
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1009bea4
mov esp, ebp
pop ebp
ret
Function at 0x1002e3f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac2cb
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov word [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0x1000100
mov dword [esi + 0x24], 0
mov byte [esi + 0x28], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov edx, dword [esi + 0x34]
mov dword [ebp - 4], 0
cmp dword [esi + 0x30], edx
jne 0x1002e4c2
cmp edx, 0x7fffffff
jb 0x1002e4a5
push 0x100c43f4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x7e5
push eax
call fcn.1009cfed
mov eax, edx
mov ecx, SysReAllocString
shr eax, 2
sub ecx, edx
inc eax
cmp eax, ecx
cmova eax, ecx
lea ecx, [esi + 0x2c]
add eax, edx
push eax
call fcn.1002a140
mov ecx, dword [esi + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + ecx*4], 0xb
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret