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

Disassembly:
push edi
push dword [0xc5f248]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x48528d
push esi
push dword [0xc5f244]
push 8
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0xc5f248]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0xc5f240]
jmp 0x48527d
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x48527b
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x48526b
push edi
push 0x48534f
call fcn.004f5798
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x485297
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 0x4852ad
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0xc5f244]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x4852e6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0xc5dbc4]
mov dword [0xc5f248], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0xc5f248]
call ebx
mov esi, dword [0xc5f244]
lea eax, [edi + esi]
push eax
push dword [0xc5f248]
mov dword [0xc5f244], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0xc5f248]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x485325
test ebx, ebx
je 0x485346
push 0x14
push 0xc5f240
call fcn.00490ce8
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x485346
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 0x485440
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc5c708]
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 0x485479
push ecx
push dword [0xc5f24c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x485488
push ecx
push 0
push dword [0xc5f24c]
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.004f5550
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x485680
Capabilities:
Get thread local storage value

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

Function at 0x4856d0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc5c708]
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 0x4856f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0xc5c708]
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 0x485730
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc5c708]
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 0x485760
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc5c708]
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 0x485790
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc5c708]
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 0x488620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x488713
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 0x488636
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x48f610
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x1ec], 0
jne 0x48f6ac
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 0x48f676
mov edx, dword [esp + 0x14]
xor ecx, ecx
nop
cmp esi, 4
jae 0x48f66b
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x48f650
cmp esi, 4
jb 0x48f630
push dword [esp + 8]
push str.rand_s
jmp 0x48f69d
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.0048fd00
add esp, 8
mov dword [edi + 0x1ec], eax
pop esi
cmp byte [edi + 0xe8], 0
je 0x48f6c8
push str.xmlhttp:__www.w3.org_XML_1998_namespace
push edi
call fcn.0048e320
add esp, 8
pop edi
add esp, 8
ret
mov al, 1
pop edi
add esp, 8
ret

Function at 0x490480
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc5c708]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x49049e
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 0x4904c2
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4904dd
cmp edx, 0x100000
jle 0x4904f0
cmp ecx, 0x100000
jge 0x4904d7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0xc5f24c]
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 0x490eee
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x490f43
push dword [esp + 0x10]
push 0x490fa2
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0xc5f2b4]
test edi, edi
je 0x490f9c
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x490f3b
cmp byte [edi + 0x10], 0
je 0x490f3b
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 0x490f17
jmp 0x490f9c
mov edi, dword [0xc5f2b4]
test edi, edi
je 0x490f9c
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x490f95
cmp byte [edi + 0x11], 0
je 0x490f6e
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x490f85
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 0xc5f2b4
call fcn.00490d17
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x490f50
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x491070
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc5c708]
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 0x4aadf4
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 0x4aaeb3
cmp dword [esp + 0x24], 2
je 0x4aaeb3
push 0x2000
push ebp
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x4aae82
cmp dword [esp + 0x18], 2
jne 0x4aae9e
cmp dword [esp + 0x28], 0xffffffff
je 0x4aae46
cmp ebp, dword [esp + 0x28]
jae 0x4aae9e
add ebp, 2
test ebx, ebx
jne 0x4aae6b
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4aae9e
cmp ax, 0xd
je 0x4aae82
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 0x4aae32
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004acb90
jmp 0x4aaf45
push eax
push 0
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4aaed1
cmp ebp, dword [esp + 0x28]
jae 0x4aaf29
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 0x4aaf29
cmp dword [esp + 0x18], 1
jne 0x4aaf29
inc ebp
test ebx, ebx
jne 0x4aaf16
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4aaf29
cmp al, 0xd
je 0x4aaec4
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x4aaec4
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x4aaf40
call fcn.004acaa0
jmp 0x4aaf45
call fcn.00491130
push esi
push 0
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4b4580
Capabilities:
Get thread local storage value

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

Function at 0x4b45b0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc5c708]
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 0x4c9570
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x4c971f
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4c971f
push esi
mov esi, dword [esp + 0x24]
push edi
test esi, esi
je 0x4c95a6
mov eax, dword [esi + 4]
test eax, eax
je 0x4c95b6
push dword [esi]
push 0x18
call eax
add esp, 8
jmp 0x4c95b0
push 0x18
call fcn.004f9fdb
add esp, 4
mov edi, eax
test edi, edi
jne 0x4c95c0
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 0x4c9620
test esi, esi
je 0x4c9605
cmp dword [esi], 0
jne 0x4c95eb
cmp dword [esi + 0xc], 0
jne 0x4c95f1
cmp dword [esi + 4], 0
jne 0x4c95eb
cmp dword [esi + 8], 0
je 0x4c9605
cmp dword [esi + 0xc], 0
je 0x4c9620
cmp dword [esi + 4], 0
jne 0x4c95fd
cmp dword [esi + 8], 0
je 0x4c9620
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x4c9620
mov dword [eax], 0
mov dword [eax + 4], 0x4c9310
mov dword [eax + 8], 0x4c9320
mov dword [eax + 0xc], 0x4c9340
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x4c9530
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [ebp], ecx
test ecx, ecx
jne 0x4c9685
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c9420
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c9718
test esi, esi
je 0x4c9675
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4c967e
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.004eb5cb
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.0x4c9691.2
jmp dword [eax*4 + 0x4c9728]
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 0x4df5d0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
call fcn.004c29a0
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebx
push eax
mov dword [esp + 0xc], 0xc5d1dc
call fcn.004c29b0
add esp, 8
test eax, eax
jne 0x4df69a
push esi
push edi
push 0x20000
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], eax
call fcn.004f9fdb
push 0x20000
mov dword [ebx + 0x38], eax
call fcn.004f9fdb
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 0x4df6e0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
test eax, eax
je 0x4df69a
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 0x4e38f0
Capabilities:
Terminate process

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

Disassembly:
push esi
push 0x188
push 8
push dword [0xc5dbc4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xc5f158]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0xc5f15c], 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.0051ac79
mov dword [esi + 0x58], 0x4ead1c
mov eax, esi
mov dword [esi + 0x5c], 0x4ead68
mov dword [esi + 0x10], fcn.004e9c55
mov dword [esi + 0x30], 0x4e9de1
mov dword [esi + 0x64], 0x4e9ff8
mov dword [esi + 0x60], 0x4ea050
mov dword [esi + 0x34], 0x4ea68a
mov dword [esi + 0x24], 0x4ea53c
mov dword [esi + 0x28], 0x4ea565
mov dword [esi + 0x2c], 0x4ea590
mov dword [esi + 0x44], 0x4eab11
mov dword [esi + 0x68], 0x4e9be0
mov dword [esi + 0x6c], 0x4e9c3f
pop esi
ret 4
Function at 0x4ec1f4
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 0x4ec28a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4ec287
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4ec287
lea eax, [esi - 1]
push eax
push dword [0xc5f004]
call fcn.00487871
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4ec289
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4ec277
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4ec282
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4ec267
jmp 0x4ec287
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4ec330
push eax
call esi
test al, al
jns 0x4ec330
push 0x11
call esi
test al, al
js 0x4ec330
push 0x10
call esi
test al, al
js 0x4ec330
push 0x12
call esi
test al, al
js 0x4ec330
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4ec330
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004f5588
add esp, 0xc
test eax, eax
je 0x4ec304
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004f5588
add esp, 0xc
test eax, eax
jne 0x4ec31b
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4ec371
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004aadb4
pop ecx
pop ecx
test eax, eax
je 0x4ec371
test ebp, ebp
je 0x4ec354
push 0x11
call esi
test al, al
js 0x4ec34c
push 0x10
call esi
test al, al
js 0x4ec34c
push 0x12
call esi
test al, al
jns 0x4ec354
push 1
push ebp
call fcn.004ec495
test ebx, ebx
je 0x4ec368
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4ec371
test edi, edi
je 0x4ec371
mov eax, dword [edi + 8]
jmp 0x4ec373
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4ec760
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 0x4ec782
push ebx
call fcn.0047f0a0
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 0x4ec7fe
mov eax, esi
sub eax, 1
je 0x4ec7ea
sub eax, 1
je 0x4ec7d4
sub eax, 2
je 0x4ec7c0
push esi
push ecx
push dword [esp + 0x20]
call fcn.004aa840
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.004aa840
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 0x4ec846
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 0x4ec866
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.004aa840
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4ec890
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0xc5dbc4]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4eca20
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 0x4ec8de
test ebp, ebp
je 0x4ec986
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4ec8fa
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004ec760
mov dword [esp + 0x10], eax
jmp 0x4ec914
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 0x4ec989
test cl, cl
je 0x4ec928
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 0x4ec963
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xc5dbc4]
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 0x4ec986
cmp dword [esp + 0x28], 0
jne 0x4ec8d0
cmp cl, 0xd
je 0x4ec992
cmp cl, 0xa
jne 0x4ec8d0
dec esi
jmp 0x4eca03
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x4eca03
jmp 0x4ec995
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4ec99d
dec esi
jmp 0x4eca03
cmp cl, 0xd
jne 0x4eca03
dec esi
cmp dword [edi], 0
je 0x4ec9bb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004ec760
mov dword [esp + 0x10], eax
jmp 0x4ec9d1
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 0x4eca03
cmp dword [edi], 0
je 0x4ec9e2
inc dword [ebx + 0xc]
jmp 0x4eca03
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