joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9aa58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9ab4a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.000271f0
mov eax, ebx
mov edx, 0x9ab60
call fcn.00013d6c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.00026f34
mov eax, dword [ebp - 0x18]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 0x10], 0x3ff
cmp dword [ebp - 0x14], 0
je 0x9ab13
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x9ab64
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x9ab13
cmp dword [ebp - 0x10], 1
jbe 0x9ab13
cmp dword [ebp - 0x10], 0x5f
ja 0x9ab13
cmp dword [ebp - 4], 1
jne 0x9ab13
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00013ee0
cmp dword [ebp - 0x14], 0
je 0x9ab22
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.00027218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9ab51
lea eax, [ebp - 0x18]
call fcn.00013d18
ret

Function at 0x9ab78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9ac65
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x400
call fcn.000271f0
mov eax, ebx
call fcn.00013d18
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.00026f34
mov eax, dword [ebp - 0x18]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 0x10], 0x3ff
cmp dword [ebp - 0x14], 0
je 0x9ac2e
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x9ac74
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x9ac2e
cmp dword [ebp - 0x10], 1
jbe 0x9ac2e
cmp dword [ebp - 0x10], 0x28
ja 0x9ac2e
cmp dword [ebp - 8], 1
jne 0x9ac2e
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00013ee0
cmp dword [ebp - 0x14], 0
je 0x9ac3d
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
mov edx, 0x400
call fcn.00027218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9ac6c
lea eax, [ebp - 0x18]
call fcn.00013d18
ret
Function at 0x9afb8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9b07b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
call fcn.00026f34
mov eax, dword [ebp - 0x10]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x9b049
lea edx, [ebp - 8]
mov eax, ebx
call fcn.000272e8
mov eax, dword [ebp - 8]
call fcn.00013fa8
mov ebx, eax
inc ebx
push ebx
mov eax, dword [ebp - 8]
call fcn.0001416c
push eax
push 1
push 0
push 0x9b088
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
cmp dword [ebp - 4], 0
je 0x9b058
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b082
lea eax, [ebp - 0x10]
call fcn.00013d18
lea eax, [ebp - 8]
call fcn.00013d18
ret

Function at 0x9b09c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x9b14c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0xfffe
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x14]
call fcn.0002701c
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x9b122
mov dword [ebp - 4], 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x9b15c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x9b122
cmp dword [ebp - 0x10], 4
jne 0x9b122
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0xc], 0
je 0x9b131
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b153
lea eax, [ebp - 0x14]
call fcn.00013d18
ret
Function at 0x9b178
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9b21a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 1
push 0
push 0
lea eax, [ebp - 0x10]
call fcn.0002701c
mov eax, dword [ebp - 0x10]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x9b1f0
mov dword [ebp - 0xc], ebx
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x9b228
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
cmp dword [ebp - 4], 0
je 0x9b1ff
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b221
lea eax, [ebp - 0x10]
call fcn.00013d18
ret

Function at 0x9b244
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x9b2db
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc]
call fcn.00026f34
mov eax, dword [ebp - 0xc]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x9b2b1
push 0x9b2ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x9b2c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b2e2
lea eax, [ebp - 0xc]
call fcn.00013d18
ret

Function at 0x9b304
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9b3ae
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 1
push 0
push 0
lea eax, [ebp - 0xc]
call fcn.0002701c
mov eax, dword [ebp - 0xc]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x9b384
mov eax, ebx
call fcn.00013fa8
inc eax
push eax
mov eax, ebx
call fcn.0001416c
push eax
push 1
push 0
push 0x9b3bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
cmp dword [ebp - 4], 0
je 0x9b393
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b3b5
lea eax, [ebp - 0xc]
call fcn.00013d18
ret
Function at 0x9b3cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9b476
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 1
push 0
push 0
lea eax, [ebp - 0xc]
call fcn.0002701c
mov eax, dword [ebp - 0xc]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x9b44c
mov eax, ebx
call fcn.00013fa8
inc eax
push eax
mov eax, ebx
call fcn.0001416c
push eax
push 1
push 0
push 0x9b484
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
cmp dword [ebp - 4], 0
je 0x9b45b
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b47d
lea eax, [ebp - 0xc]
call fcn.00013d18
ret

Function at 0x9b53c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9b62e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x2000
call fcn.000271f0
mov eax, ebx
call fcn.00013d18
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x14]
call fcn.0002701c
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x9b5f7
mov dword [ebp - 0xc], 0x2000
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x9b63c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x9b5f7
cmp dword [ebp - 0x10], 1
jne 0x9b5f7
cmp dword [ebp - 0xc], 0
jbe 0x9b5f7
cmp dword [ebp - 0xc], 0x2000
jae 0x9b5f7
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00013ee0
mov eax, dword [ebp - 0x18]
mov edx, ebx
call fcn.000272e8
cmp dword [ebp - 4], 0
je 0x9b606
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 8]
mov edx, 0x2000
call fcn.00027218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b635
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00013d3c
ret
Function at 0x9b64c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x9b6e3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 1
push 0
push 0
lea eax, [ebp - 0xc]
call fcn.0002701c
mov eax, dword [ebp - 0xc]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x9b6b9
push 0x9b6f4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x9b6c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b6ea
lea eax, [ebp - 0xc]
call fcn.00013d18
ret
Function at 0xa2524
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xa2622
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0xa2638
call fcn.00013d6c
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 0xc]
call fcn.00026f34
mov eax, dword [ebp - 0xc]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
cmp dword [ebp - 8], 0
je 0xa25cf
push 6
push 0x16d2b4
push 3
push 0
push 0xa2640
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0xa25f3
push ebp
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0xa265c
call fcn.00013ff4
mov eax, dword [ebp - 0x10]
call fcn.000a2494
pop ecx
jmp 0xa25f3
push ebp
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00027478
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0xa2674
call fcn.00013ff4
mov eax, dword [ebp - 0x18]
call fcn.000a2494
pop ecx
cmp dword [ebp - 8], 0
je 0xa2602
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa2629
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00013d3c
ret

Function at 0xa2a7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, 1
test esi, esi
je 0xa2aa2
mov eax, esi
call fcn.0001416c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0xa2a9c
test al, 0x10
jne 0xa2aa0
xor ebx, ebx
jmp 0xa2aa2
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0xa60d0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0001415c
mov eax, dword [ebp - 8]
call fcn.0001415c
xor eax, eax
push ebp
push 0xa6244
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0xa611d
lea eax, [ebp - 4]
mov edx, 0xa625c
call fcn.00013db0
cmp dword [ebp - 8], 0
jne 0xa6130
lea eax, [ebp - 8]
mov edx, 0xa6268
call fcn.00013db0
xor eax, eax
push ebp
push 0xa6215
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
call fcn.00013fa8
test eax, eax
jne 0xa6171
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.0001271c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0xa61c1
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0xe4]
mov dl, 1
call fcn.000a2b24
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xe4]
call fcn.00013d6c
mov eax, dword [ebx + 0xe4]
call fcn.00013fa8
add eax, 0xd
call fcn.0001271c
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xe4]
call fcn.00013fa8
mov ecx, eax
inc ecx
mov edx, dword [ebx + 0xe4]
mov eax, dword [ebp - 0xc]
call fcn.00030c1c
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0001416c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0xa61ff
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00013ee0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.0003059c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa621c
mov eax, dword [ebp - 0xc]
call fcn.00012734
ret

Function at 0xa68ac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xa694b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
mov edx, esi
call fcn.000140b8
je 0xa6930
test esi, esi
je 0xa6923
lea edx, [ebp - 8]
mov eax, esi
call fcn.00030664
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0xa6960
call fcn.00013ff4
mov eax, dword [ebp - 4]
call fcn.0001416c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0xa6923
cmp eax, 6
je 0xa6923
push esi
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0xa4304]
call fcn.000a45e0
call fcn.00013748
lea eax, [ebx + 0xe4]
mov edx, esi
call fcn.00013d6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa6952
lea eax, [ebp - 8]
mov edx, 2
call fcn.00013d3c
ret
Function at 0xa76d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0001415c
xor eax, eax
push ebp
push 0xa79ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
test eax, eax
jbe 0xa7716
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
call fcn.000a713c
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xa78be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0001416c
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x100], ebx
cmp ebx, 0x20
jbe 0xa7839
push 0xa79fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x118], esi
test esi, esi
je 0xa778f
push 0xa7a08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x120], 0
je 0xa77b8
push 0xa7a14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11c], 0
je 0xa77e1
push 0xa7a20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x110], 0
je 0xa780a
push 0xa7a30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xec], 0
je 0xa78a7
push 0xa7a3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], eax
jmp 0xa78a7
mov eax, dword [ebp - 4]
cmp byte [eax + 0xea], 0
jne 0xa7851
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe8], 0
je 0xa78a7
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.000318e0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 2
mov eax, 0xa7a4c
call fcn.00031264
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.000a6270
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa78c5
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0xa89a4
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push 0xa8b00
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0xa8a34
push 0xa8b0c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0xa8a2e
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x158]
call fcn.0001416c
push eax
call ebp
test eax, eax
jne 0xa8a2e
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esp + 0x14], 0xffffffff
jne 0xa8abf
cmp dword [esp + 0x10], 0xffffffff
jne 0xa8abf
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x158]
call fcn.0001416c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0xa8abf
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.00016d30
call fcn.00016d30
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.00016d30
call fcn.00016d30
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edi, 1
je 0xa8adb
mov eax, dword [esp + 0x10]
mov dword [esi + 0x180], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x184], eax
test edi, 2
je 0xa8af7
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1e8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1ec], eax
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xa9f90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x118], edx
mov esi, eax
xor eax, eax
push ebp
push 0xaa140
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1ec], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
lea eax, [esi + 0x20c]
call fcn.00013d18
mov byte [ebp - 0x114], 0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x118]
mov eax, dword [esi + 0x158]
call fcn.0002fd54
mov eax, dword [ebp - 0x118]
mov bl, byte [eax]
cmp bl, 0x5c
je 0xaa07a
cmp bl, 0x41
jb 0xaa028
cmp bl, 0x5a
jbe 0xaa045
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0xa4304]
call fcn.000a45e0
call fcn.00013748
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor eax, eax
mov al, bl
sub eax, 0x41
cmp eax, 0x1f
ja 0xaa05b
bt edi, eax
jb 0xaa07a
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0xa4304]
call fcn.000a45e0
call fcn.00013748
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [esi + 0x158]
call fcn.0001416c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0xaa0d2
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0xaa0ca
test byte [esi + 0x12e], 2
je 0xaa0ca
mov byte [ebp - 1], 1
push edi
call sub.kernel32.dll_SetErrorMode
jmp 0xaa127
lea eax, [esi + 0x20c]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00013f58
test byte [ebp - 6], 8
setne al
mov byte [esi + 0x210], al
mov edx, 3
mov eax, esi
call fcn.000a89a4
push edi
call sub.kernel32.dll_SetErrorMode
cmp bl, 0x5c
je 0xaa123
cmp bl, 0x5c
je 0xaa127
cmp dword [esi + 0x1ec], 0xffffffff
jne 0xaa121
cmp dword [esi + 0x1e8], 0xffffffff
je 0xaa127
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xaa147
lea eax, [ebp - 0x118]
call fcn.00013d18
ret