joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad62
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41ada1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ada1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ada1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41ada1
cmp dword [ecx + 0x74], 0xe
jbe 0x41ada1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41ba0d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d26c
push 0x42d264
push str.FlsAlloc
push 0x1f
call fcn.0041b88c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ba41
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a178]
call esi
jmp 0x41ba47
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ba8b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d27c
push 0x42d274
push str.FlsGetValue
push 0x21
call fcn.0041b88c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bac2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41baca
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d284
push 0x42d27c
push str.FlsSetValue
push 0x22
call fcn.0041b88c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bb04
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42a178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f814
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4358b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f854
cmp byte [ebx], 0xa
jne 0x41f854
or byte [edi + eax + 0x28], 4
jmp 0x41f859
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41f958
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41f93b
inc eax
cmp dl, 0xd
je 0x41f885
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f8ab
cmp eax, ecx
jae 0x41f8b9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41f86d
jmp 0x41f958
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f936
cmp dword [ebp - 0x10], 0
je 0x41f936
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4358b0]
test byte [eax + edi + 0x28], 0x48
je 0x41f910
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f8fb
mov byte [esi], dl
jmp 0x41f90c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4358b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f958
cmp byte [ebp - 1], 0xa
jne 0x41f91f
cmp esi, ebx
jne 0x41f91f
mov byte [esi], 0xa
jmp 0x41f957
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042483e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f958
mov byte [esi], 0xd
jmp 0x41f957
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4358b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f955
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f958
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f961
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4358b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f9a7
cmp word [ebx], dx
jne 0x41f9a7
or byte [eax + edi + 0x28], 4
jmp 0x41f9ac
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41fb0f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41faef
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41f9ed
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41fa23
cmp eax, edx
jae 0x41fa31
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41f9c8
jmp 0x41fb0f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41faea
cmp dword [ebp - 0x18], 0
je 0x41faea
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4358b0]
test byte [eax + edi + 0x28], 0x48
je 0x41fac0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41fa84
mov word [esi], cx
jmp 0x41fabb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4358b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4358b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4358b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41fb0f
pop eax
cmp word [ebp - 4], ax
jne 0x41fad0
cmp esi, ebx
jne 0x41fad0
mov word [esi], ax
jmp 0x41fb0c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042483e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41fb0f
push 0xd
pop eax
jmp 0x41facb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4358b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41fb09
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41fb0f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4218b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x421953
push ebx
push esi
call fcn.0042187f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421813
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421900
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421952
push edi
push eax
call fcn.0041bf75
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421920
call fcn.0041b71f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421951
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421813
add esp, 0x20
test eax, eax
jne 0x42193f
push edi
call fcn.0041b71f
jmp 0x421947
push ebx
call fcn.0041b71f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4059e2
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x4967cc]
mov dword [0x4969a4], eax
mov edx, dword [0x4967e0]
call fcn.00414120
push eax
call fcn.004141f0
push 0x4969a8
call fcn.00414160
push dword [0x4969a8]
call fcn.0040a1d0
mov ebx, eax
inc ebx
mov dword [0x4969ac], ebx
push dword [0x4969a4]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x4969b0], eax
cmp dword [0x4969b0], 0
je 0x405b66
push 4
push 0x1000
push dword [0x4969ac]
push 0
push dword [0x4969b0]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x4969b4], eax
cmp dword [0x4969b4], 0
je 0x405b5b
push 0x4969b8
push dword [0x4969ac]
push dword [0x4969a8]
push dword [0x4969b4]
push dword [0x4969b0]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x4969b8]
cmp ebx, dword [0x4969ac]
jl 0x405b3f
push str.Kernel32.dll
push 0
call fcn.0040d2d8
and eax, eax
je 0x405b3f
push 0x44f7b4
push 0
call fcn.0040d315
mov dword [0x4969bc], eax
push 0
call fcn.0040d21a
cmp dword [0x4969bc], 0
je 0x405b3f
push 0
push 0
push dword [0x4969b4]
push dword [0x4969bc]
push 0
push 0
push dword [0x4969b0]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x4969c0], eax
cmp dword [0x4969c0], 0
je 0x405b3f
push 0xffffffff
push dword [0x4969c0]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x49677c
push dword [0x4969c0]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x4969ac]
push dword [0x4969b4]
push dword [0x4969b0]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x4969b0]
call sub.KERNEL32.dll_CloseHandle
push dword [0x4967e0]
call fcn.00410bc5
mov dword [0x49677c], eax
ret
Function at 0x405b77
Capabilities:
Enumerate process modules

Disassembly:
lea ebp, [0x496c90]
mov dword [ebp], 0x224
mov dword [0x4967e8], 0
push dword [0x4967cc]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x4969c4], eax
cmp dword [0x4969c4], 0
je 0x405d68
push 0x496c90
push dword [0x4969c4]
call sub.KERNEL32.dll_Module32First
and eax, eax
je 0x405d5b
call fcn.00414120
push eax
push eax
push dword [0x4967e0]
call fcn.0040a9f0
call fcn.00414250
call fcn.00414120
push eax
push eax
call fcn.00414120
push eax
push eax
lea ebp, [0x496c90]
lea eax, [ebp + 0x20]
push eax
call fcn.00413690
call fcn.00414292
add dword [esp], edx
call fcn.0040a9f0
call fcn.00414330
mov edx, eax
call fcn.00414330
mov ecx, eax
call fcn.00414300
je 0x405ccb
lea ebp, [0x496c90]
mov eax, dword [ebp + 0x14]
mov dword [0x4967e8], eax
call fcn.00414120
push eax
mov edx, dword [0x496864]
call fcn.00414120
push eax
call fcn.004141f0
mov edx, str.Copy.dll
call fcn.004141f0
call fcn.00414292
add dword [esp], edx
call fcn.00410bc5
call fcn.004142b0
mov dword [0x49677c], eax
push 0x12c
call fcn.0040cfe9
call fcn.00414120
push eax
mov edx, dword [0x496864]
call fcn.00414120
push eax
call fcn.004141f0
mov edx, str.Copy.dll
call fcn.004141f0
call fcn.00414250
call fcn.00414120
push eax
push eax
lea eax, [ebp + 0x120]
push eax
call fcn.00413690
call fcn.00414292
add dword [esp], edx
call fcn.00414292
add dword [esp + 4], edx
call fcn.00410bd7
call fcn.004142b0
mov dword [0x49677c], eax
push 0x496c90
push dword [0x4969c4]
call sub.KERNEL32.dll_Module32Next
mov dword [0x49677c], eax
cmp dword [0x49677c], 0
je 0x405d4d
call fcn.00414120
push eax
push eax
push dword [0x4967e0]
call fcn.0040a9f0
call fcn.00414250
call fcn.00414120
push eax
push eax
call fcn.00414120
push eax
push eax
lea ebp, [0x496c90]
lea eax, [ebp + 0x20]
push eax
call fcn.00413690
call fcn.00414292
add dword [esp], edx
call fcn.0040a9f0
call fcn.00414330
mov edx, eax
call fcn.00414330
mov ecx, eax
call fcn.00414300
je 0x405d4d
lea ebp, [0x496c90]
mov eax, dword [ebp + 0x14]
mov dword [0x4967e8], eax
mov ebx, dword [0x49677c]
and ebx, ebx
jne 0x405ccb
push dword [0x4969c4]
call sub.KERNEL32.dll_CloseHandle
jmp 0x405d77
push str.CreateToolhelp32Snapshot____failed_
push str.Error
call fcn.0040c915
ret
Function at 0x4084b4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4084bb
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x408563
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x40855a
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
pop eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x40856e
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x408c64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408c86
mov dword [esp], 1
jmp 0x408c96
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408dcf
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x408cce
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408cbe
mov dword [esp], 1
jmp 0x408cce
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408dcf
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x408d06
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408cf6
mov dword [esp], 1
jmp 0x408d06
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408dcf
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x408d3e
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408d2e
mov dword [esp], 1
jmp 0x408d3e
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408dcf
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x408d6a
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408d6a
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408dcf
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x408d96
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408d96
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408dcf
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x408dc2
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x408dc2
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x408dcf
xor edx, edx
mov eax, 1
jmp 0x408dcf
add esp, 4
pop ebx
ret 0x10
Function at 0x40bc5c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40bd40
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40bcf6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040c7f0
mov ebx, eax
cmp ebx, edi
je 0x40bd35
push dword [ebp + 8]
push dword [0x496f4c]
call fcn.00413777
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040c793
push eax
push ebx
call fcn.0040c779
push eax
call fcn.0040c385
mov dword [esi], eax
cmp eax, edi
je 0x40bcee
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40bd35
push ebx
call fcn.0040c7a0
jmp 0x40bd35
push ebx
push edi
push dword [0x49676c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40bd35
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0040c36f
push esi
push edi
push dword [0x49676c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40be85
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x496f4c]
xor ebx, ebx
call fcn.00413814
mov esi, eax
test esi, esi
je 0x40c00b
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40bf37
push dword [ebp + 8]
call fcn.0040c4b7
jmp 0x40bec8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40bec0
push dword [esi + 0x14]
call fcn.0040c7c9
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
xor ebx, ebx
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040bd5a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40bdcd
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40bf0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40bf1d
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c587
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40c00b
test byte [ebp + 0xc], 1
je 0x40bf40
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x40bfcd
push esi
call fcn.0040c024
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00414040
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x496f60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40c00b
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 5], bl
mov byte [edi + 4], 1
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40bfb1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c4e7
jmp 0x40bfbd
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
jmp 0x40c00b
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40bfef
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c587
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40c00b
xor edi, edi
inc edi
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c9a9
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40c9f8
push dword [esp + 0x10]
push 0x40c927
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x496f90]
cmp esi, ebx
je 0x40ca4c
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40c9f0
cmp byte [esi + 0x10], bl
je 0x40c9f0
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x40c9cd
jmp 0x40ca4c
mov esi, dword [0x496f90]
cmp esi, ebx
je 0x40ca4c
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40ca45
cmp byte [esi + 0x11], bl
je 0x40ca22
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40ca38
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x496f90
call fcn.0041406d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40ca03
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40d0ff
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x496fa0], 0
jne 0x40d111
call fcn.0040d050
push esi
push edi
push dword [0x496f9c]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40d136
call fcn.0040d050
push dword [0x496f9c]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0x11
lea ecx, [esi + 8]
pop edx
mov edi, eax
imul edi, edi, 0x53a9b4fb
xor eax, eax
inc eax
sub eax, edi
mov dword [ecx + 0x44], eax
imul eax, eax, 0x53a9b4fb
xor edi, edi
inc edi
sub edi, eax
mov eax, edi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x40d13f
and dword [esi], edx
push 0x1f
mov dword [esi + 4], 0xa
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040d009
dec edi
pop ecx
pop ecx
jne 0x40d170
pop edi
pop esi
leave
ret 4

Function at 0x40ffa5
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x410021
push 9
call esi
test bl, al
je 0x410021
push 0x11
call esi
test bl, al
jne 0x410021
push 0x10
call esi
test bl, al
jne 0x410021
push 0x12
call esi
test bl, al
jne 0x410021
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x410021
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x410021
xor eax, eax
jmp 0x4100a3
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41004a
push 0x11
call esi
test bl, al
jne 0x410042
push 0x10
call esi
test bl, al
jne 0x410042
push 0x12
call esi
test bl, al
je 0x41004a
push 1
push ebp
call fcn.0040ff5e
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x410060
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x4100a0
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x4100a0
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4100a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x4100a0
dec esi
push esi
push dword [0x4975a4]
call fcn.00413814
test eax, eax
je 0x4100a0
mov eax, dword [eax + 8]
jmp 0x4100a2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4