joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
mov esi, edx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x4044e8
mov eax, dword [esi + 0x43c]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x4044b3
cmp eax, 1
je 0x4044b3
lea ecx, [eax + 0xfff]
xorps xmm0, xmm0
neg eax
movlpd qword [ebp - 0x18], xmm0
and ecx, eax
push ecx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4044de
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push ebx
push eax
push 0
push 0
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_ZwReadFile]
mov dword [ebp - 0x1c], eax
test eax, eax
js 0x4044a2
mov ecx, ebx
sub ecx, dword [ebp - 0x18]
push 0x1000
push ecx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
mov eax, dword [ebp - 0x1c]
add esp, 4
jmp 0x4044da
push 0
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0x1000
push edi
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push 0
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_ZwReadFile]
test eax, eax
jns 0x4044fb
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
mov eax, 0xef53
cmp word [edi + 0x438], ax
jne 0x404591
mov eax, 0x54
mov dword [esi + 0x448], 8
mov word [esi + 0x450], ax
xor eax, eax
test byte [edi + 0x460], 0xc
mov dword [esi + 0x44c], 0x580045
mov word [esi + 0x454], ax
jne 0x40456e
test byte [edi + 0x45c], 4
jne 0x40456e
movups xmm0, xmmword [edi + 0x468]
mov eax, 0x32
mov word [esi + 0x452], ax
mov byte [esi + 0x596], 1
movups xmmword [esi + 0x5b8], xmm0
jmp 0x4045fe
movups xmm0, xmmword [edi + 0x468]
mov eax, 0x33
mov word [esi + 0x452], ax
mov byte [esi + 0x597], 1
movups xmmword [esi + 0x5b8], xmm0
jmp 0x4045fe
cmp dword [edi + 0xff6], 0x50415753
jne 0x4045fe
cmp dword [edi + 0xffa], 0x4150532d
jne 0x4045b4
cmp word [edi + 0xffe], 0x4543
je 0x4045d7
cmp dword [edi + 0xff6], 0x50415753
jne 0x4045fe
cmp dword [edi + 0xffa], 0x43415053
jne 0x4045fe
cmp word [edi + 0xffe], 0x3245
jne 0x4045fe
xor eax, eax
mov dword [esi + 0x448], 8
mov dword [esi + 0x44c], 0x570053
mov dword [esi + 0x450], 0x500041
mov word [esi + 0x454], ax
push edi
call ebx
add esp, 4
cmp byte [esi + 0x596], 0
jne 0x40461a
cmp byte [esi + 0x597], 0
je 0x4044e8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x404b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
lea ecx, [ebx + 0x30]
call fcn.00404b00
test eax, eax
je 0x404baa
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor esi, esi
xor ecx, ecx
xor edi, edi
xor edx, edx
movzx eax, byte [ebx + esi + 0x30]
push eax
lea eax, [ebp - 0x38]
test esi, esi
jne 0x404bf7
add eax, ecx
push 0x41b004
push eax
call fcn.00401d30
mov ecx, dword [ebp - 0x248]
add esp, 0xc
add ecx, 3
inc esi
mov dword [ebp - 0x248], ecx
mov edi, ecx
mov edx, ecx
jmp 0x404bc4
cmp esi, 0xf
je 0x404c27
add eax, edx
push str.__2.2X
push eax
call fcn.00401d30
mov ecx, dword [ebp - 0x248]
inc esi
add ecx, 3
add esp, 0xc
mov dword [ebp - 0x248], ecx
mov edi, ecx
mov edx, ecx
cmp esi, 0x10
jl 0x404bc4
jmp 0x404c37
add eax, edi
push 0x41b00c
push eax
call fcn.00401d30
add esp, 0xc
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServicesExt2FsdVolumes]
mov ax, word [0x41b04c]
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x24c]
push eax
movups xmmword [ebp - 0x13c], xmm0
push 0xf003f
movups xmm0, xmmword [0x41b02c]
push 0
lea eax, [ebp - 0x13c]
movups xmmword [ebp - 0x12c], xmm0
push eax
movups xmm0, xmmword [0x41b03c]
push 0x80000002
movups xmmword [ebp - 0x11c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404ca5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x104
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x24c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x4055b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
push 0xbf
push 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x405658
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405658
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x40563e
xor ebx, ebx
cmp dword [ebp - 8], edi
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x405ef0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], 0x400
push eax
mov dword [ebp - 0xc4], str.ROOTFTDISK0000
mov dword [ebp - 0xc0], str.ROOTDMIO0000
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], str.ROOTVOLMGR0000
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405f79
cmp dword [ebp - 0xa4], 6
jne 0x405f70
cmp dword [ebp - 0x9c], 0xece
jbe 0x405f79
mov edi, 1
jmp 0x405f7b
xor edi, edi
push dword [ebp - 0xac]
neg edi
sbb edi, edi
and edi, 3
call dword [sym.imp.mfc140.dll_Ordinal_265]
mov esi, eax
add esp, 4
test esi, esi
je 0x4060d6
mov eax, dword [ebp + edi*4 - 0xc4]
test eax, eax
je 0x4060cc
mov ebx, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_Property_ExA]
push 0
push 0
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNode_ExA]
test eax, eax
jne 0x4060cc
push eax
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Child_Ex]
test eax, eax
jne 0x4060cc
push 0x400
push eax
push esi
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0x400
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xac]
push 0
push 0
push eax
push esi
push 0
push 0xf
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x4060bc
nop word [eax + eax]
lea edx, [ebp - 0xb0]
mov ecx, esi
call fcn.00405930
test eax, eax
je 0x40606b
mov edx, dword [ebp - 0xb0]
mov eax, dword [0x422b80]
mov dword [edx + 0x414], 0
test eax, eax
je 0x40605f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40605a
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x406051
mov dword [eax + 4], edx
jmp 0x406065
mov dword [0x422b80], edx
inc dword [0x425420]
push 0
push 0
push dword [ebp - 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Sibling_Ex]
test eax, eax
jne 0x4060bc
push 0x400
push eax
push esi
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0x400
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xac]
push 0
push 0
push eax
push esi
push 0
push 0xf
push dword [ebp - 8]
call ebx
test eax, eax
je 0x406020
mov eax, dword [ebp + edi*4 - 0xc0]
inc edi
test eax, eax
jne 0x405fb0
push esi
call dword [sym.imp.mfc140.dll_Ordinal_266]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x4060f0
Capabilities:
Check os version
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xbc], 0xffffffff
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406158
cmp dword [ebp - 0xb4], 6
jne 0x406140
cmp dword [ebp - 0xac], 0xece
jbe 0x406158
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x400
call edi
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc8], ebx
test ebx, ebx
je 0x406328
push 0x1000
call edi
mov edi, eax
add esp, 4
test edi, edi
je 0x406300
push 0x12
push 0
push 0
push 0x419bd0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0xbc], eax
cmp eax, 0xffffffff
je 0x406300
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push ecx
push 0
push 0x419bd0
push 0
push eax
mov dword [ebp - 0xc4], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x4062ee
nop
push 0xffc
lea eax, [edi + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi], 5
lea eax, [ebp - 0x20]
push 0
push 0
push 0x1000
push edi
push eax
push dword [ebp - 0xbc]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x4062b8
mov esi, dword [ebp - 0xc8]
push 0x400
push 0
push esi
mov dword [ebp - 0xc0], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + 8]
push 0x400
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [ebp - 0xc0]
mov ecx, esi
call fcn.00405930
test eax, eax
je 0x4062b8
mov esi, dword [ebp - 0xc0]
test byte [esi + 0x420], 1
je 0x4062a2
mov eax, dword [0x422b80]
test eax, eax
je 0x406294
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x406289
nop dword [eax + eax]
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x406280
inc dword [0x425420]
mov dword [eax + 4], esi
jmp 0x4062b8
inc dword [0x425420]
mov dword [0x422b80], esi
jmp 0x4062b8
mov eax, dword [esi + 0x418]
test eax, eax
je 0x4062b2
push eax
call ebx
add esp, 4
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc4]
mov eax, ecx
inc ecx
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x419bd0
push 0
push dword [ebp - 0xbc]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x4061e0
push dword [ebp - 0xc8]
mov esi, 1
call ebx
add esp, 4
jmp 0x406310
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
add esp, 4
test edi, edi
je 0x406328
push edi
call ebx
mov eax, dword [ebp - 0xbc]
add esp, 4
cmp eax, 0xffffffff
je 0x406328
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x407880
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, byte [ecx]
push esi
push eax
lea eax, [ebp - 0x20c]
mov esi, edx
push 0x41b320
push eax
call fcn.00401d30
movups xmm0, xmmword [str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices]
mov eax, dword [0x41b318]
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov al, byte [0x41b31c]
movups xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0x210]
movups xmm0, xmmword [0x41b2f0]
push eax
push 0xf003f
movups xmmword [ebp - 0xf8], xmm0
push 0
movups xmm0, xmmword [0x41b300]
lea eax, [ebp - 0x108]
push eax
movups xmmword [ebp - 0xe8], xmm0
push 0x80000002
movq xmm0, qword [0x41b310]
movq qword [ebp - 0xd8], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40798b
cmp dword [ebp + 8], eax
je 0x407954
mov eax, esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407930
sub eax, edx
push eax
push esi
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x407967
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00416a63
mov esp, ebp
pop ebp
ret

Function at 0x4079a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41b2d8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov al, byte [0x41b2dc]
mov ebx, edx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], 0x3a41
cmp dword [edi + 8], 0
mov byte [ebp - 8], al
jne 0x407a95
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov al, byte [edi]
lea edx, [ebp - 0x11c]
add esp, 0xc
mov byte [ebp - 0xc], al
mov ecx, 1
mov byte [ebp - 0x11c], al
push ebx
call fcn.004101b0
add esp, 4
test eax, eax
je 0x407a95
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x407a6e
push 0x104
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
mov ecx, 7
mov esi, eax
call fcn.004101b0
add esp, 4
test esi, esi
je 0x407a95
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
test eax, eax
je 0x407a95
xor edx, edx
mov ecx, edi
test ebx, ebx
sete dl
mov dword [edi + 0xc], edx
call fcn.00402430
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x407e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41b14c]
movups xmm0, xmmword [0x41b11c]
mov dword [ebp - 0xd8], eax
mov al, byte [0x41b150]
push esi
mov byte [ebp - 0xd4], al
xor esi, esi
movups xmmword [ebp - 0x108], xmm0
lea eax, [ebp - 0x114]
movups xmm0, xmmword [0x41b12c]
push eax
push 0xf013f
push esi
movups xmmword [ebp - 0xf8], xmm0
lea eax, [ebp - 0x108]
movups xmm0, xmmword [0x41b13c]
push eax
push 0x80000002
movups xmmword [ebp - 0xe8], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ecc
push 0x1000
mov dword [ebp - 0x110], 0xfff
call dword [sym.imp.mfc140.dll_Ordinal_265]
mov esi, eax
add esp, 4
test esi, esi
je 0x407ecc
mov ecx, dword [ebp - 0x110]
inc ecx
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x41b3b0
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x408270
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.00401d50
test al, al
je 0x4082a5
mov ecx, edi
call fcn.00407ef0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
push esi
push 0xfe
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4082c2
mov eax, dword [str.__quiet]
movups xmm0, xmmword [str.SOFTWAREMicrosoftWindowsCurrentVersionRun]
mov dword [ecx], eax
mov eax, dword [0x41b368]
mov dword [ecx + 4], eax
mov eax, dword [0x41b394]
mov dword [ebp - 0xe0], eax
mov ax, word [0x41b398]
mov word [ebp - 0xdc], ax
lea eax, [ebp - 0x210]
push eax
movups xmmword [ebp - 0x108], xmm0
push 0xf003f
movups xmm0, xmmword [0x41b37c]
push 0
lea eax, [ebp - 0x108]
movups xmmword [ebp - 0xf8], xmm0
push eax
movq xmm0, qword [0x41b38c]
push 0x80000002
movq qword [ebp - 0xe8], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408357
xor esi, esi
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40836e
push 0x41b39c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40839d
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408377
sub ecx, edx
lea eax, [ebp - 0x20c]
push ecx
push eax
push 1
push 0
push 0x41b39c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4083a4
lea esi, [eax + 1]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x408630
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1f4
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40867d
push eax
push 0x30
push str.Unable_to_install_Ext2Mgr_as_service
call dword [sym.imp.mfc140.dll_Ordinal_2298]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x408684
mov eax, dword [str.__service__hide]
mov dword [ecx], eax
mov eax, dword [0x41b3ec]
push ebx
mov dword [ecx + 4], eax
mov eax, dword [0x41b3f0]
push 0xf003f
mov dword [ecx + 8], eax
mov eax, dword [0x41b3f4]
push 0
push 0
mov dword [ecx + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x4086e3
push eax
push 0x30
push str.Ext2Mgr:_cannot_open_Service_Control_Manager
call dword [sym.imp.mfc140.dll_Ordinal_2298]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
test esi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40877c
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Ext2_Volume_Manger
push 0x41b43c
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x408761
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x30
cmp eax, 0x431
jne 0x40874d
push str.Ext2Mgr_service_is_already_registered.
call dword [sym.imp.mfc140.dll_Ordinal_2298]
xor ecx, ecx
call fcn.00408270
jmp 0x4087d1
push str.Ext2Mgr_service_couldnt_be_registered.
call dword [sym.imp.mfc140.dll_Ordinal_2298]
xor ecx, ecx
call fcn.00408270
jmp 0x4087d1
push eax
call esi
push 0
push 0x40
push str.Ext2Mgr_service_was_successfully_registered.__n_nYou_can_modify_the_default_settings_and_start_stop_it_from_Control_Panel._nThe_service_will_automatically_run_the_next_time_when_system_is_restarted._n
call dword [sym.imp.mfc140.dll_Ordinal_2298]
xor ecx, ecx
call fcn.00408270
jmp 0x4087d1
push edi
push 0xf01ff
push 0x41b43c
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4087d0
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4087aa
push 0
push 0x40
push str.The_Ext2Mgr_service_has_been_unregistered.
jmp 0x4087c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x30
cmp eax, 0x430
jne 0x4087c2
push str.Ext2Mgr_service_is_already_unregistered
jmp 0x4087c7
push str.Ext2Mgr_service_could_not_be_unregistered
call dword [sym.imp.mfc140.dll_Ordinal_2298]
push edi
call esi
pop edi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
xor ecx, ebp
pop esi
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x40fc00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x425458]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
test edi, edi
je 0x40fc66
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [eax]
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [edx + esi]
push eax
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x40fc62
add esi, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp esi, edi
jb 0x40fc40
mov ecx, dword [ebp - 0x14]
pop ebx
test ecx, ecx
je 0x40fc6c
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416a63
mov esp, ebp
pop ebp
ret
Function at 0x410300
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, cl
push edi
mov edi, edx
mov byte [ebp - 9], bl
call fcn.00401d50
test al, al
jne 0x41036c
mov ax, word [0x41ca7c]
mov word [ebp - 8], ax
mov al, byte [0x41ca7e]
mov byte [ebp - 6], al
lea eax, [ebp - 8]
push eax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
cmp esi, 1
je 0x410359
push 0x104
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
push 0x1000
mov dword [ebp - 0x10], 0x1000
xor ebx, ebx
call dword [sym.imp.mfc140.dll_Ordinal_265]
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
je 0x410433
push 0x1000
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
movsx eax, byte [ebp - 9]
add esp, 0xc
mov dword [esi], 0xbad0bad8
mov dword [esi + 0xc], 0x18
mov dword [esi + 8], 0xbad00001
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
mov byte [esi + 0x14], al
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.0040fc80
mov ebx, eax
test ebx, ebx
jne 0x4103e4
push str.pipe_communication_failed._n
call fcn.0040fbd0
add esp, 4
jmp 0x410422
cmp byte [esi + 0x15], 0
mov ebx, dword [esi + 0x10]
movzx eax, byte [esi + 0x14]
je 0x410414
add esi, 0x18
push esi
push eax
push str._C:_____s_n
call fcn.0040fbd0
add esp, 0xc
sub edi, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x410405
jmp 0x410422
push eax
push str.failed_to_queyr__C:_n
call fcn.0040fbd0
add esp, 8
mov esi, dword [ebp - 8]
test esi, esi
je 0x410433
push esi
call dword [sym.imp.mfc140.dll_Ordinal_266]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret