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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
add ecx, 4
mov dword [ebp - 0x5c], ecx
push 0x41
mov edx, dword [ebp - 0x5c]
push edx
call fcn.2101eb0f
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jne 0x2100c00d
mov eax, dword [ebp - 0x5c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.21049450
add esp, 4
mov edx, dword [ebp - 0x5c]
lea eax, [edx + eax + 1]
lea ecx, [ebp - 0x48]
sub eax, ecx
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x54
call fcn.21058bfd
mov eax, dword [ebp - 0x54]
mov dword [eax], 1
push 0
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4

Function at 0x2100f5e4
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 0x2100f627
call fcn.2100ee2b
push eax
mov ecx, dword [ebp - 4]
call fcn.2100f5d3
push eax
push 0x2726
call fcn.2100de6e
add esp, 0xc
xor eax, eax
jmp 0x2100f62c
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x2100fbe6
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 0x2100fbfc
mov eax, 1
jmp 0x2100fc40
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 0x2100fc3b
call fcn.2100ee2b
push eax
mov ecx, dword [ebp - 8]
call fcn.2100f5d3
push eax
push 0x2727
call fcn.2100de6e
add esp, 0xc
xor eax, eax
jmp 0x2100fc40
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x2100fec6
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 0x2100fedc
mov eax, 1
jmp 0x2100ff20
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 0x2100ff1b
call fcn.2100ee2b
push eax
mov ecx, dword [ebp - 8]
call fcn.2100f5d3
push eax
push 0x271c
call fcn.2100de6e
add esp, 0xc
xor eax, eax
jmp 0x2100ff20
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x21011928
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x21011947
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x21011947
mov dword [ebp - 8], 0
jmp 0x2101194e
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x21011958
xor eax, eax
jmp 0x21011975
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 0x2101196f
xor eax, eax
jmp 0x21011975
mov eax, dword [ebp - 4]
and eax, 0x10
mov esp, ebp
pop ebp
ret 4

Function at 0x210119d7
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 0x210119f1
mov eax, 1
jmp 0x21011a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x21011a05
mov eax, 1
jmp 0x21011a1e
cmp dword [ebp + 0xc], 0
jne 0x21011a1c
mov ecx, dword [ebp + 8]
push ecx
push 0x2722
call fcn.2100de6e
add esp, 8
xor eax, eax
pop ebp
ret 8

Function at 0x21011a51
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.2101077f
test eax, eax
jne 0x21011a6b
mov eax, 1
jmp 0x21011ab2
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 0x21011ab0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x21011ab2
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x21011c2a
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.21011c82
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 0x21011c79
cmp dword [ebp + 0x14], 0
jne 0x21011c75
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.210108e8
push eax
push 0x2723
call fcn.2100de6e
add esp, 0xc
xor eax, eax
jmp 0x21011c7e
mov eax, 1
pop ebp
ret 0x10

Function at 0x21011c82
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
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 0x21011ccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x21011cb4
mov eax, 1
jmp 0x21011cfe
cmp dword [ebp + 0xc], 0
jne 0x21011ccb
mov edx, dword [ebp + 8]
push edx
push 0x2721
call fcn.2100de6e
add esp, 8
xor eax, eax
jmp 0x21011cfe
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.2101077f
test eax, eax
je 0x21011cf9
cmp dword [ebp + 0xc], 0
jne 0x21011cf5
mov ecx, dword [ebp + 8]
push ecx
push 0x2721
call fcn.2100de6e
add esp, 8
xor eax, eax
jmp 0x21011cfe
mov eax, 1
pop ebp
ret 8
Function at 0x21011d47
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 0x21011d83
lea eax, [ebp - 0x104]
push eax
push 0x104
call fcn.2101d824
jmp 0x21011d96
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.21048fc0
add esp, 8
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 0x210120f8
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], 0x21066b70
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 0x2101212a
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 0x21012133
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], 0x21066b70
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 0x210121c4
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 0x210121f8
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 0x21012301
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x114]
call fcn.21012413
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x2101222f
jmp 0x210121e9
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.2101248e
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.21010b3d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 0
je 0x2101226f
cmp dword [ebp - 0x118], 2
je 0x21012288
jmp 0x210122b8
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.2101077f
test eax, eax
je 0x21012286
jmp 0x210121e9
jmp 0x210122b8
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.2101077f
test eax, eax
je 0x210122b8
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call fcn.21010238
test eax, eax
je 0x210122b8
jmp 0x210121e9
push 1
lea eax, [ebp - 0x104]
push eax
call fcn.21011c82
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 0x210121e9
mov eax, dword [ebp - 0x110]
mov esp, ebp
pop ebp
ret 8
Function at 0x2101230d
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 0x2101232f
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 0x2101237f
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.21012413
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x21012350
jmp 0x21012326
cmp dword [ebp + 8], 0
je 0x2101236b
push 1
mov ecx, dword [ebp - 4]
push ecx
call fcn.21011c82
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x2101237d
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 0x21012326
mov ecx, dword [ebp - 0x10]
call fcn.21012390
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x21012fe1
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21062ffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
lea ecx, [ebp - 0x44]
call fcn.21039170
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [0x21071f84]
push ecx
push 0x80000002
lea edx, [ebp - 0x44]
push edx
call fcn.2103a362
add esp, 0xc
test eax, eax
je 0x21013045
push 0
push 0x104
mov eax, dword [ebp + 8]
push eax
push str.Common_Programs
lea ecx, [ebp - 0x44]
call fcn.2103a100
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.210391f5
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x210132c0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2106305a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
lea ecx, [ebp - 0x44]
call fcn.21039170
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
lea eax, [ebp - 0x44]
push eax
call fcn.2103a362
add esp, 0xc
test eax, eax
je 0x2101335b
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
call fcn.2103991e
mov dword [ebp - 0x4c], eax
jmp 0x21013324
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x44]
call fcn.21039ec4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x2101335b
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.21049780
add esp, 8
test eax, eax
jne 0x21013359
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.210391f5
mov eax, dword [ebp - 0x50]
jmp 0x21013374
jmp 0x21013315
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.210391f5
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x21014d37
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 0x21014d70
jmp 0x21014e1b
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.2100a0e1
lea eax, [ebp - 0x108]
push eax
call fcn.21049450
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 0x21014db1
jmp 0x21014e19
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.2101c5f0
lea ecx, [ebp - 0x108]
push ecx
call fcn.21049450
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x108]
push edx
push 1
push 0
push 0x21072440
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x21014df5
jmp 0x21014e17
mov dword [ebp - 4], 1
cmp dword [ebp - 0x10c], 0
je 0x21014e12
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x21014e1d
jmp 0x21014dfc
jmp 0x21014dfc
jmp 0x21014dfc
mov esp, ebp
pop ebp
ret 4
Function at 0x2101712a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21063305
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
lea ecx, [ebp - 0x7c]
call fcn.21039170
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.21038c00
mov byte [ebp - 4], 1
mov dword [ebp - 0xa8], 0
mov eax, dword [0x210723ec]
push eax
mov ecx, dword [0x210735b0]
push ecx
push 0x21072668
push 0x80000002
lea edx, [ebp - 0x7c]
push edx
call fcn.210395d9
add esp, 0x14
test eax, eax
jne 0x210171cb
mov dword [ebp - 0x1b4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x44], 0x21066b78
lea ecx, [ebp - 0x44]
call fcn.210391f5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.210391f5
mov eax, dword [ebp - 0x1b4]
jmp 0x210173a5
xor eax, eax
cmp dword [ebp - 0x38], 0
setne al
test eax, eax
jne 0x2101720f
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x44], 0x21066b78
lea ecx, [ebp - 0x44]
call fcn.210391f5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.210391f5
mov eax, dword [ebp - 0x1b8]
jmp 0x210173a5
push 0
lea ecx, [ebp - 0xa0]
call fcn.21037a7f
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.21037c5d
mov dword [ebp - 0xa4], eax
jmp 0x21017248
lea ecx, [ebp - 0xa0]
call fcn.21037cc0
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x21017301
push 0x2107b760
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 4]
push eax
call fcn.21049780
add esp, 8
test eax, eax
je 0x21017272
jmp 0x21017237
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1b0], edx
jmp 0x210172a2
mov eax, dword [ebp - 0x1b0]
push eax
call fcn.21049450
add esp, 4
mov ecx, dword [ebp - 0x1b0]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1b0]
movsx ecx, byte [eax]
test ecx, ecx
je 0x210172fc
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.21015c47
test eax, eax
jne 0x210172c1
jmp 0x21017283
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x1b0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.21010b3d
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.2101750f
mov ecx, dword [ebp - 0xa8]
add ecx, eax
mov dword [ebp - 0xa8], ecx
jmp 0x21017283
jmp 0x21017237
cmp dword [0x2107bdb8], 0
je 0x21017358
push 0x104
lea edx, [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [str.fppr332.dll]
push ecx
lea edx, [ebp - 0x1ac]
push edx
call fcn.21010b3d
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.2101750f
mov ecx, dword [ebp - 0xa8]
add ecx, eax
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x1bc], edx
mov byte [ebp - 4], 1
mov dword [ebp - 0xa0], 0x21066b7c
lea ecx, [ebp - 0x94]
call fcn.21021006
mov byte [ebp - 4], 0
mov dword [ebp - 0x44], 0x21066b78
lea ecx, [ebp - 0x44]
call fcn.210391f5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.210391f5
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x2101d824
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 [0x2107b3e4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x2101d858
push 1
push 0
push 0x2107ab1c
push 0
mov ecx, 0x2107b3c0
call fcn.2103e189
test eax, eax
je 0x2101d8a2
mov ecx, 0x2107b3c0
call fcn.2103e367
mov edx, dword [0x2107b3e4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
mov word [ebp - 4], cx
mov ecx, 0x2107b3c0
call fcn.2103e3c5
mov edx, dword [ebp - 4]
and edx, 0xffff
test edx, edx
je 0x2101d8a2
movsx eax, byte [ebp - 4]
push eax
push str._c:_
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.21048f5f
add esp, 0xc
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x2101d8ba
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 0x2101f30a
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
cmp dword [ebp + 0x10], 0
je 0x2101f31f
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
add edx, 4
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x54]
mov dword [edx], 0x136
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.21048fc0
add esp, 8
mov edx, dword [ebp - 0x58]
push edx
call fcn.21049450
add esp, 4
mov ecx, dword [ebp - 0x58]
lea edx, [ecx + eax + 1]
lea eax, [ebp - 0x1a4]
sub edx, eax
mov dword [ebp - 0x1a8], edx
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
push 0
lea edx, [ebp - 4]
push edx
push 0x45
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x2101f3a9
xor eax, eax
jmp 0x2101f3c5
cmp dword [ebp + 0x10], 0
je 0x2101f3c0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.210032d1
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x2101f3cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x2107bdb8], 0
je 0x2101f4be
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
mov ecx, dword [0x2107b3f8]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.2101074c
test eax, eax
jne 0x2101f44f
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [0x2107b3f8]
push ecx
call fcn.2101c5f0
lea edx, [ebp - 0x214]
push edx
mov eax, dword [0x2107b3f8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.21010b3d
push 1
push 1
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.21011c2a
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
mov edx, dword [0x2107b3e8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.2101074c
test eax, eax
jne 0x2101f4be
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [0x2107b3e8]
push edx
call fcn.2101c5f0
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [0x2107b3e8]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.21010b3d
push 1
push 1
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.21011c2a
push 0xc
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.210493f0
add esp, 0xc
mov eax, dword [0x2107bda4]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x2107b660
mov ecx, dword [0x2107b3f8]
mov dword [ebp - 4], ecx
lea edx, [ebp - 0xc]
push edx
push 2
push 0
call sub.WINSPOOL.DRV_AddMonitorA
test eax, eax
jne 0x2101f540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xb7
je 0x2101f51d
cmp dword [ebp - 0x218], 0xbbe
je 0x2101f51d
jmp 0x2101f51f
jmp 0x2101f540
push 0x2107bec8
call fcn.2100ee2b
push eax
push str.AddMonitor
push 0x2728
call fcn.2100de6e
add esp, 0x10
xor eax, eax
jmp 0x2101f545
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x2101f8e7
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 0x14
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.210493f0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x2101f90f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov dword [ebp - 8], 0x13a
push 0
lea edx, [ebp - 4]
push edx
push 0x200
lea eax, [ebp - 0x208]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x2101f943
xor eax, eax
jmp 0x2101f9f8
cmp dword [ebp - 4], 0x14
jae 0x2101f954
mov eax, dword [ebp - 4]
mov dword [ebp - 0x22c], eax
jmp 0x2101f95e
mov dword [ebp - 0x22c], 0x14
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.210490b0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x2101f995
cmp dword [ebp + 0x10], 0
je 0x2101f991
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
jmp 0x2101f9f8
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx + 0xc]
cmp edx, 1
je 0x2101f9f2
mov eax, dword [ebp + 0xc]
push eax
push 0x20
lea ecx, [ebp - 0x228]
push ecx
call fcn.210032d1
push 0x14
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.210493f0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0xb
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.210032d1
mov edx, dword [ebp + 0xc]
mov word [edx + 0xc], 1
push 0
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.210472e1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x21023b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov dword [ebp - 0x318], ecx
lea eax, [ebp - 0x314]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x21023b6a
jmp 0x21023c89
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x314]
push edx
push 0x104
lea eax, [ebp - 0x10c]
push eax
call fcn.210034b6
cmp dword [ebp - 4], 0
jne 0x21023ba3
lea ecx, [ebp - 0x10c]
push ecx
call fcn.21046ca5
test eax, eax
jne 0x21023ba3
jmp 0x21023c89
lea edx, [ebp - 0x314]
push edx
push 0x39
push 0x30
call fcn.210406db
mov ecx, dword [ebp - 0x318]
mov byte [ecx + 0x1f8], al
mov edx, dword [ebp - 0x318]
movsx eax, byte [edx + 0x1f8]
test eax, eax
jne 0x21023bec
lea ecx, [ebp - 0x314]
push ecx
push 0x5a
push 0x44
call fcn.210406db
mov edx, dword [ebp - 0x318]
mov byte [edx + 0x1f8], al
mov eax, dword [ebp - 0x318]
movsx ecx, byte [eax + 0x1f8]
test ecx, ecx
jne 0x21023c02
jmp 0x21023c89
push 0
push 2
push 0x2107ab1c
push 1
mov ecx, dword [ebp - 0x318]
add ecx, 0x1fc
call fcn.2103e189
cmp eax, 1
je 0x21023c25
jmp 0x21023c89
push 0
push 0x2107aadc
mov ecx, dword [ebp - 0x318]
add ecx, 0x1fc
call fcn.2103e13c
cmp eax, 1
je 0x21023c44
jmp 0x21023c89
mov ecx, dword [ebp - 0x318]
add ecx, 0x1fc
call fcn.2103e367
mov edx, dword [ebp - 0x318]
mov eax, dword [edx + 0x220]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x318]
movsx dx, byte [ecx + 0x1f8]
mov eax, dword [ebp - 8]
mov word [eax], dx
mov ecx, dword [ebp - 0x318]
add ecx, 0x1fc
call fcn.2103e3c5
mov esp, ebp
pop ebp
ret