joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x448], 0x44
push 0x40
push 0
lea ecx, [ebp - 0x444]
push ecx
call fcn.00423990
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x404]
push edx
call fcn.00423990
add esp, 0xc
push str.byod_agent
push str.__s.exe_
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.libnac_base.dll_str_snprintf]
add esp, 0x10
mov dword [ebp - 0x41c], 1
xor ecx, ecx
mov word [ebp - 0x418], cx
cmp dword [0x45ae64], 0
jne 0x40c977
mov edx, dword [ebp - 0x45c]
or edx, 0x8000000
mov dword [ebp - 0x45c], edx
mov dword [ebp - 0x464], 0x44ef68
push 0x5c
mov eax, dword [ebp - 0x464]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0
je 0x40c9b2
mov ecx, dword [ebp - 0x460]
add ecx, 1
mov dword [ebp - 0x468], ecx
jmp 0x40c9be
mov edx, dword [ebp - 0x464]
mov dword [ebp - 0x468], edx
lea eax, [ebp - 0x404]
push eax
push str.create_process_cmd:_s_n
push 0xb6
mov ecx, dword [ebp - 0x468]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x40c977
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x448]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x45c]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40ca90
mov dword [ebp - 0x470], 0x44efe8
push 0x5c
mov ecx, dword [ebp - 0x470]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
je 0x40ca52
mov edx, dword [ebp - 0x46c]
add edx, 1
mov dword [ebp - 0x474], edx
jmp 0x40ca5e
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f050
push 0xb8
mov edx, dword [ebp - 0x474]
push edx
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x18
xor eax, eax
jne 0x40ca17
xor eax, eax
jmp 0x40caad
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x458]
mov dword [ecx], edx
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret
Function at 0x40e3d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fdb8
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x459074]
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.00409d50
lea ecx, [ebp - 0x18]
call fcn.0040a0a0
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 0x40e479
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040b030
jmp 0x40e491
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40e44c
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.0040a070
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409f20
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.00421720
mov esp, ebp
pop ebp
ret
Function at 0x40f410
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x459074]
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 0x40f45f
movzx eax, word [ebp - 0x28]
cmp eax, 6
je 0x40f45f
mov byte [ebp - 0x29], 0
jmp 0x40f463
mov byte [ebp - 0x29], 1
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret
Function at 0x410300
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 0x41034c
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x410333
mov byte [ebp - 1], 1
jmp 0x410337
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 0x41034e
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x410360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x41037f
cmp dword [ebp + 0xc], 0
jne 0x410384
jmp 0x41054a
push 0x128
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.00423990
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 0x410429
mov dword [ebp - 0x13c], 0x451238
push 0x5c
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x4103f8
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x140], edx
jmp 0x410404
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x140], eax
push str.CreateToolhelp32Snapshot_fail__n
push 0x3dd
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 0x4103bd
jmp 0x41054a
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 0x41053d
mov dword [ebp - 0x130], 0
jmp 0x41046b
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp + 0xc]
jae 0x41051e
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.00413cf0
add esp, 8
test eax, eax
jne 0x410519
mov dword [ebp - 0x148], 0x4512a0
push 0x5c
mov edx, dword [ebp - 0x148]
push edx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x4104d5
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x14c], eax
jmp 0x4104e1
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 0x3e8
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 0x41049a
mov edx, dword [ebp - 0x124]
push edx
call fcn.00410300
add esp, 4
jmp 0x41051e
jmp 0x41045c
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 0x410443
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret
Function at 0x410580
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fedc
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x459074]
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.00423990
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x451234
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 4
lea ecx, [ebp - 0x124]
call fcn.00409d50
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x124]
call fcn.00411df0
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x120]
call fcn.00409d50
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x120]
call fcn.00411df0
mov byte [ebp - 4], 1
push str.windivert32.sys
lea ecx, [ebp - 0x124]
call fcn.00411d10
push str.windivert64.sys
lea ecx, [ebp - 0x120]
call fcn.00411d10
push 0x451350
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 4
lea ecx, [ebp - 0x11c]
call fcn.00409d50
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00411df0
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x118]
call fcn.00409d50
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00411df0
mov byte [ebp - 4], 3
call fcn.004141c0
test eax, eax
je 0x4106d3
push str.syswindivertwindivert32.sys
lea ecx, [ebp - 0x11c]
call fcn.00411d10
push str.syswindivertwindivert64.sys
lea ecx, [ebp - 0x118]
call fcn.00411d10
jmp 0x4106f3
push str.sys_sangforwindivert32.sys
lea ecx, [ebp - 0x11c]
call fcn.00411d10
push str.sys_sangforwindivert64.sys
lea ecx, [ebp - 0x118]
call fcn.00411d10
push 0
lea ecx, [ebp - 0x124]
call fcn.0040a5b0
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040a5b0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea ecx, [ebp - 0x120]
call fcn.0040a5b0
push eax
lea ecx, [ebp - 0x118]
call fcn.0040a5b0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00411dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call fcn.00411dd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00411dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00411dd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret
Function at 0x410790
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc
lea ecx, [ebp - 0x10]
call fcn.00409d50
push 0
lea ecx, [ebp - 0x10]
call fcn.00413cc0
push 0
push 0
push 0x2011f
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.00413b80
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x410838
push str.SangforAccessClient_is1
lea ecx, [ebp - 0x10]
call fcn.0040a5b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x14], eax
push str.AccessClient_is1
lea ecx, [ebp - 0x10]
call fcn.0040a5b0
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.0040a5b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x14], eax
push str.BYOD_is1
lea ecx, [ebp - 0x10]
call fcn.0040a5b0
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.00413ca0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret
Function at 0x410a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ff1b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x459074]
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.00409d50
push 0x4514fc
lea ecx, [ebp - 0x114]
call fcn.00411df0
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 0x410aee
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00411e70
mov edx, dword [ebp - 0x124]
or edx, 1
mov dword [ebp - 0x124], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00411dd0
mov eax, dword [ebp + 8]
jmp 0x410bc2
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00423990
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 0x410b7b
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411e70
mov eax, dword [ebp - 0x124]
or eax, 1
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00411dd0
mov eax, dword [ebp + 8]
jmp 0x410bc2
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x114]
call fcn.00411d90
push 3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.00411bb0
mov eax, dword [ebp - 0x124]
or eax, 1
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00411dd0
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.00421720
mov esp, ebp
pop ebp
ret
Function at 0x413180
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 0x4131a4
xor eax, eax
jmp 0x413224
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 0x4131bb
xor eax, eax
jmp 0x413224
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 0x413207
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x413207
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 0x4131de
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x413213
xor eax, eax
jmp 0x413224
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x413221
xor eax, eax
jmp 0x413224
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x414d30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440020
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459074]
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 0x414d6e
mov eax, 1
jmp 0x414e78
push 4
lea ecx, [ebp - 0x14]
call fcn.00409d50
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.00415b30
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040a5b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x414dc7
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411dd0
mov eax, dword [ebp - 0x24]
jmp 0x414e78
push 4
lea ecx, [ebp - 0x18]
call fcn.00409d50
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.00415b30
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x414e26
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00411dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411dd0
mov eax, dword [ebp - 0x28]
jmp 0x414e78
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a5b0
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00414ff0
test eax, eax
jne 0x414e4d
mov dword [ebp - 0x20], 1
jmp 0x414e54
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.00411dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411dd0
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.00421720
mov esp, ebp
pop ebp
ret 8
Function at 0x414ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440020
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459074]
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.00409d50
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.00415b30
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040a5b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x414f24
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411dd0
mov eax, dword [ebp - 0x24]
jmp 0x414fd5
push 4
lea ecx, [ebp - 0x18]
call fcn.00409d50
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.00415b30
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x414f83
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00411dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411dd0
mov eax, dword [ebp - 0x28]
jmp 0x414fd5
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a5b0
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00414ff0
test eax, eax
jne 0x414faa
mov dword [ebp - 0x20], 1
jmp 0x414fb1
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.00411dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411dd0
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.00421720
mov esp, ebp
pop ebp
ret 8
Function at 0x415820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x459074]
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 0x415875
movzx eax, word [ebp - 0x28]
cmp eax, 6
je 0x415875
mov dword [ebp - 0x2c], 0
jmp 0x41587c
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret

Function at 0x415890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 4
lea ecx, [ebp - 8]
call fcn.00409d50
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.00415b30
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.0040a5b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
call fcn.00411dd0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret

Function at 0x417790
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.00423990
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.0041e2f0
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 0x417857
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.00421720
mov esp, ebp
pop ebp
ret
Function at 0x417870
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x459074]
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 0x4178f7
mov dword [ebp - 0x40], 0x452bd8
push 0x5c
mov eax, dword [ebp - 0x40]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4178c8
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x44], ecx
jmp 0x4178ce
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager:_d
push 0x3b
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 0x41789f
mov eax, dword [ebp - 0x30]
jmp 0x4179ba
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 0x417972
mov dword [ebp - 0x4c], 0x452c68
push 0x5c
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x41793c
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x50], edx
jmp 0x417942
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService:_d
push 0x41
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 0x417913
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
jmp 0x4179ba
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 0x41799c
mov dword [ebp - 0x30], 2
jmp 0x4179a3
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.00421720
mov esp, ebp
pop ebp
ret