joyce8/EMBER2024-capa huggingface dataset:
Function at 0xffbb8f2
Capabilities:
Query environment variable

Disassembly:
push 0x38
push 0xffb3748
call fcn.0ffe120c
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 1
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xffbb963
cmp eax, 0x80000005
jne 0xffbb941
push 0xce
jmp 0xffbb949
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0ffe13f3
pop ecx
pop ecx
xor eax, eax
jmp 0xffbba4d
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xffbb97d
push eax
jmp 0xffbb9ab
mov edi, dword [ebp + 0x10]
mov word [ebp - 0x36], di
mov eax, dword fs:[0x18]
mov dword [ebp - 0x24], eax
movzx ecx, word [ebp - 0x36]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x34], eax
cmp eax, esi
jne 0xffbb9bd
push 0xc0000017
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xffbba41
movzx ecx, word [ebp - 0x36]
push ecx
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0xffbba41
cmp eax, edi
jae 0xffbba41
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov dword [ebp - 0x2c], esi
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xffbba10
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov word [ebp - 0x46], di
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xffbba41
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
call fcn.0ffbba57
mov eax, dword [ebp - 0x1c]
call fcn.0ffe1247
ret 0xc
Function at 0xffbd04b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0xffb2740
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xffbd116
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0xffb2730
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0xffbd116
cmp dword [ebp - 0x10], 7
jne 0xffbd116
mov ecx, dword [ebp - 0xc]
call fcn.0ffb4893
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0xffbd116
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0xffbd116
push ebx
push dword [ebp - 0x14]
call fcn.0ffbd133
cmp eax, ebx
mov esi, dword [ebp + 8]
mov dword [esi], eax
je 0xffbd116
mov ecx, eax
shl ecx, 2
call fcn.0ffb4893
cmp eax, ebx
mov dword [ebp - 8], eax
je 0xffbd116
mov ecx, dword [esi]
mov edi, dword [ebp - 8]
push dword [ebp - 8]
shl ecx, 2
push dword [ebp - 0x14]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0ffbd133
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0xffbd127
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0xffbf95f
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0xffebc20]
mov dword [ebp - 4], eax
mov eax, ecx
movzx ecx, word [eax + 0x2e]
push ebx
push esi
movzx esi, word [eax + 0x30]
cmp esi, 0x112
push edi
mov di, word [eax + 0x32]
mov eax, dword [eax + 0x2a]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x94], eax
jne 0xffbf9ca
cmp ecx, 0xf060
jne 0xffbf9ca
mov eax, dword [0xffec5f8]
cmp di, ax
jne 0xffbf9ca
test eax, eax
je 0xffbf9ca
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0xffbf9ca
push 0xffb2930
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov esi, eax
and dword [ebp - 0x6c], 0
xor ebx, ebx
inc ebx
cmp esi, 0xd
mov dword [0xffec54c], ebx
mov word [ebp - 0x84], di
mov word [ebp - 0x86], si
jne 0xffbfa11
cmp dword [ebp - 0x90], 2
jne 0xffbfa11
lea eax, [ebp - 0x98]
push eax
push 3
push 0x2002
mov word [ebp - 0x88], 3
call sym.wow32.dll_WOWGlobalAllocLock16
jmp 0xffbfa25
mov ax, word [ebp - 0x90]
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x94]
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], eax
call fcn.0ffb7aaa
and dword [0xffec54c], 0
mov edi, eax
test edi, edi
je 0xffbfae5
push ebx
call sub.ntvdm.exe_BlockWOWIdle
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [ebp - 0x6c], eax
call sub.ntvdm.exe_BlockWOWIdle
cmp esi, 0xd
jne 0xffbfac6
cmp dword [ebp - 0x90], 2
jne 0xffbfac6
mov ecx, dword [ebp - 0x8c]
call fcn.0ffb37a5
mov edi, dword [ebp - 0x94]
mov ecx, edi
mov esi, eax
call fcn.0ffb37a5
mov cl, byte [esi]
mov byte [eax], cl
cmp dword [ebp - 0x6c], 2
jne 0xffbfaa6
mov byte [eax + 1], 0
mov dword [ebp - 0x6c], ebx
jmp 0xffbfaac
mov cl, byte [esi + 1]
mov byte [eax + 1], cl
push dword [ebp - 0x8c]
call sym.wow32.dll_WOWGlobalUnlockFree16
mov word [ebp - 0x88], 2
mov dword [ebp - 0x8c], edi
cmp dword [ebp - 0x5c], 0xff
mov dword [0xffec54c], ebx
je 0xffbfade
lea ecx, [ebp - 0x8c]
call dword [ebp - 0x68]
and dword [0xffec54c], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
pop ebx
call fcn.0ffe11f0
leave
ret

Function at 0xffc041e
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 3
xor bl, bl
pop edi
movzx eax, byte [edi + 0xffea15c]
push eax
shl bl, 1
call esi
test al, 1
je 0xffc0441
or bl, 1
dec edi
jns 0xffc042e
push 3
pop edi
movzx eax, byte [edi + 0xffea158]
push eax
shl bl, 1
call esi
test ah, ah
jns 0xffc045a
or bl, 1
dec edi
jns 0xffc0447
pop edi
pop esi
mov byte [0x417], bl
pop ebx
ret
Function at 0xffc25a4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
dec dword [0xffed3e4]
cmp dword [0xffed3e4], 2
jae 0xffc25bd
call sub.ntvdm.exe_SuspendTimerThread
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xc0]
test byte [eax + 0x23], 2
je 0xffc25d6
push 0
call sub.ntvdm.exe_DpmiSetIncrementalAlloc
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov ax, word [esi + 0x4c]
push edi
push eax
call fcn.0ffc26c6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xc0]
test byte [eax + 0x1c], 0x40
je 0xffc260a
mov eax, dword fs:[0x18]
push dword [eax + 0xc0]
call sub.GDI32.dll_UnloadNetworkFonts
xor eax, eax
mov ax, word [esi + 0x4c]
push eax
call fcn.0ffc271f
push dword [esi + 0x30]
call fcn.0ffc2785
xor eax, eax
mov ax, word [esi + 0x4c]
push eax
call fcn.0ffc27ba
push dword [0xffeba48]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0xffc263f
call fcn.0ffda8df
xor eax, eax
mov ax, word [esi + 0x4c]
push eax
call fcn.0ffc281f
movzx eax, word [esi + 0x4c]
push eax
call fcn.0ffc2869
xor eax, eax
mov ax, word [esi + 0x4c]
push 5
push eax
call fcn.0ffc1ff6
xor eax, eax
mov ax, word [esi + 0x4c]
push eax
call fcn.0ffc28b6
mov eax, dword [esi + 0x38]
test eax, eax
je 0xffc2681
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [esi + 0x38], 0
xor eax, eax
mov ax, word [esi + 0x4c]
push eax
call fcn.0ffc292b
call sub.ntvdm.exe_demLFNCleanup
lea edi, [esi + 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0xffc26b4
and dword [esi + 0x48], 0
mov esi, dword [ecx]
call fcn.0ffb622b
test esi, esi
mov ecx, esi
jne 0xffc26a7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
ret 4
Function at 0xffc2ab9
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.0ffb37a5
mov ebx, eax
movzx eax, word [ebx + 2]
movzx edi, word [ebx + 4]
mov ecx, dword [ebx + 6]
xor edx, edx
cmp eax, 0x113
mov dx, word [ebx]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
movsx esi, di
mov dword [ebp - 8], edx
jne 0xffc2b1f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xc0]
movzx eax, word [eax + 0x4c]
push edi
push eax
push edx
call fcn.0ffd7110
test eax, eax
je 0xffc2ba2
mov eax, dword [eax + 0x1c]
movzx esi, di
mov dword [ebp - 4], eax
jmp 0xffc2ba2
cmp eax, 0x112
je 0xffc2bb6
cmp eax, 0x111
je 0xffc2bb6
cmp eax, 0x233
je 0xffc2bb6
cmp eax, 0x114
je 0xffc2bb6
cmp eax, 0x115
je 0xffc2bb6
cmp eax, 0x11f
je 0xffc2bb6
cmp eax, 0x120
je 0xffc2bb6
cmp eax, 0x1c
je 0xffc2bb6
cmp eax, 6
je 0xffc2bb6
cmp eax, 0x3e0
jb 0xffc2b70
cmp eax, 0x3e8
jbe 0xffc2bb6
cmp eax, 0x118
jne 0xffc2b7b
mov esi, edi
jmp 0xffc2ba2
cmp eax, 0xc
jne 0xffc2ba2
xor eax, eax
test ecx, ecx
je 0xffc2b8e
call fcn.0ffb37a5
mov ecx, dword [ebp - 4]
push ecx
push eax
call fcn.0ffbf0c0
push 0
push 2
push eax
mov dword [ebp - 4], eax
call fcn.0ffdf947
movsx eax, word [ebp - 8]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], esi
jmp 0xffc2c15
mov esi, dword [ebp + 0x10]
mov dx, word [ebp - 8]
mov dword [esi], ecx
mov ecx, esi
mov word [esi + 8], dx
mov word [esi + 6], ax
mov word [esi + 4], di
mov dword [esi + 0x2c], 1
call fcn.0ffb7aaa
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
call fcn.0ffb37a5
cmp dword [ebp - 0xc], 0x3e0
mov edi, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 8], eax
jne 0xffc2c15
xor eax, eax
mov ax, word [ebx + 4]
push eax
call fcn.0ffc6737
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0xa]
mov dword [edi + 0x10], eax
movsx eax, word [ebx + 0xe]
mov dword [edi + 0x14], eax
movsx eax, word [ebx + 0x10]
mov dword [edi + 0x18], eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xffc4689
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0xffc47af
cmp dword [ebp + 0xc], ebx
je 0xffc47af
push esi
push 0x2c
push dword [ebp + 0xc]
call fcn.0ffc3337
mov esi, eax
cmp esi, ebx
je 0xffc47ae
push edi
push 0x2c
inc esi
push esi
call fcn.0ffc3337
mov edi, eax
cmp edi, ebx
je 0xffc47ad
mov byte [edi], bl
push 0x2c
inc edi
push edi
call fcn.0ffc3337
cmp eax, ebx
je 0xffc47ad
mov byte [eax], bl
mov al, 0x20
jmp 0xffc46ee
inc esi
cmp byte [esi], al
je 0xffc46ed
cmp byte [esi], bl
je 0xffc47ad
jmp 0xffc46fd
inc edi
cmp byte [edi], al
je 0xffc46fc
cmp byte [edi], bl
je 0xffc47ad
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0xffc479f
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0xffc4727
sub eax, ecx
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 1
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0xffc479f
lea eax, [ebp - 8]
push eax
push str.protocolStdFileEditing_server
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0xffc4788
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0xffc475f
sub eax, ecx
push eax
push edi
push 1
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0xffc4788
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
jmp 0xffc47ad
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0xffc4798
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0xffc47ad
jmp 0xffc4781
cmp dword [ebp - 4], ebx
je 0xffc47ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xffcc585
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xffebc20]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
mov dword [ebp - 0x10c], eax
je 0xffcc6c1
cmp eax, 0xf2
jae 0xffcc6c1
mov eax, str.FONTS
push esi
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffcc5cb
push edi
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xffcc5dc
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, str.OCR_A.TTF
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xffcc5f9
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xffcc60b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_AddFontResourceExA]
push 0
mov ecx, eax
push 0x30
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0xffcc6b4
mov eax, dword [ebp - 0x10c]
mov byte [ebp + eax - 0x108], 0
mov eax, 0xffb23a4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffcc64e
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xffcc65e
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, str.OCR_A.TTF
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffcc67d
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xffcc68d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
push 0x30
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
je 0xffcc6be
mov dword [0xffebc7c], 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.0ffe11f0
leave
ret
Function at 0xffcec8a
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
movzx esi, cx
shl esi, 0x10
mov ecx, esi
push edi
or ecx, 0xa
xor ebx, ebx
xor edi, edi
call fcn.0ffb37a5
movzx ecx, word [eax]
add ecx, 8
or ecx, esi
call fcn.0ffb37a5
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0xffced5b
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0xffced52
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0xffced49
cmp word [eax], 0x5a4d
jne 0xffced42
mov edx, dword [eax + 0x3c]
add edx, eax
cmp word [edx], 0x454e
jne 0xffced42
mov esi, dword [edx + 0x2c]
add esi, eax
xor eax, eax
push 0x53
pop ecx
mov edi, 0xffb2448
repe cmpsb byte [esi], byte es:[edi]
sete al
mov edi, eax
cmp edi, ebx
je 0xffced3f
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0xffcf083
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0xffebc20]
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0xffeb380
mov dword [ebp - 0x110], 4
sub edi, 0x14
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov byte [ebp - 0x108], 0
jle 0xffcf0cb
push esi
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0xffcf0ee
cmp eax, 0xffffffff
jne 0xffcf0ee
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryA]
push 0x104
lea eax, [ebp - 0x108]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xffcf10a
sub eax, ecx
lea ecx, [eax + 1]
cmp ecx, 1
mov dword [ebp - 0x10c], ecx
jle 0xffcf14a
call fcn.0ffbaeed
lea ecx, [ebp - 0x108]
mov esi, eax
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0xffcf132
mov dword [edi - 8], eax
mov eax, dword [ebp - 0x10c]
mov dword [edi - 4], eax
jmp 0xffcf150
mov dword [edi - 8], esi
mov dword [edi - 4], esi
dec dword [ebp - 0x110]
jne 0xffcf0a7
push dword [0xffed2b0]
call dword [sym.imp.ntdll.dll__strlwr]
mov eax, dword [0xffed2b0]
pop ecx
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffcf173
sub eax, edx
mov dword [0xffecadc], eax
mov eax, dword [0xffed2ac]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffcf189
mov ecx, dword [ebp - 4]
sub eax, edx
mov dword [0xffecad8], eax
call fcn.0ffe11f0
leave
ret

Function at 0xffd0c40
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0xffd0bfd
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp + 8], eax
je 0xffd0cc8
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, 0x4ff
jmp 0xffd0cad
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0xffd0c86
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp + 8]
push eax
push 1
call edi
test eax, eax
jne 0xffd0c9a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0xffd1025
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov ecx, dword [ebp + 0xc]
mov eax, dword [0xffebc20]
and dword [ebp - 0x10c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x110], ecx
push 0xe
pop ecx
mov esi, 0xffb2844
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xffd1064
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xffd1076
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x10c]
push eax
and ecx, 3
push 0x20019
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xffd10e5
lea eax, [ebp + 0x18]
push eax
push ebx
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 0x110]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xffd10e5
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
jmp 0xffd1119
cmp dword [ebp - 0x10c], esi
je 0xffd10f9
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0xffd1100
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffd1110
sub eax, edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0ffe11f0
leave
ret 0x14
Function at 0xffd147c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0xffd14b1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0xffd1565
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0xffd14f7
cmp eax, 0xea
je 0xffd14f7
cmp eax, 0x7a
je 0xffd14f7
mov esi, eax
jmp 0xffd1509
mov ecx, dword [ebp - 8]
inc ecx
call fcn.0ffb4893
mov esi, eax
test esi, esi
jne 0xffd1516
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xffd1564
push edi
xor edi, edi
mov eax, dword [ebp - 8]
inc eax
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0xffd153a
push esi
push dword [ebp - 4]
call fcn.0ffd147c
test eax, eax
je 0xffd153b
inc edi
cmp eax, 0x103
je 0xffd1547
cmp edi, dword [ebp - 0x10]
jb 0xffd1519
mov ecx, esi
call fcn.0ffb622b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
leave
ret 8