joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e430
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440578
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], 0
push 8
lea ecx, [ebp - 0x18]
call fcn.00409db0
lea ecx, [ebp - 0x18]
call fcn.0040a100
mov dword [ebp - 4], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0x128
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e4d9
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040b090
jmp 0x40e4f1
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40e4ac
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040a0d0
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409f80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret
Function at 0x40f280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov ecx, 0x45bfa4
call fcn.004140b0
push 0
push 0
push 0
push 0x40f0e0
push 0
push 0
call fcn.00429421
add esp, 0x18
push eax
mov ecx, 0x45bfa0
call fcn.004140b0
mov ecx, 0x45bfa0
call fcn.0040a610
test eax, eax
je 0x40f2d6
mov dword [ebp - 4], 1
jmp 0x40f2dd
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40f2f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, 0x45bfa0
call fcn.0040a610
test eax, eax
je 0x40f3ec
mov dword [ebp - 8], 0x4519d0
push 0x5c
mov eax, dword [ebp - 8]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f331
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x40f337
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
push str.Notify_agent_state_monitor_thread_exit
push 0x2ca
mov eax, dword [ebp - 0xc]
push eax
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor ecx, ecx
jne 0x40f308
mov ecx, 0x45bfa4
call fcn.0040a610
test eax, eax
je 0x40f373
mov ecx, 0x45bfa4
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
mov ecx, 0x45bfa0
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40f3ec
mov dword [ebp - 0x14], 0x451a38
push 0x5c
mov edx, dword [ebp - 0x14]
push edx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f3b6
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x40f3bc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push str.Kill_agent_state_monitor_thread
push 0x2d1
mov edx, dword [ebp - 0x18]
push edx
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor eax, eax
jne 0x40f38d
push 0xffffffffffffffff
mov ecx, 0x45bfa0
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, 0x45bfa4
call fcn.0040bf60
mov ecx, 0x45bfa0
call fcn.0040bf60
mov esp, ebp
pop ebp
ret

Function at 0x40f790
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 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
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [ebp - 0x28]
cmp edx, 9
je 0x40f7df
movzx eax, word [ebp - 0x28]
cmp eax, 6
je 0x40f7df
mov byte [ebp - 0x29], 0
jmp 0x40f7e3
mov byte [ebp - 0x29], 1
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret
Function at 0x410680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4106cc
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4106b3
mov byte [ebp - 1], 1
jmp 0x4106b7
mov byte [ebp - 1], 0
mov dl, byte [ebp - 1]
mov byte [ebp - 2], dl
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 2]
jmp 0x4106ce
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4106e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4106ff
cmp dword [ebp + 0xc], 0
jne 0x410704
jmp 0x4108ca
push 0x128
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.00423e70
add esp, 0xc
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x4107a9
mov dword [ebp - 0x13c], 0x452660
push 0x5c
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x410778
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x140], edx
jmp 0x410784
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x140], eax
push str.CreateToolhelp32Snapshot_fail__n
push 0x425
mov ecx, dword [ebp - 0x140]
push ecx
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor edx, edx
jne 0x41073d
jmp 0x4108ca
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x4108bd
mov dword [ebp - 0x130], 0
jmp 0x4107eb
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp + 0xc]
jae 0x41089e
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00414070
add esp, 8
test eax, eax
jne 0x410899
mov dword [ebp - 0x148], 0x4526d8
push 0x5c
mov edx, dword [ebp - 0x148]
push edx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x410855
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x14c], eax
jmp 0x410861
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x124]
push edx
push str.Kill_process__the_process_id_is__d._n
push 0x430
mov eax, dword [ebp - 0x14c]
push eax
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor ecx, ecx
jne 0x41081a
mov edx, dword [ebp - 0x124]
push edx
call fcn.00410680
add esp, 4
jmp 0x41089e
jmp 0x4107dc
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov dword [ebp - 0x150], eax
jmp 0x4107c3
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret
Function at 0x410900
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44069c
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00423e70
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x451bcc
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 4
lea ecx, [ebp - 0x124]
call fcn.00409db0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x124]
call fcn.00412170
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x120]
call fcn.00409db0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x120]
call fcn.00412170
mov byte [ebp - 4], 1
push str.windivert32.sys
lea ecx, [ebp - 0x124]
call fcn.00412090
push str.windivert64.sys
lea ecx, [ebp - 0x120]
call fcn.00412090
push 0x451c44
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 4
lea ecx, [ebp - 0x11c]
call fcn.00409db0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00412170
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x118]
call fcn.00409db0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00412170
mov byte [ebp - 4], 3
call fcn.00414560
test eax, eax
je 0x410a53
push str.syswindivertwindivert32.sys
lea ecx, [ebp - 0x11c]
call fcn.00412090
push str.syswindivertwindivert64.sys
lea ecx, [ebp - 0x118]
call fcn.00412090
jmp 0x410a73
push str.sys_sangforwindivert32.sys
lea ecx, [ebp - 0x11c]
call fcn.00412090
push str.sys_sangforwindivert64.sys
lea ecx, [ebp - 0x118]
call fcn.00412090
push 0
lea ecx, [ebp - 0x124]
call fcn.0040a610
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea ecx, [ebp - 0x120]
call fcn.0040a610
push eax
lea ecx, [ebp - 0x118]
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00412150
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call fcn.00412150
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00412150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret
Function at 0x410b10
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc
lea ecx, [ebp - 0x10]
call fcn.00409db0
push 0
lea ecx, [ebp - 0x10]
call fcn.00414040
push 0
push 0
push 0x2011f
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.00413f00
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x410bb8
push str.SangforAccessClient_is1
lea ecx, [ebp - 0x10]
call fcn.0040a610
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x14], eax
push str.AccessClient_is1
lea ecx, [ebp - 0x10]
call fcn.0040a610
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x14], eax
push str.Access_Client_is1
lea ecx, [ebp - 0x10]
call fcn.0040a610
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x14], eax
push str.BYOD_is1
lea ecx, [ebp - 0x10]
call fcn.0040a610
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
call fcn.00414020
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret
Function at 0x410db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4406db
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x124], 0
push 4
lea ecx, [ebp - 0x114]
call fcn.00409db0
push 0x4522a4
lea ecx, [ebp - 0x114]
call fcn.00412170
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsSacService.dll
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x410e6e
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004121f0
mov edx, dword [ebp - 0x124]
or edx, 1
mov dword [ebp - 0x124], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00412150
mov eax, dword [ebp + 8]
jmp 0x410f42
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00423e70
add esp, 0xc
mov dword [ebp - 0x118], 0x100
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x11c]
push eax
push 0
push str.QuitPassword
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x410efb
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp + 8]
call fcn.004121f0
mov eax, dword [ebp - 0x124]
or eax, 1
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00412150
mov eax, dword [ebp + 8]
jmp 0x410f42
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x114]
call fcn.00412110
push 3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.00411f30
mov eax, dword [ebp - 0x124]
or eax, 1
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00412150
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret
Function at 0x413500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x413524
xor eax, eax
jmp 0x4135a4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41353b
xor eax, eax
jmp 0x4135a4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x413587
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x413587
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x41355e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x413593
xor eax, eax
jmp 0x4135a4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4135a1
xor eax, eax
jmp 0x4135a4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4150e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4407e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x24], 0
jne 0x41511e
mov eax, 1
jmp 0x415228
push 4
lea ecx, [ebp - 0x14]
call fcn.00409db0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x20
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00415ee0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040a610
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x415177
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412150
mov eax, dword [ebp - 0x24]
jmp 0x415228
push 4
lea ecx, [ebp - 0x18]
call fcn.00409db0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x18
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00415ee0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040a610
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4151d6
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412150
mov eax, dword [ebp - 0x28]
jmp 0x415228
lea ecx, [ebp - 0x18]
call fcn.0040a610
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a610
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004153a0
test eax, eax
jne 0x4151fd
mov dword [ebp - 0x20], 1
jmp 0x415204
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412150
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret 8
Function at 0x415250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4407e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.00409db0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x20
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00415ee0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040a610
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4152d4
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412150
mov eax, dword [ebp - 0x24]
jmp 0x415385
push 4
lea ecx, [ebp - 0x18]
call fcn.00409db0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00415ee0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040a610
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x415333
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412150
mov eax, dword [ebp - 0x28]
jmp 0x415385
lea ecx, [ebp - 0x18]
call fcn.0040a610
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a610
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004153a0
test eax, eax
jne 0x41535a
mov dword [ebp - 0x20], 1
jmp 0x415361
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412150
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret 8
Function at 0x415bd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 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
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [ebp - 0x28]
cmp edx, 9
je 0x415c25
movzx eax, word [ebp - 0x28]
cmp eax, 6
je 0x415c25
mov dword [ebp - 0x2c], 0
jmp 0x415c2c
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret

Function at 0x415c40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 4
lea ecx, [ebp - 8]
call fcn.00409db0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x14
push edx
lea eax, [ebp - 8]
push eax
call fcn.00415ee0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.0040a610
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
call fcn.00412150
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret

Function at 0x417c40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.00423e70
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x108], ecx
lea edx, [ebp + 0xc]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0041e780
add esp, 0xc
mov dword [ebp - 0x110], 0
mov eax, 4
imul ecx, eax, 0
lea edx, [ebp - 0x104]
mov dword [ebp + ecx - 0x108], edx
push str.byod_monitor
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x417d07
push 0
mov eax, 4
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x108]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret
Function at 0x417d20
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x417da7
mov dword [ebp - 0x40], 0x453e38
push 0x5c
mov eax, dword [ebp - 0x40]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x417d78
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x44], ecx
jmp 0x417d7e
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager:_d
push 0x3c
mov eax, dword [ebp - 0x44]
push eax
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor ecx, ecx
jne 0x417d4f
mov eax, dword [ebp - 0x30]
jmp 0x417e6a
push 0xf01ff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x417e22
mov dword [ebp - 0x4c], 0x453e98
push 0x5c
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x417dec
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x50], edx
jmp 0x417df2
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService:_d
push 0x42
mov ecx, dword [ebp - 0x50]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x417dc3
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
jmp 0x417e6a
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0x24
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
cmp dword [ebp - 0x28], 2
je 0x417e4c
mov dword [ebp - 0x30], 2
jmp 0x417e53
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret