joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10048b4b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x1001c40c], eax
je 0x10048b6d
cmp dword [0x1001c40c], ebx
jne 0x10048c06
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x1001c40c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x1001c40c], esi
test esi, esi
jne 0x10048bdc
mov dword [0x1001c40c], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x1001c40c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x1001c40c]
not eax
mov dword [0x100a1464], eax
pop esi
pop ebx
leave
ret

Function at 0x10048c09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001c40c]
jne fcn.10049868
ret

Function at 0x10048e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10002cf8
push Ordinal_4
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10048eee
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10048ee4
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x1001c424
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10048ee4
cmp dword [ebp + 8], esi
jne 0x10048ee4
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x10048ee4
cmp dword [ebp - 4], ebx
je 0x10048ed6
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x10048ee0
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x10048efa
cmp dword [ebp - 4], ebx
je 0x10048eee
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x10048ef8
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1004927b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x100a5234], 0
je 0x10049290
mov eax, dword [0x100a5238]
leave
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001c508
push Ordinal_4
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10049307
lea eax, [ebp - 8]
push eax
push 0x100a5238
push esi
push esi
push dword [0x100a1468]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10049307
cmp dword [ebp - 8], 4
jne 0x10049307
mov esi, dword [0x100a5238]
mov byte [0x100a5234], 1
cmp dword [ebp - 4], eax
je 0x10049300
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10049392
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1004931a
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001c554
push Ordinal_4
call ebx
test eax, eax
jne 0x10049377
push 4
pop ebx
lea eax, [ebp - 8]
push eax
push 0x100a5238
push 0
push 0
push dword [0x100a1468]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10049377
cmp dword [ebp - 8], ebx
jne 0x10049377
mov edi, dword [0x100a5238]
mov byte [0x100a5234], 1
cmp dword [ebp - 4], eax
je 0x10049373
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x10049392
and dword [0x100a5238], 0
cmp dword [ebp - 4], 0
mov byte [0x100a5234], 1
je 0x10049390
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10049868
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x100a5348], eax
mov dword [0x100a5344], ecx
mov dword [0x100a5340], edx
mov dword [0x100a533c], ebx
mov dword [0x100a5338], esi
mov dword [0x100a5334], edi
mov word [0x100a5360], ss
mov word [0x100a5354], cs
mov word [0x100a5330], ds
mov word [0x100a532c], es
mov word [0x100a5328], fs
mov word [0x100a5324], gs
pushfd
pop dword [0x100a5358]
mov eax, dword [ebp]
mov dword [0x100a534c], eax
mov eax, dword [ebp + 4]
mov dword [0x100a5350], eax
lea eax, [ebp + 8]
mov dword [0x100a535c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100a5298], 0x10001
mov eax, dword [0x100a5350]
mov dword [0x100a524c], eax
mov dword [0x100a5240], 0xc0000409
mov dword [0x100a5244], 1
mov eax, dword [0x1001c40c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x100a1464]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x100a5290], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1001c5fc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x100a5290], 0
jne 0x10049954
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x10050602
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
lea eax, [ebp - 0x904]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
xor edi, edi
call fcn.10025bd5
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x10050668
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x100506ab
test eax, eax
je 0x100506a1
lea eax, [ebp - 0x804]
push eax
call fcn.10068958
test eax, eax
js 0x10050647
jmp 0x100506a1
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
mov word [eax], si
push 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100506ab
cmp edi, 1
jg 0x10050683
xor eax, eax
inc eax
jmp 0x100506ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10048c09
leave
ret 4

Function at 0x100506cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10050717
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x10050717
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10050717
cmp word [eax + 2], 0
je 0x10050717
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x10050717
add eax, 0x30
jmp 0x1005071c
mov eax, 0x1001cb58
pop esi
pop ebp
ret
Function at 0x10050fad
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
test ebx, ebx
jne 0x10050ff2
push 0x15b3c8
call fcn.10042c89
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10050feb
and dword [ebp - 0x4c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10051156
cmp dword [0x100a5cac], eax
je 0x10051009
mov eax, dword [0x100a1dfc]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x10051156
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x4c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10051037
push 0x15b3c9
call fcn.10042c89
xor edi, edi
jmp 0x10051141
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x10051057
push 0x15b3ca
jmp 0x1005102b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10051069
push 0x15b3cb
jmp 0x1005102b
push esi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.1005193e
mov esi, dword [ebp - 0x50]
test al, al
jne 0x1005108d
push 0x15b3cc
call fcn.10042c89
xor edi, edi
jmp 0x10051135
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x100510a7
push 0x15b3cd
jmp 0x10051081
push 0x43
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x100510df
push 0x15b3ce
jmp 0x10051081
and dword [ebp - 0x58], 0
xor edi, edi
inc edi
cmp dword [esi], 0
jbe 0x10051128
lea eax, [esi + 4]
mov dword [ebp - 0x50], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10051110
mov eax, dword [ebp - 0x50]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10051126
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
inc ecx
add eax, 8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
cmp ecx, dword [esi]
jb 0x100510f1
jmp 0x10051128
mov dword [ebx], edi
mov dword [0x100a5cac], edi
mov eax, dword [ebx]
mov dword [0x100a1dfc], eax
test esi, esi
je 0x10051140
push esi
call fcn.10042002
pop ecx
pop esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10051153
and dword [ebp - 0x4c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10048c09
leave
ret 4
Function at 0x10055ec2
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x100a5dc0], 0x20
push esi
push edi
mov esi, ecx
je 0x10055f03
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x1001d180
push dword [0x100a5dcc]
push dword [0x100a5dc8]
call fcn.100571d9
push 0x1c135e
call fcn.10042c89
lea eax, [esi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0xc
dec eax
shl eax, 0xc
xor eax, ecx
mov edi, ecx
and eax, 0x7f000
xor ecx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ecx
push ebx
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, eax
cmp ecx, edi
jne 0x10055f18
cmp edx, dword [ebp - 0xc]
jne 0x10055f18
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x1005679d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x100567b8
mov eax, 0x80004005
jmp 0x10056950
cmp byte [esi + 0x17c], bl
je 0x100567c7
xor eax, eax
jmp 0x10056950
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x1c]
call fcn.10053f2c
test al, al
jne 0x100567f4
mov eax, dword [esi]
push esi
call dword [eax + 0x30]
test eax, eax
je 0x100567f4
push 0x1c1417
call fcn.10042c89
push edi
push 0x2710
lea ecx, [esi + 0x38]
call fcn.10058924
test eax, eax
je 0x10056866
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, ebx
je 0x10056844
dec eax
je 0x1005685c
dec eax
je 0x10056844
dec eax
je 0x1005682c
push 0x1c1418
call fcn.10042c89
jmp 0x1005683a
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x80004005
jmp 0x1005694f
neg ecx
sbb ecx, ecx
and ecx, 0x4e21
dec ecx
push ecx
lea ecx, [esi + 0x38]
call fcn.10058924
test eax, eax
je 0x10056866
mov eax, 0x80004004
jmp 0x1005694f
mov ecx, dword [esi + 0x24]
mov byte [esi + 0x17c], 1
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edi, [esi + 0x124]
cmp dword [edi + 8], ebx
je 0x100568a8
cmp dword [edi], ebx
je 0x100568a8
jmp 0x10056899
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
push 1
call dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.1005983b
test al, al
jne 0x10056886
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x100568b4
call fcn.1005fe95
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100568c0
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x100568cc
call fcn.1005e3ed
lea edi, [esi + 0x7c]
cmp dword [edi + 8], ebx
je 0x100568fb
cmp dword [edi], ebx
je 0x100568fb
jmp 0x100568ec
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.1005983b
test al, al
jne 0x100568da
lea edi, [esi + 0xd0]
cmp dword [edi + 8], ebx
je 0x10056924
cmp dword [edi], ebx
je 0x10056924
jmp 0x10056915
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.1005983b
test al, al
jne 0x1005690c
cmp dword [esi + 0x178], ebx
je 0x1005694d
call fcn.10053f2c
test al, al
je 0x10056943
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 0x178], ebx
jmp 0x1005694d
push 0x1c141d
call fcn.10042c89
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10058ad8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 0xffffffffffffffff
push esi
mov edi, ecx
mov dword [ebp - 4], esi
call fcn.10058c5e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10058af6
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
je 0x10058b07
mov esi, 0x80004005
jmp 0x10058b87
cmp byte [edi + 0x30], 0
je 0x10058afd
inc dword [edi + 0x2c]
test byte [edi + 0x2c], 0x3f
jne 0x10058b1e
push esi
mov ecx, edi
call fcn.10058924
push ebx
lea ecx, [edi + 0x20]
call fcn.10058be2
mov ebx, eax
test ebx, ebx
jne 0x10058b34
mov esi, 0x8007000e
jmp 0x10058b86
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebx], esi
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
test ecx, ecx
jne 0x10058b72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10058b69
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x10058b7f
mov esi, 0x80004005
jmp 0x10058b7f
mov eax, dword [ebp + 0x14]
mov dword [ebx], ecx
test eax, eax
je 0x10058b7d
mov dword [eax], ecx
mov ebx, esi
test ebx, ebx
je 0x10058b86
dec dword [edi + 0x24]
pop ebx
mov ecx, edi
call fcn.10058ca5
pop edi
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x1005afc5
Capabilities:
Encode data using xor

Disassembly:
push esi
lea esi, [ecx + 0x10]
mov edx, dword [esi]
mov eax, edx
and eax, 0xffffc000
add eax, 0x4000
xor eax, edx
and eax, 0xfffc000
mov ecx, edx
xor edx, eax
mov eax, ecx
lock cmpxchg dword [esi], edx
mov edx, eax
cmp edx, ecx
jne 0x1005afcb
pop esi
ret

Function at 0x1005bc16
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp byte [ebx + 8], 0
mov dword [ebp - 4], esi
je 0x1005bc33
mov esi, 0x80004005
jmp 0x1005bced
mov ecx, dword [ebx + 0x38]
push edi
cmp ecx, dword [ebx + 0x34]
ja 0x1005bc61
lea eax, [ecx*4 + 0x14]
push eax
push dword [ebx + 0x2c]
call fcn.100581de
test eax, eax
jne 0x1005bc5a
mov esi, 0x8007000e
jmp 0x1005bcec
add dword [ebx + 0x38], 5
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.1005bdbf
test eax, eax
jns 0x1005bc77
mov edi, dword [ebp - 4]
mov esi, eax
jmp 0x1005bce1
mov eax, dword [ebx + 0x40]
or eax, dword [ebx + 0x44]
jne 0x1005bc8b
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edx
mov edi, dword [ebp - 4]
xor ecx, ecx
lea eax, [edi + 0x908]
inc ecx
lock xadd dword [eax], ecx
lea eax, [edi + 0x8f0]
push eax
push esi
push edi
push 0x1005be3c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1005bcc3
mov ecx, edi
call fcn.1005b5a2
mov esi, 0x80004005
jmp 0x1005bce1
mov dword [edi + 0x8ec], eax
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x2c]
mov dword [eax + ecx*4], edi
inc dword [ebx + 0x34]
push 0x3e
mov edi, esi
pop edx
lea eax, [ebx + 0x30]
lock xadd dword [eax], edx
test edi, edi
je 0x1005bcec
mov ecx, edi
call fcn.1005b5a2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10060819
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x28], ax
je 0x10060847
xor edx, edx
mov dword [ebp - 0x24], 0x20
jmp 0x1006087a
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
push 2
pop edx
push 6
mov word [ebp - 0x1c], ax
pop eax
push 0xd
mov word [ebp - 0x1a], ax
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
push 3
mov word [ebp - 0xe], ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], ecx
pop eax
push 0xc
push eax
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x26], dx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10048c09
leave
ret 8
Function at 0x10062f59
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [edi + 8]
mov dword [ebp - 0x24], eax
cmp eax, dword [edx + 4]
jne 0x10062fcf
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
and ecx, 0x7ff
cmp ecx, dword [edi + 0x14]
jne 0x10062fcf
mov eax, dword [edi + 8]
inc dword [eax + 8]
test byte [0x100a5dc0], 0x80
je 0x10062fbc
mov eax, dword [edi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push edi
push 0x1001d200
push dword [0x100a5dcc]
push dword [0x100a5dc8]
call fcn.1005e61b
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048c09
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push ebx
mov byte [ebp - 8], 0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x15], al
push esi
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
lea esp, [esp]
mov eax, ecx
and eax, 0x7ff
xor ebx, ebx
cmp eax, 0x7fb
sete bl
mov edx, ecx
test ebx, ebx
jne 0x1006301f
test eax, eax
je 0x1006301f
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
cmp byte [ebp - 0x15], bl
jne 0x10063049
and ecx, 0xfffff800
add ecx, 0x800
and ecx, 0xfffff800
jmp 0x10063047
mov eax, dword [edi + 0x14]
xor eax, ecx
and eax, 0x7ff
xor ecx, eax
cmp byte [ebp - 0x15], 0
mov dword [ebp - 0x20], 1
je 0x10063049
mov eax, ecx
shr eax, 0xb
dec eax
shl eax, 0xb
and ecx, 0x7ff
or ecx, eax
mov esi, dword [edi + 8]
mov eax, edx
lock cmpxchg dword [esi], ecx
mov ecx, eax
cmp ecx, edx
jne 0x10062fe5
cmp dword [ebp - 0x20], 0
mov eax, dword [edi + 8]
jne 0x1006310e
mov eax, dword [eax]
and eax, 0xfffff800
cmp eax, 0x28f5800
jb 0x1006307d
push 0x1c124c
call fcn.10042c89
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x100630b5
cmp byte [ebp - 0x15], 0
jne 0x1006309c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x1c], esi
test ebx, ebx
jne 0x100630b5
jmp 0x1006309f
mov esi, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, ebx
jae 0x100630d2
sub ebx, ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov byte [ebp - 0x15], 1
mov dword [ebp - 0x10], ebx
call fcn.1006334f
jmp 0x10062fdd
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov esi, dword [edi + 8]
mov ecx, eax
shr ecx, 0xb
dec ecx
mov edx, eax
and eax, 0x7ff
shl ecx, 0xb
or ecx, eax
mov eax, edx
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x100630d7
pop esi
pop ebx
mov eax, 0x102
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048c09
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov eax, dword [edi + 8]
mov dword [eax + 8], 1
test byte [0x100a5dc0], 0x80
je 0x10063147
mov eax, dword [edi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push edi
push 0x1001d200
push dword [0x100a5dcc]
push dword [0x100a5dc8]
call fcn.1005e61b
mov ecx, dword [ebp - 4]
neg ebx
sbb ebx, ebx
and ebx, 0x80
pop esi
mov eax, ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.10048c09
mov esp, ebp
pop ebp
ret 8
Function at 0x10064a0c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esi], eax
test edi, edi
je 0x10064a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [edi], ecx
xor eax, eax
cmp dword [esi], eax
pop edi
setne al
pop esi
pop ebp
ret 0x14

Function at 0x1006778c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100a5e78], 0
jne 0x1006780a
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001e450
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100677f1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001e424
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100677e5
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
xor eax, eax
test esi, esi
setne al
mov dword [0x100a5e78], 1
pop esi
mov dword [0x100a5e7c], eax
leave
ret
mov eax, dword [0x100a5e7c]
leave
ret