joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e0eb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 8], 0
je 0x40e112
call fcn.0040df57
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x40e122
mov ecx, esi
call fcn.0040dab6
push 0xfde9
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0040e052
add esp, 0xc
lea ecx, [esi + 0x24]
push eax
call fcn.0040d50f
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00409484
test ebx, ebx
jle 0x40e150
add dword [esi + 4], ebx
jmp 0x40e15f
cmp dword [edi + 0x14], 8
jb 0x40e158
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496974
leave
ret 4
Function at 0x41008a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x501eb1
call fcn.00496a5e
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x410107
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x410107
call fcn.0040eeee
mov esi, eax
jmp 0x4101de
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41012a
call fcn.0040eeee
jmp 0x4101d1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x410120
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41015a
mov esi, 0x8007000e
jmp 0x4101d3
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040ed6b
jmp 0x410180
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x410153
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x410120
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040ff51
mov esi, eax
test edi, edi
je 0x4101de
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4101f7
lea ecx, [ebp - 0x418]
call fcn.0040f39b
mov eax, esi
call fcn.004969ab
ret 0x10
Function at 0x412041
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul esi, ebx, 0x4058
mov edi, ecx
add esi, edi
push esi
push dword [esi + 0x28]
and dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x412089
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x412089
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4120a7
cmp eax, 0x3e5
je 0x4120a1
xor al, al
jmp 0x4120b6
mov byte [esi + 0x2c], 1
jmp 0x4120b0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esi + 0x2d], 0
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4120bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
call fcn.00412293
xor edi, edi
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4120f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x41216b
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.004096d1
push edi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x412125
mov eax, dword [ecx]
push edi
push esi
call dword [eax]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x412169
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x41273e
push edi
push edi
call fcn.004e11b2
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x412169
cmp dword [esi + 4], 0xffffffff
je 0x4120f3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
jmp 0x4120f3
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x412171
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
cmp dword [esi + 0x80c8], 0xffffffff
je 0x41218a
xor al, al
jmp 0x41228e
push ebx
push edi
push 1
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
xor edi, edi
lea eax, [ebp - 0x2c]
push ebx
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
lea edi, [esi + 0x10]
mov dword [ebp - 0x18], 0xc
lea ebx, [esi + 0x80b4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x3e8
push 0x6000
push 0x6000
push 2
push 6
push 0x40000003
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
je 0x41227d
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx - 4], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add dword [ebp - 4], 2
mov dword [ebx], eax
mov eax, dword [ebx - 4]
mov dword [edi], eax
mov eax, dword [ebx]
add ebx, 8
mov dword [edi + 0x14], eax
add edi, 0x4058
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 2
jb 0x4121c9
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [esi + ecx*4 + 0x80b0], eax
mov dword [esi + 0x80c4], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x4126d7
push ebx
push ebx
call fcn.004e11b2
add esp, 0x18
mov dword [esi + 0x80c8], eax
test eax, eax
je 0x41227d
mov al, 1
jmp 0x41228c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.004122e0
xor al, al
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x41289d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov ebx, 0x2000
push ebx
push 0
add edi, ecx
lea esi, [edi + 0x38]
push esi
call fcn.004d8680
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push ebx
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4128dc
mov byte [edi + 0x2c], 0
mov al, 1
jmp 0x4128f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4128ef
mov byte [edi + 0x2c], 1
jmp 0x4128d8
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4128f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412920
xor al, al
jmp 0x412931
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41292f
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov al, 1
pop esi
leave
ret 8
Function at 0x4129ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
imul edi, dword [ebp + 8], 0x4058
mov esi, ecx
and dword [ebp - 4], 0
lea eax, [edi + 0x14]
add eax, esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4129e7
mov byte [edi + esi + 0x2d], 0
mov al, 1
jmp 0x4129fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4129fb
mov byte [edi + esi + 0x2d], 1
jmp 0x4129e3
xor al, al
pop edi
pop esi
leave
ret 0xc

Function at 0x414127
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x5021e2
call fcn.004969bc
mov edi, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x414143
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041435a
pop ecx
pop ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call fcn.0040d304
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x20]
call fcn.004142f1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x414193
call fcn.00408755
cmp dword [edi + 0x18], ebx
jne 0x4141b2
lea eax, [edi + 0x1c]
push eax
push ebx
push edi
push 0x414e26
push ebx
push ebx
call fcn.004e11b2
add esp, 0x18
mov dword [edi + 0x18], eax
mov bl, 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4141be
call fcn.00408755
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.00496985
ret 4
Function at 0x41483c
Capabilities:
Check if file exists

Disassembly:
push 0x2b8
mov eax, 0x5022b8
call fcn.004969f0
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x4149ab
lea eax, [ebp - 0x224]
push eax
call fcn.0040dae6
pop ecx
mov ecx, dword [eax]
and dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x414886
call fcn.00408755
test bl, bl
je 0x4148fe
push 1
push 2
lea ecx, [ebp - 0x2c4]
call fcn.0040620f
lea eax, [ebp - 0x2c4]
mov dword [ebp - 4], 1
push str._Load_plugin_item:
push eax
call fcn.00406c4e
push dword [esi]
lea eax, [ebp - 0x2c4]
push eax
call fcn.00406c90
lea eax, [ebp - 0x22c]
push eax
call fcn.0040dae6
add esp, 0x14
mov ecx, dword [eax]
lea edx, [ebp - 0x2c4]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x4148ef
call fcn.00408755
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c4]
call fcn.00406e45
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4149ab
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4149ab
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4149ab
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push ecx
push 1
call eax
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4149ab
push dword [edi + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
call fcn.004145c5
xor eax, eax
inc eax
jmp 0x4149ad
xor eax, eax
call fcn.0049699a
ret 4
Function at 0x41582c
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x502466
call fcn.004969f0
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x24c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41585c
xor eax, eax
jmp 0x4159ac
push 0x228
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.004d8680
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x415895
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415855
push str.explorer.exe
lea ecx, [ebp - 0x240]
call fcn.00404804
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
call fcn.00415d17
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x240]
call fcn.004e1245
pop ecx
pop ecx
test eax, eax
jne 0x415956
push dword [ebp - 0x234]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x415956
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x41594f
lea eax, [ebp - 0x254]
push eax
call fcn.00415709
pop ecx
mov ecx, dword [ebp - 0x24c]
push dword [ebp - 0x240]
push ecx
mov dword [ecx], eax
lea eax, [ebp - 0x274]
push esi
push eax
lea ecx, [ebp - 0x248]
call fcn.00415429
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4158c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x244], 0
jbe 0x415991
mov eax, dword [ebp - 0x248]
xor esi, esi
mov ecx, dword [ebp - 0x24c]
inc esi
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x248]
call fcn.00415513
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.00405428
mov eax, esi
call fcn.0049699a
ret
Function at 0x4159b2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x234], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4159ec
xor eax, eax
jmp 0x415ab1
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.004d8680
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x415a3b
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
call fcn.004e1245
pop ecx
pop ecx
test eax, eax
je 0x415a41
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x415a1a
jmp 0x415aa8
push dword [ebp - 0x228]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x415aa8
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
jne 0x415a89
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415aa8
lea eax, [ebp - 0x23c]
push eax
call fcn.00415709
pop ecx
mov ecx, dword [ebp - 0x234]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496974
leave
ret

Function at 0x415ac0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
push 0x50d630
push 0x50d634
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004e2668
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00496974
leave
ret
Function at 0x415b43
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x5024a6
call fcn.004969bc
and dword [ebp - 4], 0
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x10]
call fcn.004047db
xor edi, edi
lea ecx, [ebp - 0x10]
mov ebx, 0x400
inc edi
push ebx
mov dword [ebp - 4], edi
call fcn.00405303
push ebx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040546c
push dword [ebp + 8]
push ebx
push esi
push 0x50d0a8
push str.flag
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00405440
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x415c31
mov byte [ebp - 4], 2
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x14]
call fcn.004047db
mov edi, 0x104
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x14]
call fcn.00405303
push edi
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040546c
push edi
push esi
call fcn.004980b0
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00405440
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049eda0
push 0x50d698
push dword [ebp - 0x18]
call fcn.004e1245
mov ecx, dword [ebp - 0x18]
add esp, 0x14
neg eax
sbb edi, edi
lea ecx, [ecx - 0x10]
neg edi
call fcn.00405428
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405428
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.00405428
mov eax, edi
call fcn.00496985
ret
Function at 0x4165d1
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
push 0x53ef10
call fcn.00497040
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x41661a
cmp dword [ebp - 0x28], ebx
jne 0x416650
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x41671d
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41671d
cmp dword [ebp - 0x28], 0
je 0x41671d
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41671d
cmp dword [ebp - 0x2c], eax
jbe 0x41671d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41671d
push dword [ebp - 0x2c]
call fcn.004e0fd1
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x41671d
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41671d
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x41671d
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41671d
cmp dword [ebp - 0x30], 0
je 0x41671d
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [esi]
jae 0x41671d
push dword [ebp - 0x30]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x416707
inc ebx
jmp 0x4166ec
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [esi + ebx*8 + 8]
shr eax, 2
and eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041673e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416be9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004d8680
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416c39
cmp dword [ebp - 0x114], 6
jb 0x416c39
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00496974
leave
ret
Function at 0x417d4e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
push 0x53eed0
call fcn.00497040
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.004d8680
push edi
push 0x50d738
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417e34
mov dword [ebp - 0x438], ebx
mov edi, 0x210
push edi
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.004d8680
add esp, 0xc
mov dword [ebp - 0x434], edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417e34
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jle 0x417e34
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.00417e5a
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4197ff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
mov dword [esi], vtable.CTrayPos.0
mov dword [esi + 0x34], edi
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x419a1c
push edi
push edi
call fcn.004e11b2
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x419a71
push edi
push edi
call fcn.004e11b2
add esp, 0x30
mov dword [esi + 0x10], eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x41986a
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xc], 0
mov dword [esi], vtable.CTrayPos.0
je 0x4198b2
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4198a9
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call edi
and dword [esi + 0xc], 0
cmp dword [esi + 0x10], 0
je 0x4198ea
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4198e1
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10]
call edi
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0
je 0x4198f9
push dword [esi + 0x14]
call edi
and dword [esi + 0x14], 0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret

Function at 0x4199a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
sub ebx, esi
call edi
mov esi, dword [ebp - 4]
mov dword [esi + 0x34], eax
cmp ebx, 0x1f4
jae 0x4199f4
lea eax, [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [esi + 0x18], 0
jne 0x4199f4
mov dword [esi + 0x18], 1
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret