joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x1008b9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008b9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x1008cd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x100aa73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x100aa73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x100a9538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008cd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4130d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4442e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x4130f9
xor eax, eax
jmp 0x413155
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x413126
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x413126
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x4131dc
cmp dword [edi + 0x4c], 0
je 0x41314f
mov ecx, edi
call fcn.00412d87
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x413165
push dword [edi + 0x4c]
push ebx
call fcn.0041289f
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x413154
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041417d
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4331c0]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x4131af
sub eax, 1
je 0x4131af
dec eax
sub eax, 1
jne 0x41314f
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x413141
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4131cc
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0041d049
add esp, 0x10
cmp esi, eax
jne 0x41314f
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x41314f
mov ax, bx
jmp 0x413154

Function at 0x425acf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00425780

Function at 0x425ada
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042590a

Function at 0x42a756
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a2a9
Function at 0x401141
Capabilities:
Check if file exists
Copy file

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

Function at 0x401186
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x43c3ac]
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.00401d1a
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x10]
push str.CreateProcess___s___s_
push str.Common
call fcn.00401100
push 0x44
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.00409440
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 0x40122b
push 0x42c270
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.0040167c
add esp, 0xc
xor eax, eax
jmp 0x40122e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040748a
leave
ret 8

Function at 0x401335
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x43c3ac]
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 0x401397
push str.GetTempPath
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.0040167c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040748a
leave
ret
lea eax, [ebp - 0x148]
push eax
call fcn.004017bb
pop ecx
test eax, eax
je 0x401386
xor esi, esi
xor ebx, ebx
test esi, esi
jne 0x4013f9
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0040123c
xor ecx, ecx
add esp, 0xc
inc ecx
test eax, eax
cmovne esi, ecx
inc ebx
cmp ebx, 0x19
jl 0x4013ac
test esi, esi
jne 0x4013f9
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.0040167c
add esp, 0x14
jmp 0x401386
mov esi, 0x104
lea eax, [ebp - 0x24c]
push esi
push 0
push eax
call fcn.00409440
push str..tmp
lea eax, [ebp - 0x44]
push eax
push 0x42c448
lea eax, [ebp - 0x148]
push eax
push str._s_s_s_s
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.00401bba
push esi
lea eax, [ebp - 0x24c]
push eax
push edi
call fcn.0040c3a0
push 0
push edi
call fcn.0040185f
push edi
call fcn.004017fd
add esp, 0x40
jmp 0x401388
Function at 0x401458
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x43c3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x854]
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.00401bba
add esp, 0x28
lea eax, [ebp - 0x844]
test esi, esi
jne 0x4014ef
mov esi, 0x400
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x401502
push esi
push 0
push edi
mov esi, 0x400
push esi
push eax
call fcn.00401bd6
add esp, 0x14
cmp dword [ebp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x45
pop edi
push 0x49
pop eax
cmove edi, eax
cmp dword [0x43c004], 0xffffffff
je 0x4015be
push 0x3e8
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x844]
cmp eax, 0x102
push ecx
mov edx, 0x42c270
mov ecx, str._LOG_MUTEX_LOCKED_
cmovne ecx, edx
push ecx
push dword [0x43c008]
push dword [ebp - 0x858]
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.00401bba
add esp, 0x28
push 2
push 0
push 0
push dword [0x43c004]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.0040c310
pop ecx
push eax
lea eax, [ebp - 0x444]
push eax
push dword [0x43c004]
call ebx
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str..mailslotAVITrace
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40166d
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x43c008]
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.00401bba
inc dword [0x43c00c]
lea eax, [ebp - 0x1d4]
push eax
mov byte [ebp - 0x45], 0
call fcn.0040c310
add esp, 0x28
inc eax
mov dword [0x43c018], eax
lea eax, [ebp - 0x858]
push 0
push eax
push 0x10
push 0x43c00c
push esi
call ebx
push 0
lea eax, [ebp - 0x858]
push eax
push dword [0x43c018]
lea eax, [ebp - 0x1d4]
push eax
push esi
call ebx
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.0040748a
leave
ret
Function at 0x40175d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x43c3ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42c270
push esi
call fcn.00401100
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00401d1a
lea eax, [ebp - 0x404]
push eax
push str.START___s_
push esi
call fcn.00401100
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.0040748a
leave
ret

Function at 0x4017fd
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 0x40182b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40182b
cmp esi, 0xb7
je 0x401858
cmp esi, 5
je 0x401858
push dword [ebp + 8]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.00401100
add esp, 0xc
test esi, esi
je 0x401858
push 0x42c270
push esi
push edi
call fcn.0040167c
add esp, 0xc
xor eax, eax
jmp 0x40185b
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40185f
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 0x4018be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4018be
cmp esi, 5
jne 0x401896
cmp byte [ebp + 0xc], 0
jne 0x4018ba
push edi
push dword [ebp + 8]
mov edi, str.Common
push str.Delete___s_
push edi
call fcn.00401100
push 0x42c270
push esi
push edi
call fcn.0040167c
add esp, 0x18
pop edi
xor eax, eax
jmp 0x4018c1
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x40195a
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 0x40197f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40197b
cmp eax, 3
jne 0x401990
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 0x40197b
xor al, al
pop ebp
ret
Function at 0x401994
Capabilities:
Accept command line arguments
Create directory
Delete directory
Get common file path
Get hostname
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x43c3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x334], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [0x43c008], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, 0x104
mov esi, eax
push ebx
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00409440
push esi
push str.MCAFEE_FRAMEWORK_LOG_MUTEX__ul
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00401c51
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 0x401b52
push edi
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 0x401a86
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040cb15
add esp, 0xc
test eax, eax
je 0x401a3d
inc esi
cmp byte [esi], 0
jne 0x401a24
cmp byte [esi], 0
je 0x401a86
mov bl, byte [esi + 8]
xor eax, eax
cmp bl, 0x22
push 0x104
sete al
add esi, 8
add eax, esi
mov esi, 0x43d320
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.0040c828
mov ebx, 0x104
pop ecx
pop ecx
test eax, eax
je 0x401ab4
mov byte [eax], 0
jmp 0x401ab4
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.McAfeeLogs
lea eax, [ebp - 0x228]
mov esi, 0x43d320
push eax
push 0x42c340
push ebx
push esi
call fcn.00401bba
add esp, 0x14
lea eax, [ebp - 0x330]
mov dword [ebp - 0x330], 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 ebx
push eax
call fcn.00401bba
push esi
call fcn.0040108d
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x18
test eax, eax
je 0x401afe
push esi
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x80
push 4
push dword [ebp - 0x334]
lea eax, [ebp - 0x32c]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [0x43c004], eax
call fcn.0040108d
pop ecx
test eax, eax
je 0x401b51
push dword [0x43c004]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
inc edi
cmp edi, 0x64
jge 0x401b60
jmp 0x401afe
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040748a
leave
ret
push 1
call fcn.0040c77f
int3
Function at 0x40353e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x5c
mov eax, 0x42ae57
call fcn.00407549
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x60]
push eax
push 0x20219
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 0x40371d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x5c]
push eax
push esi
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 1
push eax
push esi
push str.Version
push dword [ebp - 0x60]
mov dword [ebp - 0x5c], esi
call ebx
test eax, eax
jne 0x403714
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.004074d6
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 ebx
test eax, eax
jne 0x403709
push edi
lea ecx, [ebp - 0x28]
call fcn.0040276e
push str.2.3.0.243
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], esi
call fcn.0040276e
xor ebx, ebx
lea ecx, [ebp - 0x40]
inc ebx
push str.2.4.0.158
mov byte [ebp - 4], bl
call fcn.0040276e
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call fcn.00402eb6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push str.2.3.0.0
push eax
call fcn.00404b68
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x28]
jne 0x40366b
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.00404b68
add esp, 0xc
test eax, eax
jg 0x4036f1
push str.Incompatible_MAR_version_2.3.0_detected
jmp 0x4036e3
cmp dword [ebp - 0x14], 8
push ebx
cmovae eax, dword [ebp - 0x28]
push str.2.4.0.0
push eax
call fcn.00404b68
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x28]
jne 0x4036b2
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.00404b68
add esp, 0xc
test eax, eax
jg 0x4036f1
push str.Incompatible_MAR_version_2.4.0_detected
jmp 0x4036e3
cmp dword [ebp - 0x14], 8
push ebx
cmovae eax, dword [ebp - 0x28]
push str.2.4.0.0
push eax
call fcn.00404b68
add esp, 0xc
test eax, eax
jle 0x4036de
push str.Greater_version_of_MAR_detected
push str.Stub
call fcn.00401100
jmp 0x4036ef
push str.Incompatible_MAR_version_detected
push str.Stub
call fcn.00401100
mov esi, ebx
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004046d1
lea ecx, [ebp - 0x58]
call fcn.004046d1
lea ecx, [ebp - 0x28]
call fcn.004046d1
test edi, edi
je 0x403714
push edi
call fcn.004074df
pop ecx
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.004074f8
ret
Function at 0x403725
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x43c3ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x94
lea eax, [ebp - 0x98]
push esi
push 0
push eax
call fcn.00409440
add esp, 0xc
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0040748a
leave
ret

Function at 0x404715
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43c3ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, str.NAIMServInst
mov dword [0x43e768], eax
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push dword [0x43e768]
mov esi, eax
lea eax, [ebp - 0x104]
push edi
push str._s_error:__d
push 0x100
push eax
call fcn.00401c51
lea eax, [ebp - 0x104]
add esp, 0x14
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
test esi, esi
je 0x40479e
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040748a
leave
ret