joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010b01
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [0x103b5d4]
xor ebx, ebx
push ebx
push 6
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov edi, 0x148
cmp esi, ebx
je 0x1017339
push edi
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x10173af
cmp dword [ebp - 4], ebx
jl 0x1010b7a
mov dword [0x103a058], esi
mov dword [0x103a05c], eax
cmp dword [ebp - 4], ebx
jl 0x10173c7
mov eax, dword [section..data]
pop edi
pop esi
pop ebx
cmp eax, section..data
je 0x1010b75
test byte [eax + 0x1c], 4
jne 0x10173db
mov eax, dword [ebp - 4]
leave
ret
cmp esi, ebx
jne 0x10173bb
jmp 0x1010b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x101739a
push 0x20015
lea eax, [ebp - 0x24]
push eax
call fcn.0101f3dc
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x10173c7
push dword [0x103b5d4]
lea eax, [ebp - 0x24]
push edi
push ebx
mov dword [ebp - 0xc], eax
push 0x8000004
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
jne 0x101738f
mov dword [ebp - 4], 0x80041003
push dword [ebp - 0x14]
call fcn.01001475
pop ecx
jmp 0x10173a1
mov dword [ebp - 4], 0x80041003
cmp dword [ebp - 4], ebx
jge 0x1010b2f
jmp 0x1010b7a
mov dword [ebp - 4], 0x80041003
jmp 0x1010b43
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010b53
push dword [ebp - 4]
call sub.wbemcomn.dll_class_CMemoryLog____stdcall_GetMemLogObject_void_
mov ecx, eax
call sub.wbemcomn.dll_public:_void___thiscall_CMemoryLog::Write_long_int_
jmp 0x1010b5c
cmp byte [eax + 0x19], 2
jb 0x1010b75
push dword [ebp - 4]
push 0x101c478
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102018f
jmp 0x1010b75

Function at 0x1011435
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x10114d0
push 0x80000002
mov dword [0x103a034], 0x40000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1011495
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x103a034
lea eax, [ebp - 0xc]
push eax
push 0
push 0x101149c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x103a034]
leave
ret
Function at 0x101166f
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x3c], 1
jne 0x101abad
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call 0x1007463
mov dword [0x103a0a4], eax
cmp dword [0x103a098], 0
jne 0x101abfe
push eax
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.01011837
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
call fcn.01011ca4
test eax, eax
jl 0x10074c8
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.01011b55
test eax, eax
jne 0x10074c3
push dword [ebp + 8]
call fcn.0101093d
mov dword [0x103a038], eax
test eax, eax
je 0x10074b5
push dword [ebp - 4]
call fcn.010070f7
push dword [0x103a038]
push dword [ebp + 8]
call fcn.010075fc
call fcn.01007cd3
call fcn.01007ac3
xor eax, eax
leave
ret 0x10
call fcn.01010f9d
push 0x58
push 0x10117d8
call fcn.01001eb0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x103a108
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x101ab5e
xor esi, esi
inc esi
mov eax, dword [0x103a0dc]
cmp eax, esi
je 0x101ab7c
mov eax, dword [0x103a0dc]
test eax, eax
jne 0x101180f
mov dword [0x103a0dc], esi
push 0x10117d4
push 0x10117c8
call fcn.01011646
pop ecx
pop ecx
test eax, eax
jne 0x101ac22
mov eax, dword [0x103a0dc]
cmp eax, esi
jne 0x1011720
push 0x10117c4
push 0x101176c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x103a0dc], 2
test ebx, ebx
jne 0x101172c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x103b760], 0
jne 0x101ab89
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x1011800
cmp al, 0x22
je 0x101abb6
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x101abc6
inc esi
jmp 0x1011740
test al, al
je 0x101181a
cmp dword [ebp - 0x1c], 0
je 0x101181a
jmp 0x101174d
mov dword [0x103bc20], esi
jmp 0x10116fc
mov al, byte [esi]
test al, al
je 0x100742a
cmp al, 0x20
ja 0x100742a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101181a
cmp eax, esi
jne 0x101ab6c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10116c3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10116ae
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10116fc
push 0x103b760
call fcn.01031090
pop ecx
test eax, eax
je 0x1011739
push 0
push 2
push 0
call dword [0x103b760]
jmp 0x1011739
movzx eax, word [ebp - 0x38]
jmp 0x1007437
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1011755
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1011768
cmp dword [0x103bc20], 0
jne 0x101ac0d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x103a0a4]
jmp 0x101ac2e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001f00
ret
Function at 0x1011b55
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, edi
je 0x1011bf8
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcstok]
push esi
mov esi, 0x1011c34
push esi
push eax
call ebx
push esi
push edi
call ebx
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1011bf6
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x1011c1c
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101669a
push 0xffffffffffffffff
push 0x1011c00
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x10166ab
push 0xffffffffffffffff
push 0x1011c3c
push 0xffffffffffffffff
push edi
xor edi, edi
inc edi
push edi
push 0x7f
call esi
cmp eax, 2
je 0x1012434
push 0x1011c34
push 0
call ebx
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1011b98
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x1011be5
mov dword [ebp - 4], 1
call fcn.0101f19b
jmp 0x1011bf6
mov dword [ebp - 4], 1
call fcn.0101f121
jmp 0x1011bf6

Function at 0x1011fed
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push 0x1012088
push 0x80000002
mov dword [0x103a0d8], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1012059
and dword [ebp - 8], eax
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x1012060
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101ae1f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x103a0d8]
leave
ret
cmp dword [ebp - 4], esi
jne 0x101204f
mov eax, dword [ebp - 8]
shl eax, 0xa
mov dword [0x103a0d8], eax
jmp 0x101204f

Function at 0x10131c6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
lea ebx, [esi + 0x50]
push ebx
push 0
push esi
push 0x1007526
push dword [esi + 0x58]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x101717e
push edi
push 1
mov edi, 0x103a10c
push edi
call fcn.01002af0
mov ecx, dword [0x103a050]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.0101291b
push edi
mov esi, eax
call fcn.01002ab0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov esi, 0x80000001
jmp 0x1013227
Function at 0x101d8ec
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1ac], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.msvcrt.dll__itow]
mov dword [ebp - 0x1b0], eax
push 0xa
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp + 0xc]
call esi
push 0xa
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x10]
call esi
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1b0]
call esi
add esp, 0x24
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1bc], eax
push ebx
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x1c0]
push eax
push ebx
push 4
push ebx
push 0xc00015ec
push ebx
push 2
push dword [0x103a060]
mov dword [ebp - 0x1c0], edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x101d9b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101d9ad
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010086a6
leave
ret 0xc
Function at 0x101eed1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x20c], ecx
call fcn.01008981
xor eax, eax
cmp edi, eax
je 0x101ef36
push 0x1008978
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.0100c2a5
push edi
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.0100c2a5
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x204]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x101ef61
xor eax, eax
jmp 0x101ef9b
test ebx, ebx
je 0x101ef8c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x101ef5d
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010086a6
leave
ret 0x10

Function at 0x101efb1
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x10]
lea edi, [ebp - 0x414]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x80
push esi
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x100b8e4
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01008981
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.0100c2a5
push 0x101c45c
lea eax, [ebp - 0x104]
push eax
push 0x101f110
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0101ee72
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x204]
push eax
mov ebx, 0x80000000
push ebx
call edi
cmp dword [ebp + 8], 0
je 0x101f0b9
push 0x101c44c
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.01008981
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.0100c2a5
push 0
push 0
lea eax, [ebp - 0x304]
push eax
push ebx
call edi
push 0x100b8c8
lea eax, [ebp - 0x104]
push eax
push 0x101f110
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0101ee72
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
cmp dword [ebp + 0xc], 0
je 0x101f0ee
push 0x101c42c
lea eax, [ebp - 0x104]
push eax
push 0x101f110
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0101ee72
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.010086a6
leave
ret 0x18
Function at 0x1035c83
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1035cca
cmp dword [ebp - 0x108], 2
jne 0x1035cca
cmp dword [ebp - 0x114], 5
jb 0x1035cca
xor eax, eax
inc eax
jmp 0x1035ccc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010086a6
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
call 0x8002b1f
ret
Function at 0xbf21e5
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp], edi
push edx
mov edx, dword [esp + 3]
pop edx
pushfd
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x76]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
mov edi, 0xbf9ccc
push 0x7ac8
cmp edi, dword [esp]
pushfd
not dword [esp + 4]
inc dword [esp + 4]
add edi, dword [esp + 4]
popfd
lea esp, [esp + 4]
popfd
push edi
mov edi, dword [esp + 4]
lea edi, [edi + 0x28]
xchg dword [esp + 4], edi
mov dword [esp + 4], edi
mov edi, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], edi
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x23]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
ret
Function at 0x1002673b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x299abd0
lea esp, [esp + 0xc]
je 0x100357e0
sub dx, bp
mov esi, dword [eax + 0x3c]
btc dx, 4
shrd dx, ax, 0xa
add dx, 0x58fa
add esi, eax
btc edx, 0x1c
ror dh, cl
shr dh, cl
not dl
mov edx, dword [esi + 0x78]
clc
clc
clc
test edx, edx
pushfd
pushfd
push dword [esp]
push edx
lea esp, [esp + 0x10]
je 0x100357e0
lea ecx, [edx*4 - 0x2e63cfdb]
add edx, eax
shrd cx, ax, cl
rcl cx, 1
mov ecx, dword [esi + 0x7c]
clc
add ecx, edx
cmp ch, 0x4a
mov dword [ebp - 0x10], ecx
shld ecx, eax, 9
pushal
call fcn.10021b06
add byte [eax], al
push esp
jb 0x100204fa
imul ebp, dword [esi + 0x61], 0x72506574
outsd dx, dword [esi]
arpl word [ebp + 0x73], sp
jae 0x1002049a
or dh, cl
xor al, 0x39
fisub word [edx + ebp*8 + 0x7587a18b]
cwde
std
les ebx, [edx + 0x15c71784]
cli
iretd
jmp 0x10020419

Function at 0x1002a66e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x10021d4f
push 0x58e68b0
lea esp, [esp + 4]
je 0x100357e0
rcr dx, 0xb
bt sp, dx
bt bp, cx
mov esi, dword [eax + 0x3c]
xor dx, dx
btc edx, ebx
sal dh, 6
add esi, eax
neg dh
mov edx, dword [esi + 0x78]
pushfd
mov byte [esp], bh
test edx, edx
call fcn.1002b20d
add byte [eax], al
inc ebx
popal
insb byte es:[edi], dx
insb byte es:[edi], dx
dec esi
js 0x10026980
dec eax
outsd dx, dword [esi]
outsd dx, dword [esi]
imul eax, dword [ebp + 0x78], 0
invalid
bts ax, 6
clc
mov dword [esp], edx
shr al, cl
dec ah
xor ax, di
bsr eax, eax
mov eax, dword [ebp + 8]
ja 0x100210d1
test ecx, 0x25dd6c41
test eax, eax
jmp 0x100268c9

Function at 0x100354be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp sp, di
push dword [edi]
pop dword [esp + 0x2c]
clc
test ch, al
call fcn.10024c42
add byte [eax], al
push esi
imul esi, dword [edx + 0x74], 0x506c6175
jb 0x1003554a
je 0x10035542
arpl word [ebp + eax*2 + 0x78], si
add bh, bh
xor byte [edi - 0x63d3dbbc], cl
push dword [esp + 4]
push dword [esp + 0x34]
ret 0x38
and al, 0xc0
enter 0x6003, 0x66
test ecx, esi
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e8
mov eax, dword [0x40f3f0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x9e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x9dc]
push eax
movzx eax, word [ebp - 0x9de]
push eax
movzx eax, word [ebp - 0x9e0]
push eax
movzx eax, word [ebp - 0x9e2]
push eax
movzx eax, word [ebp - 0x9e6]
push eax
movzx eax, word [ebp - 0x9e8]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00403161
add esp, 0x24
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x5d4]
sete bl
cmp dword [ebp + 0x14], 0
lea ebx, [ebx*4 + 0x45]
jne 0x40108f
push 0x400
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4010a3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x400
push eax
call fcn.0040310b
add esp, 0x10
cmp dword [0x40f044], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x401154
push 0x3e8
push dword [0x40f040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov eax, str._LOG_MUTEX_LOCKED_
je 0x4010de
mov eax, 0x40c1a8
lea ecx, [ebp - 0x5d4]
push ecx
push eax
push dword [0x40f048]
push dword [ebp + 8]
call edi
push eax
movsx eax, bl
push eax
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 - 0x9d4]
push 0x400
push eax
call fcn.00403161
add esp, 0x28
push 2
push 0
push 0
push dword [0x40f044]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x9d4]
push eax
call fcn.00403080
pop ecx
push eax
lea eax, [ebp - 0x9d4]
push eax
push dword [0x40f044]
call esi
push dword [0x40f040]
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]
cmp eax, 0xffffffff
mov dword [ebp - 0x9d8], eax
je 0x40120c
lea eax, [ebp - 0x5d4]
push eax
push dword [ebp + 8]
call edi
push eax
push dword [0x40f048]
movsx eax, bl
push eax
lea eax, [ebp - 0x44]
push eax
push str._s__c__s__4d___8s__s
lea eax, [ebp - 0x1d4]
push 0x190
push eax
call fcn.00403161
inc dword [0x40f04c]
lea eax, [ebp - 0x1d4]
push eax
mov byte [ebp - 0x45], 0
call fcn.00403080
add esp, 0x28
inc eax
push 0
mov dword [0x40f058], eax
lea eax, [ebp + 0x14]
push eax
push 0x10
push 0x40f04c
push dword [ebp - 0x9d8]
call esi
push 0
lea eax, [ebp + 0x14]
push eax
push dword [0x40f058]
lea eax, [ebp - 0x1d4]
push eax
push dword [ebp - 0x9d8]
call esi
push dword [ebp - 0x9d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004031e9
leave
ret
Function at 0x401321
Capabilities:
Accept command line arguments
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x40f3f0]
push str.MCAFEE_FRAMEWORK_LOG_MUTEX
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
push 0
mov dword [0x40f048], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [0x40f040], eax
je 0x401459
push esi
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 0x4013c7
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00402f0f
add esp, 0xc
test eax, eax
je 0x40138a
inc esi
cmp byte [esi], 0
jne 0x401371
cmp byte [esi], 0
je 0x4013c7
add esi, 8
cmp byte [esi], 0x22
push ebx
mov bl, 0x20
jne 0x40139e
add bl, 2
inc esi
mov edi, 0x104
push edi
push esi
mov esi, 0x40ffa0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
movsx eax, bl
push eax
push esi
call fcn.00402d30
test eax, eax
pop ecx
pop ecx
pop ebx
je 0x4013fa
mov byte [eax], 0
jmp 0x4013fa
lea eax, [ebp - 0x124]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.McAfeeLogs
lea eax, [ebp - 0x124]
push eax
push 0x40c250
push edi
mov esi, 0x40ffa0
push esi
call fcn.00403161
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x20]
push eax
push esi
push str._sFrmInst__s.log
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00403161
add esp, 0x14
push 0
push 0x80
push 4
push dword [ebp + 0x10]
lea eax, [ebp - 0x228]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
mov dword [0x40f044], eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004031e9
leave
ret

Function at 0x401463
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x40f3f0]
push 0x40c1a8
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00401231
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0040190c
lea eax, [ebp - 0x404]
push eax
push str.START___s_
push dword [ebp + 8]
call fcn.00401231
mov ecx, dword [ebp - 4]
add esp, 0x18
call fcn.004031e9
leave
ret

Function at 0x401578
Capabilities:
Create directory

Disassembly:
push esi
push edi
xor esi, esi
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4015a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4015a4
cmp esi, 0xb7
je 0x4015d2
cmp esi, 5
je 0x4015d2
push dword [esp + 0xc]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.00401231
add esp, 0xc
test esi, esi
je 0x4015d2
push 0x40c1a8
push esi
push edi
call fcn.00401249
add esp, 0xc
xor eax, eax
jmp 0x4015d5
xor eax, eax
inc eax
pop edi
pop esi
ret