joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10708cf
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 0x100a0f8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1070934
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x100f588
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 0x1071dca
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
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 0x1071e6a
test edi, edi
je 0x1071e2e
cmp edi, 0x102
jne 0x1071e6e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea edi, [esi + 0x30]
mov dword [ebp - 4], 0x40
mov eax, dword [edi]
test eax, eax
je 0x1071e26
mov ecx, dword [edi - 4]
add ecx, eax
cmp ecx, ebx
ja 0x1071e26
push dword [edi + 8]
call dword [edi + 4]
mov dword [edi - 4], ebx
add edi, 0x10
dec dword [ebp - 4]
jne 0x1071e0e
or dword [esi + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
lea edx, [esi + 0x30]
cmp dword [edx], 0
je 0x1071e59
mov ecx, dword [edx - 4]
mov edi, dword [edx]
sub ecx, ebx
add ecx, edi
cmp ecx, edi
ja 0x1071e64
cmp ecx, dword [esi + 0x28]
jae 0x1071e59
mov dword [esi + 0x28], ecx
inc eax
add edx, 0x10
cmp eax, 0x40
jb 0x1071e3f
jmp 0x1071e6e
and dword [esi + 0x28], 0
jmp 0x1071e6e
and dword [esi + 0x1c], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x18], 0
jne 0x1071dd5
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x107760b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10101f0
call fcn.01077a64
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1077646
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1077646
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x107765e
cmp eax, 0x20b
je 0x107764b
mov dword [ebp - 0x1c], edi
jmp 0x1077672
cmp dword [ecx + 0x84], 0xe
jbe 0x1077646
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x107766c
cmp dword [ecx + 0x74], 0xe
jbe 0x1077646
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10eec70], 0xffffffff
or dword [0x10eec74], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10e6aec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10e6ae8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10eec6c], eax
call fcn.01047fdf
cmp dword [0x10de040], edi
jne 0x10776cf
push fcn.01047fdf
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01077c55
push 0x10dc04c
push 0x10dc048
call sub.msvcrt.dll__initterm
mov eax, dword [0x10e6ae4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10e6ae0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x10dc044
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1077735
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x10777ef
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1077783
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1077751
cmp ax, 0x22
jne 0x107773e
cmp word [esi], 0x22
jne 0x107775c
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x107776a
cmp ax, 0x20
jbe 0x1077757
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1077790
movzx eax, word [ebp - 0x50]
jmp 0x1077793
cmp word [esi], 0x20
jbe 0x107775c
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1077783
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.010cb61d
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x10777b4
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10777e9
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01077a9f
ret
Function at 0x1077e2a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1077e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
je 0x1077e98
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x18], edi
je 0x1077fc8
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.NTMSAPI.dll_GetNtmsObjectSecurity
cmp eax, ebx
je 0x1077ed4
cmp eax, 0x7a
jne 0x1077fc8
mov esi, dword [ebp - 0x30]
jmp 0x1077e89
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp word [eax + 4], bx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x1077f92
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
sub ecx, ebx
je 0x1077f41
dec ecx
jne 0x1077fc8
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077f78
cmp dword [ebp + 0x14], 2
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0x18]
jne 0x1077f5f
or dword [esi + 4], eax
jmp 0x1077f78
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077f78
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], eax
jmp 0x1077f37
not eax
and dword [esi + 4], eax
jne 0x1077f78
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 4]
inc edi
cmp edi, ecx
jb 0x1077efc
cmp dword [ebp - 0x1c], ebx
je 0x1077f92
cmp dword [ebp - 0x20], ebx
je 0x1077fa7
cmp dword [ebp + 0x14], 1
jne 0x1077fa7
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push dword [ebp - 0x18]
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.NTMSAPI.dll_SetNtmsObjectSecurity
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
jmp 0x1077fcb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x14
Function at 0x107bd1b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10d169f
call fcn.01077868
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 0x100a0f8
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bd85
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0x100dca4
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107bd7c
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
jne 0x107bdb4
push esi
lea ecx, [ebp - 0x84]
call fcn.01069520
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], esi
call fcn.01054c7c
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 0x107bdc6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10d15cd
call fcn.01077868
sub esp, 0xac
mov eax, dword [0x10de03c]
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 0x100a0f8
push 0x80000001
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107be59
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov edi, 0x100ade0
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107be49
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 0x107be4f
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 0x107be88
push esi
lea ecx, [ebp - 0xb8]
call fcn.01054de6
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 4], esi
call fcn.01054c7c
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.01075bbb
leave
ret
Function at 0x107bea2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10d15e7
call fcn.01077868
sub esp, 0xb8
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f8
push 0x80000001
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bf86
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100a0c4
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
je 0x107bf35
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 0x107bf3b
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100c77c
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
pop ebx
je 0x107bf77
push 4
lea eax, [ebp - 0x44]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107bf7d
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
cmp dword [0x10e6c08], esi
jne 0x107bf94
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x44], esi
jne 0x107bfa1
cmp dword [0x10e6c10], esi
je 0x107bfac
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edi
call fcn.0107a45a
cmp dword [ebp - 0x3c], esi
jne 0x107c017
mov ecx, dword [ebp - 0x48]
call fcn.0107a03b
test al, al
je 0x107c017
push esi
lea ecx, [ebp - 0xc4]
call fcn.01050101
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 4], esi
call fcn.01054c7c
cmp eax, edi
jne 0x107c008
cmp dword [ebp - 0x58], esi
je 0x107bfe9
mov ecx, dword [ebp - 0x48]
call fcn.0107a45a
cmp dword [ebp - 0x5c], esi
je 0x107c008
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push 0x100a0c4
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
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.01075bbb
leave
ret 4
Function at 0x108148d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0xf
push dword [0x10de044]
call sub.NTMSAPI.dll_OpenNtmsNotification
cmp eax, 0xffffffff
mov dword [0x10e6c24], eax
je 0x10814c4
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push 0x107fb15
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10e6c1c], eax
leave
ret
Function at 0x1082865
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 0x10828e0
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 0x10828db
add eax, 5
push esi
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x10828da
push edi
lea edi, [esi + 4]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x10828d1
cmp byte [esi + 5], 0x3a
jne 0x10828d1
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 0x10828d9
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 0x1082921
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 0x1082945
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 2
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x108295d
test byte [ebp + 0xc], 2
je 0x108295d
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xd
jmp 0x1082940
xor eax, eax
pop ebp
ret

Function at 0x1082966
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 0x108297d
or eax, eax
pop ebp
ret
test byte [ebp + 0xc], 0x80
je 0x1082988
and eax, 0xfffffffe
jmp 0x108298b
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 0x1082c3c
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10de03c]
and dword [ebp - 0x208], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
push 0x1004528
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push 0xf003f
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1082cdd
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1082cda
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1082cd7
cmp dword [ebp - 0x220], 4
jne 0x1082cd7
mov dword [ebp - 0x208], 1
push esi
call edi
push ebx
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x208], eax
pop edi
pop esi
setne al
pop ebx
call fcn.01075bbb
leave
ret 8
Function at 0x1086ea3
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4cc]
push 0x10e85e8
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 0x1004204
push eax
call esi
lea eax, [ebp - 0x4cc]
push 0x1010704
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 0x1086f38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1086f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
jne 0x1086f46
xor ebx, ebx
inc ebx
push dword [ebp - 0x4d0]
call esi
mov ecx, dword [ebp - 4]
pop esi
mov byte [0x10de1c0], bl
mov ax, bx
pop ebx
call fcn.01075bbb
leave
ret

Function at 0x108739a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
and dword [0x10eb27c], 0
push 0xa
pop ecx
push 0xa
or eax, 0xffffffff
mov edi, 0x10eb224
rep stosd dword es:[edi], eax
pop ecx
or eax, 0xffffffff
mov edi, 0x10e89e8
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push 0
push 0x100a0f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1087439
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x10de180
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1010740
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1087430
mov eax, dword [0x10de180]
cmp eax, edi
jae 0x1087417
mov eax, edi
cmp eax, 0x64
jbe 0x108741f
push 0x64
pop eax
imul eax, eax, 0xf4240
mov dword [0x10de180], eax
mov dword [0x10eb27c], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [0x10eb21c], 0xffffffff
pop edi
leave
ret
Function at 0x1087f96
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x10d18f7
call fcn.01077868
push ecx
push ecx
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.01087448
dec eax
jne 0x10881b7
cmp dword [0x10eb274], ebx
jne 0x10881b7
push esi
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
mov esi, 0x10e8a10
push esi
mov dword [0x10eb25c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb21c], eax
jne 0x1088155
push edi
mov edi, 0x10e8e18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
mov dword [0x10e8e10], eax
mov dword [ebp - 0x10], eax
jne 0x10880e5
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_4
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x1088132
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
push 0x2805
lea ecx, [ebp + 8]
mov word [eax], bx
call sub.MFC42u.DLL_CString::LoadStringW
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
call fcn.0102150d
cmp word [eax + 0xb88], 2
je 0x108809a
push 1
push ebx
push 0x40
push 4
push dword [ebp - 0x14]
push 0x2806
call fcn.01054b96
cmp eax, 6
jne 0x108812a
push edi
call fcn.01086f68
test eax, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
je 0x108812e
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb21c], eax
je 0x1087ff9
jmp 0x1088154
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb21c], eax
jne 0x1088115
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10e8e10], eax
mov dword [ebp - 0x10], eax
jmp 0x1088154
mov dword [0x10e8e10], ebx
mov dword [ebp - 0x10], ebx
mov dword [0x10eb25c], 1
jmp 0x1088154
push 3
jmp 0x1088134
push 0x57
jmp 0x108813a
push 0x57
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
pop eax
mov dword [0x10e8e10], eax
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
pop edi
cmp dword [0x10e8e10], 0xb7
jne 0x1088167
mov dword [0x10e8e10], ebx
cmp dword [0x10eb21c], 0xffffffff
je 0x10881b6
push 0x2000
push esi
mov dword [0x10eb274], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.0108721c
push ebx
push dword [0x10eb26c]
push dword [0x10eb268]
push dword [0x10eb21c]
call fcn.010874e8
push ebx
push dword [0x10de1b8]
push edx
push eax
call fcn.01077bd0
mov dword [0x10eb260], eax
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10883bc
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.01087448
xor esi, esi
sub eax, esi
je 0x10884cb
dec eax
jne 0x10884ea
push dword [ebp + 0x10]
call fcn.01088322
mov ecx, dword [0x10eb21c]
cmp ecx, 0xffffffff
mov ebx, eax
jne 0x10883fc
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x108849f
cmp word [0x10eb288], si
je 0x1088430
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 [0x10e8e10], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x10884ed
mov eax, ebx
xor edx, edx
div dword [0x10de1b8]
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 0x1088457
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x10e8e10], eax
jne 0x1088470
and dword [0x10e8e10], 0
mov eax, dword [edi]
mov ecx, dword [0x10de1b8]
cmp eax, ecx
jb 0x10884ab
sub eax, ecx
add eax, ebx
mov edx, dword [eax]
mov ecx, 0x1010774
cmp edx, dword [ecx]
jne 0x10884ab
push 0x1a
push eax
call fcn.0109dd22
test ax, ax
jne 0x10884ab
mov eax, dword [0x10de1b8]
sub dword [edi], eax
mov dword [0x10e8e10], 0x44d
jmp 0x10884ed
test esi, esi
jne 0x10884ed
cmp dword [0x10e8e10], 0x44d
je 0x10884ed
cmp dword [edi], esi
jne 0x10884ed
mov dword [0x10e8e10], 0x450
jmp 0x10884ed
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0108746f
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x10884ed
mov esi, dword [ebp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14