joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10735b7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 1
mov edi, ecx
call sub.MFC42u.dll_CWnd::UpdateData
xor eax, eax
xor esi, esi
cmp dword [edi + 0x68], esi
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a538
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x107361c
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x100fb98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x1074a4d
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
push dword [esi + 0x28]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x18], 0
je 0x1074af2
test edi, edi
je 0x1074ab9
cmp edi, 0x102
jne 0x1074af2
call ebx
mov dword [ebp - 4], eax
lea edi, [esi + 0x30]
mov dword [ebp - 8], 0x40
mov eax, dword [edi]
test eax, eax
je 0x1074ab1
mov ecx, dword [edi - 4]
add ecx, eax
cmp ecx, dword [ebp - 4]
ja 0x1074ab1
push dword [edi + 8]
call dword [edi + 4]
mov eax, dword [ebp - 4]
mov dword [edi - 4], eax
add edi, 0x10
dec dword [ebp - 8]
jne 0x1074a95
or dword [esi + 0x28], 0xffffffff
call ebx
and dword [ebp - 4], 0
lea edx, [esi + 0x30]
cmp dword [edx], 0
je 0x1074ae0
mov ecx, dword [edx - 4]
mov edi, dword [edx]
sub ecx, eax
add ecx, edi
cmp ecx, edi
ja 0x1074aee
cmp ecx, dword [esi + 0x28]
jae 0x1074ae0
mov dword [esi + 0x28], ecx
inc dword [ebp - 4]
add edx, 0x10
cmp dword [ebp - 4], 0x40
jb 0x1074ac6
jmp 0x1074af2
and dword [esi + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x18], 0
jne 0x1074a5f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x1078836
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10e607c]
jne 0x1078847
test ecx, 0xffff0000
jne 0x1078847
ret
jmp fcn.01078851
Function at 0x107a2a9
Capabilities:
Encode data using xor

Disassembly:
movsx eax, ax
inc eax
lea esi, [0x82e300c2]
mov dl, 0x52
mov ecx, 0xc735402c
movsx edi, bl
sbb eax, ebp
jmp 0x107a25e
inc dl
adc eax, 0x76c6c93b
call 0x107a2a9
add ecx, eax
imul esi, esi, 0xbb7f9914
dec eax
xchg edx, edi
dec eax
test ecx, eax
jb 0x107a284
mov esi, 0x97b4d414
cmp dh, dl
push 0
pop ecx
mov dl, ah
adc dh, 0x6a
mov ebx, 0x74d5694b
or ecx, esi
sbb eax, edx
inc edi
imul edx, eax, 0x10e8a942
inc bl
mov bl, 0xe3
add ebp, ecx
adc esi, 0xbe43c925
mov bh, cl
mov edi, 0x22856739
mov ebx, edx
mov edi, 0x494d79b1
cmp esi, 0xb46b
mov edx, 0
test edi, edi
mov bh, al
add esi, esi
imul edi, eax, 0xcc8da9bb
mov ebp, ecx
add edx, 0x2eb
sub edx, 0x2ea
mov esi, 0xacdd8170
imul esi, ecx, 0xeb29abdd
mov al, bl
xchg bl, cl
xor cl, al
cmp edx, 0xd76
jl 0x107a2c3
pop eax
cmp edi, 0xc285
jae 0x107a30d
imul ebx, ecx, 0xe73054ee
dec ebp
lea ecx, [0x4f7ff508]
dec bl
xchg bh, dl
and bl, 0x9b
dec edi
inc bh
dec ch
inc ecx
xchg cl, bh
test ebp, 0x2fcd2978
mov ebx, eax
cmp ecx, 0x1335
jne 0x107a33d
imul edi, esi, 0x319a4d2
mov edx, 0xc3e03
dec edi
movsx ebp, di
mov bl, 0xe6
xor edx, 0x7223
mov cl, 0x32
mov ebx, ebp
and bl, al
jb 0x107a35b
test al, 0xc0
add eax, edx
adc ecx, 0xd566bb7c
movsx esi, ah
bnd ja 0x107a36e
test al, cl
add edi, eax
xchg dh, dh
xchg ch, ch
je 0x107a376
sub ch, dl
xor edi, 0x9209
imul esi, eax, 0x1a64ff4e
mov ebp, 0x3b3212f5
mov bl, al
test ch, bh
mov edx, 0x644de128
lea edx, [0x35bdc123]
dec bl
lea esi, [0x4322ef25]
xchg edx, ebp
imul ebx, esi, 0x9c4df46a
mov edi, 0xc3492ce7
xor bl, dl
jb 0x107a3b2
mov bl, 0x8d
lea ecx, [0x11b]
dec ebp
imul ecx, ecx, 0xc
test al, 0x20
mov esi, esi
jae 0x107a3ce
imul ebx, eax
test esi, ebp
lea ebx, [0x156e9ed]
xchg edx, edi
mov ebx, 0x9be80ae0
dec ebp
sub ecx, 0x694
imul esi, esi, 0x79f685c4
sbb dh, al
dec ebp
add ecx, 0x693
mov bl, 0xec
lea esi, [0xd8488b07]
test edx, esi
mov edx, esi
imul edx, esi
test eax, edi
inc esi
imul ebx, edi
cmp ecx, 0x33b
ja 0x107a3bc
lea edi, [0x72e244e9]
or esi, 0x4adfde30
xchg bh, dh
push eax
repz ret

Function at 0x107e62d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10d8229
call fcn.0107a498
sub esp, 0x78
push esi
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a538
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107e697
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0x100e2b4
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107e68e
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
jne 0x107e6c6
push esi
lea ecx, [ebp - 0x84]
call fcn.0106c085
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], esi
call fcn.01056ecd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call sub.MFC42u.dll_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x107e6d8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10d8243
call fcn.0107a498
sub esp, 0xac
mov eax, dword [0x10e607c]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x48]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a538
push 0x80000001
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107e76b
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov edi, 0x100b220
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107e75b
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107e761
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp dword [ebp - 0x3c], esi
jne 0x107e79a
push esi
lea ecx, [ebp - 0xb8]
call fcn.01057037
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 4], esi
call fcn.01056ecd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call sub.MFC42u.dll_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01078836
leave
ret
Function at 0x107e7b4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10d825d
call fcn.0107a498
sub esp, 0xa4
mov eax, dword [0x10e607c]
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
xor esi, esi
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a538
push 0x80000001
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107e898
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov edi, 0x100a504
push edi
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0x14
call ebx
test eax, eax
je 0x107e847
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push esi
push edi
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107e84d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov edi, 0x100cd74
push edi
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0x14
call ebx
test eax, eax
pop ebx
je 0x107e889
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push esi
push edi
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107e88f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
cmp dword [0x10ef3dc], esi
jne 0x107e8a6
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x30], esi
jne 0x107e8b3
cmp dword [0x10ef3e4], esi
je 0x107e8be
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edi
call fcn.0107cc4b
cmp dword [ebp - 0x28], esi
jne 0x107e929
mov ecx, dword [ebp - 0x34]
call fcn.0107ca9b
test al, al
je 0x107e929
push esi
lea ecx, [ebp - 0xb0]
call fcn.0105228a
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 4], esi
call fcn.01056ecd
cmp eax, edi
jne 0x107e91a
cmp dword [ebp - 0x44], esi
je 0x107e8fb
mov ecx, dword [ebp - 0x34]
call fcn.0107cc4b
cmp dword [ebp - 0x48], esi
je 0x107e91a
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push esi
push 0x100a504
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call sub.MFC42u.dll_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01078836
leave
ret 4
Function at 0x1084235
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0xf
push dword [0x10e6084]
call sub.NTMSAPI.dll_OpenNtmsNotification
cmp eax, 0xffffffff
mov dword [0x10ef3f8], eax
je 0x108426c
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push 0x10828bd
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10ef3f0], eax
leave
ret
Function at 0x1085623
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x108569e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 8]
push eax
push 0
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x1085699
add eax, 5
push esi
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x1085698
push edi
lea edi, [esi + 4]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x108568f
cmp byte [esi + 5], 0x3a
jne 0x108568f
mov al, byte [edi]
push esi
mov byte [esi + 3], 0x3d
mov byte [esi], 0x3d
mov byte [esi + 1], al
mov byte [esi + 2], 0x3a
call dword [sym.imp.msvcrt.dll__putenv]
test eax, eax
pop ecx
je 0x1085697
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
or eax, 0xffffffff
leave
ret

Function at 0x10856df
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1085703
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 2
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x108571b
test byte [ebp + 0xc], 2
je 0x108571b
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xd
jmp 0x10856fe
xor eax, eax
pop ebp
ret

Function at 0x1085724
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108573b
or eax, eax
pop ebp
ret
test byte [ebp + 0xc], 0x80
je 0x1085746
and eax, 0xfffffffe
jmp 0x1085749
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
dec eax
pop ebp
ret
Function at 0x1085a67
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10e607c]
and dword [ebp - 0x214], 0
and word [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push 0x10045e8
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
sub esi, eax
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x1c
push 0xf003f
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1085b23
push 4
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x1085b20
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1085b1d
cmp dword [ebp - 0x22c], 4
jne 0x1085b1d
mov dword [ebp - 0x214], 1
push edi
call ebx
push esi
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x214], eax
pop edi
pop esi
setne al
pop ebx
call fcn.01078836
leave
ret 8
Function at 0x108a05c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x10e607c]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4cc]
push 0x10f19b8
push eax
xor ebx, ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x4cc]
push 0x1003824
push eax
call esi
lea eax, [ebp - 0x4cc]
push 0x1010db0
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0x18
push 1
call esi
push ebx
push 0x80
push 4
push ebx
push ebx
mov dword [ebp - 0x4d0], eax
push 0xc0000000
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x108a0f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x108a0ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
jne 0x108a0ff
xor ebx, ebx
inc ebx
push dword [ebp - 0x4d0]
call esi
mov ecx, dword [ebp - 4]
pop esi
mov byte [0x10e6200], bl
mov ax, bx
pop ebx
call fcn.01078836
leave
ret

Function at 0x108a83c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
and dword [0x10f464c], 0
push 0xa
pop ecx
push 0xa
or eax, 0xffffffff
mov edi, 0x10f45f4
rep stosd dword es:[edi], eax
pop ecx
or eax, 0xffffffff
mov edi, 0x10f1db8
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push 0
push 0x100a538
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x108a8db
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x10e61c0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1010e18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x108a8d2
mov eax, dword [0x10e61c0]
cmp eax, edi
jae 0x108a8b9
mov eax, edi
cmp eax, 0x64
jbe 0x108a8c1
push 0x64
pop eax
imul eax, eax, 0xf4240
mov dword [0x10e61c0], eax
mov dword [0x10f464c], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [0x10f45ec], 0xffffffff
pop edi
leave
ret
Function at 0x108b1aa
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.0108a8ea
xor esi, esi
sub eax, esi
je 0x108b25e
dec eax
jne 0x108b27a
mov eax, dword [0x10f45ec]
xor edi, edi
cmp eax, 0xffffffff
je 0x108b252
cmp dword [0x10f462c], esi
jne 0x108b252
cmp dword [0x10f4630], esi
jne 0x108b1f2
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x108b27d
cmp dword [ebp + 0x10], esi
je 0x108b27d
call fcn.0108b118
push esi
lea eax, [ebp + 8]
push eax
push dword [0x10e61f8]
push 0x10f25e8
push dword [0x10f45ec]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [0x10e61f8]
cmp dword [ebp + 8], eax
jne 0x108b245
xor edx, edx
div eax
sub dword [0x10f4624], eax
sub dword [0x10f4620], eax
add dword [0x10f4630], eax
dec dword [ebp + 0x10]
jne 0x108b1fb
jmp 0x108b27d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10f21e0], eax
jmp 0x108b27d
mov dword [0x10f21e0], 0x13
jmp 0x108b27d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0108a911
push eax
call dword [sym.imp.KERNEL32.dll_WriteTapemark]
mov edi, eax
jmp 0x108b27d
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x108b8f7
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10e607c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push eax
mov dword [ebp - 0x408], edi
call fcn.0108a8ea
dec eax
jne 0x108ba43
cmp dword [0x10f4644], edi
je 0x108ba43
push ebx
push esi
push 1
push edi
push edi
push dword [0x10f45ec]
call fcn.0108a996
push 2
push edi
push edi
push dword [0x10f45ec]
mov dword [0x10f4638], eax
mov dword [0x10f463c], edx
call fcn.0108a996
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x410], edx
call ebx
push dword [0x10f45ec]
mov dword [ebp - 0x40c], eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x108b988
call ebx
mov dword [ebp - 0x408], eax
push dword [0x10f45ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x10f45ec], 0xffffffff
or esi, dword [ebp - 0x410]
jne 0x108b9b6
cmp dword [ebp - 0x40c], edi
jne 0x108b9b6
push 0x10f1de0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x10f45f0], edi
je 0x108ba3b
lea eax, [ebp - 0x404]
push 0x1010df8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x404]
push 0x10f19b8
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x108ba3b
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x108ba1c
call ebx
mov dword [ebp - 0x408], eax
push edi
lea eax, [ebp - 0x40c]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov dword [0x10f4644], edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
call fcn.01078836
leave
ret 4
Function at 0x108baf5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0108a8ea
xor esi, esi
sub eax, esi
je 0x108bc04
dec eax
jne 0x108bc23
push dword [ebp + 0x10]
call fcn.0108ba5b
mov ecx, dword [0x10f45ec]
cmp ecx, 0xffffffff
mov ebx, eax
jne 0x108bb35
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x108bbd8
cmp word [0x10f4658], si
je 0x108bb69
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, bl
mov dl, al
mov dh, dl
push 0x3f
pop ecx
mov eax, edx
shl eax, 0x10
mov ax, dx
xor esi, esi
mov dword [0x10f21e0], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x108bc26
mov eax, ebx
xor edx, edx
div dword [0x10e61f8]
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
sub ebx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x108bb90
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x10f21e0], eax
jne 0x108bba9
and dword [0x10f21e0], 0
mov eax, dword [edi]
mov ecx, dword [0x10e61f8]
cmp eax, ecx
jb 0x108bbe4
sub eax, ecx
add eax, ebx
mov edx, dword [eax]
mov ecx, 0x1010e4c
cmp edx, dword [ecx]
jne 0x108bbe4
push 0x1a
push eax
call fcn.010b4c14
test ax, ax
jne 0x108bbe4
mov eax, dword [0x10e61f8]
sub dword [edi], eax
mov dword [0x10f21e0], 0x44d
jmp 0x108bc26
test esi, esi
jne 0x108bc26
cmp dword [0x10f21e0], 0x44d
je 0x108bc26
cmp dword [edi], esi
jne 0x108bc26
mov dword [0x10f21e0], 0x450
jmp 0x108bc26
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0108a911
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x108bc26
mov esi, dword [ebp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x108c638
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10e607c]
mov ecx, dword [ebp + 0xc]
and word [ebp - 8], 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edi, 0x104
push edi
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x464], ecx
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x210]
push eax
call esi
mov ebx, dword [sym.imp.msvcrt.dll_wcsncat]
mov ecx, edi
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push 0x1003824
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp + eax*2 - 0x210]
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x210]
push eax
call esi
sub edi, eax
push edi
push dword [ebp - 0x464]
lea eax, [ebp - 0x210]
push eax
call ebx
add esp, 0x30
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x464]
call sub.MFC42u.dll_CString::CString_3
mov eax, dword [eax]
lea ecx, [ebp - 0x460]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x464]
mov esi, eax
call sub.MFC42u.dll_CString::CString
cmp esi, 0xffffffff
je 0x108c75e
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
add esp, 0xc
test byte [ebp - 0x460], 0x10
jne 0x108c745
lea eax, [ebp - 0x210]
push eax
call fcn.0108c5b6
test eax, eax
je 0x108c745
push eax
call fcn.0108c60e
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x108c703
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 8

Function at 0x108c772
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
and dword [ebp - 0x1c], esi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x108c7d8
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
je 0x108c7d4
mov eax, dword [ebp - 4]
push 0xa
pop ecx
xor edx, edx
div ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
push 0xa
xor edx, edx
pop ecx
div ecx
add esi, eax
cmp esi, 0x1d4c0
jb 0x108c78b
mov eax, 0x8007041d
pop edi
pop esi
leave
ret 8
xor eax, eax
jmp 0x108c7ce
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x108c7e8
call esi
jmp 0x108c7ce
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x108c7ce