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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4189f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42029c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x404ae1
cmp byte [ebx + 0x49], 0
je 0x404ae1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404ad5
lea esi, [ebp - 0x2c]
call fcn.00404450
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4049c3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4049fc
dec eax
je 0x404a00
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x404adc
call fcn.004032f0
xor al, al
jmp 0x404ae3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404a10
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x404a3d
cmp edi, 0x10
jae 0x404a1f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004079c5
add esp, 0x10
cmp esi, eax
jne 0x404acd
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404ad9
test esi, esi
jne 0x4049b7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x404afe
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x404afe
cmp edi, esi
jae 0x404ab6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004052f0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4049b7
mov ecx, eax
cmp edi, 0x10
jae 0x404a92
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x404aad
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4049b1
test esi, esi
jne 0x404a88
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x404ac5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4049b1
lea ecx, [ebp - 0x2c]
call fcn.004032f0
xor al, al
jmp 0x404ae3
lea ecx, [ebp - 0x2c]
call fcn.004032f0
mov al, 1
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.00405d0d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00416d10
int3
Function at 0x404ea0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41894b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42029c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00416e64
push 4
mov dword [ebp - 4], 0
call fcn.00407b71
mov edi, eax
add esp, 4
test edi, edi
je 0x404f1c
call fcn.00416c5f
mov dword [edi], eax
call fcn.00416a1e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00416e25
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404f12
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00416e4d
jmp 0x404f1e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405d0d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42029c]
jne 0x405d17
repz ret
jmp fcn.00407d85
Function at 0x413dfe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42029c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004088a8
and dword [ebp - 0x14], 0
cmp dword [0x468120], 0
mov dword [ebp - 0x18], eax
jne 0x413eb1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413f59
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413f59
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x468120], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x468124], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x468128], eax
call edi
push eax
call esi
mov dword [0x468130], eax
test eax, eax
je 0x413eb1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46812c], eax
mov eax, dword [0x46812c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413f0a
cmp dword [0x468130], ecx
je 0x413f0a
push eax
call esi
push dword [0x468130]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413f0a
test ebx, ebx
je 0x413f0a
call edi
test eax, eax
je 0x413f01
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413f01
test byte [ebp - 8], 1
jne 0x413f0a
or dword [ebp + 0x10], 0x200000
jmp 0x413f3d
mov eax, dword [0x468124]
cmp eax, dword [ebp - 0x18]
je 0x413f3d
push eax
call esi
test eax, eax
je 0x413f3d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413f3d
mov eax, dword [0x468128]
cmp eax, dword [ebp - 0x18]
je 0x413f3d
push eax
call esi
test eax, eax
je 0x413f3d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x468120]
call esi
test eax, eax
je 0x413f59
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413f5b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d0d
leave
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x401440
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43601c
push 0x80000002
call dword [0x43882c]
test eax, eax
jne 0x40146c
mov eax, 0xd903
jmp 0x401516
mov dword [0x438824], 0x24e1
mov ecx, dword [0x438824]
sub ecx, 0x24e1
mov dword [0x438824], ecx
mov edx, 1
test edx, edx
je 0x401516
mov eax, dword [0x438824]
cmp eax, dword [ebp + 0xc]
jb 0x4014a1
jmp 0x401516
jmp 0x45cad8
mov esp, ebp
pop ebp
ret

Function at 0x401a60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebp
pop dword [0x438810]
push dword [0x438810]
push 0x401a7b
jmp loc.0045bd6c
Function at 0x401000
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
test eax, eax
je 0x401092
cmp dword [ebp + 8], edi
je 0x401092
or ebx, ebx
je 0x401092
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401089
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push eax
push ebx
push ecx
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401062
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x401062
mov edi, 1
mov dword [ebp + 8], 0
test esi, esi
je 0x401089
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401089
test byte [ebp + 8], 2
jne 0x401089
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4010a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push edi
push esi
xor esi, esi
xor edi, edi
push ebx
test eax, eax
je 0x4011a4
push edi
push 0x80
push 3
push edi
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x4011a4
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40117d
cmp dword [ebp + 0xc], esi
je 0x4010fe
inc edi
xor esi, esi
or edi, edi
je 0x40112f
lea ebx, [edi + 0x13]
and ebx, 0xfffffff0
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40112c
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
sub esp, 0xfffffff4
mov ebx, dword [ebp - 4]
mov dword [ebp + 0xc], esi
test esi, esi
je 0x40117a
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40117a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
or eax, eax
je 0x401173
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0xc], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
test ebx, ebx
je 0x4011a4
lea edx, [ebp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x4011a4
test byte [ebp + 0xc], 2
jne 0x4011a4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4011c5
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x4011c7
mov dword [ebx], edi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4011d0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 0x401e60
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
or eax, eax
je 0x4012a0
push esi
lea ecx, [ebp - 0x328]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
push edx
push 0
push 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x224]
push edx
call esi
or eax, eax
je 0x40129f
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, eax
jne 0x40129f
push 4
lea edx, [ebp - 0x120]
push eax
push edx
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4015c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call sub.MSVCRT.dll_memset
push 0x103
xor eax, eax
lea ecx, [ebp - 0x163]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 0x164], bl
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 8]
add esp, 0x18
push 0x104
push edx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or eax, eax
je 0x40169f
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x40166d
lea ecx, [ebp + 8]
push ecx
push eax
call edi
test eax, eax
je 0x40166d
test byte [ebp + 8], 2
jne 0x40166d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x401691
lea edx, [ebp + 8]
push edx
push eax
call edi
test eax, eax
je 0x401691
test byte [ebp + 8], 2
jne 0x401691
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4016b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
xor esi, esi
push edi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4016f7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x38]
push eax
call edi
test eax, eax
jne 0x40176b
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x401717
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test esi, esi
je 0x401760
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401760
test byte [esp + 0xc], 2
jne 0x401760
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x18]
jmp 0x401736
Function at 0x401c50
Capabilities:
Access pe header

Disassembly:
push ebx
mov ebx, esp
add esp, 0xfffffff8
mov eax, dword [ebx + 8]
push esi
push edi
push ebp
mov dword [ebx - 4], 0
or eax, eax
je 0x401d0a
push 0
lea ecx, [ebx - 4]
push ecx
call fcn.004010a0
mov edi, eax
test edi, edi
je 0x401d0a
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebp, eax
test ebp, ebp
je 0x401ce8
rdtsc
xor dword [0x45c330], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x45c330], eax
push 0x40958c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
or eax, eax
je 0x401cc7
push 0x40c344
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401cc7
push 0x45c330
call eax
mov ecx, dword [0x45c330]
xor edx, edx
mov eax, ecx
or esi, 0xffffffff
div esi
add eax, ecx
mov dword [ebp + 0x58], eax
mov edx, dword [ebx - 4]
mov eax, dword [ebx + 8]
push edx
push edi
call section..text
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
or eax, eax
je 0x401d0a
push edi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
pop esi
mov esp, ebx
pop ebx
ret 4

Function at 0x401d90
Capabilities:
Timestomp file

Disassembly:
push edi
mov edi, esp
add esp, 0xffffffdc
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push str._globalroot_systemroot_system32drivers_ntfs.sys
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401e55
lea eax, [edi - 0x10]
push eax
lea ecx, [edi - 0x18]
push ecx
lea edx, [edi - 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [edi - 8], 0
test ebp, ebp
je 0x401dfc
lea eax, [edi - 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401dfc
test byte [edi - 8], 2
jne 0x401dfc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401e55
lea edx, [edi - 0x10]
push edx
lea eax, [edi - 0x18]
push eax
lea ecx, [edi - 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [edi + 8], 0
test ebp, ebp
je 0x401e55
lea edx, [edi + 8]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401e55
test byte [edi + 8], 2
jne 0x401e55
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov esp, edi
pop edi
ret 4
Function at 0x401ea0
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, esp
sub esp, 0x228
push edi
push ebp
push ebx
mov ebx, eax
xor eax, eax
push 0x220
push eax
mov dword [esi - 4], eax
mov dword [esi - 0x228], eax
lea eax, [esi - 0x224]
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push ebx
push 8
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x401f9b
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
push ebx
push 8
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401f9b
mov ebx, dword [esi - 4]
mov dword [esi - 4], 0
or ebp, ebp
je 0x401f2f
lea ecx, [esi - 4]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401f2f
test byte [esi - 4], 2
jne 0x401f2f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop ebp
pop edi
mov esp, esi
pop esi
ret
lea ecx, [esi - 0x228]
push ecx
push ebp
mov dword [esi - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
or eax, eax
je 0x401f05
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
push 0x40c364
lea edx, [esi - 0x208]
push edx
call ebx
or eax, eax
je 0x401f7e
push 0x40c36c
push eax
call ebx
test eax, eax
jne 0x401f91
lea eax, [esi - 0x228]
push eax
push ebp
call edi
or eax, eax
jne 0x401f60
jmp 0x401f05
mov ebx, 1
jmp 0x401f08
mov eax, dword [esi - 4]
pop ebx
pop ebp
pop edi
mov esp, esi
pop esi
ret

Function at 0x4021f0
Capabilities:
Get common file path
Get program files directory
Set current directory

Disassembly:
push esi
mov esi, esp
push 0xffffffffffffffff
push 0x40cb00
push 0x408ea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push edi
mov dword [esi - 0x18], esp
xor ebx, ebx
mov byte [esi - 0x120], bl
push 0x103
push ebx
lea eax, [esi - 0x11f]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor ebp, ebp
lea ecx, [esi - 0x120]
push ecx
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4022b7
push str.Windows_Defender
lea edx, [esi - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esi - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4022b7
push str.MpClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
mov dword [esi - 0x1c], ebp
cmp ebp, ebx
je 0x4022b7
push str.WDEnable
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4022b7
mov dword [esi - 4], ebx
push ebx
call eax
mov dword [esi - 4], 0xffffffff
jmp 0x4022b7
test ebp, ebp
je 0x4022c2
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esi - 0x10]
mov dword fs:[0], ecx
pop edi
pop ebp
pop ebx
mov esp, esi
pop esi
ret
Function at 0x4022e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push ebx
push str..KmxAgent
mov dword [ebp - 0xb4], 0xb4
mov dword [ebp - 0xb0], 0x10
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], 0x7b761e52
mov dword [ebp - 0x88], 0x1c94cc7
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0x20000000
mov dword [ebp - 0x60], 0x1210064
mov dword [ebp - 0x5c], 0x22
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 0x4d0007
mov dword [ebp - 0x50], 0x730065
mov dword [ebp - 0x4c], 0x610073
mov dword [ebp - 0x48], 0x650067
mov dword [ebp - 0x44], 0x420000
mov dword [ebp - 0x40], 0xb0022
mov dword [ebp - 0x3c], 0x490000
mov dword [ebp - 0x38], 0x530053
mov dword [ebp - 0x34], 0x560045
mov dword [ebp - 0x30], 0x4e0045
mov dword [ebp - 0x2c], 0x490054
mov dword [ebp - 0x28], 0x3d0044
mov dword [ebp - 0x24], 0x300034
mov dword [ebp - 0x20], 0x320030
mov dword [ebp - 0x1c], 0x650000
mov dword [ebp - 0x18], 0x70006d
mov dword [ebp - 0x14], 0x790074
mov dword [ebp - 0x10], 0x45003d
mov dword [ebp - 0xc], 0x70006d
mov dword [ebp - 8], 0x790074
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402460
lea eax, [ebp - 0xbc]
push ebx
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0xb8]
push eax
push 4
push ecx
push 0xb4
push edx
push 0x86000054
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret