joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x6c08f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x6dd54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x6dd54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x6dc378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c08fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x4013d6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4041c0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x401301
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Hall
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x4014a0
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.moossi
push str.Hall
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4041c8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041c8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x4014a0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401485
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407cd0
Capabilities:
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.0042a310
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x1258], 0
mov eax, dword [ebp + 8]
push eax
push 0x44cff4
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x1254]
push edx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1258], eax
cmp dword [ebp - 0x1258], 0xffffffff
jne 0x407d35
xor eax, eax
jmp 0x407e38
push 0x44d00c
lea ecx, [ebp - 0x1228]
push ecx
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x407e01
push 0x44d010
lea edx, [ebp - 0x1228]
push edx
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x407e01
lea eax, [ebp - 0x1228]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x44d018
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 2
and esi, eax
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 0x81
and esi, eax
and esi, 0xffe0fe00
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x1254]
and ecx, 0x10
je 0x407df2
lea edx, [ebp - 0x1004]
push edx
call fcn.00408d60
add esp, 4
jmp 0x407e01
lea eax, [ebp - 0x1004]
push eax
call fcn.004088e0
add esp, 4
lea ecx, [ebp - 0x1254]
push ecx
mov edx, dword [ebp - 0x1258]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x407e26
cmp dword [0x465f70], 0
je 0x407d35
mov eax, dword [ebp - 0x1258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret
Function at 0x407ed0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12f4
call fcn.0042a310
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x450678]
mov word [ebp - 0x2a0], ax
push 0x298
push 0
lea ecx, [ebp - 0x29e]
push ecx
call fcn.0042d590
add esp, 0xc
mov dx, word [0x45067c]
mov word [ebp - 0x12a0], dx
push 0xffe
push 0
lea eax, [ebp - 0x129e]
push eax
call fcn.0042d590
add esp, 0xc
lea ecx, [ebp - 0x2a0]
push ecx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2a0]
push eax
push str.__scmd.exe___C___s_
push 0x800
lea ecx, [ebp - 0x12a0]
push ecx
call fcn.00427830
add esp, 0x14
mov dword [ebp - 0x12f4], 0
push 0x40
push 0
lea edx, [ebp - 0x12f0]
push edx
call fcn.0042d590
add esp, 0xc
mov dword [ebp - 0x12f4], 0x44
mov dword [ebp - 0x12c8], 1
xor eax, eax
mov word [ebp - 0x12c4], ax
mov dword [ebp - 0x12b0], 0
xor ecx, ecx
mov dword [ebp - 0x12ac], ecx
mov dword [ebp - 0x12a8], ecx
mov dword [ebp - 0x12a4], ecx
push 0x4663bc
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
je 0x40804c
lea edx, [ebp - 0x12b0]
push edx
lea eax, [ebp - 0x12f4]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x12a0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40803a
push 0xffffffffffffffff
mov edx, dword [ebp - 0x12b0]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x12b0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x12ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x4663bc]
push edx
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov eax, 1
jmp 0x4080b1
mov eax, dword [0x4663bc]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
xor eax, eax
jmp 0x4080b1
lea ecx, [ebp - 0x12b0]
push ecx
lea edx, [ebp - 0x12f4]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x12a0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4080ab
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x12b0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x12b0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x12ac]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4080b1
xor eax, eax
jmp 0x4080b1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret
Function at 0x4087c0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 2
and esi, eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 0x81
and esi, eax
and esi, 0xffe0fe00
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0x400
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x408839
or eax, 0xffffffff
jmp 0x4088c1
push 0
push 0
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
movzx edx, al
test edx, edx
jne 0x40885d
or eax, 0xffffffff
jmp 0x4088c1
mov dword [ebp - 0x828], 0x18
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x81c], 0x40
lea eax, [ebp - 0x810]
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
lea ecx, [ebp - 0x828]
push ecx
call dword [sym.imp.ntdll.dll_NtDeleteFile]
mov dword [ebp - 0x808], eax
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [ebp - 0x808]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret 4
Function at 0x408d60
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.0042a310
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 2
and esi, eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 0x81
and esi, eax
and esi, 0xffe0fe00
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x1258], 0
mov cx, word [0x4516ac]
mov word [ebp - 0x1004], cx
push 0xffe
push 0
lea edx, [ebp - 0x1002]
push edx
call fcn.0042d590
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x1254]
push edx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1258], eax
cmp dword [ebp - 0x1258], 0xffffffff
jne 0x408e26
xor eax, eax
jmp 0x408f2e
push 0x4517a4
lea ecx, [ebp - 0x1228]
push ecx
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x408ef2
push 0x452f8c
lea edx, [ebp - 0x1228]
push edx
call fcn.0042fb23
add esp, 8
test eax, eax
je 0x408ef2
lea eax, [ebp - 0x1228]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 2
and esi, eax
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub eax, 0x81
and esi, eax
and esi, 0xffe0fe00
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x1254]
and ecx, 0x10
je 0x408ee3
lea edx, [ebp - 0x1004]
push edx
call fcn.00408d60
add esp, 4
jmp 0x408ef2
lea eax, [ebp - 0x1004]
push eax
call fcn.004088e0
add esp, 4
lea ecx, [ebp - 0x1254]
push ecx
mov edx, dword [ebp - 0x1258]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408f17
cmp dword [0x465f70], 1
jne 0x408e26
mov eax, dword [ebp - 0x1258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret
Function at 0x408f40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x1010b
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408f90
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x408f84
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40900c
lea eax, [ebp - 8]
push eax
push 0x1020b
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408fcf
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x408fc3
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40900c
lea eax, [ebp - 8]
push eax
push 0x1000b
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40900c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x409002
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x409020
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x1010b
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409064
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 8]
push edx
push 0x1020b
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409097
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc]
push ecx
push 0x1000b
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4090ca
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4099d0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4099f0
jmp 0x409a47
push 2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409a15
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x409a47
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret
Function at 0x40d580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40d5e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x40d5b1
mov eax, 0x2ba
jmp 0x40d606
cmp dword [ebp - 4], 3
jne 0x40d5c0
mov eax, 0x2ba
jmp 0x40d606
cmp dword [ebp - 4], 5
jne 0x40d5e0
mov ecx, dword [ebp - 8]
and ecx, 0x10
je 0x40d5d7
mov eax, 0x2bb
jmp 0x40d606
mov eax, 0x2b9
jmp 0x40d606
mov eax, 0x2ba
jmp 0x40d606
mov edx, dword [ebp - 8]
and edx, 0x10
je 0x40d5fa
mov eax, 0x2bb
jmp 0x40d606
mov eax, 0x2b9
jmp 0x40d606
mov esp, ebp
pop ebp
ret
Function at 0x40ef10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x465f68], 0
je 0x40ef3d
mov dword [0x465f70], 1
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop ebp
ret
Function at 0x414d60
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0x8000
jne 0x414eb9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
push edx
call fcn.0041dfe0
add esp, 4
movsx eax, al
push eax
push str._C:_
push 6
push 0x466424
call fcn.0041d690
add esp, 0x10
push 0x104
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0x104
push 0
push 0x466424
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x414eb4
mov edx, dword [ebp - 0x3c]
and edx, 0x80000
jne 0x414eb4
push 0x466424
call fcn.0040d580
add esp, 4
cmp eax, 0x2bb
jne 0x414eb4
push 0x466424
lea ecx, [ebp - 0x28]
call fcn.00403550
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x466adc
call fcn.004248f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004046b0
cmp dword [0x465f68], 0
jne 0x414eaf
push 3
push 0
push 0
push 0x20
push 0x20
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0
push 0
mov ecx, dword [0x466a44]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
push 0
push 0
push 0x466424
push 0x40f240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x465f68], 1
call fcn.0041a7e0
jmp 0x414f95
cmp dword [ebp + 0xc], 0x8004
jne 0x414f95
mov dword [ebp - 0x30], 0x466adc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00421770
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00422270
jmp 0x414eef
lea ecx, [ebp - 0x2c]
call fcn.004050c0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404f00
movzx eax, al
test eax, eax
je 0x414f95
lea ecx, [ebp - 0x2c]
call fcn.00405080
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
call fcn.00421840
push eax
call fcn.0040d580
add esp, 4
cmp eax, 0x2bb
je 0x414f90
lea ecx, [ebp - 0x50]
push ecx
mov ecx, 0x466adc
call fcn.00422270
mov edx, dword [eax]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov ecx, 0x466adc
call fcn.00422270
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, 0x466adc
call fcn.00421770
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.00402840
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x466adc
call fcn.00422560
call fcn.0041a7e0
jmp 0x414f95
jmp 0x414ee7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret
Function at 0x415720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0xd
je 0x415730
cmp dword [ebp + 0xc], 0x20
jne 0x415784
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x415782
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x466a20], 0x2b8
jne 0x41576c
push 0
push 0x189
push 0x111
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x415782
push 0
push 0x18e
push 0x111
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4157b2
cmp dword [ebp + 0xc], 0x1b
jne 0x4157b2
push 0
push 0
push 0
push 0x418bf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4157b2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41c1e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, 0xc
imul edx, ecx, 0
lea eax, [ebp + edx - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov ecx, 0xc
imul edx, ecx, 0
mov dword [ebp + edx - 8], 2
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x41c264
cmp dword [ebp - 0x18], 1
je 0x41c270
cmp dword [ebp - 0x18], 2
je 0x41c27f
jmp 0x41c289
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x41c289
push 0
push 0x1000002
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x41c289
push 0
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret