joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2100c709
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x2100c719
xor eax, eax
jmp 0x2100c780
mov dword [ebp - 0x10], 0
push 4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.210538a0
add esp, 0xc
push 4
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 8]
push eax
call fcn.210538a0
add esp, 0xc
push 4
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.210538a0
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2100c772
jmp 0x2100c77e
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
jmp 0x2100c780
jmp 0x2100c779
mov esp, ebp
pop ebp
ret 0x10

Function at 0x2100c786
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x2100c799
xor eax, eax
jmp 0x2100c837
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
call fcn.210636c3
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x2100c7c9
xor eax, eax
jmp 0x2100c837
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
cmp dword [ebp + 0x14], 0
je 0x2100c7ee
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.210538a0
add esp, 0xc
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x2100c817
jmp 0x2100c835
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.210636ec
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x2100c837
jmp 0x2100c81e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x2100ddff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [0x21089ed8]
call fcn.2102a663
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4

Function at 0x2100e292
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], ecx
push 0x2108b154
push 0xc8
lea eax, [ebp - 0x108]
push eax
call fcn.21003071
lea ecx, [ebp - 0x108]
push ecx
call fcn.21053c40
add esp, 4
lea edx, [ebp + eax - 0x107]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov word [eax], 0x334
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x2108ac84]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x108]
sub eax, ecx
push eax
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x2100e460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0xa4], ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
add ecx, 4
mov dword [ebp - 0xa0], ecx
push 0x41
lea edx, [ebp - 0x8c]
push edx
call fcn.21023e29
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 1
jne 0x2100e4af
mov eax, dword [ebp - 0xa0]
mov byte [eax], 0
jmp 0x2100e4c4
lea ecx, [ebp - 0x8c]
push ecx
push 0x41
mov edx, dword [ebp - 0xa0]
push edx
call fcn.21003071
mov eax, dword [ebp - 0xa0]
push eax
call fcn.21053c40
add esp, 4
mov ecx, dword [ebp - 0xa0]
lea edx, [ecx + eax + 1]
lea eax, [ebp - 0x48]
sub edx, eax
mov dword [ebp - 0x90], edx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa4]
add ecx, 0x5c
call fcn.21063b98
mov edx, dword [ebp - 0x98]
mov dword [edx], 1
push 0
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4
Function at 0x2100e6b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2106f75b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 0
jne 0x2100e6e2
push 0
call fcn.21025ff0
mov dword [ebp - 0x10], eax
jmp 0x2100e719
lea ecx, [ebp - 0x28]
call fcn.21062e6a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.210309ef
lea edx, [ebp - 0x28]
push edx
call fcn.21025ff0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.21062e9d
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x21011e3f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x21011e80
call fcn.21011695
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0x2726
call fcn.210106a9
add esp, 0xc
xor eax, eax
jmp 0x21011e85
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x21012468
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x2101247e
mov eax, 1
jmp 0x210124c0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x210124bb
call fcn.21011695
push eax
mov edx, dword [ebp - 8]
add edx, 8
push edx
push 0x2727
call fcn.210106a9
add esp, 0xc
xor eax, eax
jmp 0x210124c0
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x21012744
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x2101275a
mov eax, 1
jmp 0x2101279c
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x21012797
call fcn.21011695
push eax
mov edx, dword [ebp - 8]
add edx, 8
push edx
push 0x271c
call fcn.210106a9
add esp, 0xc
xor eax, eax
jmp 0x2101279c
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x2101438e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x210143ad
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x210143ad
mov dword [ebp - 8], 0
jmp 0x210143b4
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x210143be
xor eax, eax
jmp 0x210143db
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x210143d5
xor eax, eax
jmp 0x210143db
mov eax, dword [ebp - 4]
and eax, 0x10
mov esp, ebp
pop ebp
ret 4

Function at 0x2101443d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x21014457
mov eax, 1
jmp 0x21014484
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x2101446b
mov eax, 1
jmp 0x21014484
cmp dword [ebp + 0xc], 0
jne 0x21014482
mov ecx, dword [ebp + 8]
push ecx
push 0x2722
call fcn.210106a9
add esp, 8
xor eax, eax
pop ebp
ret 8

Function at 0x210144bc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.21013097
test eax, eax
jne 0x210144d6
mov eax, 1
jmp 0x2101451d
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x2101451b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x2101451d
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x210146a4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.210146fc
xor ecx, ecx
cmp dword [ebp + 0x10], 0
sete cl
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x210146f3
cmp dword [ebp + 0x14], 0
jne 0x210146ef
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.21013208
push eax
push 0x2723
call fcn.210106a9
add esp, 0xc
xor eax, eax
jmp 0x210146f8
mov eax, 1
pop ebp
ret 0x10
Function at 0x210146fc
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x2101474e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x21014733
mov eax, 1
jmp 0x2101477d
cmp dword [ebp + 0xc], 0
jne 0x2101474a
mov edx, dword [ebp + 8]
push edx
push 0x2721
call fcn.210106a9
add esp, 8
xor eax, eax
jmp 0x2101477d
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.21013097
test eax, eax
je 0x21014778
cmp dword [ebp + 0xc], 0
jne 0x21014774
mov ecx, dword [ebp + 8]
push ecx
push 0x2721
call fcn.210106a9
add esp, 8
xor eax, eax
jmp 0x2101477d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x210147cd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp + 8], 0
jne 0x21014809
lea eax, [ebp - 0x104]
push eax
push 0x104
call fcn.21022a75
jmp 0x2101481e
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.21003071
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push str.FPP
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x21014bc9
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x21073c0c
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [ebp + 8], 0
je 0x21014bfb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x21014c04
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x21073c0c
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esp, ebp
pop ebp
ret

Function at 0x21014c94
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
jmp 0x21014cc8
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ecx]
jge 0x21014dd7
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x114]
call fcn.21014ee9
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x21014cff
jmp 0x21014cb9
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.21014f64
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.210134f1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 0
je 0x21014d44
cmp dword [ebp - 0x118], 2
je 0x21014d5d
jmp 0x21014d8e
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.21013097
test eax, eax
je 0x21014d5b
jmp 0x21014cb9
jmp 0x21014d8e
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.21013097
test eax, eax
je 0x21014d8e
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call fcn.21012ad7
cmp eax, 1
jne 0x21014d8e
jmp 0x21014cb9
push 1
lea eax, [ebp - 0x104]
push eax
call fcn.210146fc
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 0x110]
add ecx, eax
mov dword [ebp - 0x110], ecx
push 0x80
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x21014cb9
mov eax, dword [ebp - 0x110]
mov esp, ebp
pop ebp
ret 8
Function at 0x21014de3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x21014e05
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
jge 0x21014e55
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.21014ee9
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x21014e26
jmp 0x21014dfc
cmp dword [ebp + 8], 0
je 0x21014e41
push 1
mov ecx, dword [ebp - 4]
push ecx
call fcn.210146fc
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x21014e53
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x21014dfc
mov ecx, dword [ebp - 0x10]
call fcn.21014e66
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x210160df
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2106fb6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
lea ecx, [ebp - 0x44]
call fcn.21041200
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [0x21080124]
push ecx
push 0x80000002
lea edx, [ebp - 0x44]
push edx
call fcn.2104260d
add esp, 0xc
test eax, eax
je 0x21016143
push 0
push 0x104
mov eax, dword [ebp + 8]
push eax
push str.Common_Programs
lea ecx, [ebp - 0x44]
call fcn.210423ab
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.21041285
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x210163be
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2106fbca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
lea ecx, [ebp - 0x44]
call fcn.21041200
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
lea eax, [ebp - 0x44]
push eax
call fcn.2104260d
add esp, 0xc
test eax, eax
je 0x21016459
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
call fcn.21041bc9
mov dword [ebp - 0x4c], eax
jmp 0x21016422
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x44]
call fcn.2104216f
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x21016459
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.21053d90
add esp, 8
test eax, eax
jne 0x21016457
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.21041285
mov eax, dword [ebp - 0x50]
jmp 0x21016472
jmp 0x21016413
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.21041285
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x21018637
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x21018670
jmp 0x2101871b
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.2100c40c
lea eax, [ebp - 0x108]
push eax
call fcn.21053c40
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x108]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x210186b1
jmp 0x21018719
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.21021690
lea ecx, [ebp - 0x108]
push ecx
call fcn.21053c40
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x108]
push edx
push 1
push 0
push 0x21080604
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x210186f5
jmp 0x21018717
mov dword [ebp - 4], 1
cmp dword [ebp - 0x10c], 0
je 0x21018712
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x2101871d
jmp 0x210186fc
jmp 0x210186fc
jmp 0x210186fc
mov esp, ebp
pop ebp
ret 4
Function at 0x21022a75
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [0x2108a5a4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x21022aa9
push 1
push 0
push 0x21089584
push 0
mov ecx, 0x2108a578
call fcn.21046455
test eax, eax
je 0x21022af3
mov ecx, 0x2108a578
call fcn.210465dc
mov edx, dword [0x2108a5a4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
mov word [ebp - 4], cx
mov ecx, 0x2108a578
call fcn.2104663a
mov edx, dword [ebp - 4]
and edx, 0xffff
test edx, edx
je 0x21022af3
movsx eax, byte [ebp - 4]
push eax
push str._c:_
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.2105374f
add esp, 0xc
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x21022b0b
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
mov esp, ebp
pop ebp
ret 8
Function at 0x21024778
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d4
cmp dword [ebp + 0xc], 0xffffffff
jne 0x2102478e
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0x14], 0
je 0x2102479a
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x21024889
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
add edx, 4
mov dword [ebp - 0x9c], edx
lea eax, [ebp - 0x94]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x98]
mov dword [edx], 0x136
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x142
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.2100318b
mov edx, dword [ebp - 0x9c]
push edx
call fcn.21054236
add esp, 4
mov ecx, dword [ebp - 0x9c]
lea edx, [ecx + eax*2 + 2]
lea eax, [ebp - 0x328]
sub edx, eax
mov dword [ebp - 0x32c], edx
mov ecx, dword [ebp - 0xc]
mov word [ecx], 0
push 0
lea edx, [ebp - 8]
push edx
push 0x86
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x2102485e
xor eax, eax
jmp 0x2102496a
cmp dword [ebp + 0x14], 0
je 0x21024879
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.21003265
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
jmp 0x21024967
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
add ecx, 4
mov dword [ebp - 0x384], ecx
lea edx, [ebp - 0x37c]
mov dword [ebp - 0x388], edx
mov eax, dword [ebp - 0x388]
add eax, 4
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x380]
mov dword [ecx], 0x136
mov edx, dword [ebp + 0x10]
push edx
push 0x142
mov eax, dword [ebp - 0x384]
push eax
call fcn.21003071
mov ecx, dword [ebp - 0x384]
push ecx
call fcn.21053c40
add esp, 4
mov edx, dword [ebp - 0x384]
lea eax, [edx + eax + 1]
lea ecx, [ebp - 0x4d0]
sub eax, ecx
mov dword [ebp - 0x4d4], eax
mov edx, dword [ebp - 0x334]
mov byte [edx], 0
push 0
lea eax, [ebp - 0x330]
push eax
push 0x45
lea ecx, [ebp - 0x37c]
push ecx
mov edx, dword [ebp - 0x4d4]
push edx
mov eax, dword [ebp - 0x380]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x21024942
xor eax, eax
jmp 0x2102496a
cmp dword [ebp + 0x14], 0
je 0x2102495c
mov edx, dword [ebp - 0x334]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.21003071
mov edx, dword [ebp - 0x388]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x21024970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x2108afc4], 0
je 0x21024a6d
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
mov ecx, dword [0x2108a5fc]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.2101302c
test eax, eax
jne 0x210249f9
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [0x2108a5fc]
push ecx
call fcn.21021690
push 0x104
lea edx, [ebp - 0x218]
push edx
mov eax, dword [0x2108a5fc]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.210134f1
push 1
push 1
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.210146a4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
mov edx, dword [0x2108a5e8]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.2101302c
test eax, eax
jne 0x21024a6d
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [0x2108a5e8]
push edx
call fcn.21021690
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [0x2108a5e8]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.210134f1
push 1
push 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.210146a4
mov edx, dword [0x2108ac24]
mov dword [ebp - 0x10], edx
push 0xc
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.21053be0
add esp, 0xc
mov ecx, dword [0x2108afb0]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0x2108a864
mov edx, dword [0x2108a5fc]
mov dword [ebp - 4], edx
lea eax, [ebp - 0xc]
push eax
push 2
push 0
call sub.WINSPOOL.DRV_AddMonitorA
test eax, eax
jne 0x21024b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xb7
je 0x21024ada
cmp dword [ebp - 0x21c], 0xbbe
je 0x21024ada
jmp 0x21024adc
jmp 0x21024b40
mov dword [0x2108ac24], 1
push 0x2108b0d4
call fcn.21011695
push eax
push str.AddMonitor
push 0x2728
call fcn.210106a9
add esp, 0x10
push 0x2108a0d0
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call fcn.21003071
mov edx, dword [ebp - 0x10]
mov dword [0x2108ac24], edx
call fcn.21024b49
test eax, eax
je 0x21024b2d
jmp 0x21024b40
lea eax, [ebp - 0x114]
push eax
call fcn.210106ed
add esp, 4
xor eax, eax
jmp 0x21024b45
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x21024c1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [0x2108afc4], 0
jne 0x21024c32
xor eax, eax
jmp 0x21024c7e
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [str.fppent3a.dll]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.210134f1
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.21013097
test eax, eax
jne 0x21024c79
xor eax, eax
jmp 0x21024c7e
mov eax, 1
mov esp, ebp
pop ebp
ret