joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa00
mov esi, esp
push 0x1000
call fcn.0040a300
add esp, 4
mov dword [esi + 0x9c], eax
mov dword [esi + 0x7f0], 0xc0f3e703
mov dword [esi + 0x7f4], 0x2a5762b0
mov dword [esi + 0x7f8], 0xea0a
mov byte [esi + 0x7fc], 0
mov dword [esi + 0x544], 0
mov eax, dword [esi + 0x544]
cmp eax, 0xc
ja 0x427bd7
nop
nop
mov eax, dword [esi + 0x544]
mov ecx, dword [esi + 0x544]
movzx ecx, byte [esi + ecx + 0x7f0]
add eax, 0x70f3157b
xor eax, ecx
mov dword [esi + 0x1dc], eax
mov eax, dword [esi + 0x1dc]
add al, 0x92
mov ecx, dword [esi + 0x544]
mov byte [esi + ecx + 0x7f0], al
inc dword [esi + 0x544]
mov eax, dword [esi + 0x544]
cmp eax, 0xa
jb 0x427b90
mov eax, dword [0x443844]
mov dword [esi + 0x544], 0xfb9783bf
mov dword [esi + 0x548], 0xd9ddc6c0
mov dword [esi + 0x54c], 0xddcdc3d4
mov dword [esi + 0x550], 0xcccad3c5
mov word [esi + 0x554], 0xe4ff
mov byte [esi + 0x556], 0xc7
mov dword [esi + 0x557], 0
mov dword [esi + 0xd8], 0
mov ecx, dword [esi + 0xd8]
cmp ecx, 0x16
ja 0x427c95
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd8]
movzx edx, byte [esi + edx + 0x544]
add ecx, 0x2b71b8b0
xor ecx, edx
mov dword [esi + 0x1dc], ecx
mov ecx, dword [esi + 0x1dc]
mov edx, ecx
not edx
and edx, 5
and ecx, 0xfa
sub ecx, edx
mov edx, dword [esi + 0xd8]
mov byte [esi + edx + 0x544], cl
inc dword [esi + 0xd8]
mov ecx, dword [esi + 0xd8]
cmp ecx, 0x17
jb 0x427c40
mov ecx, dword [edx]
inc eax
cmp byte [eax + eax - 0x39], al
xchg ah, bl
add dword [eax], eax
add ch, al
invalid
Function at 0x436000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + ebx], 0
lea ebx, [ebx + 2]
jne 0x436020
mov dword [esp + 8], 0xf8f8fe6d
mov word [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x43607e
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
add eax, 0x62d146b2
xor eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0xb4
mov edx, dword [esp]
mov byte [esp + edx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x436050
cmp ebx, 2
je 0x4360a0
mov dword [esp + 4], ecx
lea eax, [ebx - 2]
mov esi, eax
sar esi, 1
mov edi, dword [esp + 8]
mov edx, edi
not edx
test al, 2
mov dword [esp + 0x14], edx
jne 0x4360a7
jmp 0x4360d2
mov eax, ebp
jmp 0x436140
dec esi
mov ecx, dword [esp + 0x30]
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 4], ecx
xor eax, ebp
mov ebp, eax
not ebp
and ebp, edi
mov ecx, eax
and ecx, edx
imul ecx, ebp
mov ebp, eax
and ebp, edi
or eax, edi
imul eax, ebp
add eax, ecx
mov ebp, eax
cmp ebx, 4
mov ecx, dword [esp + 4]
je 0x436140
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x10], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [ecx + ebx*2]
xor ebp, eax
mov eax, ebp
not eax
and eax, edi
mov edx, ebp
mov esi, ecx
mov ecx, dword [esp + 0x14]
and edx, ecx
imul edx, eax
mov eax, ebp
and eax, edi
or ebp, edi
imul ebp, eax
add ebp, edx
movzx eax, word [esi + ebx*2 + 2]
xor eax, ebp
mov edx, eax
not edx
and edx, edi
mov ebp, eax
and ebp, ecx
mov ecx, esi
imul ebp, edx
mov edx, eax
and edx, edi
or eax, edi
imul eax, edx
mov esi, dword [esp + 0x10]
add eax, ebp
add ebx, 2
cmp esi, ebx
jne 0x4360f0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43abd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x43ac91
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 4], 0x9363734
mov dword [esp + 8], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 7
ja 0x43ac30
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 4]
add edx, 0x5250939d
xor edx, esi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0x56
mov esi, dword [esp]
mov byte [esp + esi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 8
jb 0x43ac00
mov edx, dword [0x44996c]
test edx, edx
je 0x43ac7e
mov esi, dword [esp + 4]
xor edi, edi
mov ebx, dword [0x449970]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x625b6034
je 0x43ac60
inc edi
cmp edx, edi
jne 0x43ac50
jmp 0x43ac7e
mov edx, dword [ebx + edi*8 + 4]
cmp edx, esi
je 0x43ac7e
push eax
push 1
push dword [0x449974]
push edx
mov esi, ecx
call fcn.0043c800
mov ecx, esi
add esp, 0x10
mov dword [ecx], 0
mov dword [ecx + 4], 0
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x43e080
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
movzx eax, word [ebp]
mov dword [esp + 4], 0x9495704c
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 6
ja 0x43e0f0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 4]
add ecx, 0x6af6c656
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x33
mov edx, dword [esp]
mov byte [esp + edx + 4], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 7
jb 0x43e0c0
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, eax
setne dl
xor eax, eax
jmp dword [edx*4 + 0x4482cc]
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x401910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401923
push esp
mov dword [ebp - 0x24], 0x401640
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.zeenty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.upsent
push str.zeenty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019c2
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019a3
pop ebp
ret 0x10
Function at 0x4012e0
Capabilities:
Contain obfuscated stackstrings
Execute command
Get common file path

Disassembly:
sub esp, 0x704
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x511]
mov byte [esp + 0x510], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, 0x65
mov byte [esp + ecx + 5], 0x77
mov byte [esp + ecx + 6], 0x64
mov byte [esp + ecx + 7], al
mov byte [esp + ecx + 8], 0x6c
mov byte [esp + ecx + 9], 0x6d
mov byte [esp + ecx + 0xa], 0x67
mov byte [esp + ecx + 0xb], 0x72
mov byte [esp + ecx + 0xc], 0x32
mov byte [esp + ecx + 0xd], 0x30
mov byte [esp + ecx + 0xe], 0x2e
mov byte [esp + ecx + 0xf], al
mov byte [esp + ecx + 0x10], 0x78
mov byte [esp + ecx + 0x11], al
mov byte [esp + ecx + 0x12], bl
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.driversWDelMgr20.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x40c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x514]
push str._s__u
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x51c]
push edx
call dword [sym.imp.MSVCRT.dll_system]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x704
ret
Function at 0x401460
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc00
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x411]
mov byte [esp + 0x410], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x810], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x811]
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x410]
or ecx, 0xffffffff
xor eax, eax
mov dl, 0x69
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x100
lea eax, [esp + ecx + 0x414]
mov cl, 0x6e
mov byte [eax - 0xd], 0x55
mov byte [eax - 0xc], cl
mov byte [eax - 0xb], dl
mov byte [eax - 0xa], cl
mov cl, 0x73
mov byte [eax - 9], cl
mov byte [eax - 8], 0x74
mov byte [eax - 7], 0x2e
mov byte [eax - 6], dl
mov byte [eax - 5], cl
lea ecx, [esp + 0x14]
mov byte [eax - 4], 0x75
push ecx
mov byte [eax - 3], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [esp + 0xc14]
lea eax, [edx - 1]
cmp eax, 4
ja case.0x40152a.2
jmp dword [eax*4 + 0x4015d8]
lea edx, [esp + 0x10]
mov edi, str.IsUn0412.exe
jmp 0x401566
lea edx, [esp + 0x10]
mov edi, str.IsUn0411.exe
jmp 0x401566
lea edx, [esp + 0x10]
mov edi, str.IsUn0804.exe
jmp 0x401566
lea edx, [esp + 0x10]
mov edi, str.IsUn0404.exe
jmp 0x401566
lea edx, [esp + 0x10]
mov edi, str.IsUninst.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x410]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x814]
push str._f__s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
lea edx, [esp + 0x820]
push 0x40704c
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__execl]
add esp, 0x20
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc00
ret
Function at 0x4018d0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
xor ebp, ebp
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll__access]
mov dword [esp + 0x18], eax
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x18]
test ecx, eax
je 0x4019a2
lea edx, [ebx + 0x41]
lea eax, [esp + 0x2c]
push edx
push str._c:_
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4019a2
mov dl, bl
lea ecx, [esp + 0x4c]
add dl, 0x41
movsx eax, dl
push eax
push str._c:Drive_InformationwkNtFsLdf.dat
push ecx
call esi
lea edx, [esp + 0x58]
push 0
push edx
call edi
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4019a2
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mul dword [esp + 0x14]
push 0
push ecx
push edx
push eax
call fcn.00403db0
push 0
push 0xa
push edx
push eax
call fcn.00403d40
add ebp, eax
mov eax, dword [esp + 0x20]
adc eax, edx
mov dword [esp + 0x20], eax
inc ebx
cmp ebx, 0x20
jb 0x4018f8
mov edx, dword [esp + 0x20]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
Function at 0x4019c0
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
movsx eax, byte [esp + 4]
sub esp, 0x518
push ebx
push ebp
push esi
push edi
push eax
lea eax, [esp + 0x32c]
push str._c:Drive_InformationwkNtFsLdf.dat
mov esi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x334]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401b99
mov ebp, dword [esp + 0x534]
mov ebx, dword [esp + 0x530]
test ebp, ebp
ja 0x401a1b
cmp ebx, 0x28000000
jbe 0x401a22
mov ebx, 0x28000000
xor ebp, ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x228]
lea edx, [esp + 0x228]
rep stosd dword es:[edi], eax
movsx edi, byte [esp + 0x52c]
push edi
push str._c:Drive_Information
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x228]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x228]
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea edx, [esp + 0x32c]
push str._c:Drive_InformationwkNtFsLdf.dat
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x328]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x401b99
mov ecx, 0x80
or eax, 0xffffffff
lea edi, [esp + 0x28]
push str.FinalData_Detection_File
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x2c]
push ecx
call edi
lea edx, [esp + 0x49]
push str.VNT02
push edx
call edi
mov eax, 0x200
xor ecx, ecx
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], ecx
add esp, 0x10
mov ecx, 9
mov eax, ebx
mov edx, ebp
mov dword [esp + 0x4e], ebx
mov dword [esp + 0x52], ebp
call fcn.00403df0
mov ebp, edx
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
jb 0x401b8e
ja 0x401b1f
test eax, eax
jbe 0x401b8e
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x28]
push esi
rep stosd dword es:[edi], eax
call fcn.00402290
mov eax, dword [esi + 0xd4]
add esp, 4
push 0
push 0
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x14]
add edx, 1
adc ebx, 0
mov dword [esp + 0x14], edx
cmp ebx, ebp
jb 0x401b1f
ja 0x401b8e
mov ecx, dword [esp + 0x1c]
mov eax, edx
cmp eax, ecx
jb 0x401b1f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret 0xc
Function at 0x401bb0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004018d0
mov ecx, 9
call fcn.00403df0
push 0
push 0x200
push edx
push eax
call fcn.00403db0
mov ecx, 9
call fcn.00403df0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0xd4]
push 0
push 0x406
push eax
call edi
mov ecx, dword [esi + 0xd4]
push 0
push 1
push 0x404
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebp, eax
xor edi, edi
mov edx, 1
mov ecx, edi
shl edx, cl
test ebp, edx
je 0x401cb3
lea eax, [edi + 0x41]
lea ecx, [esp + 0x20]
push eax
push str._c:_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401cb3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mul dword [esp + 0x14]
push 0
push ecx
push edx
push eax
call fcn.00403db0
push 0
push 0xa
push edx
push eax
call fcn.00403d40
mov ecx, 9
call fcn.00403df0
push 0
push 0x200
push edx
push eax
call fcn.00403db0
push edx
mov edx, dword [esp + 0x24]
push eax
push edx
mov ecx, esi
call fcn.004019c0
inc edi
cmp edi, 0x20
jb 0x401c19
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x401db0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401dd3
pop edi
pop esi
add esp, 0x14
ret
lea ecx, [esp + 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x401e23
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push 1
push 0
push 0
push str.Click_on_the_main_window_and_press_the_Escape_key_to_cancel_shutdown.
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x401e40
pop edi
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x30], 0
call esi
call edi
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x14
ret
Function at 0x402110
Capabilities:
Start service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x402163
push eax
push eax
lea eax, [esp + 0x34]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push 0xf01ff
push str.WDelMgr20
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4021ad
push eax
lea edx, [esp + 0x30]
push eax
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x2c], edi
jne 0x4021c7
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4021e7
push eax
jmp 0x4021d7
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4021e7
push edi
push esi
call fcn.00402200
add esp, 8
and eax, 0xff
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x402200
Capabilities:
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x1c
xor eax, eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_StartServiceA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
inc eax
cmp eax, 0x1e
mov dword [esp + 0x34], eax
jge 0x402278
lea eax, [esp + 0x10]
push eax
push esi
call ebp
mov eax, dword [esp + 0x14]
test edi, edi
je 0x402254
cmp eax, 4
je 0x402282
push 0
push 0
push esi
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
jmp 0x40221d
cmp eax, 1
je 0x402282
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x34]
jmp 0x40221d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret