joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40101f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xe08110]
jne 0x401029
repz ret
jmp fcn.004012ab

Function at 0x404e11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xe08110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004013b1
and dword [ebp - 0x14], 0
cmp dword [0xe0b224], 0
mov dword [ebp - 0x18], eax
jne 0x404ec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404f6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404f6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xe0b224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xe0b228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xe0b22c], eax
call edi
push eax
call esi
mov dword [0xe0b234], eax
test eax, eax
je 0x404ec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xe0b230], eax
mov eax, dword [0xe0b230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x404f1d
cmp dword [0xe0b234], ecx
je 0x404f1d
push eax
call esi
push dword [0xe0b234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404f1d
test ebx, ebx
je 0x404f1d
call edi
test eax, eax
je 0x404f14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404f14
test byte [ebp - 8], 1
jne 0x404f1d
or dword [ebp + 0x10], 0x200000
jmp 0x404f50
mov eax, dword [0xe0b228]
cmp eax, dword [ebp - 0x18]
je 0x404f50
push eax
call esi
test eax, eax
je 0x404f50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404f50
mov eax, dword [0xe0b22c]
cmp eax, dword [ebp - 0x18]
je 0x404f50
push eax
call esi
test eax, eax
je 0x404f50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xe0b224]
call esi
test eax, eax
je 0x404f6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040101f
leave
ret
Function at 0x467bd0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004072f4
ret

Function at 0x468b38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x468b70]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468b4e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468b5d
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468b6c
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x46932c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x46f8e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x469352
push 0
mov eax, dword [0x46f8e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x480f00
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [0x131a0]
lea edx, [esp + 4]
int 0x2e
ret 0x14
Function at 0x481210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
add eax, edi
mov ebx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x24], ebx
add ebx, edi
mov esi, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
add esi, edi
add ecx, edi
add edx, edi
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], eax
cmp eax, dword [ebx + 0x14]
jae 0x48133f
movzx eax, word [esi + eax*2]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 8], eax
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 0x18]
jae 0x48131d
mov eax, dword [edx + eax*4]
add eax, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 1], al
cmp al, byte [edx]
jne 0x4812b2
test al, al
je 0x4812ae
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
mov byte [ebp - 1], al
cmp al, byte [edx + 1]
jne 0x4812b2
add dword [ebp - 0x10], 2
add dword [ebp - 0x14], 2
test al, al
jne 0x481281
xor eax, eax
jmp 0x4812b7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x48131d
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 8], eax
jb 0x48133a
mov ecx, dword [ebp - 0x2c]
add ecx, eax
cmp dword [ebp - 8], ecx
ja 0x48133a
push 0x2e
push dword [ebp - 0x18]
call dword [0x12d30]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x48131a
mov esi, dword [ebp - 0x18]
sub eax, esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [ebp + eax - 0x130], 0
lea eax, [ebp - 0x130]
push eax
call fcn.00481129
test eax, eax
jne 0x48132b
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
jmp 0x48124f
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
jmp 0x48121c
mov eax, dword [ebp - 0x18]
jmp 0x481341
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x483342
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [0x1327c]
lea edx, [esp + 4]
int 0x2e
ret 8
Function at 0x5deffa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5df0e9
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5df0e9
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5df095
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5df0e9
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124a302b]
pop edi
pop ecx
test eax, eax
jne 0x5df04e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5df09b
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5df0e9
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5df0e9
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5df0e9
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5df0e9
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005def43
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405b4a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e08
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405b89
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4477c8], eax
jmp 0x405d13
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ba3
test eax, eax
je 0x405cc1
test bl, 2
je 0x405cc1
mov esi, 0x43a558
push edi
push esi
call fcn.00406388
cmp dword [ebp + 8], 0
je 0x405bc2
push 0x40a3e4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405bc8
push edi
call fcn.00405d61
cmp byte [edi], 0
jne 0x405bd6
cmp byte [0x43a558], 0x5c
jne 0x405be1
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405cb7
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405d45
cmp byte [eax], 0
je 0x405c27
cmp byte [ebp - 0x1c], 0
je 0x405c27
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405c3d
mov al, byte [esi + 1]
test al, al
je 0x405c96
cmp al, 0x2e
jne 0x405c3d
cmp byte [esi + 2], 0
je 0x405c96
push esi
push ebx
call fcn.00406388
test byte [ebp - 0x14c], 0x10
je 0x405c62
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c96
push dword [ebp + 0xc]
push edi
call fcn.00405b4a
jmp 0x405c96
push dword [ebp - 4]
push edi
call fcn.00405b02
test eax, eax
jne 0x405c8e
cmp dword [ebp - 4], eax
je 0x405c86
push edi
push 0xfffffffffffffff1
call fcn.004054a9
push 0
push edi
call fcn.00406161
jmp 0x405c96
inc dword [0x4477c8]
jmp 0x405c96
push edi
push 0xfffffffffffffff2
call fcn.004054a9
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c05
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cc1
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d13
cmp dword [ebp - 0xc], esi
jne 0x405cd5
inc dword [0x4477c8]
jmp 0x405d13
push edi
call fcn.004066ff
test eax, eax
je 0x405d13
push edi
call fcn.00405d1a
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b02
test eax, eax
jne 0x405d0b
cmp dword [ebp - 4], esi
je 0x405ccd
push edi
push 0xfffffffffffffff1
call fcn.004054a9
push esi
push edi
call fcn.00406161
jmp 0x405d13
push edi
push 0xffffffffffffffe5
call fcn.004054a9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e28a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x429750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0040800e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4011e6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004084d8
push 0x427744
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0040a0ab
push edi
push esi
call fcn.00406dfd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret 4

Function at 0x401830
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e318
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x429750]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00403a90
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00401760
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x4018a1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.004084d8
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x4018ca
push dword [esp + 0xc]
call fcn.00409175
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401fb0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x429750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x41f228
push 0x17
push 0
push 0x41f238
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [0x42ab00]
mov esi, eax
push esi
mov edx, dword [ecx + 4]
add edx, 0x42ab00
mov ecx, dword [edx + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + 0x14], ecx
mov ecx, 0x42ab00
call fcn.00403690
push eax
call fcn.00405e70
add esp, 4
test esi, esi
js 0x4020c3
mov eax, dword [ebp - 8]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 8]
push dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
push dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push 0x41f248
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4020bc
mov eax, dword [ebp - 0xc]
push 1
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
mov edx, str.ERRO_2
jmp 0x4020c8
mov edx, str.ERRO_1
call fcn.00405f30
push eax
call fcn.00405e70
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00408492
mov esp, ebp
pop ebp
ret
Function at 0x402710
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x429750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push str.txtfile_shellopencommand
push 0x80000000
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x104]
push eax
push str.txtfileDefaultIcon
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402859
push pe_nt_image_headers32
push eax
mov word [ebp - 0x100], ax
lea eax, [ebp - 0xfe]
push eax
call fcn.0040b570
mov ecx, dword [ebx + 8]
call fcn.00401ec0
push eax
lea eax, [ebp - 0x100]
push str._sdata_notepad.ico
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x100]
push 0xfa
push eax
push 1
push 0
push 0x425920
push dword [ebp - 0x104]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x104]
push eax
push str.txtfile_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402859
push pe_nt_image_headers32
push eax
mov word [ebp - 0x100], ax
lea eax, [ebp - 0xfe]
push eax
call fcn.0040b570
mov ecx, dword [ebx + 8]
add esp, 0xc
push str.LiuLiuNotepad
call fcn.00401ec0
push eax
lea eax, [ebp - 0x100]
push str._s_s.exe___1
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x100]
push 0xfa
push eax
push 1
push 0
push 0x425920
push dword [ebp - 0x104]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.txtUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x104]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00408492
mov esp, ebp
pop ebp
ret
Function at 0x402870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e3ab
mov eax, dword fs:[0]
push eax
sub esp, 0x624
mov eax, dword [0x429750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x614], 7
mov dword [ebp - 0x618], 0
mov word [ebp - 0x628], ax
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x628]
mov dword [ebp - 4], eax
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x614], 8
lea ecx, [ebp - 0x62c]
lea eax, [ebp - 0x628]
cmovae eax, dword [ebp - 0x628]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402ae2
push pe_nt_image_headers32
push eax
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push eax
call fcn.0040b570
xor eax, eax
push pe_nt_image_headers32
push eax
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x10e]
push eax
call fcn.0040b570
xor eax, eax
push pe_nt_image_headers32
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040b570
xor eax, eax
push pe_nt_image_headers32
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.0040b570
xor eax, eax
push pe_nt_image_headers32
push eax
mov word [ebp - 0x610], ax
lea eax, [ebp - 0x60e]
push eax
call fcn.0040b570
xor eax, eax
push pe_nt_image_headers32
push eax
mov word [ebp - 0x510], ax
lea eax, [ebp - 0x50e]
push eax
call fcn.0040b570
mov ecx, dword [edi + 8]
add esp, 0x48
call fcn.00401ec0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x310]
push 0x425a64
push eax
call esi
mov ecx, dword [edi + 8]
call fcn.00401ec0
push eax
lea eax, [ebp - 0x110]
push str._sdata_notepad.ico
push eax
call esi
lea eax, [ebp - 0x210]
push 0x425a6c
push eax
call esi
lea eax, [ebp - 0x410]
push str.1.0.0.0
push eax
call esi
lea eax, [ebp - 0x610]
push 0x425a88
push eax
call esi
mov ecx, dword [edi + 8]
call fcn.00401ec0
push eax
lea eax, [ebp - 0x510]
push str._suninstall.exe
push eax
call esi
add esp, 0x3c
lea eax, [ebp - 0x310]
push 0xfa
push eax
push 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push str.appPath
push dword [ebp - 0x62c]
call esi
push 0xfa
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x62c]
call esi
push 0xfa
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.DisplayName
push dword [ebp - 0x62c]
call esi
push 0xfa
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x62c]
call esi
push 0xfa
lea eax, [ebp - 0x610]
push eax
push 1
push 0
push str.Publisher
push dword [ebp - 0x62c]
call esi
push 0xfa
lea eax, [ebp - 0x510]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x62c]
call esi
mov bl, 1
jmp 0x402ae4
xor bl, bl
cmp dword [ebp - 0x614], 8
jb 0x402afb
push dword [ebp - 0x628]
call fcn.00409175
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
Function at 0x402b20
Capabilities:
Delete file
Delete registry key
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e3eb
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x429750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7c
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], 0
push 0
push eax
call fcn.0040b570
add esp, 0xc
lea eax, [ebp - 0x298]
push 0x104
push 0
push eax
call fcn.0040b570
add esp, 0xc
lea eax, [ebp - 0x298]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x425a6c
call fcn.00401f30
push eax
lea ecx, [ebp - 0x298]
call fcn.00401f30
push eax
lea eax, [ebp - 0x90]
push str._s_s
push eax
call fcn.004063c0
lea ecx, [ebp - 0x90]
call fcn.004020f0
push 0x104
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.0040b570
add esp, 0x1c
lea eax, [ebp - 0x4a0]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x425a6c
call fcn.00401f30
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00401f30
push eax
lea eax, [ebp - 0x90]
push str._s_s.lnk
push eax
call fcn.004063c0
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov dword [ebp - 0x4a4], 7
mov dword [ebp - 0x4a8], 0
mov word [ebp - 0x4b8], ax
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 4], eax
call fcn.00403c10
push 0xd
push str.LiuLiuNotepad
mov ecx, eax
call fcn.00403c10
cmp dword [ebp - 0x4a4], 8
lea eax, [ebp - 0x4b8]
cmovae eax, dword [ebp - 0x4b8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x4a4], 8
jb 0x402c99
push dword [ebp - 0x4b8]
call fcn.00409175
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
Function at 0x402cc0
Capabilities:
Create service
Delete service
Persist via windows service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x429750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
push 0xf003f
push 0
push 0
test cl, cl
je 0x402db9
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402d1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.0040909f
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
mov ecx, ebx
call fcn.00401ec0
push eax
push 1
push 2
push 0x10
push 0xf01ff
mov ecx, esi
call fcn.00401ec0
push eax
mov ecx, esi
call fcn.00401ec0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x402d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d__n
call fcn.0040909f
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
push str.Service_installed_successfully_n
call fcn.0040909f
add esp, 4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402d09
push 0x10020
mov ecx, esi
call fcn.00401ec0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402dfd
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408492
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00408492
mov esp, ebp
pop ebp
ret