joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102eb7b
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x107710b
call fcn.0101eabc
sub esp, 0x26c
mov eax, dword [0x108e558]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.0105d7c5
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
push eax
push ecx
lea eax, [ebp - 0x18]
push 0x1004ef4
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0105d95a
add esp, 0x10
cmp eax, edi
mov ebx, 0x1004e70
jge 0x102ebd3
push 0x3ea
push ebx
push eax
call fcn.0105c842
or dword [ebp - 0x26c], 0xffffffff
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0102e24f
cmp dword [ebp - 0x26c], 0xffffffff
je 0x102ecd7
cmp dword [ebp - 0x26c], edi
je 0x102ecd7
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], edi
je 0x102ecaf
mov dword [ebp - 0x270], edi
push 0x406
push ebx
push 0x60
mov byte [ebp - 4], 2
call fcn.0105ad39
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x278], ecx
cmp ecx, edi
mov byte [ebp - 4], 3
je 0x102ec6d
push 1
push dword [esi + 0x20]
lea eax, [ebp - 0x23c]
push eax
push esi
lea eax, [esi + 0x4c]
push eax
call fcn.0102f6dd
mov edi, eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.0102d410
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x8c]
mov dword [ebp - 0x270], edi
call fcn.0102e03d
test edi, edi
je 0x102ec9c
and dword [ebp - 0x270], 0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.0102d410
xor edi, edi
jmp 0x102ecbc
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x102ec1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x26c], edi
jne 0x102ecea
cmp eax, 2
jne 0x102ed00
cmp dword [ebp - 0x26c], 0xffffffff
je 0x102ed12
cmp dword [ebp - 0x26c], edi
je 0x102ed12
cmp eax, 0x12
je 0x102ed12
push 0x421
push ebx
push eax
call fcn.0105d6b8
push eax
call fcn.0105c842
lea ecx, [ebp - 0x26c]
call fcn.0102e233
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0105d81b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101d2f1
leave
ret 4
Function at 0x10309fc
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1077314
call fcn.0101eabc
sub esp, 0xdc
mov eax, dword [0x108e558]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xe8], eax
mov byte [ebp - 0xd9], 1
mov dword [ebp - 0xe0], ebx
mov esi, dword [sym.imp.ole32.dll_CoGetObjectContext]
mov edi, 0x1016ce4
jmp 0x1030aed
mov eax, dword [ebp - 0xe0]
or dword [ebp - 0xe4], 0xffffffff
mov ecx, dword [eax]
lea edx, [ebp - 0xe4]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x1030b02
cmp dword [ebp - 0xe4], 1
je 0x1030b02
cmp byte [ebp - 0xd9], bl
je 0x1030ad5
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1030a88
cmp byte [0x7ffe02d4], bl
je 0x1030ad5
push 0x10050a8
mov byte [ebp - 0xd9], bl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0xe8]
lea eax, [ebp - 0xd8]
push dword [ebp - 0xe8]
push 0x1005050
push 0xc8
push eax
call fcn.01019e23
add esp, 0x14
test eax, eax
jl 0x1030ad5
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0xe0]
push eax
call fcn.01040aa1
mov dword [ebp - 0xe0], ebx
lea eax, [ebp - 0xe0]
push eax
push edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jge 0x1030a3f
lea eax, [ebp - 0xe0]
push eax
call fcn.01040aa1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101d2f1
leave
ret 4

Function at 0x10413b5
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov eax, dword [edi]
mov dword [esi], 0x100cb70
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10413db
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.0102fe9f
pop edi
mov ecx, esi
pop esi
jmp fcn.0105d741

Function at 0x1049360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10792cd
call fcn.0101eabc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0105d531
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
mov dword [esi], 0x100e0b0
mov dword [esi + 0xc], 0x100e094
mov dword [esi + 0x10], 0x100e084
mov dword [esi + 0x14], 0x100e074
mov dword [esi + 0x18], 0x100e064
call fcn.01046b91
push dword [ebp + 0xc]
and dword [esi + 0x2c], 0
lea ecx, [esi + 0x30]
call fcn.0103053b
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x34], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x104936b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10792cd
call fcn.0101eabc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0105d531
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
mov dword [esi], 0x100e0b0
mov dword [esi + 0xc], 0x100e094
mov dword [esi + 0x10], 0x100e084
mov dword [esi + 0x14], 0x100e074
mov dword [esi + 0x18], 0x100e064
call fcn.01046b91
push dword [ebp + 0xc]
and dword [esi + 0x2c], 0
lea ecx, [esi + 0x30]
call fcn.0103053b
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x34], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1053f04
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x107ad1f
call fcn.0101eabc
sub esp, 0x128
mov edx, dword [ebp + 0xc]
mov eax, dword [0x108e558]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
mov esi, ecx
mov ecx, dword [ebp + 8]
lea ebx, [ebp - 0xd4]
push ebx
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x1c]
push ecx
mov dword [ebp - 0xd4], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1053fa5
push 0x3b7
push 0x1012088
lea ecx, [ebp - 0xd0]
call fcn.0105cd3b
and dword [ebp - 4], 0
call fcn.0105d67c
push eax
lea ecx, [ebp - 0xd0]
call fcn.0105cff5
lea eax, [ebp - 0xd0]
push 0x10120e0
push eax
call fcn.0105cf3a
pop ecx
pop ecx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x70]
call fcn.0101c3dd
push 0x107e340
lea eax, [ebp - 0x70]
jmp 0x105400a
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1054010
push 0x3bb
push 0x1012088
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov dword [ebp - 4], 1
call fcn.0105d67c
push eax
lea ecx, [ebp - 0x70]
call fcn.0105cff5
lea eax, [ebp - 0x70]
push 0x10120c8
push eax
call fcn.0105cf3a
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x134]
call fcn.0101c3dd
push 0x107e340
lea eax, [ebp - 0x134]
push eax
call fcn.0101e3fa
mov eax, dword [ebp - 0xd4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
test edi, edi
je 0x1054023
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101d2f1
leave
ret 0xc

Function at 0x105509f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
call fcn.010539d6
cmp edx, dword [esi + 0x24]
ja 0x10550cb
jb 0x10550b8
cmp eax, dword [esi + 0x20]
jae 0x10550cb
push edi
mov edi, dword [esi + 0x18]
lea ecx, [edi + 0x10]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp byte [edi + 0x48], 0
pop edi
je 0x105510b
mov esi, dword [esi + 0x10]
mov eax, esi
inc eax
neg eax
sbb eax, eax
and eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x105510b
test byte [0x108e4d4], 2
je 0x1055103
push 0x101203c
push 0x10
push dword [0x108e4cc]
push dword [0x108e4c8]
call fcn.0102993f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
ret
Function at 0x1055349
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x107aed7
call fcn.0101eabc
sub esp, 0xf8
mov eax, dword [0x108e558]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jne 0x105537c
mov dword [ecx], edi
jmp 0x10554c0
mov eax, dword [ebx + 0x38]
push edi
push ecx
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10553be
push 0x165
push 0x1012088
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov dword [ebp - 4], edi
call fcn.0105d67c
push eax
lea ecx, [ebp - 0x70]
call fcn.0105cff5
push 0x10122cc
jmp 0x10553fe
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1055429
push 0x16d
push 0x1012088
lea ecx, [ebp - 0x70]
call fcn.0105cd3b
mov dword [ebp - 4], 1
call fcn.0105d67c
push eax
lea ecx, [ebp - 0x70]
call fcn.0105cff5
push 0x10120c8
lea eax, [ebp - 0x70]
push eax
call fcn.0105cf3a
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x104]
call fcn.0101c3dd
push 0x107e340
lea eax, [ebp - 0x104]
push eax
call fcn.0101e3fa
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x74]
call fcn.0105db51
add dword [ebx + 0x40], esi
lea esi, [ebx + 0x50]
mov dword [ebp - 4], 2
adc dword [ebx + 0x44], edi
lea edi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x105546c
mov ecx, dword [eax]
call fcn.0105509f
push 0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x94]
call fcn.0105454e
mov eax, dword [ebp - 0x8c]
lea esi, [ebx + 0x60]
lea edi, [ebp - 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp eax, dword [ebp - 0x7c]
jne 0x1055451
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0105db6f
test byte [0x108e4d4], 8
je 0x10554c0
cmp byte [0x108e4d1], 3
jb 0x10554c0
push dword [ebx + 0x40]
push dword [ebp + 0xc]
push 0x101203c
push 0xd
push dword [0x108e4cc]
push dword [0x108e4c8]
call fcn.0107003a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101d2f1
leave
ret 0xc
Function at 0x105d3be
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x1013a20
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x105d461
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov edi, 0x10139fc
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
jne 0x105d455
mov esi, str._SystemRoot_System32PrintFilterPipelineSvc.exe
push esi
call fcn.0101e1a5
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push ebx
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call edi
mov esi, eax
cmp esi, ebx
jne 0x105d455
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push 0x10139dc
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
jle 0x105d46f
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x105d49d
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
push dword [ebp + 0xc]
mov eax, dword [0x108e558]
push 0x1013b10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.01019e51
add esp, 0x10
test eax, eax
jl 0x105d506
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov eax, dword [0x1090bc8]
xor ecx, ecx
cmp eax, ecx
je 0x105d506
push ecx
lea edx, [ebp - 0xd0]
push edx
push ecx
push 1
push ecx
push dword [ebp + 8]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x105d506
call fcn.01018d79
mov ecx, dword [ebp - 4]
call fcn.0101d2f1
leave
ret 8

Function at 0x105f1f4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107bd90
call fcn.0101eabc
push ecx
push esi
push edi
mov esi, ecx
call fcn.0105e8c3
push dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [esi], 0x1013d4c
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
call fcn.0106c0f2
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x106fa6a
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, eax
mov dword [ebp - 4], eax
je 0x106fba5
cmp dword [ebp + 0xc], eax
je 0x106fba5
cmp dword [ebp + 0x10], eax
je 0x106fba5
push esi
call fcn.0101e1a5
pop ecx
mov ebx, eax
push 4
cdq
pop ecx
idiv ecx
test edx, edx
je 0x106fab1
mov eax, 0x80004005
jmp 0x106fbaa
mov eax, ebx
sar eax, 2
cmp word [esi + ebx*2 - 2], 0x3d
push edi
lea edi, [eax + eax*2]
jne 0x106fac3
dec edi
cmp word [esi + ebx*2 - 4], 0x3d
jne 0x106facc
dec edi
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, eax
test ecx, ecx
jne 0x106fae5
mov dword [ebp - 4], 0x8007000e
jmp 0x106fb83
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
jle 0x106fb9f
or edi, 0xffffffff
xor eax, eax
mov ax, word [esi]
push eax
call fcn.0106fa04
and eax, 0x3f
shl eax, 2
cmp eax, edi
je 0x106fb7c
mov byte [ecx], al
xor eax, eax
mov ax, word [esi + 2]
push eax
call fcn.0106fa04
cmp eax, edi
je 0x106fb7c
mov dl, al
shr dl, 4
add byte [ecx], dl
cmp word [esi + 4], 0x3d
je 0x106fb4d
shl al, 4
mov byte [ecx + 1], al
xor eax, eax
mov ax, word [esi + 4]
push eax
call fcn.0106fa04
cmp eax, edi
je 0x106fb7c
mov dl, al
shr dl, 2
add byte [ecx + 1], dl
cmp word [esi + 6], 0x3d
je 0x106fb6d
shl al, 6
mov byte [ecx + 2], al
xor eax, eax
mov ax, word [esi + 6]
push eax
call fcn.0106fa04
cmp eax, edi
je 0x106fb7c
add byte [ecx + 2], al
sub ebx, 4
add esi, 8
add ecx, 3
test ebx, ebx
jg 0x106fafa
jmp 0x106fb9f
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x106fb93
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, dword [ebp - 4]
pop edi
jmp 0x106fbaa
mov eax, 0x80070057
pop esi
pop ebx
leave
ret 0xc
Function at 0x106fbb5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push 0x20019
push ebx
mov esi, ecx
push 0x1016480
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esi], bl
mov byte [esi + 1], bl
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106fcbf
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10164d0
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 4
call edi
test eax, eax
jne 0x106fc51
cmp dword [ebp - 8], 4
jne 0x106fc51
cmp dword [ebp - 4], 1
jne 0x106fc51
mov byte [esi], 1
call fcn.01070296
test byte [0x108e4d5], 1
je 0x106fc51
push 0x1016470
push 0xa
push dword [0x108e4cc]
push dword [0x108e4c8]
call fcn.0102993f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10164f4
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], ebx
call edi
test eax, eax
pop edi
jne 0x106fcb6
cmp dword [ebp - 8], 4
jne 0x106fcb6
cmp dword [ebp - 4], ebx
je 0x106fcb6
push dword [ebp - 4]
mov byte [esi + 1], 1
call fcn.0106ff91
cmp al, bl
mov byte [esi + 1], al
je 0x106fcb6
test byte [0x108e4d5], 1
je 0x106fcb6
push 0x1016470
push 0xb
push dword [0x108e4cc]
push dword [0x108e4c8]
call fcn.0102993f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x106fceb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x108e558]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x20c], bx
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push eax
mov esi, 0x103
push esi
mov edi, str.vfprint.dll
push edi
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
call fcn.0101c8fe
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x106fdb2
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x106fd70
cmp eax, esi
jae 0x106fd70
mov ecx, dword [ebp - 0x218]
add ecx, eax
cmp ecx, esi
jb 0x106fd7a
mov dword [ebp - 0x210], 0x80004005
cmp dword [ebp - 0x210], 0
jl 0x106fdb2
push edi
mov word [ebp + eax*2 - 0x20c], 0x5c
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0101c95e
test eax, eax
jl 0x106fdb2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.0101d2f1
leave
ret
Function at 0x106fdca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call fcn.0106fceb
mov ecx, eax
xor esi, esi
cmp ecx, esi
je 0x106fe07
mov eax, dword [0x1090f70]
cmp eax, esi
jne 0x106feed
push str.CreateFilterTestHook
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x1090f70], eax
jne 0x106feed
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlPrint
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, 0x1090d68
jne 0x106feba
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
push str.PipelineFilterHook
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], 4
call esi
test eax, eax
jne 0x106fe6b
cmp dword [ebp - 4], 4
jne 0x106fe6b
cmp dword [ebp - 8], 4
je 0x106fe6f
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 1
jne 0x106feaf
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
push str.FilterHookModuleName
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x208
call esi
test eax, eax
jne 0x106fe9f
cmp dword [ebp - 4], 1
je 0x106feaf
push str.FilterHook.dll
push 0x104
push edi
call fcn.0101c8b5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [ebp - 0x10], 1
jne 0x106fef8
cmp dword [0x1090f70], esi
jne 0x106fee4
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x106fee4
push str.CreateFilterTestHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1090f70], eax
mov eax, dword [0x1090f70]
cmp eax, esi
je 0x106fef8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
leave
ret 0xc
Function at 0x107006c
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push edi
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0x810]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x810]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call ebx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x107011b
cmp dword [ebp - 4], edi
ja 0x107011b
xor edi, edi
test dword [ebp - 4], 0xfffffffc
jbe 0x107011b
mov eax, dword [ebp + edi*4 - 0x810]
test eax, eax
je 0x10700f1
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
call ebx
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x10700f1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
ja 0x10700f1
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp ecx, dword [ebp + 8]
ja 0x10700fe
mov eax, dword [ebp - 4]
inc edi
shr eax, 2
cmp edi, eax
jb 0x10700c1
jmp 0x107011b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + edi*4 - 0x810]
call ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1070129
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x108e558]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x1070268
mov edx, dword [ebx]
test edx, edx
je 0x1070268
test byte [edx + 4], 0x10
jne 0x1070268
mov ecx, dword [edx]
mov dword [ebp - 0x210], ecx
xor eax, eax
cmp ecx, dword [eax + 0x101669c]
je 0x107017b
add eax, 4
cmp eax, 0x10
jb 0x1070166
jmp 0x1070268
and word [ebp - 0x20c], 0
push esi
push edi
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [edx + 0xc]
xor edi, edi
call fcn.0107006c
test eax, eax
je 0x10701f2
and word [ebp - 6], 0
lea eax, [ebp - 0x20c]
push eax
inc edi
call fcn.0101e1a5
cmp eax, 0xa
pop ecx
jb 0x10701f2
cmp dword [ebp - 0x210], 0xc0000008
jne 0x10701f2
lea eax, [ebp + eax*2 - 0x220]
push eax
push 0x1016684
call fcn.0101edbb
test eax, eax
pop ecx
pop ecx
jne 0x10701f2
cmp dword [ebp + 0x10], eax
jne 0x1070266
push 0x1016628
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test edi, edi
jne 0x1070221
mov eax, dword [ebx]
push dword [eax + 0xc]
lea eax, [ebp - 0x20c]
push 0x10165d8
push esi
push eax
call sub.ntdll.dll__snwprintf
add esp, 0x10
test byte [0x108e4d4], 2
je 0x107024d
mov eax, dword [ebx]
push dword [eax + 0xc]
push dword [ebp - 0x210]
push 0x10165a8
push 0xa
push dword [0x108e4cc]
push dword [0x108e4c8]
call fcn.0107003a
cmp dword [ebp + 0xc], 0
je 0x1070266
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
call fcn.0101d2f1
leave
ret 0xc