joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066d0
Capabilities:
Create thread
Inject thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
xor ebp, ebp
mov ebx, 1
cmp edi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
je 0x40685d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x40685d
test byte [esp + 0x30], 3
jne 0x406713
mov dword [esp + 0x30], ebx
push edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x43a
call ebp
mov esi, eax
test esi, esi
jne 0x406759
test ebx, ebx
je 0x406791
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x406791
push str.SE_DEBUG_NAME
xor ebx, ebx
call fcn.00405fe0
add esp, 4
test eax, eax
je 0x406791
push edi
push ebx
push 0x43a
call ebp
mov esi, eax
test esi, esi
je 0x406728
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edi, ebp
neg edi
sbb edi, edi
and edi, eax
je 0x4067bc
push 4
push 0x103000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x40679f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x406833
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x406782
cmp dword [esp + 0x20], edi
jne 0x406782
mov eax, ebx
jmp 0x4067c4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 0
push 0
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
test ebp, ebp
je 0x40681e
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4067fc
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40681e
test ebx, ebx
je 0x406828
test byte [esp + 0x30], 2
je 0x406828
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push edi
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x406828
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x406833
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x406846
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x406851
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x40686c
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x406880
Capabilities:
Start service

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
xor esi, esi
cmp ebx, 0xffffffff
jne 0x406893
xor ebx, ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x4068c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40695b
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x2c]
push edi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x406909
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4068f5
push ebp
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebp
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test ebx, ebx
jne 0x406928
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40694a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406947
mov esi, eax
jmp 0x40694a
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40694a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406947
mov esi, eax
jmp 0x40694a
or esi, 0xffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x406970
Capabilities:
Query service status

Disassembly:
push ebx
push esi
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x406997
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406a0c
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0xc]
push ebp
push edi
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x4069d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4069c9
push ebx
mov esi, eax
call ebp
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
ret
push ebx
or esi, 0xffffffff
call ebp
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x406a02
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4069ff
push edi
mov esi, eax
call ebp
push ebx
call ebp
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
ret
or esi, 0xffffffff
push edi
call ebp
push ebx
call ebp
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
ret
Function at 0x406a10
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x10c
mov al, byte [0x41dba4]
push edi
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x114]
lea edx, [esp + 0xc]
stosw word es:[edi], ax
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x103
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 2
stosb byte es:[edi], al
call fcn.0040a740
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push eax
push ecx
push 0
push 2
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop edi
jne 0x406ac6
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push esi
push eax
mov eax, dword [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x406c60
Capabilities:
Start service

Disassembly:
push ebx
push edi
xor edi, edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x406c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406cfb
pop edi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0xc]
push ebp
push esi
push 0x14
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x406cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406cb9
push ebx
mov edi, eax
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
ret
push ebx
or edi, 0xffffffff
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x406cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406cee
push esi
mov edi, eax
call ebp
push ebx
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
ret
or edi, 0xffffffff
push esi
call ebp
push ebx
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
ret
Function at 0x4087d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x120]
push eax
lea ecx, [esp + 0x14]
push str.SYSTEMCurrentControlSetControlClass_s
push ecx
mov dword [esp + 0x14], ebx
call fcn.004094c9
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408862
push esi
mov esi, dword [esp + 0x120]
lea ecx, [esp + 0xc]
push edi
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push eax
mov eax, dword [esp + 0x1c]
push str.NetCfgInstanceId
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x408853
mov eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x408853
mov byte [eax + esi], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret

Function at 0x408cf0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x1114
call fcn.0040a890
movsx eax, byte [esp + 0x1118]
push esi
push eax
lea ecx, [esp + 0x18]
push str.._c:
push ecx
call fcn.004094c9
add esp, 0xc
lea edx, [esp + 0x14]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408d41
or eax, eax
pop esi
add esp, 0x1114
ret
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 4], eax
lea edx, [esp + 0x118]
mov dword [esp + 8], eax
push eax
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push 0x1000
push edx
lea eax, [esp + 0x14]
push 0xc
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x408d93
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 0x1114
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x134]
pop esi
add esp, 0x1114
ret

Function at 0x408db0
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 8]
mov byte [esp + 8], bl
push eax
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.default.0x408dd8
jmp dword [eax*4 + 0x408e30]
xor eax, eax
pop ebx
ret
mov eax, 1
pop ebx
ret
mov eax, 2
pop ebx
ret
push ebx
call fcn.00408cf0
sub eax, 7
add esp, 4
neg eax
sbb eax, eax
pop ebx
add eax, 4
ret
mov eax, 5
pop ebx
ret
push ebx
call fcn.00408cf0
sub eax, 7
add esp, 4
neg eax
sbb eax, eax
pop ebx
add eax, 7
ret
mov eax, 8
pop ebx
ret
mov eax, 9
pop ebx
ret
Function at 0x408e50
Capabilities:
Get disk information

Disassembly:
sub esp, 0x100
mov ecx, 0x40
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, dword [esp + 0x10c]
xor esi, esi
lea ecx, [esp + 0xa]
mov dl, byte [ecx - 1]
mov al, byte [ecx]
test dl, dl
jne 0x408e8f
test al, al
je 0x408e9b
mov dl, byte [ecx - 2]
mov byte [esi + edi], dl
inc esi
add ecx, 4
jmp 0x408e82
mov eax, esi
pop edi
pop esi
add esp, 0x100
ret

Function at 0x408eb0
Capabilities:
Get disk information via ioctl

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x46c
cmp eax, 2
push ebx
push ebp
push esi
push edi
jb 0x40904d
cmp eax, 3
jbe 0x408edf
cmp eax, 5
jne 0x40904d
mov dword [esp + 0x10], 0x416078
jmp 0x408ee7
mov dword [esp + 0x10], 0x416088
mov eax, dword [esp + 0x10]
push 0x12
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40904d
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
xor ebp, ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov eax, 0x1c
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea ecx, [esp + 0x60]
push ecx
push ebp
push edx
push 0
push esi
call edi
test eax, eax
je 0x409046
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
push 0
push esi
call edi
lea edx, [esp + 0x14]
push 0
push edx
push 0
lea eax, [esp + 0x50]
push 0
push eax
push esi
mov dword [esp + 0x2c], 0
call ebx
mov edx, dword [esp + 0x14]
test edx, edx
je 0x409023
cmp edx, 0x400
ja 0x409023
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x7c], 5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x14]
push ecx
push eax
push edx
lea ecx, [esp + 0x88]
lea edx, [esp + 0x50]
push ecx
push edx
push esi
mov dword [esp + 0x40], 0x1c
call ebx
test eax, eax
je 0x409023
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x94]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x409023
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40901c
mov eax, dword [esp + 0x480]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
je 0x409029
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
jmp 0x408f25
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x46c
ret
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret
Function at 0x409140
Capabilities:
Get common file path
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x2a0
push ebx
push ebp
push esi
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00408e50
add esp, 4
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x18], eax
push 0xff
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40917d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret
movsx edx, byte [esp + 0x1b0]
push edx
lea eax, [esp + 0xb4]
push str.._c:
push eax
call fcn.004094c9
add esp, 0xc
lea ecx, [esp + 0xb0]
push 0
push 0x80
push 3
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x4091c9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret
lea edx, [esp + 0x28]
push 0
push edx
lea eax, [esp + 0x24]
push 0xc
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x4091ff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2a0
ret
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x4c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x48], ecx
mov edi, 1
jle 0x409328
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], edx
mov al, byte [esp + ebx + 0x2c]
push eax
call fcn.00408db0
add esp, 4
cmp eax, 3
jne 0x40931b
movsx ecx, byte [esp + ebx + 0x2c]
push ecx
lea edx, [esp + 0xb4]
push str.._c:
push edx
call fcn.004094c9
add esp, 0xc
lea eax, [esp + 0xb0]
push 0
push 0x80
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40933a
lea ecx, [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
je 0x409338
call ebp
xor edx, edx
test edi, edi
jle 0x4092db
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x48]
mov ecx, edi
cmp dword [eax], esi
jne 0x4092d1
mov edx, 1
add eax, 4
dec ecx
jne 0x4092c8
test edx, edx
jne 0x40931b
mov eax, dword [0x41a340]
mov cl, byte [esp + ebx + 0x2c]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
mov byte [esp + 0x18], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00409060
add esp, 8
test eax, eax
je 0x40933a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc edi
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jl 0x409237
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2a0
ret
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2a0
ret
Function at 0x40c2f3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c313
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a808
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40c336
test byte [esp + 8], 2
je 0x40c336
call fcn.0040a87b
mov dword [eax], 0xd
call fcn.0040a884
mov dword [eax], 5
jmp 0x40c30f
xor eax, eax
ret

Function at 0x4121b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
test eax, eax
mov dword [esp + 4], 4
mov dword [esp + 8], 0
je 0x412299
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x412299
mov dword [eax], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41220c
cmp byte [eax], 0
je 0x41220c
lea ecx, [esp + 8]
push ecx
push 1
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41229e
mov ebx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebp
push esi
push edi
push edx
call fcn.0040ad85
mov esi, eax
add esp, 4
test esi, esi
je 0x412265
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push esi
push ebp
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x41226c
push esi
call fcn.0040a8bf
add esp, 4
cmp edi, 0xea
jne 0x412280
mov edx, dword [esp + 0x10]
push edx
call fcn.0040ad85
mov esi, eax
add esp, 4
test esi, esi
jne 0x412226
mov edi, 0x5aa
jmp 0x412280
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x412280
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41228f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, 0x57
pop ebx
add esp, 8
ret

Function at 0x4123e0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
mov al, byte [0x41dba4]
push esi
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x110]
test edi, edi
jne 0x412417
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
mov esi, dword [esp + 0x114]
test esi, esi
jne 0x412427
mov esi, 0x41dba4
lea ecx, [esp + 8]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x412444
pop edi
pop esi
add esp, 0x104
ret
push edi
push 0
lea edx, [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x412460
pop edi
pop esi
add esp, 0x104
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x412480
Capabilities:
Delete file
Delete registry key

Disassembly:
sub esp, 0x110
mov al, byte [0x41dba4]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x124]
mov dword [esp + 0xc], 0
test edi, edi
mov dword [esp + 8], 0
jne 0x4124c5
mov edi, esi
lea ecx, [esp + 0x14]
push str.RegBk
push ecx
call fcn.004123e0
add esp, 8
test eax, eax
jne 0x4124f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4125ea
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
mov eax, dword [esp + 0x120]
lea edx, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4125ea
push ebx
push str.SeBackupPrivilege
call fcn.00405fe0
add esp, 4
test eax, eax
je 0x4125b3
push str.SeRestorePrivilege
call fcn.00405fe0
add esp, 4
test eax, eax
je 0x4125b3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
mov esi, eax
test esi, esi
jne 0x4125c4
mov ebx, dword [esp + 0x12c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x4125c4
cmp dword [esp + 0x14], 1
je 0x412591
mov eax, dword [esp + 0x130]
test eax, eax
jne 0x412591
mov esi, 0xb7
jmp 0x4125c4
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 8
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
mov esi, eax
test esi, esi
je 0x4125c4
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
jmp 0x4125c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4125c1
mov esi, eax
jmp 0x4125c4
or esi, 0xffffffff
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov eax, dword [esp + 0xc]
pop ebx
test eax, eax
je 0x4125e8
push eax
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x412840
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], eax
push esi
push eax
push eax
push 3
push eax
push 3
push eax
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412877
xor eax, eax
pop esi
add esp, 0xc
ret
push edi
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x10]
push 0xc
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test edi, edi
je 0x4128c6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4128aa
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4128b8
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4128c6
mov ecx, dword [esp + 8]
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret

Function at 0x413eb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [ecx + 0x18]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x18]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x18]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ecx + 0x18]
mov dword [ecx + 0xc], 0x10325476
ret