joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cabe
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x507c7c]
push ebx
push esi
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov ax, word [0x507c80]
push edi
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x21c], ecx
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
mov esi, ebx
mov dword [ebp - 0x218], edx
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
test edx, eax
je 0x40cb6f
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40cb69
lea eax, [ebp - 0x214]
push eax
call fcn.004c96f6
mov edi, eax
lea eax, [ebp - 0x214]
push edi
push eax
push dword [ebp - 0x21c]
call fcn.004d8169
add esp, 0x10
test eax, eax
jne 0x40cb69
mov eax, dword [ebp - 0x21c]
push 0x5c
lea edi, [eax + edi*2]
pop eax
cmp ax, word [edi]
je 0x40cb77
mov edx, dword [ebp - 0x218]
inc esi
cmp esi, 0x1a
jb 0x40cb04
jmp 0x40cb97
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004cb981
lea eax, [esi + 4]
push edi
push eax
call fcn.004cb981
xor ebx, ebx
add esp, 0x10
inc ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret

Function at 0x40cba8
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40cc58
push ebx
push 0x24
push str.spooler
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x40cbff
cmp eax, 0x7b
je 0x40cbfa
cmp eax, 0x424
jne 0x40cc4e
xor edi, edi
inc edi
jmp 0x40cc4e
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40cc46
cmp dword [ebp - 0x1c], 1
je 0x40cc43
cmp dword [ebp - 0x1c], 3
je 0x40cc43
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40cc67
cmp eax, 0x426
jne 0x40cc46
xor edi, edi
inc edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0049d307
leave
ret
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40cc46
cmp dword [ebp - 0x1c], 1
je 0x40cc43
push 1
push 0x14
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x40cc67
Function at 0x40cc88
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
xor edi, edi
mov esi, ecx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40cd8c
push ebx
push 0x14
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x40cce5
cmp eax, 0x7b
je 0x40ccdd
cmp eax, 0x424
jne 0x40cd82
xor edi, edi
inc edi
jmp 0x40cd82
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40cd7b
cmp dword [ebp - 0x1c], 4
je 0x40cd78
cmp dword [ebp - 0x1c], 2
je 0x40cd78
push edi
call fcn.004c8af7
pop ecx
mov dword [ebp - 0x24], eax
jmp 0x40cd58
cmp eax, 0x420
jne 0x40cd7b
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40cd7b
cmp dword [ebp - 0x1c], 4
je 0x40cd78
cmp dword [ebp - 0x1c], 2
je 0x40cd78
push edi
call fcn.004c8af7
sub eax, dword [ebp - 0x24]
pop ecx
cmp eax, 0x78
ja 0x40cd7b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x40cd14
push edi
call fcn.004c8af7
pop ecx
test esi, esi
je 0x40cd7b
xor edi, edi
inc edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret

Function at 0x40d4c9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [0x52a280], 0
jne 0x40d531
push edi
push 0xc
xor edi, edi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [ebp - 0x10], 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 8], edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push edi
push edi
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x40d433
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
test eax, eax
jne 0x40d531
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x40d536
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push SysReAllocString
mov ebx, eax
mov esi, eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d6ac
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0x1000
jb 0x40d691
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d691
mov edx, dword [ebp - 8]
mov eax, 0x5a4d
add edx, esi
cmp word [esi], ax
jne 0x40d691
mov ebx, dword [esi + 0x3c]
cmp ebx, dword [ebp - 0xc]
ja 0x40d68e
lea ecx, [esi + 4]
add ecx, ebx
lea eax, [ecx + 0x18]
cmp eax, edx
jbe 0x40d60e
push 0
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d68e
mov eax, dword [ebp - 8]
test eax, eax
je 0x40d68e
lea edx, [eax + esi]
lea ecx, [esi + 4]
lea eax, [ecx + 0x18]
cmp eax, edx
ja 0x40d68e
cmp dword [ecx - 4], 0x4550
jne 0x40d68e
movzx eax, word [ecx]
mov ebx, 0x8664
mov dword [ebp - 0xc], 0x14c
cmp word [ebp - 0xc], ax
je 0x40d638
cmp bx, ax
jne 0x40d68e
test byte [ecx + 0x12], 2
je 0x40d68e
cmp word [ebp - 0xc], ax
jne 0x40d664
lea eax, [ecx + 0x14]
movzx ecx, word [ecx + 0x10]
add ecx, eax
cmp ecx, edx
ja 0x40d68e
mov ecx, 0x10b
cmp cx, word [eax]
jne 0x40d68e
cmp dword [eax + 0x80], 0
jmp 0x40d687
cmp bx, ax
jne 0x40d68e
lea eax, [ecx + 0x14]
movzx ecx, word [ecx + 0x10]
add ecx, eax
cmp ecx, edx
ja 0x40d68e
mov ecx, 0x20b
cmp cx, word [eax]
jne 0x40d68e
cmp dword [eax + 0x90], 0
je 0x40d68e
xor ebx, ebx
inc ebx
jmp 0x40d691
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d6ac
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40eaef
Capabilities:
Check os version
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
push eax
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb0], 5
jne 0x40eb41
cmp dword [ebp - 0xac], 0
jne 0x40eb41
cmp byte [0x52a249], 1
je 0x40ec2a
mov edi, 0x506d08
push edi
call fcn.0049b9a0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x40eb8b
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40eb8b
push 0x10000
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40eb88
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call esi
push ebx
call esi
mov edi, dword [ebp - 0xb8]
add edi, 0x34
push edi
call fcn.0049b9a0
test eax, eax
je 0x40ec2a
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40ec00
push 0x10020
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40ec04
mov eax, dword [ebp - 0xb8]
push 0x10000
add eax, 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40ec11
push ebx
call esi
mov eax, dword [ebp - 0xb8]
push edi
add eax, 0x34
push eax
push str.Couldnt_open_service
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40ec2d
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
push ebx
call edi
test esi, esi
je 0x40ec00
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x40ec3c
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
xor ebx, ebx
and dword [ebp - 0x110], ebx
xor edi, edi
and dword [ebp - 0x10c], ebx
xor esi, esi
push eax
mov dword [ebp - 0x114], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ed8d
call fcn.0040eab5
test eax, eax
je 0x40ecc3
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ecc3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x40ecc3
lea eax, [ebp - 0x10c]
push eax
call ebx
mov dword [ebp - 0x110], eax
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x150]
push 0
push eax
call fcn.0049ef70
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push str._a___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [ebp - 0x150], ebx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x14c], 0x40
xor ecx, ecx
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x148], ecx
push eax
mov dword [ebp - 0x144], str.open
mov dword [ebp - 0x140], str.pnputil.exe
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x3a98
push dword [ebp - 0x118]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x110], 0
je 0x40ed82
test esi, esi
je 0x40ed82
push dword [ebp - 0x10c]
call esi
and dword [ebp - 0x10c], 0
test edi, edi
je 0x40ed8d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x40f280
Capabilities:
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0xf003f
xor ebx, ebx
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40f354
push esi
push 0x506d08
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40f34d
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40f346
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f346
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x40f346
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40f334
push str.K7AntiVirus_MiniFilter_Driver
xor ecx, ecx
xor eax, eax
push ecx
push ecx
push str.FltMgr
push ecx
push str.FSFilter_Infrastructure
push ecx
inc eax
push eax
push ecx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
push 1
pop eax
cmovne ebx, eax
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40f35b
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0xf003f
xor esi, esi
mov dword [ebp - 4], ecx
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40f3ab
push esi
push esi
push str.FltMgr
push esi
push str.FSFilter_Infrastructure
push dword [ebp - 4]
push 1
push esi
push 2
push 0xf01ff
push str.K7AntiVirus_MiniFilter_Driver
push 0x506d08
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x40f3b9
inc esi
jmp 0x40f3ae
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f3b9
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40f3c4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 1
je 0x40f3ce
call fcn.0040f280
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40f5ac
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x30], 0
jne 0x40f627
cmp byte [esi + 0x32], 0
je 0x40f627
push edi
lea eax, [ebp + 0x10]
or edx, 0xffffffff
push eax
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x104]
call fcn.0040159a
add esp, 0xc
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], eax
xor edi, edi
lea eax, [esi + 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x40f626
push edi
lea eax, [ebp - 0x108]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret

Function at 0x40fbec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40fc61
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push esi
push eax
xor ebx, ebx
push ebx
push str.LocalService
push dword [ecx]
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, eax
test edx, edx
jne 0x40fc58
test esi, esi
je 0x40fc58
mov ecx, dword [edi]
test ecx, ecx
je 0x40fc56
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40fc4f
cmp eax, 2
jbe 0x40fc49
cmp eax, 7
jne 0x40fc4f
cmp byte [ecx + esi - 1], bl
jne 0x40fc4f
cmp ecx, 1
jbe 0x40fc58
cmp byte [ecx + esi - 2], bl
jne 0x40fc4f
jmp 0x40fc58
cmp byte [ecx + esi - 1], bl
je 0x40fc58
push 0xd
mov byte [esi], bl
pop eax
jmp 0x40fc5a
mov byte [esi], bl
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.00412c6e
int3
Function at 0x412537
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], ecx
jne 0x412549
push 0xd
pop eax
jmp 0x412579
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
push ebx
call fcn.004c8d20
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x412550
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
leave
ret 8
Function at 0x4138cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x4f4851
call fcn.004f3b6c
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x413afc
push eax
call fcn.004c96f6
inc eax
lea ecx, [ebp - 0x420]
mov edx, eax
mov dword [ebp - 0x420], eax
call fcn.004125d1
add esp, 4
test eax, eax
js 0x413af6
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x41396c
mov ecx, edi
call fcn.00412631
test al, al
je 0x41396c
mov eax, edi
call fcn.004f3f50
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x41397e
push edi
lea ecx, [ebp - 0x424]
call fcn.004126c3
mov esi, dword [ebp - 0x424]
mov edx, dword [ebp - 0x41c]
mov ecx, eax
push 3
push edi
call fcn.00411e2a
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x413af6
push 0x60
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x4139d9
push 2
push ebx
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x4139d9
call fcn.00411c74
mov ebx, eax
jmp 0x413ac6
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x413a00
call fcn.00411c74
jmp 0x413ab9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x4139f6
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x413a36
mov ebx, 0x8007000e
jmp 0x413abb
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00411cd5
mov dword [ebp - 4], 1
jmp 0x413a6a
cmp dword [ebp - 0x418], 0
je 0x413a2c
mov eax, dword [ebp - 0x41c]
mov edx, eax
mov ecx, dword [ebp - 0x418]
push eax
push dword [ebp - 0x428]
call fcn.00411f3c
push eax
call fcn.00412c8a
mov eax, dword [ebp - 0x418]
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.0041378a
mov ebx, eax
test edi, edi
je 0x413ac6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x413adf
lea ecx, [ebp - 0x418]
call fcn.00411c5f
or dword [ebp - 4], 0xffffffff
jmp 0x413aee
push esi
mov esi, dword [esi]
call fcn.004c8ceb
pop ecx
test esi, esi
jne 0x413ae5
mov eax, ebx
jmp 0x413b29
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x413b11
lea ecx, [ebp - 0x418]
call fcn.00411c5f
or dword [ebp - 4], 0xffffffff
jmp 0x413b20
push esi
mov esi, dword [esi]
call fcn.004c8ceb
pop ecx
test esi, esi
jne 0x413b17
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.004f3ab9
ret 0x10
Function at 0x413fc9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 0x28]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x14]
mov dword [0x51c108], edx
add edx, edx
call fcn.0041679b
mov dword [0x52abd8], eax
test eax, eax
je 0x414054
push 0x52abbc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x52aab0
call fcn.00404b5b
test eax, eax
je 0x414054
call fcn.0041536e
test eax, eax
je 0x414054
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00406c41
xor eax, eax
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
mov dword [0x52aefc], eax
mov eax, str.wndClassK7SentryMngr
push eax
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
push 0x52af00
mov dword [0x52aaa4], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
inc esi
mov dword [0x52aaa8], esi
mov eax, esi
pop esi
leave
ret

Function at 0x41496c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [0x52aaa8], esi
je 0x414a3f
mov eax, dword [0x51c108]
mov ecx, esi
push edi
push 0x40
mov dword [0x52abb8], esi
lea edi, [eax + eax]
mov dword [0x52abd4], ecx
pop eax
cmp edi, eax
cmova edi, eax
test edi, edi
je 0x414a09
push esi
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
call dword [0x52af14]
test eax, eax
je 0x414a03
mov eax, dword [0x52abd4]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x52ace0], ecx
call fcn.00414059
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
push 0x4141cc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x52abd4]
mov dword [ecx*4 + 0x52abe0], eax
test eax, eax
je 0x4149fd
inc ecx
mov dword [0x52abd4], ecx
cmp ecx, edi
jb 0x4149a3
jmp 0x414a09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x52abd4]
mov dword [ebp - 8], esi
pop edi
test ecx, ecx
je 0x414a3c
call fcn.004167f6
test eax, eax
je 0x414a36
mov ecx, eax
call fcn.0041d139
test eax, eax
je 0x414a36
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [0x52abd4]
jb 0x414a11
jmp 0x414a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret