joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10771ae
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1f
pop ecx
push 0x18c
mov dword [ebp - 0x468], eax
xor ebx, ebx
lea eax, [ebp - 0x1e0]
push ebx
mov esi, 0x1077318
lea edi, [ebp - 0x25c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x27
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.SHLWAPI.dll_Ordinal_24]
test eax, eax
jl 0x10772f7
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
mov esi, 0x104
push esi
push eax
call fcn.01076f5f
test eax, eax
jl 0x10772f7
push ebx
push 0x107730c
lea eax, [ebp - 0x25c]
push eax
push esi
push eax
call fcn.01076f5f
test eax, eax
jl 0x10772f7
lea eax, [ebp - 0x468]
push eax
push 0xb
push ebx
lea eax, [ebp - 0x25c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10772f7
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x46c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10772e0
jmp 0x10772eb
dec dword [ebp - 0x46c]
lea eax, [ebp - 0x474]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x46c]
mov dword [ebp - 0x470], esi
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10772e8
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x46c], ebx
jge 0x1077293
xor ebx, ebx
inc ebx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 4

Function at 0x1078df4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], esi
je 0x1078e27
push esi
lea ecx, [ebp + 8]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1078e27
xor eax, eax
jmp 0x1078e53
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1078e43
xor edi, edi
inc edi
cmp dword [ebp + 0xc], esi
je 0x1078e51
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1078e5e
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1078ef6
push 0x1078f0c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1078ef6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
mov dword [ebp - 0x248], 0x3c
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], 0x1078f04
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100204d
leave
ret
Function at 0x107968d
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov ebx, 0x4010000
mov esi, 0x80000000
cmp dword [0x10b11ec], edi
je 0x1079705
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x10796bc
test al, al
jne 0x1079705
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
and eax, ebx
and ecx, esi
or eax, ecx
je 0x1079705
mov eax, dword [0x10b11e0]
mov edi, dword [0x10b11e4]
mov ecx, eax
mov edx, edi
and ecx, ebx
and edx, esi
cmp ecx, eax
jne 0x1079703
cmp edx, edi
jne 0x1079703
push dword [ebp + 0xc]
push 0x1079848
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.01024eb5
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 5
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x1079790
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0x8007000e
cmp edi, 0xffffffff
je 0x107977b
test edi, edi
jbe 0x107977b
cmp edi, 0x400000
jae 0x1079783
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x1079783
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x107977b
mov eax, dword [ebp - 4]
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x800703e5
jmp 0x1079780
call fcn.0107a091
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x1079798
call fcn.0107a091
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x10797cf
push edi
push edi
push dword [ebp - 8]
push 0x1079581
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x10797c7
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x10797be
mov dword [ecx], eax
jmp 0x10797dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10797dd
call fcn.0107a091
mov dword [ebp - 4], eax
cmp dword [ebp - 8], edi
je 0x10797dd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10b11ec], edi
je 0x1079839
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x10797f2
test al, al
jne 0x1079839
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
and eax, ebx
and ecx, esi
or eax, ecx
je 0x1079839
mov eax, dword [0x10b11e0]
mov edi, dword [0x10b11e4]
mov ecx, eax
mov edx, edi
and ecx, ebx
and edx, esi
cmp ecx, eax
jne 0x1079839
cmp edx, edi
jne 0x1079839
push dword [ebp + 0xc]
push 0x1079858
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.01024eb5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x107986d
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x1079aa8
push 0x80
xor ebx, ebx
push eax
mov dword [ebp - 0x518], ebx
call fcn.0100ecf0
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueFromHKCUHKLM]
xor eax, eax
add esp, 0x10
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x30c]
push eax
push ebx
push 2
push 0x1079a8c
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x51c], 0x208
call esi
test eax, eax
je 0x1079989
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x514]
push eax
push ebx
push 2
push 0x1079a74
lea eax, [ebp - 0x104]
mov edi, 0x104
push eax
mov dword [ebp - 0x51c], edi
call esi
test eax, eax
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x51c], edi
push eax
jne 0x107994c
lea eax, [ebp - 0x30c]
push eax
push ebx
lea eax, [ebp - 0x514]
push eax
push 2
push 0x40
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
jmp 0x1079989
lea eax, [ebp - 0x514]
push eax
push ebx
push 2
push 0x1079a58
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x1079989
lea eax, [ebp - 0x514]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRunIndirectRegClientCommand]
xor eax, eax
mov word [ebp - 0x30c], ax
mov dword [ebp - 0x518], 1
cmp word [ebp - 0x30c], bx
je 0x1079a3e
lea eax, [ebp - 0x518]
push eax
push ebx
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHELL32.dll_SHEvaluateSystemCommandTemplate]
mov esi, eax
cmp esi, ebx
jge 0x10799ca
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x518], ebx
push 0x38
lea eax, [ebp - 0x558]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x54c], eax
mov eax, dword [ebp - 0x518]
mov dword [ebp - 0x548], eax
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x55c]
inc edi
push eax
mov dword [ebp - 0x55c], 0x3c
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x558], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, ebx
jl 0x1079a38
push dword [ebp - 0x520]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x518]
call esi
mov dword [ebp - 0x518], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x518]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 4
Function at 0x1079b27
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x418], 0x208
jne 0x1079b57
mov eax, 0x1050958
jmp 0x1079b67
cmp dword [ebp + 0xc], 1
mov eax, 0x10509c4
je 0x1079b67
mov eax, 0x1079c3c
push eax
push 0x1079be0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100ecf0
add esp, 0x10
test eax, eax
jl 0x1079bca
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1079bbd
jle 0x1079bca
and eax, 0xffff
or eax, 0x80070000
jmp 0x1079bca
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0107968d
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100204d
leave
ret 8

Function at 0x107a02a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107a035
sub eax, edx
sar eax, 1
cmp eax, 0x7fffffff
jae 0x107a064
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHSetValueW
jmp 0x107a069
mov eax, 0x216
test eax, eax
jle 0x107a077
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret 0x10
Function at 0x107ae12
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6d8
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x6d4], eax
mov dword [ebp - 0x6d0], ecx
cmp eax, ebx
je 0x107ae44
mov dword [eax], ebx
or dword [ecx], 0xffffffff
lea eax, [ebp - 0x6cc]
push eax
push 0x101c810
sub esp, 0x10
mov edi, esp
mov esi, 0x101c800
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x6cc], ebx
movsd dword es:[edi], dword [esi]
call sub.SHLWAPI.dll_AssocCreate
mov esi, eax
cmp esi, ebx
jl 0x107af5c
mov eax, dword [ebp - 0x6cc]
mov ecx, dword [eax]
push ebx
push ebx
push 0x107af80
push ebx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jl 0x107af5c
mov eax, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6d8]
push edx
lea edx, [ebp - 0x20c]
push edx
push ebx
push 2
mov edi, 0x104
push 0x40
mov dword [ebp - 0x6d8], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x107af5c
push 0x111
push 0x2b4
lea eax, [ebp - 0x6c8]
push eax
push 0x80
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x80004005
call sub.SHELL32.dll_SHGetFileInfoW
test eax, eax
je 0x107af5c
mov eax, dword [ebp - 0x6c4]
mov ecx, dword [ebp - 0x6d0]
mov dword [ecx], eax
cmp dword [ebp - 0x6d4], ebx
je 0x107af48
mov eax, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6d0]
push edx
lea edx, [ebp - 0x414]
push edx
push ebx
push 4
push 0x40
mov dword [ebp - 0x6d0], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebx
jl 0x107af48
push dword [ebp - 0x6d4]
lea eax, [ebp - 0x414]
push eax
call fcn.0100af3e
mov esi, eax
cmp dword [ebp - 0x6c8], ebx
je 0x107af5c
push dword [ebp - 0x6c8]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x6cc]
cmp eax, ebx
je 0x107af6c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 8
Function at 0x107b551
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
cmp dword [0x10b2a68], edi
jne 0x107b5f5
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push 0x107b650
push 0x80000002
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x107b5ed
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x107b624
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x107b5e2
cmp dword [ebp - 4], edi
je 0x107b5e2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x107b604
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x107b5db
cmp dword [ebp - 4], edi
jne 0x107b5e2
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x10]
mov dword [0x10b2a68], eax
xor eax, eax
cmp dword [0x10b2a68], 1
pop edi
sete al
leave
ret

Function at 0x107b66f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x107b6b8
cmp dword [ebp - 0x110], 2
jne 0x107b6b6
cmp dword [ebp - 0x11c], 6
jb 0x107b6b6
xor eax, eax
inc eax
jmp 0x107b6b8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100204d
leave
ret

Function at 0x107b7db
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, eax
push edi
mov dword [esi], ebx
cmp dword [ebp + 8], ebx
jne 0x107b855
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], ebx
je 0x107b855
lea eax, [ebp - 4]
push eax
push 0x107b870
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x107b819
cmp dword [ebp - 4], ebx
je 0x107b82e
mov edi, 0x80004005
call fcn.0107b551
test eax, eax
je 0x107b864
mov ecx, 0x107b884
jmp 0x107b85a
lea eax, [ebp + 8]
push eax
call fcn.0107ef08
mov edi, eax
cmp edi, ebx
jl 0x107b81e
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0107b6c9
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x107b864
mov ecx, 0x107b87c
push dword [ebp + 0xc]
call fcn.0107b6c9
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x107d08f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
and dword [ebp - 0xc], esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x107d106
lea eax, [ebp - 8]
push eax
push 0
push 0x5000
push dword [ebp - 4]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jl 0x107d0fb
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call sub.SHLWAPI.dll_PathCommonPrefixW
mov ebx, eax
test ebx, ebx
je 0x107d0f3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jne 0x107d0f3
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [eax], ebx
inc esi
push dword [ebp - 8]
call sub.ole32.dll_CoTaskMemFree
inc dword [ebp - 0xc]
add dword [ebp - 4], 0x10
test esi, esi
je 0x107d0a2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x107d1de
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
or ecx, 0xffffffff
sub ecx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
je 0x107d210
mov eax, dword [ebp + 8]
push esi
movzx edx, byte [eax]
dec dword [ebp + 0xc]
movzx esi, cl
xor edx, esi
shr ecx, 8
xor ecx, dword [edx*4 + 0x107d220]
inc eax
cmp dword [ebp + 0xc], 0
jne 0x107d1f3
pop esi
or eax, 0xffffffff
sub eax, ecx
pop ebp
ret 0xc

Function at 0x107de42
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push 0x107de98
push esi
call dword [eax + 0x2c]
xor edi, edi
lea eax, [ebp + 8]
push eax
push dword [edi + 0x107de9c]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jl 0x107de85
cmp dword [ebp + 8], 0
je 0x107de85
push dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
push dword [ebp + 8]
call sub.SHELL32.dll_ILFree
add edi, 4
cmp edi, 0xc
jb 0x107de59
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x107f255
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, 0x488
push ebx
mov dword [ebp - 0x494], eax
xor edi, edi
lea eax, [ebp - 0x48c]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x460], 0x20000
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x420], 0x78
mov dword [ebp - 0x41c], 0x280
mov dword [ebp - 0x490], 0x80004005
cmp dword [ebp - 0x494], edi
jne 0x107f2e1
mov eax, dword [esi]
mov dword [ebp - 0x494], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
test eax, eax
je 0x107f45b
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
push dword [ebp - 0x494]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0107f000
cmp eax, edi
mov dword [ebp - 0x490], eax
jl 0x107f45b
push 0x107f474
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0107f13b
cmp eax, edi
mov dword [ebp - 0x490], eax
jl 0x107f45b
mov ebx, dword [sym.imp.ADVAPI32.dll_StartTraceW]
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x494]
lea eax, [ebp - 0x49c]
push eax
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x498], edi
call ebx
push eax
call fcn.0103d1c8
mov dword [ebp - 0x490], eax
cmp eax, 0x80070057
jne 0x107f3c4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x107f3b9
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x494]
lea eax, [ebp - 0x49c]
push eax
call ebx
push eax
call fcn.0103d1c8
jmp 0x107f3be
call fcn.0101d802
mov dword [ebp - 0x490], eax
cmp dword [ebp - 0x490], edi
jl 0x107f45b
mov dword [ebp - 0x494], edi
cmp dword [esi + 0x14], edi
jbe 0x107f42c
xor ebx, ebx
cmp dword [ebp - 0x490], edi
jl 0x107f434
mov eax, dword [esi + 0x10]
push edi
push edi
push edi
push edi
add eax, ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 4
push 1
push dword [ebp - 0x498]
push dword [ebp - 0x49c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_EnableTraceEx]
push eax
call fcn.0103d1c8
inc dword [ebp - 0x494]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x494]
add ebx, 0x18
cmp eax, dword [esi + 0x14]
jb 0x107f3dd
cmp dword [ebp - 0x490], edi
jge 0x107f45b
lea eax, [ebp - 0x48c]
push eax
push edi
push dword [ebp - 0x498]
push dword [ebp - 0x49c]
call dword [sym.imp.ADVAPI32.dll_StopTraceW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x490]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 8
Function at 0x10887fd
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push 0x10
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
test eax, eax
setne cl
or ecx, 2
push ecx
push dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ebp - 0x28]
add ecx, 3
or ecx, 0x500
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.01088784
xor eax, eax
inc eax
pop esi
leave
ret 8
Function at 0x1088c92
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
cmp dword [edi + 0xb4], 0
jne 0x1088dfe
push 0
push 0x1088e04
push 0x1017868
push 0x2000000
push 0x80000001
call fcn.010178cc
test eax, eax
jne 0x1088dfe
push 0xd3
push dword [0x10b00b4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_177]
mov dword [ebp - 4], eax
test eax, eax
je 0x1088dfe
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
mov ebx, dword [sym.imp.USER32.dll_DeleteMenu]
test ax, ax
jge 0x1088d45
push 0x11
call esi
test ax, ax
jge 0x1088d45
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10
push 0x10482b4
push 0x10485e8
push 0x80000001
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x1088d45
cmp dword [ebp - 0xc], eax
je 0x1088d45
push eax
push 0x7ff4
push dword [ebp - 4]
call ebx
push 0x10
call esi
test ax, ax
jge 0x1088d57
push 0x11
call esi
test ax, ax
jl 0x1088d66
xor esi, esi
push esi
push 0x7ff4
push dword [ebp - 4]
call ebx
jmp 0x1088d68
xor esi, esi
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x1088d88
push 1
lea eax, [ebp - 0x14]
push eax
push esi
push dword [edi + 0x38]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
jmp 0x1088d95
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
push edi
call dword [eax + 4]
push esi
push dword [edi + 0x38]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x102
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
cmp eax, 0x7ff3
jne 0x1088dcb
push esi
mov ecx, edi
call fcn.01031f21
push 2
call fcn.010489f9
jmp 0x1088ded
cmp eax, 0x7ff4
jne 0x1088ded
push esi
mov ecx, edi
call fcn.01031f21
push esi
push esi
push 0x5b4
push dword [0x10b00ec]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop esi
pop ebx
pop edi
leave
ret 4