joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f4490
Capabilities:
Delete file
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x5f44b6
push 8
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00637390
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x5f4654
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5f451d
cmp dword [ebp + 0xc], 0
je 0x5f4510
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x5f44f5
xor eax, eax
jmp 0x5f4677
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
test eax, eax
jne 0x5f4557
cmp dword [ebp + 0xc], 0
je 0x5f454a
mov edx, dword [ebp + 0xc]
mov dword [edx], 5
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x5f452f
xor eax, eax
jmp 0x5f4677
cmp dword [ebp - 0x24], 1
je 0x5f45d5
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_ControlService]
test eax, eax
jne 0x5f4599
cmp dword [ebp + 0xc], 0
je 0x5f458c
mov edx, dword [ebp + 0xc]
mov dword [edx], 6
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x5f4571
xor eax, eax
jmp 0x5f4677
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
cmp dword [ebp - 0x24], 1
je 0x5f45d5
cmp dword [ebp + 0xc], 0
je 0x5f45c8
mov edx, dword [ebp + 0xc]
mov dword [edx], 7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x5f45ad
xor eax, eax
jmp 0x5f4677
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_DeleteService]
test eax, eax
jne 0x5f4608
cmp dword [ebp + 0xc], 0
je 0x5f45fe
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 8
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
xor eax, eax
test eax, eax
jne 0x5f45e3
xor eax, eax
jmp 0x5f4677
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, dword [ebp + 8]
push eax
call fcn.005f4950
add esp, 4
push 0x100
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005f4a00
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, 1
jmp 0x5f4677
cmp dword [ebp + 0xc], 0
je 0x5f466f
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
xor eax, eax
test eax, eax
jne 0x5f4654
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5f4680
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x6fbc48
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5f469f
xor eax, eax
jmp 0x5f473c
push 0x6fbc58
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0x6fbc70
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
push 0x6fbc90
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
push 0x6fbca8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
push 0x6fbccc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x5f4733
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x5f4733
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x5f4733
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
je 0x5f4733
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x5f4737
xor eax, eax
jmp 0x5f473c
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x5f4a00
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [ebp - 0x104], 0
push 0x6fbce8
lea eax, [ebp - 0x100]
push eax
call fcn.006373f0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.00637400
add esp, 8
lea eax, [ebp - 0x104]
push eax
push 1
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x104], 0
je 0x5f4b03
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push 0x6fbd0c
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x5f4af0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00637540
add esp, 4
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
je 0x5f4abe
push 0x6fbd18
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00637400
add esp, 8
push 0x6fbd1c
mov edx, dword [ebp + 0xc]
push edx
call fcn.00637400
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00637400
add esp, 8
push 0x6fbd28
mov edx, dword [ebp + 0xc]
push edx
call fcn.00637400
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.005f49a0
add esp, 4
mov eax, 1
jmp 0x5f4b05
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5f62a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.006375d0
add esp, 8
test eax, eax
jne 0x5f6353
push 0x100
lea ecx, [ebp - 0x348]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x348]
push edx
call fcn.00637540
add esp, 4
movsx eax, byte [ebp + eax - 0x349]
cmp eax, 0x5c
jne 0x5f6304
lea ecx, [ebp - 0x348]
push ecx
call fcn.00637540
add esp, 4
mov byte [ebp + eax - 0x349], 0
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
je 0x5f6332
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x348]
push ecx
push 0x6fbd48
lea edx, [ebp - 0x248]
push edx
call fcn.006374e0
add esp, 0x10
jmp 0x5f6351
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x348]
push ecx
push 0x6fbd58
lea edx, [ebp - 0x248]
push edx
call fcn.006374e0
add esp, 0x10
jmp 0x5f6366
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.006373f0
add esp, 8
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x148], 0xffffffff
je 0x5f63a4
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5f63b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x712e40
push 0x6390f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x5f644e
jmp 0x5f6584
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x5f6470
jmp 0x5f6584
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5f6490
jmp 0x5f6584
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x5f64b3
push 0xb
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x5f6584
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x454c
je 0x5f64d7
push 0xb
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x5f6584
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xbc], 0
jne 0x5f6502
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0x714
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x5f6584
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0xb8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xc
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0x10], 0
je 0x5f6533
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x2c]
jae 0x5f6545
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
push 0x7a
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x5f6584
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00637390
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00637050
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
call fcn.005f6592
jmp 0x5f65d6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f6f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2414
call fcn.00637690
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0x6fbef8
lea ecx, [ebp - 0x1c14]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.006374e0
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x808]
push eax
push 0x80000006
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5f70e1
mov dword [ebp - 0x80c], 0x1000
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x180c]
push edx
push 0
push 0
push 0x6fbf18
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f70d7
lea ecx, [ebp - 0x180c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.006373f0
add esp, 8
mov dword [ebp - 0x1810], 4
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x1814]
push ecx
push 0
push 0
push 0x6fbf24
lea ecx, [ebp - 0x2014]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f70d7
cmp dword [ebp + 0xc], 0
je 0x5f70ac
cmp dword [ebp - 0x1814], 0
je 0x5f70ac
mov eax, dword [ebp - 0x1814]
push eax
push 0x6fbf30
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.006374e0
add esp, 0xc
jmp 0x5f70d0
push 0x6fbf34
lea ecx, [ebp - 0x2414]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.006373f0
add esp, 8
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5f77a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18f4
call fcn.00637690
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0x6fc070
lea ecx, [ebp - 0x18f4]
call fcn.005e5400
mov ecx, eax
call fcn.005e5430
push eax
push 0x80000006
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
je 0x5f77ef
xor eax, eax
jmp 0x5f78cb
mov dword [ebp - 0xc], 0
mov ecx, 1
test ecx, ecx
je 0x5f78be
mov dword [ebp - 0x14f4], 0xff
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x14f4]
push edx
lea eax, [ebp - 0x14f0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
je 0x5f783a
jmp 0x5f78be
lea eax, [ebp - 0x13f0]
push eax
lea ecx, [ebp - 0x14f0]
push ecx
call fcn.005f71c0
add esp, 8
test eax, eax
je 0x5f78b0
movsx edx, byte [ebp - 0x1270]
push edx
call fcn.00638eae
add esp, 4
mov esi, eax
movsx eax, byte [ebp + 8]
push eax
call fcn.00638eae
add esp, 4
cmp esi, eax
jne 0x5f78b0
cmp dword [ebp + 0xc], 0
je 0x5f7890
lea ecx, [ebp - 0x14f0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.006373f0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x5f78a7
mov edi, dword [ebp + 0x10]
lea esi, [ebp - 0x13f0]
mov ecx, 0x4f7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 1
jmp 0x5f78be
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x5f77f6
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5f9560
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x5f9594
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 8]
jae 0x5f9607
cmp dword [ebp + 0x10], 0
je 0x5f95d1
cmp dword [ebp - 0x14], 1
jbe 0x5f95d1
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx - 2]
cmp eax, 0xff
jne 0x5f95d1
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx - 1]
cmp edx, 0x15
jne 0x5f95d1
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0
ja 0x5f95fc
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
xor edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x6fc2c0]
mov dword [ebp - 0xc], eax
jmp 0x5f9605
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
jmp 0x5f958b
mov ecx, dword [ebp - 0xc]
xor ecx, 0xffffffff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x5faf30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x5faf67
push ebx
push esi
lea esi, [edx]
mov bl, byte [ecx]
mov edx, eax
xor bl, al
and edx, 0x1ff
mov byte [ecx], bl
xor ebx, ebx
mov bl, ah
mov ax, word [edx*2 + 0x73e180]
inc ecx
or ax, bx
dec esi
jne 0x5faf44
pop esi
pop ebx
ret

Function at 0x5fb0c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x73d7a0
add eax, 0xc
push esi
push edi
sub ecx, eax
mov edx, 0x249
mov esi, dword [ecx + eax]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x5fb0d5
pop edi
pop esi
ret
Function at 0x5fb140
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x6fc788]
mov ecx, dword [0x6fc784]
push ebp
push esi
push edi
push eax
push ecx
call fcn.005eb570
mov edx, dword [0x6fc788]
push edx
call fcn.005ebfd0
add esp, 0xc
test eax, eax
je 0x5fb2c5
mov eax, dword [0x7327b0]
mov ebp, dword [sym.imp.kernel32.dll_FreeLibrary]
test eax, eax
mov dword [0x7327ac], 1
je 0x5fb188
push eax
call ebp
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0x6fc800
call edi
test eax, eax
mov dword [0x7327b0], eax
jne 0x5fb1a7
pop edi
pop esi
mov eax, 0x80000b10
pop ebp
ret
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x6fc7f8
push eax
call esi
test eax, eax
jne 0x5fb1c2
pop edi
pop esi
mov eax, 0x80000b10
pop ebp
ret
mov dword [0x73d17c], eax
mov eax, dword [0x7327b0]
push 0x6fc7ec
push eax
call esi
test eax, eax
jne 0x5fb1e1
pop edi
pop esi
mov eax, 0x80000b10
pop ebp
ret
mov ecx, dword [0x7327b0]
push 0x6fc7e0
push ecx
mov dword [0x73d178], eax
call esi
test eax, eax
jne 0x5fb201
pop edi
pop esi
mov eax, 0x80000b10
pop ebp
ret
mov edx, dword [0x7327b0]
push 0x6fc7d4
push edx
mov dword [0x73d174], eax
call esi
test eax, eax
jne 0x5fb221
pop edi
pop esi
mov eax, 0x80000b10
pop ebp
ret
mov dword [0x73d180], eax
mov eax, dword [0x7327b8]
test eax, eax
je 0x5fb232
push eax
call ebp
push 0x6fc7c4
call edi
test eax, eax
mov dword [0x7327b8], eax
jne 0x5fb24b
pop edi
pop esi
mov eax, 0x80000a00
pop ebp
ret
push 0x6fc7ac
push eax
call esi
test eax, eax
jne 0x5fb260
pop edi
pop esi
mov eax, 0x80000a02
pop ebp
ret
mov dword [0x73d1f0], eax
mov eax, dword [0x7327b8]
push 0x6fc798
push eax
call esi
test eax, eax
jne 0x5fb27f
pop edi
pop esi
mov eax, 0x80000a03
pop ebp
ret
mov dword [0x73d1f4], eax
call dword [0x73d1f0]
xor ecx, ecx
mov cl, ah
cmp cl, 1
jne 0x5fb2a6
pop edi
pop esi
mov dword [0x7327b4], 1
and eax, 0xff
pop ebp
ret
mov eax, dword [0x7327b8]
test eax, eax
je 0x5fb2b2
push eax
call ebp
pop edi
pop esi
mov dword [0x7327b4], 0
mov eax, 0x80000a04
pop ebp
ret
pop edi
pop esi
mov dword [0x7327ac], 0
mov eax, 0x80000a01
pop ebp
ret
Function at 0x5fc5e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x6fc788]
mov ecx, dword [0x6fc784]
sub esp, 0x10
push eax
push ecx
call fcn.005eb570
mov edx, dword [0x6fc788]
push edx
call fcn.005ec090
add esp, 0xc
test eax, eax
je 0x5fc678
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x6fc93c
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5fc653
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0x6fc934
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
jmp 0x5fc65b
mov dword [esp + 4], 0
mov edx, dword [esp]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 4]
mov dword [0x7327c8], 1
add esp, 0x10
ret
or eax, 0xffffffff
add esp, 0x10
ret
Function at 0x5fc940
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
push ebp
mov ecx, edx
push esi
mov esi, dword [esp + 0x20]
mov ebp, ecx
push edi
xor eax, eax
mov edi, esi
mov dword [esp + 0xc], 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
push esi
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push 0xc
push edx
push 0x2d1400
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
neg eax
sbb eax, eax
pop edi
and eax, 0xc
pop esi
add eax, 0xfffffff4
pop ebp
add esp, 0x10
ret

Function at 0x5fc9b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
xor edi, edi
mov esi, 0x41
push esi
lea eax, [esp + 0x14]
push 0x6fc818
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5fca2b
push 0
push 0
push 3
push 0
push 3
lea edx, [esp + 0x24]
push 0x80000000
push edx
mov byte [esp + 0x32], 0
call ebx
cmp eax, 0xffffffff
je 0x5fca4b
push ebp
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.005fc680
add esp, 0xc
test eax, eax
jl 0x5fca43
mov eax, dword [esp + 0x58]
inc edi
add ebp, 0x7c
cmp edi, eax
je 0x5fca31
inc esi
cmp esi, 0x5a
jle 0x5fc9c8
mov ecx, dword [esp + 0x54]
mov dword [0x7327c4], edi
mov dword [0x7327bc], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x40
ret
Function at 0x5fd100
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
sub esp, 0x30
mov eax, dword [0x6fc788]
mov ecx, dword [0x6fc784]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x18], ebx
call fcn.005eb570
mov edx, dword [0x6fc788]
push edx
call fcn.005ebfd0
add esp, 0xc
test eax, eax
je 0x5fd13f
pop edi
pop esi
pop ebp
mov eax, 0x80000c01
pop ebx
add esp, 0x30
ret
mov eax, dword [0x6fc788]
mov ebp, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, 0x41
mov ecx, dword [eax + 4]
mov dword [0x731e18], ecx
push esi
lea edx, [esp + 0x24]
push 0x6fc818
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x24]
mov byte [esp + 0x27], bl
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5fd1c1
mov eax, dword [0x731e18]
mov byte [esp + 0x26], bl
cmp eax, 4
jg 0x5fd199
xor eax, eax
mov ecx, 0x80000000
jmp 0x5fd1a3
mov eax, 3
mov ecx, 0xc0000000
push ebx
push ebx
push 3
push ebx
push eax
push ecx
lea ecx, [esp + 0x38]
push ecx
call edi
cmp eax, 0xffffffff
je 0x5fd132
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
inc esi
cmp esi, 0x5a
jle 0x5fd15e
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push 0x6fc93c
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x5fd214
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push 0x6fc934
push eax
mov dword [esp + 0x30], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
jmp 0x5fd218
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [0x7327cc], 1
pop ebx
add esp, 0x30
ret