joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100047f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ecx
call fcn.100041a0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10004860
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000484d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100048e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], edx
push ebx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x100048fc
xor al, al
jmp 0x10004918
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10]
test eax, eax
setne al
mov byte [ebp - 4], al
mov bl, byte [esi]
test al, al
je 0x10004936
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004d10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 4]
mov al, byte [ebp + 0x10]
lea ecx, [edi + 4]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
xor ecx, ecx
test al, al
mov byte [edi + 0x14], 1
mov dword [edi + 0xc], esi
cmovne ecx, edx
mov dword [edi + 0x10], edx
mov byte [edi + 0x15], al
xor edi, edi
mov dword [ebp - 0x10], edi
test ecx, ecx
jne 0x10004d50
xor bl, bl
jmp 0x10004d6f
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x10]
test eax, eax
mov edx, dword [ebp + 0xc]
setne bl
push edx
push esi
push dword [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.10007e00
add esp, 0xc
test bl, bl
je 0x10004d98
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100064a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov edx, dword [eax + 8]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push ebx
push 5
push ecx
mov eax, esp
mov dword [eax], esi
call edx
push ebx
push ecx
mov eax, esp
push dword [ebp + 8]
mov dword [eax], esi
call fcn.100043d0
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x14], 0
test bl, bl
jne 0x100064e8
mov byte [ebp - 8], bl
mov byte [esi], 0xe8
jmp 0x10006521
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
setne byte [ebp - 8]
mov byte [esi], 0xe8
test eax, eax
je 0x1000651e
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call ebx
mov ebx, dword [ebp + 0x14]
push ebx
push 4
push ecx
mov ecx, esp
inc esi
push ecx
mov dword [ecx], edi
mov ecx, esp
mov dword [ecx], esi
call fcn.10004280
mov eax, dword [ebp + 8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000c102
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10010625
push ebx
push esi
call fcn.10010551
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100104e7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100105d2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010624
push edi
push eax
call fcn.1000d5c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100105f2
call fcn.1000d570
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010623
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100104e7
add esp, 0x20
test eax, eax
jne 0x10010611
push edi
call fcn.1000d570
jmp 0x10010619
push ebx
call fcn.1000d570
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100182a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100182cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100182cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x401161
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call fcn.00401970
pop ecx
test al, al
je 0x4011a2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401197
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401193
cmp eax, 3
jne 0x4011a2
mov al, 1
pop ebp
ret
push dword [ebp + 0xc]
call fcn.00401970
pop ecx
jmp 0x401193
xor al, al
pop ebp
ret

Function at 0x4011a6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x43e3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
push esi
push 0x800
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x804]
push eax
call fcn.00401d37
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x10]
push str.CreateProcess___s___s_
push str.Common
call fcn.00401120
push 0x44
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.004098d0
add esp, 0x28
mov dword [ebp - 0x848], 0x44
lea eax, [ebp - 0x848]
push edi
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x40124b
push 0x42e580
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401692
add esp, 0xc
xor eax, eax
jmp 0x40124e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004078da
leave
ret 8

Function at 0x401355
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x43e3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x148]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4013b7
push str.GetTempPath
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401692
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004078da
leave
ret
lea eax, [ebp - 0x148]
push eax
call fcn.004017d1
pop ecx
test eax, eax
je 0x4013a6
xor esi, esi
xor ebx, ebx
test esi, esi
jne 0x401419
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0040125c
xor ecx, ecx
add esp, 0xc
inc ecx
test eax, eax
cmovne esi, ecx
inc ebx
cmp ebx, 0x19
jl 0x4013cc
test esi, esi
jne 0x401419
push dword [ebp - 0x250]
lea eax, [ebp - 0x148]
push eax
push str.getNewTempDirectory___GetTempFileName___s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401692
add esp, 0x14
jmp 0x4013a6
mov esi, 0x104
lea eax, [ebp - 0x24c]
push esi
push 0
push eax
call fcn.004098d0
push str..tmp
lea eax, [ebp - 0x44]
push eax
push 0x42e758
lea eax, [ebp - 0x148]
push eax
push str._s_s_s_s
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.00401bd7
push esi
lea eax, [ebp - 0x24c]
push eax
push edi
call fcn.0040c850
push 0
push edi
call fcn.00401875
push edi
call fcn.00401813
add esp, 0x40
jmp 0x4013a8
Function at 0x401478
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x43e3ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x854]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x846]
push eax
movzx eax, word [ebp - 0x848]
push eax
movzx eax, word [ebp - 0x84a]
push eax
movzx eax, word [ebp - 0x84c]
push eax
movzx eax, word [ebp - 0x84e]
push eax
movzx eax, word [ebp - 0x852]
push eax
movzx eax, word [ebp - 0x854]
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00401bd7
add esp, 0x28
lea eax, [ebp - 0x844]
test esi, esi
jne 0x401509
mov esi, 0x400
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x40151c
push esi
push 0
push edi
mov esi, 0x400
push esi
push eax
call fcn.00401bf3
add esp, 0x14
cmp dword [ebp + 0xc], 0
push 0x45
pop edi
push 0x49
pop eax
cmove edi, eax
cmp dword [0x43e004], 0xffffffff
je 0x4015d2
push 0x3e8
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x844]
cmp eax, 0x102
push ecx
mov edx, 0x42e580
mov ecx, str._LOG_MUTEX_LOCKED_
cmovne ecx, edx
push ecx
push dword [0x43e008]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
lea eax, [ebp - 0x44]
push eax
push str._s_t_c_t_d_t_s_t_s_t_s_s_r_n
lea eax, [ebp - 0x444]
push esi
push eax
call fcn.00401bd7
add esp, 0x28
xor esi, esi
push 2
push esi
push esi
push dword [0x43e004]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.0040c7c0
pop ecx
push eax
lea eax, [ebp - 0x444]
push eax
push dword [0x43e004]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4015d4
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push str..mailslotAVITrace
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401683
lea eax, [ebp - 0x844]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x43e008]
lea eax, [ebp - 0x44]
push edi
push eax
push str._s__c__s__4d___8s__s
lea eax, [ebp - 0x1d4]
push 0x190
push eax
call fcn.00401bd7
lea eax, [ebp - 0x1d4]
xor ebx, ebx
inc dword [0x43e00c]
push eax
mov byte [ebp - 0x45], bl
call fcn.0040c7c0
add esp, 0x28
inc eax
mov dword [0x43e018], eax
lea eax, [ebp - 0x858]
push ebx
push eax
push 0x10
push 0x43e00c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x858]
push eax
push dword [0x43e018]
lea eax, [ebp - 0x1d4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004078da
leave
ret
Function at 0x401773
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x43e3ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42e580
push esi
call fcn.00401120
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00401d37
lea eax, [ebp - 0x404]
push eax
push str.START___s_
push esi
call fcn.00401120
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.004078da
leave
ret

Function at 0x401813
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x401841
cmp esi, 0xb7
je 0x40186e
cmp esi, 5
je 0x40186e
push dword [ebp + 8]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.00401120
add esp, 0xc
test esi, esi
je 0x40186e
push 0x42e580
push esi
push edi
call fcn.00401692
add esp, 0xc
xor eax, eax
jmp 0x401871
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4018d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4018d4
cmp esi, 5
jne 0x4018ac
cmp byte [ebp + 0xc], 0
jne 0x4018d0
push edi
push dword [ebp + 8]
mov edi, str.Common
push str.Delete___s_
push edi
call fcn.00401120
push 0x42e580
push esi
push edi
call fcn.00401692
add esp, 0x18
pop edi
xor eax, eax
jmp 0x4018d7
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x401970
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401995
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401991
cmp eax, 3
jne 0x4019a6
mov al, 1
pop ebp
ret
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x401991
xor al, al
pop ebp
ret
Function at 0x4019aa
Capabilities:
Accept command line arguments
Create directory
Delete directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x43e3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x330], ebx
mov dword [0x43e008], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 0x104
mov esi, eax
push edi
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.004098d0
push esi
push str.MCAFEE_FRAMEWORK_LOG_MUTEX__ul
lea eax, [ebp - 0x124]
push edi
push eax
call fcn.00401c6e
add esp, 0x1c
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [section..data], eax
cmp eax, 0xffffffff
je 0x401b6e
mov esi, str._LOGDIR
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
je 0x401a9d
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040d07d
add esp, 0xc
test eax, eax
je 0x401a53
inc esi
cmp byte [esi], 0
jne 0x401a3a
cmp byte [esi], 0
je 0x401a9d
mov bl, byte [esi + 8]
xor eax, eax
cmp bl, 0x22
push 0x104
sete al
add esi, 8
add eax, esi
mov esi, 0x43f320
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x22
pop eax
push 0x20
pop ecx
cmp bl, al
cmovne eax, ecx
push eax
push esi
call fcn.0040cd89
mov ebx, dword [ebp - 0x330]
pop ecx
pop ecx
test eax, eax
je 0x401ad0
mov byte [eax], 0
jmp 0x401ad0
lea eax, [ebp - 0x228]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.McAfeeLogs
lea eax, [ebp - 0x228]
push eax
push 0x42e650
push esi
mov esi, 0x43f320
push esi
call fcn.00401bd7
add esp, 0x14
lea eax, [ebp - 0x334]
mov dword [ebp - 0x334], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push esi
push str._sFrmInst__s.log
lea eax, [ebp - 0x32c]
push 0x104
push eax
call fcn.00401bd7
push esi
call fcn.004010ad
add esp, 0x18
test eax, eax
je 0x401b1c
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x80
push 4
push ebx
push 3
push 0x40000000
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [0x43e004], eax
call fcn.004010ad
pop ecx
test eax, eax
je 0x401b6e
push dword [0x43e004]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
inc edi
cmp edi, 0x64
jge 0x401b7d
jmp 0x401b1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004078da
leave
ret
push 1
call fcn.0040ccf1
int3
Function at 0x4036ad
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x42cd4a
call fcn.00407999
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
push 0x20219
xor esi, esi
push esi
push str.SOFTWARENetwork_AssociatesePolicy_OrchestratorApplication_PluginsMAR_____1000
push 0x80000002
mov dword [ebp - 0x60], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40388b
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x64], 1
push eax
push esi
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], esi
push eax
push esi
push str.Version
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403882
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407926
mov edi, eax
mov eax, dword [ebp - 0x5c]
pop ecx
add eax, eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
push esi
push str.Version
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403877
push edi
lea ecx, [ebp - 0x28]
call fcn.004027b1
push str.2.3.0.243
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], esi
call fcn.004027b1
push str.2.4.0.158
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004027b1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00402f9c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ebx, ebx
inc ebx
push ebx
push str.2.3.0.0
push eax
call fcn.00404cf7
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x28]
jne 0x4037d9
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push esi
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00404cf7
add esp, 0xc
test eax, eax
jg 0x40385f
push str.Incompatible_MAR_version_2.3.0_detected
jmp 0x403851
cmp dword [ebp - 0x14], 8
push ebx
cmovae eax, dword [ebp - 0x28]
push str.2.4.0.0
push eax
call fcn.00404cf7
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x28]
jne 0x403820
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push esi
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00404cf7
add esp, 0xc
test eax, eax
jg 0x40385f
push str.Incompatible_MAR_version_2.4.0_detected
jmp 0x403851
cmp dword [ebp - 0x14], 8
push ebx
cmovae eax, dword [ebp - 0x28]
push str.2.4.0.0
push eax
call fcn.00404cf7
add esp, 0xc
test eax, eax
jle 0x40384c
push str.Greater_version_of_MAR_detected
push str.Stub
call fcn.00401120
jmp 0x40385d
push str.Incompatible_MAR_version_detected
push str.Stub
call fcn.00401120
mov esi, ebx
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0040485b
lea ecx, [ebp - 0x58]
call fcn.0040485b
lea ecx, [ebp - 0x28]
call fcn.0040485b
test edi, edi
je 0x403882
push edi
call fcn.0040792f
pop ecx
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00407948
ret