joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1fe8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50aae8
push 0x50aae0
push str.FlsSetValue
push 0x22
call fcn.004e1e12
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e2022
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4f66c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4e3060
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x523858]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e30a0
cmp byte [ebx], 0xa
jne 0x4e30a0
or byte [edi + eax + 0x28], 4
jmp 0x4e30a5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4e31a4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4e3187
inc eax
cmp dl, 0xd
je 0x4e30d1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4e30f7
cmp eax, ecx
jae 0x4e3105
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4e30b9
jmp 0x4e31a4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e3182
cmp dword [ebp - 0x10], 0
je 0x4e3182
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x523858]
test byte [eax + edi + 0x28], 0x48
je 0x4e315c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4e3147
mov byte [esi], dl
jmp 0x4e3158
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x523858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4e31a4
cmp byte [ebp - 1], 0xa
jne 0x4e316b
cmp esi, ebx
jne 0x4e316b
mov byte [esi], 0xa
jmp 0x4e31a3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e3f5a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e31a4
mov byte [esi], 0xd
jmp 0x4e31a3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x523858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e31a1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e31a4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e31ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x523858]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e31f3
cmp word [ebx], dx
jne 0x4e31f3
or byte [eax + edi + 0x28], 4
jmp 0x4e31f8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4e335b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4e333b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4e3239
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4e326f
cmp eax, edx
jae 0x4e327d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4e3214
jmp 0x4e335b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e3336
cmp dword [ebp - 0x18], 0
je 0x4e3336
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x523858]
test byte [eax + edi + 0x28], 0x48
je 0x4e330c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4e32d0
mov word [esi], cx
jmp 0x4e3307
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x523858]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x523858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x523858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4e335b
pop eax
cmp word [ebp - 4], ax
jne 0x4e331c
cmp esi, ebx
jne 0x4e331c
mov word [esi], ax
jmp 0x4e3358
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004e3f5a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4e335b
push 0xd
pop eax
jmp 0x4e3317
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x523858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4e3355
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4e335b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e4d64
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5200e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4e4daf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004e4eff
test al, al
jne 0x4e4da9
sub edx, 2
cmp edx, edi
jne 0x4e4d8f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4e4dd1
lea eax, [edi + 2]
cmp edx, eax
je 0x4e4dd1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004e4cb0
add esp, 0x10
jmp 0x4e4ecb
push esi
lea ecx, [ebp - 0x255]
call fcn.004e4eff
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e4e14
push dword [ebp - 0x25c]
jmp 0x4e4dc1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4e4e51
cmp word [ebp - 0x226], 0
je 0x4e4e72
cmp word [ebp - 0x226], ax
jne 0x4e4e51
cmp word [ebp - 0x224], 0
je 0x4e4e72
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004e4cb0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4e4ebe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4e4e2b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4e4ea6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4e4ecb
push 0x4e4ae0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ecd00
add esp, 0x10
jmp 0x4e4e9b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c7708
leave
ret

Function at 0x4e8247
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004e013e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e82b6
cmp esi, dword [ebp - 4]
je 0x4e82b1
cmp dword [ebp + 0xc], 0
je 0x4e82b1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e828e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004e7d99
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4e82b8
xor eax, eax
inc eax
jmp 0x4e82b8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4e831d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5200e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004e013e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004e013e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4e8394
cmp word [ecx], dx
je 0x4e8394
mov eax, dword [0x50e8c4]
push edi
dec eax
push eax
push 0x50e7b0
call fcn.004e82bc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4e8407
cmp word [eax], dx
je 0x4e8407
mov eax, dword [edi]
test eax, eax
je 0x4e83b8
cmp word [eax], dx
je 0x4e83b8
lea eax, [ebp - 0x10]
push eax
call fcn.004e7c9f
jmp 0x4e83c1
lea eax, [ebp - 0x10]
push eax
call fcn.004e7d3a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4e8431
mov eax, dword [0x50e7ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x50e4a0
call fcn.004e82bc
add esp, 0xc
test al, al
je 0x4e8431
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4e83fc
cmp word [eax], di
je 0x4e83fc
lea eax, [ebp - 0x10]
push eax
call fcn.004e7c9f
pop ecx
jmp 0x4e8433
lea eax, [ebp - 0x10]
push eax
call fcn.004e7d3a
jmp 0x4e83f9
mov eax, dword [edi]
test eax, eax
je 0x4e841e
cmp word [eax], dx
je 0x4e841e
lea eax, [ebp - 0x10]
push eax
call fcn.004e7c54
pop ecx
jmp 0x4e8431
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4e84fc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004e8141
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e84fc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4e84fc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4e84fc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e8489
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004e2128
test ebx, ebx
je 0x4e84f7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004e2128
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e84fc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4e84fc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004d97dc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4e84fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c7708
leave
ret
Function at 0x4ee140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ee16d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ee16d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403c00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
movzx eax, word [esi + 0x46daa8]
mov word [ebp - 0x14], ax
add eax, 2
cmp dword [esi + 0x46daa8], 0xfffe
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0x46daac]
mov dword [ebp - 0x10], eax
ja 0x403ca6
lea eax, [ebp - 0xc]
mov ecx, 0xfffffffd
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea edx, [ebp - 0x14]
call fcn.004102c0
mov edi, eax
test edi, edi
js 0x403ca6
lea eax, [ebp - 0x2c]
push eax
push 0x10100
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov edi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x403c8b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x403ca6
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword ds:[ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
add esi, 8
cmp esi, 0x20
jb 0x403c20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00421733
mov esp, ebp
pop ebp
ret
Function at 0x404020
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.004051a0
mov edi, eax
test edi, edi
je 0x404042
cmp dword [edi], 0
jne 0x4040b5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word ds:[ebp - 0x28], 9
mov eax, 0x46dcf8
mov ecx, 0x46dcf0
cmovne ecx, eax
call fcn.00411b40
mov edi, eax
test edi, edi
je 0x404070
cmp dword [edi], 0
jne 0x4040b5
mov ecx, str.C:Program_FilesSystemInformer_
call fcn.00406960
mov edx, dword [0x46ecb4]
mov esi, eax
add esi, esi
lea ecx, [esi + 0xa]
call fcn.00406000
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
push esi
push str.C:Program_FilesSystemInformer_
mov dword [edi + 4], ecx
mov dword [edi], esi
mov word [ecx + esi], ax
push dword [edi + 4]
call fcn.00423550
add esp, 0xc
test edi, edi
je 0x40413a
mov ecx, dword [edi]
test ecx, ecx
je 0x40413a
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0x465468
cmp ecx, 2
jb 0x4040f1
mov eax, dword [edi + 4]
lea edx, [ebp - 0x38]
add ecx, 0xfffffffe
mov dword [ebp - 0x30], 2
add eax, ecx
lea ecx, [ebp - 0x30]
push 1
mov dword [ebp - 0x2c], eax
call fcn.00406a60
test al, al
jne 0x40413a
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 2
mov ecx, edi
mov dword [ebp - 0x2c], 0x465468
call fcn.00407040
mov esi, eax
test esi, esi
je 0x404113
lock inc dword [esi - 4]
lea ecx, ds:[edi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x404128
call fcn.004060e0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421733
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00421733
mov esp, ebp
pop ebp
ret
Function at 0x404400
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov dword [ebp - 0x50], edi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40442e
cmp dword [eax], 0
je 0x40442e
mov eax, dword [eax + 4]
jmp 0x404433
mov eax, str.KSystemInformer
push eax
mov edx, 0x24
lea ecx, [ebp - 0x48]
call fcn.004151c0
test eax, eax
js 0x404526
mov esi, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00415260
nop word [eax + eax]
test eax, eax
js 0x40451b
cmp dword [ebp - 0x24], 1
je 0x40451b
mov edi, 0x3c
lea eax, ds:[ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404499
cmp dword [0x46dad8], 0xffffffff
jb 0x404499
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, ds:[ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4044f3
cmp dword [0x46dad8], 0xffffffff
jae 0x4044e2
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x48]
mov eax, dword [eax + 0x34]
jmp 0x4044e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414c00
test eax, eax
js 0x4044f9
cmp dword [ebp - 0x24], 1
je 0x404518
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], 0xff676980
mov dword [ebp - 0x54], 0xffffffff
call fcn.004132c0
sub edi, 1
jne 0x404477
mov edi, dword [ebp - 0x50]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x404537
cmp dword [eax], 0
je 0x404537
mov eax, dword [eax + 4]
jmp 0x40453c
mov eax, str.KSystemInformer
push eax
mov edx, 0x10000
lea ecx, [ebp - 0x48]
call fcn.004151c0
test eax, eax
js 0x4045b2
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4045ab
cmp dword [0x46dad8], 0xffffffff
jae 0x404573
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x48]
mov eax, dword [eax + 0x34]
jmp 0x404579
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414c00
mov ecx, eax
test ecx, ecx
jns 0x4045ab
and eax, 0xfff0000
xor bl, bl
cmp eax, 0x70000
jne 0x40459e
movzx eax, cx
jmp 0x4045a8
push ecx
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
mov dword [edi + 0x28], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword ds:[ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421733
mov esp, ebp
pop ebp
ret
Function at 0x4045e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0xc
mov esi, ecx
push 0x46dac8
push ecx
lea ecx, [ebp - 8]
call fcn.004105c0
test eax, eax
js 0x40465a
mov ecx, dword [esi + 0x18]
mov edx, str.SystemInformer.exe
call fcn.00405480
mov esi, eax
test esi, esi
je 0x404651
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
add ecx, 2
xorps xmm0, xmm0
push ecx
push dword [esi + 4]
movlpd qword [ebp - 0x10], xmm0
push 1
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x404651
call fcn.004060e0
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00421733
mov esp, ebp
pop ebp
ret
Function at 0x404fa0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x24], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edx
push eax
push 0x44155c
push 1
push 0
push 0x4415ac
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x405148
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x44157c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x44127c]
call esi
test eax, eax
js 0x405148
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x44158c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x44127c]
call esi
test eax, eax
js 0x4050d2
mov ecx, ebx
call fcn.00406960
mov esi, eax
xorps xmm0, xmm0
add esi, esi
mov eax, 0x1f
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
lea eax, [esi + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword ds:[ebp - 0x18], eax
test eax, eax
je 0x40509c
lea ecx, [esi + 2]
push ecx
push 0
push eax
call fcn.004233f0
add esp, 0xc
push esi
push ebx
push dword [ebp - 0x18]
call fcn.00423550
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov esi, dword [eax]
push ecx
push 0x4653f8
push eax
mov esi, dword [esi + 0x18]
mov ecx, esi
call dword [0x44127c]
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x44127c]
call esi
mov eax, dword ds:[ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x44127c]
call esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp - 8]
push dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x44127c]
call esi
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x28]
push 0
push ebx
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x44127c]
nop
call esi
mov eax, dword [ebp - 8]
push ebx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x44127c]
call esi
test eax, eax
js 0x405148
mov ecx, edi
call fcn.00410ae0
test al, al
je 0x405130
mov ecx, edi
call fcn.00410b80
mov eax, dword ds:[ebp - 0x10]
push 1
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x44127c]
call esi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40515f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44127c]
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x405176
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44127c]
call esi
push 0
push edi
push 5
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421733
mov esp, ebp
pop ebp
ret 8
Function at 0x405220
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 0x12
mov dword [esp + 0x10], str.SiMutant_
mov dword [esp + 0x50], 0x12
cmp dword [esi], 0x12
mov eax, dword [esi + 4]
mov dword [esp + 0x54], eax
jb 0x405276
push 1
lea edx, [esp + 0x10]
lea ecx, [esp + 0x54]
call fcn.00406a60
test al, al
je 0x405276
mov bl, byte [esp + 0xb]
jmp 0x4052f2
cmp dword [esi], 0x1c
mov eax, dword [esi + 4]
mov dword [esp + 0x50], 0x1c
mov dword [esp + 0x54], str.SiSetupMutant_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x1c
jae 0x40529e
xor bl, bl
jmp 0x4052b3
push 1
lea edx, [esp + 0x54]
lea ecx, [esp + 0x10]
call fcn.00406a60
mov bl, al
test bl, bl
jne 0x4052f2
cmp dword [esi], 0x1e
mov ecx, dword [esi + 4]
mov dword [esp + 0x50], 0x1e
mov dword [esp + 0x54], str.SiViewerMutant_
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x1e
jb 0x405458
push 1
lea edx, [esp + 0x54]
lea ecx, [esp + 0x10]
call fcn.00406a60
test al, al
je 0x405458
movzx eax, word [esi]
mov word [esp + 0x5c], ax
add eax, 2
cmp dword [esi], 0xfffe
mov word [esp + 0x5e], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x60], eax
ja 0x405458
mov dword ds:[esp + 0x20], 0x18
call fcn.00413000
mov dword [esp + 0x24], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0x40
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call dword [sym.imp.ntdll.dll_NtOpenMutant]
nop dword [eax + eax]
test eax, eax
js 0x405458
push 0
push 8
lea eax, [esp + 0x20]
push eax
push 1
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
nop dword [eax]
test eax, eax
js 0x40544e
mov eax, dword fs:[0x18]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], 0
cmp ecx, dword [eax + 0x20]
je 0x40544e
test bl, bl
je 0x4053d4
push 0
push 0x18
lea eax, [esp + 0x40]
push eax
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ecx, dword [esp + 0x18]
test eax, eax
js 0x4053d4
cmp dword [esp + 0x4c], ecx
je 0x40543f
push ecx
mov edx, 0x101001
lea ecx, [esp + 0x10]
call fcn.0040f0c0
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00414a00
test eax, eax
je 0x40540d
push 0
push 0x1388
push 1
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40544e
push 1
push eax
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0xfd050f80
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40544e
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x64]
mov al, 1
pop esi
pop ebx
xor ecx, esp
call fcn.00421733
mov esp, ebp
pop ebp
ret 0xc