joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x426ffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40410c
call fcn.00406a91
push 4
mov dword [esp + 0x18], 0
call fcn.00407a84
mov edi, eax
add esp, 4
test edi, edi
je 0x405ea4
push ebx
call fcn.00406969
mov dword [edi], eax
call fcn.00406728
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406a52
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405e98
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406a7a
pop ebx
jmp 0x405ea6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4084f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42af10]
jne 0x4084fb
repz ret
jmp fcn.0040d34c
Function at 0x424ec0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.00412100
cmp dword [0x7b33e4], 0x37
jne 0x424f5a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7b43d8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x434434]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x4251e0
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b33e4]
sub esp, 0x43c
push ebx
push ebp
push esi
mov esi, dword [0x434434]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x4253e6
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jmp 0x425226
mov esi, dword [esp + 0x24]
xor edi, edi
cmp dword [0x7b33e4], 0x1c
jne 0x42523d
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42b2d0]
mov ebx, dword [0x42b2d8]
mov ebp, dword [0x42b2dc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42b2d4]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 0x20
jmp 0x425286
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x20], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b3354], edi
mov eax, dword [esp + 0x20]
add dword [0x7b3354], eax
mov eax, dword [0x7b3354]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x10], eax
cmp dword [0x7b33e4], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x42531d
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x30]
cmp dword [0x7b33e4], 0x979
mov dword [0x7b3358], 0xff6b3619
mov dword [0x7b335c], 0xffffffff
mov dword [esp + 0x20], eax
jne 0x425357
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
sub esi, dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x425280
cmp dword [0x7b33e4], 0x8d4
jne 0x42539b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x7b33e4], 0x17
jne 0x4253d5
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x48]
push ecx
push 0x403f40
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x24], esi
jne 0x425220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
Function at 0x401060
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
push esi
mov esi, dword [esp + 8]
je 0x401099
push ebx
push edi
nop
mov eax, dword [ecx + 4]
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x459bc0]
sub edx, 1
add esi, 1
test edx, edx
mov dword [ecx + 4], eax
jne 0x401070
pop edi
pop ebx
mov eax, 1
pop esi
ret 8

Function at 0x401170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401189
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011b0
cmp esi, eax
jb 0x4011ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4013c0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
push 8
push esi
mov ecx, edi
call fcn.00401020
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
push 0x20
push eax
mov ecx, edi
call fcn.00401020
mov dword [esi*4 + 0x459bc0], eax
add esi, 1
cmp esi, 0xff
jle 0x4013c6
pop edi
pop esi
ret
Function at 0x405160
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x441a66
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
push ebp
push esi
push edi
mov eax, dword [0x45878c]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x18]
call fcn.00409e30
mov dword [esp + 0x200], 0
call fcn.0041068e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4051bc
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
xor ebp, ebp
cmp dword [esp + 0x208], ebp
mov byte [esp + 0x200], 1
jle 0x40528e
mov ecx, dword [esp + 0x20c]
mov ecx, dword [ecx + ebp*4]
test ecx, ecx
jne 0x4051f5
xor eax, eax
jmp 0x40520b
mov eax, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x405200
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401740
mov esi, dword [esp + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40523c
push edi
lea ecx, [esp + 0x14]
call fcn.00401540
mov esi, dword [esp + 0x10]
lea edx, [edi + 1]
push edx
push esi
call fcn.0042de4b
push eax
call fcn.004010c0
add esp, 0xc
test edi, edi
jl 0x405300
cmp edi, dword [esi - 8]
jg 0x405300
push str._reboot
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], 0
call fcn.0042d8b2
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4052e6
add ebp, 1
cmp ebp, dword [esp + 0x208]
jl 0x4051e3
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x200], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4052b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x200], 0xffffffff
call fcn.00404f80
mov eax, 1
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1f4
ret 8
push str.SeShutdownPrivilege
lea ecx, [esp + 0x18]
call fcn.00406f80
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40528e
push 0x80070057
call fcn.00401150
int3
Function at 0x4066b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x407010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x45878c]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
push edi
lea eax, [esp + 0x28]
push str..PHYSICALDRIVE_d
push eax
call fcn.0042e2b0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407136
push 0x200
lea edx, [esp + 0x3c]
push 0
push edx
mov dword [esp + 0x28], 0
call fcn.0042d490
add esp, 0xc
test edi, edi
jne 0x40709e
mov eax, dword [esi + 4]
jmp 0x4070c6
cmp edi, 1
jne 0x4070ae
mov ecx, dword [esi + 8]
mov dword [esi + 0xdd], ecx
jmp 0x4070cc
cmp edi, 2
jne 0x4070be
mov edx, dword [esi + 0xc]
mov dword [esi + 0xdd], edx
jmp 0x4070cc
cmp edi, 3
jne 0x4070cc
mov eax, dword [esi + 0x10]
mov dword [esi + 0xdd], eax
mov ecx, 0x38
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x400
push ebx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40711f
push 0
lea edx, [esp + 0x24]
push edx
push 0x200
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407116
cmp dword [esp + 0x20], 0x200
je 0x40711f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40712e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add edi, 1
cmp edi, 4
mov dword [esp + 0x10], edi
jl 0x40703e
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042d47b
mov esp, ebp
pop ebp
ret 4

Function at 0x407170
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
movzx ecx, word [esp + 8]
push ebx
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x407206
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x407206
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x407206
mov edx, dword [esp + 0x18]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407206
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4071ff
cmp dword [esp + 0x10], esi
jne 0x4071ff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x407b00
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45878c]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push edi
lea eax, [esp + 8]
push eax
push str.SystemCurrentControlSetServicesESudisk
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ecx
xor ebx, ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x407c8b
mov edx, dword [esp + 8]
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push str.Type
push edx
mov dword [esp + 0x2c], 1
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push ebx
push str.ErrorControl
push ecx
mov dword [esp + 0x2c], ebx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebx
push str.Start
push eax
mov dword [esp + 0x2c], ebx
call esi
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push str.SystemCurrentControlSetControlClass4D36E967_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407c84
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push str.UpperFilters
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407c7f
mov ecx, dword [esp + 0x18]
push str.ESudisk
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
call fcn.00407210
test eax, eax
jne 0x407c56
mov eax, dword [esp + 0x18]
mov ecx, dword [str.ESudisk]
mov edx, dword [0x4465f4]
mov byte [esp + eax + 0x22], bl
sub eax, 2
add eax, 1
mov dword [esp + eax + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + eax + 0x28], edx
mov edx, dword [esp + 0x10]
add eax, 7
mov byte [esp + eax + 0x24], bl
add eax, 1
mov dword [esp + 0x18], eax
mov byte [esp + eax + 0x24], bl
add eax, 1
push eax
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
push str.UpperFilters
push edx
call esi
test eax, eax
jne 0x407c5b
mov edi, 1
mov eax, dword [esp + 0x10]
push eax
call ebp
mov eax, edi
pop esi
pop ebp
mov ecx, dword [esp + 0x120]
pop edi
pop ebx
xor ecx, esp
call fcn.0042d47b
add esp, 0x11c
ret 8
or eax, 0xffffffff
jmp 0x407c64
mov eax, 0xfffffffe
jmp 0x407c64
mov eax, 0xfffffffe
jmp 0x407c66
Function at 0x40ad70
Capabilities:
Delete file
Delete registry key
Get common file path
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44236b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x45878c]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push edi
mov eax, dword [0x45878c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
push str.SystemCurrentControlSetControlClass4D36E967_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40af0c
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push str.UpperFilters
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ae56
mov edx, dword [esp + 0xc]
push str.ESudisk
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00407210
test eax, eax
je 0x40ae56
mov ecx, dword [esp + 0xc]
sub ecx, eax
lea edx, [esp + ecx + 0x14]
push edx
lea ecx, [eax + 8]
push ecx
push eax
call fcn.0042e440
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 0xc
sub eax, 8
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
push edi
push str.UpperFilters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40ae56
lea edi, [eax + 1]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40af0c
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SystemCurrentControlSetServicesESudiskSecurity
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.SystemCurrentControlSetServicesESudiskEnum
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.SystemCurrentControlSetServicesESudisk
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0x104
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x40af0c
lea ecx, [esp + 0x120]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401920
push 0x14
push str.driversESudisk.sys
lea ecx, [esp + 0x18]
mov dword [esp + 0x238], 0
call fcn.00404c20
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0042d47b
add esp, 0x228
ret
Function at 0x40e220
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x850
mov eax, dword [0x45878c]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebp
push esi
mov esi, ecx
movzx eax, byte [esi + 0xc8]
push edi
push eax
lea ecx, [esp + 0x34]
push str.._c:
push ecx
call fcn.0042e2b0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x48]
push edx
call edi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x40e2b8
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x800
lea edx, [esp + 0x64]
push edx
push 0
push 0
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40e2b0
mov eax, dword [esp + 0x60]
mov dword [esi + 0xc4], eax
jmp 0x40e2b8
mov dword [esp + 0x10], 0
mov ecx, dword [esi + 0xc4]
push ecx
lea edx, [esp + 0x48]
push str..PHYSICALDRIVE_d
push edx
call fcn.0042e2b0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x5c]
push eax
call edi
movzx edx, byte [esi + 0xc8]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push edx
mov dword [esi + 0xcc], eax
lea eax, [esp + 0x10]
push str._c:_
push eax
mov dword [esp + 0x20], ecx
call fcn.0042e2b0
add esp, 0xc
lea ecx, [esi + 0xc0]
push ecx
lea edx, [esi + 0xbc]
push edx
lea eax, [esi + 0xb8]
push eax
lea ecx, [esi + 0xb4]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 0xc8]
push eax
lea ecx, [esp + 0x2c]
push str.._c:
push ecx
call fcn.0042e2b0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x40]
push edx
call edi
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov ebp, eax
test ebp, ebp
je 0x40e3d5
push ebx
push 0x400
call fcn.0042e947
add esp, 4
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x400
mov ebx, eax
push ebx
push 0
push 0
push 0x560000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov dword [esp + 0x20], eax
je 0x40e3c4
mov edx, dword [ebx + 0x10]
mov dword [esi], edx
mov eax, dword [ebx + 0x14]
mov dword [esi + 4], eax
push ebx
call fcn.0042e86a
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push 0x20
lea ecx, [esi + 0x94]
push ecx
lea edx, [esi + 0x90]
push edx
lea eax, [esi + 0x8c]
push eax
lea ecx, [esi + 0x88]
push ecx
push 0x80
add esi, 8
push esi
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [esp + 0x14], 0
je 0x40e448
cmp dword [esp + 0x18], 0
je 0x40e448
test ebp, ebp
je 0x40e448
cmp dword [esp + 0x1c], 0
je 0x40e448
test eax, eax
je 0x40e448
cmp dword [esp + 0x10], 0
je 0x40e448
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x84c]
xor ecx, esp
call fcn.0042d47b
add esp, 0x850
ret
mov ecx, dword [esp + 0x858]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0042d47b
add esp, 0x850
ret
Function at 0x40e4a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0xcc]
cmp eax, 0xffffffff
mov ebx, 1
je 0x40e4db
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40e4e5
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
mov ecx, dword [edi + 0xb8]
mov eax, dword [esp + 0x20]
xor edx, edx
div ecx
mov edx, dword [edi + 0xcc]
push esi
push 0
mov dword [esp + 0x28], 0
mov esi, eax
imul esi, ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e525
cmp dword [esp + 0x24], esi
je 0x40e530
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
pop esi
pop edi
mov eax, ebx
pop ebx
add esp, 8
ret 0x10

Function at 0x40f8d0
Capabilities:
Create service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40f8f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret 0x10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
push 1
push ecx
push edx
push 0xf01ff
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40f940
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
mov edi, eax
call ebx
push esi
call ebx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret 0x10