joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44396a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00425f75
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40dff0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00428e86
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x456a94
push eax
call fcn.004275b4
push edi
push esi
call fcn.0042658e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret 4
Function at 0x412e40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0042e5ba
mov ebx, dword [ebp + 0x10]
add esp, 4
mov eax, ebx
sub eax, 0x113
je 0x412fb9
sub eax, 0x587
je 0x412f8e
sub eax, 0x6f
jne 0x412f95
test esi, esi
je 0x412fd0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
cmp dword [ebp + 0x14], eax
jne 0x412fd0
movaps xmm0, xmmword [str.CheckRemoteDebug]
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov word [ebp - 0x14], ax
mov byte [ebp - 0x2e], al
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x2c], 0x65004b
mov dword [ebp - 0x28], 0x6e0072
mov dword [ebp - 0x24], 0x6c0065
mov dword [ebp - 0x20], 0x320033
mov dword [ebp - 0x1c], 0x64002e
mov dword [ebp - 0x18], 0x6c006c
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x50726567
mov dword [ebp - 0x34], 0x65736572
mov word [ebp - 0x30], 0x746e
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x412f31
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x4c], 0
jne 0x412f6f
call fcn.0042e599
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0xa
jge 0x412f6f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x74697845
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc], 0x636f7250
push eax
mov dword [ebp - 8], 0x737365
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x412f84
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
jmp 0x412fd0
mov ecx, edi
call fcn.00413220
push esi
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0x4c]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x14]
cmp esi, 0x64
jne 0x412fc8
mov ecx, edi
call fcn.00412ff0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424ea2
mov esp, ebp
pop ebp
ret 0x14
Function at 0x412ff0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
mov dword [ebp - 4], 0
test eax, 0xfffffffc
je 0x4130f0
mov dl, byte [ebp - 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
mov byte [ebp - 0x14], dl
lea edx, [ebp - 0x14]
push edx
mov edx, eax
sub edx, ecx
sar edx, 2
push edx
push eax
push ecx
call fcn.00412b70
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
jb 0x4130a0
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
cmp eax, edi
jbe 0x4130d5
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
push eax
push 0x709
push dword [ebx + 0xc]
call esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea edx, [eax + 4]
sub ecx, edx
push ecx
push edx
push eax
call fcn.00427040
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
test eax, 0xfffffffc
je 0x4130f0
push 0
push 0
push 0x69a
push dword [ebx + 0xc]
call esi
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x413220
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
mov dword [ebp - 4], 0
test eax, 0xfffffffc
je 0x413323
mov dl, byte [ebp - 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
mov byte [ebp - 0x14], dl
lea edx, [ebp - 0x14]
push edx
mov edx, eax
sub edx, ecx
sar edx, 2
push edx
push eax
push ecx
call fcn.00412b70
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x4132ea
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x4132ea
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [esi + edi]
sub ecx, eax
push ecx
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x413323
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x1326468
push eax
push 0x709
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea edx, [eax + 4]
sub ecx, edx
push ecx
push edx
push eax
call fcn.00427040
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret

Function at 0x413420
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x413479
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x413459
cmp dword [ebp - 8], 0x103
jne 0x413479
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413479
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x4134c0
push 0
push 0
call fcn.0042e91d
xor ebx, ebx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne bl
test eax, eax
je 0x4134a7
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x4203c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4203f4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4203f4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4204b8
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x420411
cmp ax, 0x5c
jne 0x420413
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x420405
cmp esi, ebx
je 0x42045f
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00427a00
add esp, 0xc
cmp esi, 0x208
jae 0x4204c8
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.004203c0
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x420482
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042d0ca
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00433410
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4204b8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
call fcn.00425040
int3

Function at 0x420b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x420c2a
cmp dword [esi + 4], 0xffffffff
jne 0x420c2a
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420b91
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x420bc5
cmp eax, 0x2f
je 0x420bc5
push 0x4462a8
push 0x104
push edi
call fcn.00433410
add esp, 0xc
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x420beb
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x420beb
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00423750
add esp, 0x10
test eax, eax
jne 0x420c0b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00423cd0
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x421200
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x449078]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x449078]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x423880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x4238be
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4238b2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4238cf
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00427a00
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4238f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4238fe
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4239bd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
sub edi, 1
jne 0x423916
pop edi
test esi, esi
je 0x4239db
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x449078]
sub esi, 1
jne 0x4239c1
not eax
pop esi
pop ebp
ret

Function at 0x424930
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [edi]
shr eax, 8
xor dl, al
movsx eax, dl
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x449078]
xor eax, ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx ecx, al
mov al, dl
xor esi, dword [ecx*4 + 0x449078]
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
ret
Function at 0x401050
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x28
call fcn.00402be0
add esp, 4
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 8]
xorps xmm0, xmm0
mov dword [ebp - 8], ebx
push ebx
push eax
movups xmmword [edi], xmm0
push 1
movups xmmword [edi + 0x10], xmm0
push str.D:A_OICI_GA___BGA_OICI_GA___ANA_OICI_GA___AUA_OICI_GA___BA
movq qword [edi + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x4010c4
push 0xc
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4010c4
mov dword [ebx], 0xc
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
jmp 0x4010ce
mov eax, dword [ebp - 8]
test eax, eax
je 0x4010ce
push eax
call esi
push ebx
push 0x1770
push 0x1000
push 0x1000
push 0xff
push 0
push 0x80000003
push str..pipeEXT2MGR_PSRV
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x401129
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40111a
push 0x3e8
push str..pipeEXT2MGR_PSRV
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0x28
push edi
call fcn.00402c10
add esp, 8
xor edi, edi
jmp 0x401188
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0xc], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x401161
cmp dword [edi + 0xc], 0xffffffff
jne 0x401182
test eax, eax
je 0x401161
push eax
call esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x401170
cmp eax, 0xffffffff
je 0x401170
push eax
call esi
push dword [edi + 4]
call esi
push 0x28
push edi
call fcn.00402c10
add esp, 8
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x401199
mov eax, dword [ebx + 4]
test eax, eax
je 0x401196
push eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402bcd
mov esp, ebp
pop ebp
ret
Function at 0x401d50
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401d9e
push 0x10
push eax
push str.Ext2Srv:_Unable_to_install_as_service
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bcd
mov esp, ebp
pop ebp
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401dd5
push 0x10
push eax
push str.Ext2Srv:_cannot_open_Service_Control_Manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bcd
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x401e4f
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Ext2Fsd_Service_Manager
push str.Ext2Srv
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10
push 0
cmp eax, 0x431
jne 0x401e37
push str.Ext2Srv_is_already_registered.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401f0f
push str.Ext2Srv_couldnt_be_registered.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401f0f
push eax
jmp 0x401f0d
push 0xf01ff
push str.Ext2Srv
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401f0f
lea eax, [ebp - 0x124]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401ed8
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x124]
push eax
push esi
call ebx
test eax, eax
je 0x401eb6
mov eax, dword [ebp - 0x120]
cmp eax, 3
jne 0x401ebc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x124]
push eax
push esi
call ebx
test eax, eax
jne 0x401e92
mov eax, dword [ebp - 0x120]
cmp eax, 1
je 0x401ed2
push 0x10
push 0
push str.Ext2Srv:_service_couldnt_be_stopped__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x401efb
push 0x30
push 0
push str.Ext2Srv:_service_is_already_unregistered
jmp 0x401f04
push 0x10
push 0
push str.Ext2Srv:_service_could_not_be_unregistered
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00402bcd
mov esp, ebp
pop ebp
ret
Function at 0x402710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x108]
mov dword [ebp - 0x23c], edx
push 0
push eax
mov dword [ebp - 0x240], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10c], 0
xor esi, esi
lea eax, [ebp - 0x234]
or ebx, 0xffffffff
push 0x124
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, ebx
je 0x4027f0
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4027e9
lea eax, [ebp - 0x214]
push 0x5c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
test eax, eax
lea ecx, [ebp - 0x214]
push str.Ext2Mgr.exe
cmovne ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 0x10
test eax, eax
jne 0x4027d7
mov eax, dword [ebp - 0x230]
mov dword [ebp + esi*4 - 0x108], eax
inc esi
cmp esi, 0x3f
jae 0x4027e9
lea eax, [ebp - 0x238]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402797
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x402802
mov dword [ebp + esi*4 - 0x108], eax
inc esi
xor edi, edi
test esi, esi
je 0x402849
nop dword [eax + eax]
mov eax, dword [ebp + edi*4 - 0x108]
test eax, eax
je 0x402849
lea ecx, [ebp - 0x10c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ebx, eax
test ebx, ebx
je 0x402844
mov edx, dword [ebp - 0x240]
push ecx
push dword [ebp - 0x10c]
call fcn.004024d0
add esp, 8
inc edi
cmp edi, esi
jb 0x402810
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402bcd
mov esp, ebp
pop ebp
ret
Function at 0x403534
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403573
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403573
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403573
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403573
cmp dword [ecx + 0x74], 0xe
jbe 0x403573
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret