joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48898c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0xd93e88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4889ed
push esi
push dword [0xd93e84]
push 8
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0xd93e88]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0xd93e80]
jmp 0x4889dd
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4889db
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4889cb
push edi
push 0x488aaf
call fcn.004f8f88
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4889f7
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x488a0d
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0xd93e84]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x488a46
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0xd927c4]
mov dword [0xd93e88], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0xd93e88]
call ebx
mov esi, dword [0xd93e84]
lea eax, [edi + esi]
push eax
push dword [0xd93e88]
mov dword [0xd93e84], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0xd93e88]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x488a85
test ebx, ebx
je 0x488aa6
push 0x14
push 0xd93e80
call fcn.00494448
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x488aa6
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x488ba0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x488bd9
push ecx
push dword [0xd93e8c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x488be8
push ecx
push 0
push dword [0xd93e8c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.004f8d40
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x488de0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x488e30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax + 0x19c]
mov ecx, dword [eax + 8]
mov dword [eax + edx*4 + 0xc], ecx
inc dword [eax + 0x19c]
ret
Function at 0x488e50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0xd91308]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
dec dword [eax + 0x19c]
mov ecx, dword [eax + 0x19c]
mov esi, dword [eax + ecx*4 + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret

Function at 0x488e90
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
dec dword [edx + 0x19c]
mov ecx, dword [edx + 0x19c]
mov eax, dword [edx + ecx*4 + 0xc]
mov dword [edx + 8], eax
ret

Function at 0x488ec0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
dec dword [eax + 0x19c]
mov ecx, dword [eax + 0x19c]
mov ecx, dword [eax + ecx*4 + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret

Function at 0x488ef0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
dec dword [edx + 0x19c]
mov ecx, dword [edx + 0x19c]
mov eax, dword [edx + ecx*4 + 0xc]
add eax, dword [edx]
ret
Function at 0x48bd80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x48be73
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x48bd96
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x492d70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x1ec], 0
jne 0x492e0c
push esi
xor esi, esi
nop dword [eax + eax]
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x492dd6
mov edx, dword [esp + 0x14]
xor ecx, ecx
nop
cmp esi, 4
jae 0x492dcb
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x492db0
cmp esi, 4
jb 0x492d90
push dword [esp + 8]
push str.rand_s
jmp 0x492dfd
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 8]
xor esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
imul eax, eax, 0x7fffffff
push eax
push str.fallback_4_
call fcn.00493460
add esp, 8
mov dword [edi + 0x1ec], eax
pop esi
cmp byte [edi + 0xe8], 0
je 0x492e28
push str.xmlhttp:__www.w3.org_XML_1998_namespace
push edi
call fcn.00491a80
add esp, 8
pop edi
add esp, 8
ret
mov al, 1
pop edi
add esp, 8
ret

Function at 0x493be0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x493bfe
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x493c22
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x493c3d
cmp edx, 0x100000
jle 0x493c50
cmp ecx, 0x100000
jge 0x493c37
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0xd93e8c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8
Function at 0x49464e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4946a3
push dword [esp + 0x10]
push 0x494702
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0xd93ef4]
test edi, edi
je 0x4946fc
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x49469b
cmp byte [edi + 0x10], 0
je 0x49469b
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x494677
jmp 0x4946fc
mov edi, dword [0xd93ef4]
test edi, edi
je 0x4946fc
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4946f5
cmp byte [edi + 0x11], 0
je 0x4946ce
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x4946e5
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0xd93ef4
call fcn.00494477
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4946b0
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4947d0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4
Function at 0x4ae554
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x4ae613
cmp dword [esp + 0x24], 2
je 0x4ae613
push 0x2000
push ebp
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x4ae5e2
cmp dword [esp + 0x18], 2
jne 0x4ae5fe
cmp dword [esp + 0x28], 0xffffffff
je 0x4ae5a6
cmp ebp, dword [esp + 0x28]
jae 0x4ae5fe
add ebp, 2
test ebx, ebx
jne 0x4ae5cb
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4ae5fe
cmp ax, 0xd
je 0x4ae5e2
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ae592
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004b02f0
jmp 0x4ae6a5
push eax
push 0
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4ae631
cmp ebp, dword [esp + 0x28]
jae 0x4ae689
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ae689
cmp dword [esp + 0x18], 1
jne 0x4ae689
inc ebp
test ebx, ebx
jne 0x4ae676
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4ae689
cmp al, 0xd
je 0x4ae624
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x4ae624
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x4ae6a0
call fcn.004b0200
jmp 0x4ae6a5
call fcn.00494890
push esi
push 0
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4b7ce0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4b7d07
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x4b7d07
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x4b7d10
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xd91308]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4
Function at 0x4cccd0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x4cce7f
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4cce7f
push esi
mov esi, dword [esp + 0x24]
push edi
test esi, esi
je 0x4ccd06
mov eax, dword [esi + 4]
test eax, eax
je 0x4ccd16
push dword [esi]
push 0x18
call eax
add esp, 8
jmp 0x4ccd10
push 0x18
call fcn.004fd7cb
add esp, 4
mov edi, eax
test edi, edi
jne 0x4ccd20
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
ret
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov dword [edi], ebx
test eax, eax
je 0x4ccd80
test esi, esi
je 0x4ccd65
cmp dword [esi], 0
jne 0x4ccd4b
cmp dword [esi + 0xc], 0
jne 0x4ccd51
cmp dword [esi + 4], 0
jne 0x4ccd4b
cmp dword [esi + 8], 0
je 0x4ccd65
cmp dword [esi + 0xc], 0
je 0x4ccd80
cmp dword [esi + 4], 0
jne 0x4ccd5d
cmp dword [esi + 8], 0
je 0x4ccd80
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x4ccd80
mov dword [eax], 0
mov dword [eax + 4], 0x4cca70
mov dword [eax + 8], 0x4cca80
mov dword [eax + 0xc], 0x4ccaa0
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x4ccc90
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [ebp], ecx
test ecx, ecx
jne 0x4ccde5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ccb80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4cce78
test esi, esi
je 0x4ccdd5
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4ccdde
push dword [esi]
push edi
call ecx
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.004eed2b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
mov eax, dword [esp + 0x18]
add eax, 5
cmp eax, 6
ja case.0x4ccdf1.2
jmp dword [eax*4 + 0x4cce88]
mov eax, 0xfffffff1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xf
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x4e2d30
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
call fcn.004c6100
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebx
push eax
mov dword [esp + 0xc], 0xd91ddc
call fcn.004c6110
add esp, 8
test eax, eax
jne 0x4e2dfa
push esi
push edi
push 0x20000
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], eax
call fcn.004fd7cb
push 0x20000
mov dword [ebx + 0x38], eax
call fcn.004fd7cb
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x20]
push esi
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x28]
push 0x20000
push dword [ebx + 0x38]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x50], 1
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x64], edi
mov dword [ebx + 0x68], esi
call edi
push esi
push 0x20000
push dword [ebx + 0x3c]
mov dword [ebx + 0x40], eax
call edi
add esp, 0x20
mov dword [ebx + 0x44], eax
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push 0x4e2e40
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
test eax, eax
je 0x4e2dfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x60], 1
mov eax, 1
pop ebx
pop ecx
ret
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4e7050
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4e7070
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4e7070
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4e7070
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4ed24e
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0xd927c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xd93d98]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0xd93d9c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0051e469
mov dword [esi + 0x58], 0x4ee47c
mov eax, esi
mov dword [esi + 0x5c], 0x4ee4c8
mov dword [esi + 0x10], fcn.004ed3b5
mov dword [esi + 0x30], 0x4ed541
mov dword [esi + 0x64], 0x4ed758
mov dword [esi + 0x60], 0x4ed7b0
mov dword [esi + 0x34], 0x4eddea
mov dword [esi + 0x24], 0x4edc9c
mov dword [esi + 0x28], 0x4edcc5
mov dword [esi + 0x2c], 0x4edcf0
mov dword [esi + 0x44], 0x4ee271
mov dword [esi + 0x68], 0x4ed340
mov dword [esi + 0x6c], 0x4ed39f
pop esi
ret 4
Function at 0x4ef954
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4ef9ea
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4ef9e7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4ef9e7
lea eax, [esi - 1]
push eax
push dword [0xd93c44]
call fcn.0048afd1
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4ef9e9
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4ef9d7
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4ef9e2
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4ef9c7
jmp 0x4ef9e7
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4efa90
push eax
call esi
test al, al
jns 0x4efa90
push 0x11
call esi
test al, al
js 0x4efa90
push 0x10
call esi
test al, al
js 0x4efa90
push 0x12
call esi
test al, al
js 0x4efa90
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4efa90
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004f8d78
add esp, 0xc
test eax, eax
je 0x4efa64
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004f8d78
add esp, 0xc
test eax, eax
jne 0x4efa7b
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4efad1
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004ae514
pop ecx
pop ecx
test eax, eax
je 0x4efad1
test ebp, ebp
je 0x4efab4
push 0x11
call esi
test al, al
js 0x4efaac
push 0x10
call esi
test al, al
js 0x4efaac
push 0x12
call esi
test al, al
jns 0x4efab4
push 1
push ebp
call fcn.004efbf5
test ebx, ebx
je 0x4efac8
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4efad1
test edi, edi
je 0x4efad1
mov eax, dword [edi + 8]
jmp 0x4efad3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4efec0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x4efee2
push ebx
call fcn.00482740
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x4eff5e
mov eax, esi
sub eax, 1
je 0x4eff4a
sub eax, 1
je 0x4eff34
sub eax, 2
je 0x4eff20
push esi
push ecx
push dword [esp + 0x20]
call fcn.004adfa0
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.004adfa0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x4effa6
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x4effc6
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.004adfa0
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4efff0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0xd927c4]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4f0180
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x4f003e
test ebp, ebp
je 0x4f00e6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4f005a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004efec0
mov dword [esp + 0x10], eax
jmp 0x4f0074
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x4f00e9
test cl, cl
je 0x4f0088
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4f00c3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xd927c4]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x4f00e6
cmp dword [esp + 0x28], 0
jne 0x4f0030
cmp cl, 0xd
je 0x4f00f2
cmp cl, 0xa
jne 0x4f0030
dec esi
jmp 0x4f0163
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x4f0163
jmp 0x4f00f5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4f00fd
dec esi
jmp 0x4f0163
cmp cl, 0xd
jne 0x4f0163
dec esi
cmp dword [edi], 0
je 0x4f011b
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004efec0
mov dword [esp + 0x10], eax
jmp 0x4f0131
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x4f0163
cmp dword [edi], 0
je 0x4f0142
inc dword [ebx + 0xc]
jmp 0x4f0163
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10