joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4106b8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x19], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str..
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4107bf
test byte [ebp - 0x36c], 0x10
jne 0x4107a9
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0xb
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push dword [ebp - 0x34c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x21c]
push str._s_t_s_t_d
push eax
mov byte [ebp - 6], 0
mov byte [ebp - 0x302], 0
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x36c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41071b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411a98
leave
ret

Function at 0x4107d4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x411080
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x4291f8
push 0
mov dword [ebp - 8], 0x4291f4
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4110d3
push esi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
movzx eax, word [ebp + 0xc]
push 2
push 0
push eax
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x4113cc
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
or dword [ebp - 0x448], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x14]
push 0x5c
push esi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x458], ebx
call fcn.00411ab0
pop ecx
pop ecx
test eax, eax
je 0x411427
lea esi, [eax + 1]
push 0x40
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x444]
push eax
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 5], 0
call edi
mov esi, eax
test esi, esi
jle 0x4114ae
mov eax, dword [ebp + 0x18]
dec eax
je 0x411484
sub eax, 3
jne 0x41159a
lea eax, [ebp - 0x444]
push eax
call fcn.00412a74
pop ecx
mov ecx, dword [ebp - 0x44c]
mov dword [ecx], eax
jmp 0x41159a
push dword [ebp - 0x450]
mov edi, dword [ebp - 0x44c]
lea eax, [ebp - 0x444]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x450]
mov byte [eax + edi - 1], 0
jmp 0x41159a
push dword [ebp - 0x458]
lea eax, [ebp - 0x444]
push ebx
push eax
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call edi
xor esi, esi
lea edx, [ebp - 0x444]
cmp eax, esi
jle 0x411528
cmp byte [edx], 0
je 0x411528
mov edi, dword [ebp - 0x454]
mov ecx, edx
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x4114ff
test bl, bl
je 0x4114fb
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x4114ff
add ecx, 2
add edi, 2
test bl, bl
jne 0x4114df
xor ecx, ecx
jmp 0x411504
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, esi
je 0x411528
mov ecx, edx
lea edi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x41150d
sub ecx, edi
lea edx, [edx + ecx + 1]
mov ecx, edx
lea edi, [ebp - 0x444]
sub ecx, edi
cmp ecx, eax
jl 0x4114d2
mov ecx, edx
lea edi, [ebp - 0x444]
sub ecx, edi
cmp ecx, eax
jge 0x41153b
cmp byte [edx], 0
jne 0x41159a
lea eax, [ebp - 0x448]
push eax
push 0x20019
push esi
push dword [ebp - 0x45c]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41159a
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x44c]
push esi
push esi
push dword [ebp - 0x454]
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x448], 0xffffffff
je 0x41159a
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x4115ab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov dword [ebp - 0x488], eax
mov eax, dword [ebp + 0x1c]
push bind
push eax
mov dword [ebp - 0x490], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x411670
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c
push edi
call fcn.00411ab0
pop ecx
pop ecx
test eax, eax
je 0x41160f
lea edi, [eax + 1]
push edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
dec eax
je 0x411652
sub eax, 3
jne 0x4116d8
push dword [ebx]
lea eax, [ebp - 0x484]
push 0x429204
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x490]
lea eax, [ebp - 0x484]
push eax
jmp 0x411659
push dword [ebp - 0x490]
push ebx
push dword [ebp - 0x488]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, eax
jmp 0x4116d8
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x48c]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4116d8
cmp dword [ebp + 0x18], 1
jne 0x4116a9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x4116ac
mov eax, dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x18]
push 0
push dword [ebp - 0x488]
push dword [ebp - 0x48c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x48c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x411976
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
movzx eax, word [esi]
push edi
push dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x24]
push 0x4293c4
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x50], 8
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0x11
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x411a66
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov eax, str.UdpSend:_Port__d_may_be_reused
je 0x411a19
mov eax, 0x4293e8
push ebx
push dword [ebp + 8]
push eax
call fcn.00410209
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_bind]
push dword [ebp - 0x28]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.UdpSend_bind_returns__d__error__d_
call fcn.00410209
add esp, 0xc
test ebx, ebx
pop ebx
jns 0x411a74
push 0xfffffffffffffff8
pop esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411a98
leave
ret
push dword [ebp + 0x10]
push esi
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
push esi
push str.sendto_returns__d
call fcn.00410209
pop ecx
pop ecx
jmp 0x411a5d

Function at 0x411a98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4294a4]
jne 0x411aa2
repz ret
jmp fcn.00414b01
Function at 0x418daa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00417c89
and dword [ebp - 0x14], 0
cmp dword [0x430838], 0
mov dword [ebp - 0x18], eax
jne 0x418e5d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418f05
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x418f05
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x430838], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43083c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x430840], eax
call edi
push eax
call esi
mov dword [0x430848], eax
test eax, eax
je 0x418e5d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x430844], eax
mov eax, dword [0x430844]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418eb6
cmp dword [0x430848], ecx
je 0x418eb6
push eax
call esi
push dword [0x430848]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418eb6
test ebx, ebx
je 0x418eb6
call edi
test eax, eax
je 0x418ead
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418ead
test byte [ebp - 8], 1
jne 0x418eb6
or dword [ebp + 0x10], 0x200000
jmp 0x418ee9
mov eax, dword [0x43083c]
cmp eax, dword [ebp - 0x18]
je 0x418ee9
push eax
call esi
test eax, eax
je 0x418ee9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418ee9
mov eax, dword [0x430840]
cmp eax, dword [ebp - 0x18]
je 0x418ee9
push eax
call esi
test eax, eax
je 0x418ee9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430838]
call esi
test eax, eax
je 0x418f05
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418f07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x4090b4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4090bb
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 0x409163
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x40915a
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 0x40916e
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x409864
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 0x409886
mov dword [esp], 1
jmp 0x409896
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4099cf
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x4098ce
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x4098be
mov dword [esp], 1
jmp 0x4098ce
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4099cf
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x409906
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x4098f6
mov dword [esp], 1
jmp 0x409906
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4099cf
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x40993e
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40992e
mov dword [esp], 1
jmp 0x40993e
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4099cf
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x40996a
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40996a
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4099cf
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x409996
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409996
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4099cf
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x4099c2
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x4099c2
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x4099cf
xor edx, edx
mov eax, 1
jmp 0x4099cf
add esp, 4
pop ebx
ret 0x10
Function at 0x40cc5c
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 0x40cd40
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40ccf6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040d7f0
mov ebx, eax
cmp ebx, edi
je 0x40cd35
push dword [ebp + 8]
push dword [0x49da04]
call fcn.00414787
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040d793
push eax
push ebx
call fcn.0040d779
push eax
call fcn.0040d385
mov dword [esi], eax
cmp eax, edi
je 0x40ccee
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40cd35
push ebx
call fcn.0040d7a0
jmp 0x40cd35
push ebx
push edi
push dword [0x49d224]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40cd35
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.0040d36f
push esi
push edi
push dword [0x49d224]
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 0x40ce85
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 [0x49da04]
xor ebx, ebx
call fcn.00414824
mov esi, eax
test esi, esi
je 0x40d00b
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40cf37
push dword [ebp + 8]
call fcn.0040d4b7
jmp 0x40cec8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40cec0
push dword [esi + 0x14]
call fcn.0040d7c9
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.0040cd5a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40cdcd
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40cf0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cf1d
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d587
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 0x40d00b
test byte [ebp + 0xc], 1
je 0x40cf40
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x40cfcd
push esi
call fcn.0040d024
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00415050
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x49da18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40d00b
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 0x40cfb1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d4e7
jmp 0x40cfbd
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 0x40d00b
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 0x40cfef
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d587
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 0x40d00b
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 0x40d9a9
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40d9f8
push dword [esp + 0x10]
push 0x40d927
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x49da48]
cmp esi, ebx
je 0x40da4c
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40d9f0
cmp byte [esi + 0x10], bl
je 0x40d9f0
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 0x40d9cd
jmp 0x40da4c
mov esi, dword [0x49da48]
cmp esi, ebx
je 0x40da4c
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40da45
cmp byte [esi + 0x11], bl
je 0x40da22
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40da38
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 0x49da48
call fcn.0041507d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40da03
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40e0ff
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x49da58], 0
jne 0x40e111
call fcn.0040e050
push esi
push edi
push dword [0x49da54]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40e136
call fcn.0040e050
push dword [0x49da54]
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 0x40e13f
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.0040e009
dec edi
pop ecx
pop ecx
jne 0x40e170
pop edi
pop esi
leave
ret 4

Function at 0x410fa5
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 0x411021
push 9
call esi
test bl, al
je 0x411021
push 0x11
call esi
test bl, al
jne 0x411021
push 0x10
call esi
test bl, al
jne 0x411021
push 0x12
call esi
test bl, al
jne 0x411021
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 0x411021
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x411021
xor eax, eax
jmp 0x4110a3
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41104a
push 0x11
call esi
test bl, al
jne 0x411042
push 0x10
call esi
test bl, al
jne 0x411042
push 0x12
call esi
test bl, al
je 0x41104a
push 1
push ebp
call fcn.00410f5e
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x411060
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x4110a0
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x4110a0
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4110a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x4110a0
dec esi
push esi
push dword [0x49e05c]
call fcn.00414824
test eax, eax
je 0x4110a0
mov eax, dword [eax + 8]
jmp 0x4110a2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4