joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c340
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
push ebx
push esi
push edi
lea eax, [ebp - 0x278]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [0xe56df4], ebx
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x78]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0xf8]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0xf8]
push eax
call fcn.0042f110
add esp, 4
lea ecx, [ebp - 0x58]
push 1
call fcn.004f0653
mov ecx, dword [0x4fe4e8]
mov byte [ebp - 4], 1
push ecx
push 8
push str.c:endpcacheprocess_log.txt
lea ecx, [ebp - 0x58]
call fcn.004f0727
cmp ebx, dword [0xe56df4]
jge 0x48c505
mov edx, ebx
lea eax, [ebp - 0xf8]
shl edx, 6
add edx, 0xdfcf18
lea ecx, [ebp - 0x1f8]
push edx
push eax
push str._s_s
push ecx
call fcn.004f175f
add esp, 0x10
mov eax, 0x80
lea edx, [ebp - 0x1f8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1f8]
lea edx, [ebp - 0x78]
push ecx
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x4f8]
push eax
push 0x525ec0
push ecx
call fcn.004f175f
add esp, 0x14
lea edx, [ebp - 0x4f8]
lea ecx, [ebp - 0x4c]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [0xe56d24]
mov ecx, dword [0xe56d00]
mov eax, dword [0xe56db0]
inc edx
inc ecx
mov dword [0xe56d24], edx
test eax, eax
mov dword [0xe56d00], ecx
jne 0x48c4ff
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x4f8]
push eax
push ecx
push edx
jne 0x48c4e2
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
add esp, 0x1b4
inc ebx
jmp 0x48c3cf
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
inc ebx
jmp 0x48c3cf
lea ecx, [ebp - 0x58]
call fcn.004f076e
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x44]
call fcn.004f05fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492950
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb9c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push esi
push edi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 4], 0
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x30]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0xb0]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x2b0]
push eax
push str._sCatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE
push ecx
call fcn.004f175f
push str.c:endpcache
lea edx, [ebp - 0x1b0]
push 0x50d39c
push edx
call fcn.004f175f
lea eax, [ebp - 0x1b0]
push eax
call fcn.00492da0
mov esi, dword [0xe56dec]
add esp, 0x1c
lea ecx, [ebp - 0x2b0]
mov dword [0xe56e08], esi
push ecx
call fcn.00492da0
mov eax, dword [0xe56dec]
add esp, 4
cmp esi, eax
mov dword [0xe56e04], eax
jge 0x492a8a
lea edx, [ebp - 0x1b0]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x2b0]
push eax
call fcn.00492e70
add esp, 4
lea ecx, [ebp - 0x2b0]
push ecx
call fcn.004f2beb
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 4
xor esi, esi
cmp esi, dword [0xe56dec]
jge 0x492a8a
lea eax, [esi + esi*4]
lea edx, [ebp - 0x1b0]
mov byte [ebp - 0x3b0], 0
lea eax, [eax + eax*4]
lea edi, [eax*8 + 0xdcbc90]
lea eax, [ebp - 0x3b0]
push edi
push edx
push str._s_s
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [ebp - 0x3b0]
push 1
push ecx
push edi
call ebx
inc esi
jmp 0x492a43
push str.c:endpcache
call fcn.004f2beb
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492ad0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb9d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
push edi
lea eax, [ebp - 0x434]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0xb4]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0x2b4]
push eax
push str._sCatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE
push ecx
call fcn.004f175f
push str.c:endpcache
lea edx, [ebp - 0x1b4]
push 0x50d39c
push edx
call fcn.004f175f
lea eax, [ebp - 0x1b4]
push eax
call fcn.00492da0
mov ecx, dword [0xe56dec]
add esp, 0x1c
lea edx, [ebp - 0x2b4]
mov dword [ebp - 0x14], ecx
push edx
call fcn.00492da0
add esp, 4
lea eax, [ebp - 0x2b4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.00492e70
add esp, 4
lea edx, [ebp - 0x1b4]
push edx
call fcn.004f2beb
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 4
cmp esi, dword [ebp - 0x14]
jge 0x492bf1
lea eax, [esi + esi*4]
lea ecx, [ebp - 0x3b4]
mov byte [ebp - 0x3b4], 0
lea eax, [eax + eax*4]
lea edi, [eax*8 + 0xdcbc90]
lea eax, [ebp - 0x2b4]
push edi
push eax
push str._s_s
push ecx
call fcn.004f175f
add esp, 0x10
lea edx, [ebp - 0x3b4]
push 1
push edx
push edi
call ebx
inc esi
jmp 0x492bad
push str.c:endpcache
call fcn.004f2beb
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492c30
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb9e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
push edi
lea eax, [ebp - 0x434]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0xb4]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0x2b4]
push eax
push str._sCatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE
push ecx
call fcn.004f175f
push str.c:endpcache
lea edx, [ebp - 0x1b4]
push 0x50d39c
push edx
call fcn.004f175f
lea eax, [ebp - 0x1b4]
push eax
call fcn.00492da0
mov edi, dword [0xe56dec]
add esp, 0x1c
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x14], edi
push ecx
call fcn.00492da0
mov eax, dword [0xe56dec]
add esp, 4
cmp eax, edi
jge 0x492d5c
lea edx, [ebp - 0x2b4]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x1b4]
push eax
call fcn.00492e70
add esp, 4
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.004f2beb
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 4
cmp esi, edi
jge 0x492d5c
lea eax, [esi + esi*4]
lea edx, [ebp - 0x2b4]
mov byte [ebp - 0x3b4], 0
lea eax, [eax + eax*4]
lea edi, [eax*8 + 0xdcbc90]
lea eax, [ebp - 0x3b4]
push edi
push edx
push str._s_s
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [ebp - 0x3b4]
push 1
push ecx
push edi
call ebx
mov edi, dword [ebp - 0x14]
inc esi
jmp 0x492d16
push str.c:endpcache
call fcn.004f2beb
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x492da0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..cat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x492e56
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x110]
inc ebx
push edx
push esi
call ebp
test eax, eax
jne 0x492e49
push esi
call edi
or esi, 0xffffffff
cmp ebx, 0xf9
je 0x492e56
cmp esi, 0xffffffff
jne 0x492e33
push esi
call edi
pop edi
pop esi
mov dword [0xe56dec], ebx
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret
Function at 0x492e70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..cat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x492f45
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, 0xdcbc90
lea edx, [esp + 0x13c]
push 0xc8
push edx
push edi
call fcn.004f27c0
add esp, 0xc
lea eax, [esp + 0x110]
inc ebx
add edi, 0xc8
push eax
push esi
call ebp
test eax, eax
jne 0x492f38
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp edi, 0xdd7f18
je 0x492f45
cmp esi, 0xffffffff
jne 0x492f02
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0xe56dec], ebx
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret
Function at 0x493530
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4935ff
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, 0xdfcf18
lea edx, [esp + 0x13c]
push 0x40
push edx
push edi
call fcn.004f27c0
add esp, 0xc
lea eax, [esp + 0x110]
inc ebx
add edi, 0x40
push eax
push esi
call ebp
test eax, eax
jne 0x4935f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp edi, 0xdfe818
je 0x4935ff
cmp esi, 0xffffffff
jne 0x4935c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0xe56bd4], ebx
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret
Function at 0x49f180
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
mov edi, 0x80
cmp esi, 4
jge 0x49f23e
mov eax, esi
lea ecx, [ebp - 0x90]
shl eax, 6
add eax, 0x510e24
mov byte [ebp - 0x90], 0
push eax
push str.c:endpcache_s
push ecx
call fcn.004f175f
add esp, 0xc
lea edx, [ebp - 0x90]
push edi
push edx
call ebx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x49f221
lea ecx, [ebp - 0x90]
push ecx
call fcn.004abe70
add esp, 4
cmp eax, 1
jne 0x49f221
lea edx, [ebp - 0x90]
push edx
call fcn.004abcc0
add esp, 4
inc esi
jmp 0x49f1b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a6ab0
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, ebx
xor eax, eax
mov edx, dword [esp + 8]
push esi
mov dword [ecx], eax
push edi
mov dword [ecx + 4], eax
push eax
push 0x80
push 3
push eax
push 1
push closesocket
push edx
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x4a6ae8
pop edi
pop esi
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x4a6b0c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x4a6b31
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov dword [ebx + 4], edi
mov dword [ebx], esi
pop edi
mov dword [ebx + 8], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4a6d30
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x228
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x234]
push esi
push edi
push ecx
push 0xf
mov dword [eax], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea edx, [esp + 0xc]
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x224
push edx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4a6ed6
mov eax, dword [esp + 0x238]
push ebx
push ebp
lea ebx, [eax + 0x100]
or ecx, 0xffffffff
mov edi, str.NULL
xor eax, eax
lea edx, [ebx - 0x100]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 0x20]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NULL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NULL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NULL
or ecx, 0xffffffff
mov dword [ebx + 0x40], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
cmp eax, 0xffff
rep movsb byte es:[edi], byte [esi]
jne 0x4a6e59
mov edi, 0x526f78
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4a6e68
push eax
push 0x526f64
push ebx
call fcn.004f175f
add esp, 0xc
mov eax, dword [esp + 0x28]
push eax
push 0x526f60
push ebp
call fcn.004f175f
mov ecx, dword [esp + 0x38]
lea edi, [esp + 0x140]
mov dword [ebx + 0x40], ecx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x244]
mov edx, ecx
mov esi, edi
lea edi, [ebx + 0x44]
add ebx, 0x244
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, dword [esp + 0x10]
inc edi
mov dword [eax], edi
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4a6d91
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
cmp esi, 0xffffffff
je 0x4a6ee2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ax, 1
pop esi
add esp, 0x228
ret
Function at 0x4a6f30
Capabilities:
Get common file path
Set file attributes

Disassembly:
sub esp, 0x24c
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x254]
push eax
push 0x104
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.ccProcMon.sys
lea ecx, [esp + 0x10]
push 0x51602c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0x14]
push edx
call fcn.004f175f
add esp, 0xc
lea eax, [esp + 0x110]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4a6fdb
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0x104
push 0
push str.ccProcMon.sys
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4a6fe2
push str.ccProcMon.sys
push str._s_was_not_found.
push 0xe570f4
call fcn.004f175f
push 0xe570f4
call fcn.004f172e
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x24c
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xc]
push ecx
push 0x50d39c
push 0xe596f4
call fcn.004f175f
lea edx, [esp + 0x10]
push edx
push esi
push 0xe596f4
push str.ccProcMon
call fcn.00404110
add esp, 0x1c
test eax, eax
jne 0x4a709d
push 0x80
push 0xe596f4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 4]
push eax
push esi
push 0xe596f4
push str.ccProcMon
call fcn.00404110
add esp, 0x10
test eax, eax
jne 0x4a709d
push str.ccProcMon
call fcn.004040b0
lea ecx, [esp + 8]
push ecx
push esi
push 0xe596f4
push str.ccProcMon
call fcn.00404110
add esp, 0x14
test eax, eax
jne 0x4a709d
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push str.ccProcMon
push str.Error_loading__s___s_:__d
push 0xe570f4
call fcn.004f175f
push 0xe570f4
call fcn.004f172e
add esp, 0x18
xor eax, eax
pop esi
add esp, 0x24c
ret
mov eax, 1
pop esi
add esp, 0x24c
ret
Function at 0x4a96d0
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], esi
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x2c]
push 0xffffffffffffffff
push eax
push 0x1f6
push 0
call sub.NETAPI32.dll_NetShareEnum
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x4a9721
cmp edi, 0xea
jne 0x4a983c
mov ecx, dword [esp + 0x14]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x18], eax
jb 0x4a9825
mov ecx, dword [esp + 0x20]
lea eax, [esi + esi*2]
shl eax, 3
sub eax, esi
lea ebp, [ecx + 8]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ebx, [eax + edx*8 + 0x180]
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [ebx - 0x180]
push 0x5166ac
push edx
call esi
mov eax, dword [ebp + 0x10]
lea ecx, [ebx - 0x100]
push eax
push 0x5166ac
push ecx
call esi
mov edi, str.windows
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
lea ecx, [ebx + 0x28]
push eax
push 0x5166ac
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 0x1c]
add esp, 0x24
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
lea edx, [ebx + 0x20]
mov edi, 0x5274f8
jne 0x4a97d0
mov edi, 0x526f5c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebp, 0x28
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebx, 0x228
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
cmp dword [ecx], 0x7f
jg 0x4a981d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jbe 0x4a9753
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
cmp edi, 0xea
jne 0x4a9848
jmp 0x4a96e9
pop edi
pop esi
pop ebp
or ax, 0xffff
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x34]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x4a9860
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.wintrust.dll
mov dword [esi], 0
mov byte [esi + 0xc], 0
call edi
push str.crypt32.dll
mov dword [esi + 4], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x4a99b0
test eax, eax
je 0x4a99b0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CertDuplicateCertificateContext
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
push str.CertCompareCertificate
push eax
call edi
mov ecx, dword [esi + 8]
push str.CertFreeCertificateContext
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.WinVerifyTrust
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.WTHelperGetProvSignerFromChain
push eax
call edi
mov ecx, dword [esi + 4]
push str.WTHelperProvDataFromStateData
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 4]
push str.WTHelperGetProvCertFromChain
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
push str.CryptCATAdminAcquireContext
push eax
call edi
mov ecx, dword [esi + 4]
push str.CryptCATAdminCalcHashFromFileHandle
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 4]
push str.CryptCATAdminEnumCatalogFromHash
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 4]
push str.CryptCATCatalogInfoFromContext
push eax
call edi
mov ecx, dword [esi + 4]
push str.CryptCATAdminReleaseCatalogContext
push ecx
mov dword [esi + 0x38], eax
call edi
mov edx, dword [esi + 4]
push str.CryptCATAdminReleaseContext
push edx
mov dword [esi + 0x3c], eax
call edi
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x40], eax
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4a99b0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4a99b0
test eax, eax
je 0x4a99b0
mov byte [esi + 0xc], 1
mov eax, esi
pop edi
pop esi
ret
mov ecx, 0xf1f188
jmp 0x4a9860