joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4680ac
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4680c8
cmp dword [esi + 4], 0
je 0x4680f5
test byte [ebx + 0x55], 1
jne 0x4680e7
mov eax, ebx
call fcn.00466c4c
test eax, eax
jne 0x4680e7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x468205
mov edx, esi
mov eax, ebx
call fcn.00467bd0
jmp 0x468205
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4681fe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00469f54
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004648e8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004680ac
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00469f54
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468205
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e974
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e9cf0]
cmp byte [eax + 0xc], 0
je 0x46eae1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46eada
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4eaba8], 0
jne 0x46e9c8
push 0x46eae8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46eaf0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eaba8], eax
cmp dword [0x4e7f34], 0
jne 0x46eac3
push 0x46eb00
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e7f34], eax
cmp dword [0x4e7f34], 0
je 0x46eac3
push 0x46eb0c
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabac], eax
push 0x46eb1c
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabb0], eax
push 0x46eb30
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabb4], eax
push 0x46eb48
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabb8], eax
push 0x46eb60
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabbc], eax
push 0x46eb74
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabc0], eax
push 0x46eb8c
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabc4], eax
push 0x46eba4
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabc8], eax
push 0x46ebc0
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabcc], eax
push 0x46ebcc
mov eax, dword [0x4e7f34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eabd0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46eae1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4735ec
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004042cc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x47363b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040454c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47ae58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x47aea8]
test si, 4
je 0x47ae6c
or bl, 1
test si, 8
je 0x47ae76
or bl, 4
test si, 1
je 0x47ae80
or bl, 8
test si, 2
je 0x47ae8a
or bl, 0x10
test si, 0x10
je 0x47ae94
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47aea3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x47aeac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x47aee4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47aec5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47aed4
or bl, 4
test esi, 0x20000000
je 0x47aedf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4815ac
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4815be
add esp, 0xfffffff0
call fcn.0040381c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004236cc
mov eax, dword [0x4e96b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x481950
mov eax, dword [0x4e96c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x48195c
mov eax, ebx
call fcn.00481968
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.00403488
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.00403488
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.00403488
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.00403488
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.00403488
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x47dd84
push eax
push 0
push 0
mov eax, dword [0x4e9920]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x425808]
call fcn.0042701c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x425808]
call fcn.0042701c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x425808]
call fcn.0042701c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00481d88
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x481c64
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x481c64
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x481c64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4816fb
call fcn.00403874
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x481a48
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x481bf3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x481bd4
mov dl, 1
mov eax, dword [0x4185e0]
call fcn.00403488
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x481bc3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0046ecd4
test al, al
je 0x481bb6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x481c04
lea eax, [ebp - 0x254]
call fcn.00409ee8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x481bb6
xor eax, eax
push ebp
push 0x481baf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x481c3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x481b98
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040454c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x481b98
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040454c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481bb6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x481ab9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d0e8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481bfa
lea eax, [ebp - 0x260]
call fcn.004042cc
ret

Function at 0x482528
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4eabf4]
cmp byte [eax + 0xa5], 0
jne 0x482599
cmp dword [0x4eac0c], 0
jne 0x48255a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4824e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4eac0c], eax
cmp dword [0x4eac08], 0
jne 0x482575
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4eac08], eax
cmp dword [0x4eac10], 0
jne 0x482599
push esp
push 0
push 0
push 0x482488
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4eac10], eax
pop edx
ret
Function at 0x4826bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4826d3
add esp, 0xfffffff0
call fcn.0040381c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004236cc
mov eax, dword [0x4e98f0]
cmp word [eax + 2], 0
jne 0x4826fb
mov eax, dword [0x4e98f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00483e3c
mov eax, dword [0x4e9a5c]
cmp word [eax + 2], 0
jne 0x482715
mov eax, dword [0x4e9a5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00484034
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.00403488
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.00403488
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x426388]
call fcn.0042e208
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x48289c
mov eax, dword [0x4e9748]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e5d8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4845d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4e9748]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d9a8
test eax, eax
je 0x48280a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040989c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d9d0
test eax, eax
je 0x48281e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040454c
mov eax, dword [0x4e951c]
cmp byte [eax], 0
jne 0x482852
mov eax, ebx
call fcn.004829c4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004847b0
mov eax, ebx
call fcn.00485174
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x482892
call fcn.00403874
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482c44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4eabf4]
cmp dword [eax + 0x30], 0
je 0x482cee
cmp dword [ebx + 0x94], 0
jne 0x482ce8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x482bd4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x482ce8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x482cae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x482ce8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a988
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x482cbd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x483850
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x483885
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004043bc
jmp 0x483892
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404320
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48498c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4849cd
mov eax, esi
call fcn.0046a258
test al, al
je 0x4849cd
mov eax, dword [ebx + 0x84]
call fcn.00469f54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4849cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00469f54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4854a8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4854ee
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0048540c
mov eax, dword [ebp - 4]
call fcn.0040479c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4854f5
lea eax, [ebp - 4]
call fcn.004042cc
ret

Function at 0x485560
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00409a78
add esp, 0x104
pop ebx
ret
Function at 0x4856a4
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x4e9ce4]
cmp dword [eax], 2
je 0x4856c1
mov byte [ebp - 1], 1
jmp 0x48588f
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x4e8168
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x48588f
xor eax, eax
push ebp
push 0x485888
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x485723
push 0x485898
push 0x4858b0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x48574a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x485871
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x485871
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x48579b
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x48577c
call fcn.00403d30
jmp 0x48588f
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x48579b
call fcn.00403d30
jmp 0x48588f
xor eax, eax
push ebp
push 0x48586a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4857de
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x4857de
call fcn.00403d30
call fcn.00403d30
jmp 0x48588f
mov eax, dword [ebp - 0x14]
call fcn.004027f4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x485810
call fcn.00403d30
call fcn.00403d30
jmp 0x48588f
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x48584b
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x485847
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x485847
mov byte [ebp - 1], 1
jmp 0x48584b
inc ebx
dec esi
jne 0x48581d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485871
mov eax, dword [ebp - 0x18]
call fcn.00402814
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48588f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486518
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040478c
xor eax, eax
push ebp
push 0x486596
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040479c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x486561
mov eax, dword [ebx + 4]
call fcn.0040479c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48659d
lea eax, [ebp - 4]
call fcn.004042cc
ret

Function at 0x487568
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487705
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402b7c
cmp word [ebx + 0xa2], 0
je 0x4875b1
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4875c5
lea esi, [ebp - 8]
jmp 0x4875c7
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x4875d4
xor edi, edi
jmp 0x4875e1
mov eax, dword [ebx + 0x80]
call fcn.0040479c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.0040479c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00486cd0
mov eax, dword [ebp - 0x14]
call fcn.0040479c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.0040479c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040479c
push eax
mov eax, ebx
call fcn.00486e04
push eax
mov eax, ebx
call fcn.00486dd8
push eax
mov eax, ebx
call fcn.00486d8c
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00486b9c
mov eax, dword [ebp - 0x18]
call fcn.0040479c
push eax
mov eax, dword [ebx + 8]
call fcn.0040479c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x48766a
call fcn.0040e234
xor edx, edx
push ebp
push 0x4876e3
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4876a8
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x48769e
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4876cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4876ea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret