joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4956f2
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x154186c]
call fcn.004d504a
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x49582f
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x495758
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x49574d
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x495792
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x4957ec
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x4957ec
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x495779
jmp 0x4957ec
test ax, ax
je 0x4957ff
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x4957e8
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x4957dd
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x4957dd
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x4957dd
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x4957c6
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x49579f
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x495806
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x495810
test ebp, ebp
jne 0x495837
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x49573d
test ebp, ebp
jne 0x49584c
mov eax, ebx
jmp 0x495852
test edi, edi
je 0x49584c
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x495852
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4959cd
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x495a21
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x495a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x495a1b
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x4959e0
jmp 0x495a1f
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x495a27
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 0x495ae6
cmp dword [esp + 0x24], 2
je 0x495ae6
push 0x2000
push ebp
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x495ab5
cmp dword [esp + 0x18], 2
jne 0x495ad1
cmp dword [esp + 0x28], 0xffffffff
je 0x495a79
cmp ebp, dword [esp + 0x28]
jae 0x495ad1
add ebp, 2
test ebx, ebx
jne 0x495a9e
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x495ad1
cmp ax, 0xd
je 0x495ab5
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 0x495a65
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00561a10
jmp 0x495b78
push eax
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x495b04
cmp ebp, dword [esp + 0x28]
jae 0x495b5c
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 0x495b5c
cmp dword [esp + 0x18], 1
jne 0x495b5c
inc ebp
test ebx, ebx
jne 0x495b49
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x495b5c
cmp al, 0xd
je 0x495af7
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x495af7
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x495b73
call fcn.00561a60
jmp 0x495b78
call fcn.005619b0
push esi
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x495e6c
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
xor ecx, ecx
push ebx
push edi
xor edi, edi
inc ecx
mov ebx, edi
mov dword [esp + 8], edi
mov dword [esp + 0x18], ebx
cmp dword [eax + 0x10], ecx
jne 0x496019
push esi
mov esi, dword [esp + 0x58]
test esi, esi
je 0x496018
push ebp
push edi
push pe_nt_image_headers32
push 3
push edi
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x496017
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push edi
push dword [0x14c63d0]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x496010
call fcn.004e8fa0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x495ffd
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0057a071
push 0x1a4
push edi
call fcn.004e94b0
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004e9720
mov eax, dword [esp + 0x70]
add esp, 0x18
mov eax, dword [eax + 0x28]
cmp dword [eax + 8], 1
je 0x495f3f
cmp dword [eax + 8], 3
je 0x495f3f
push dword [esp + 0x60]
push edi
call fcn.004e8ca0
pop ecx
pop ecx
jmp 0x495f59
push dword [esp + 0x60]
call fcn.00561920
mov esi, eax
push esi
push edi
call fcn.004e94a0
pop ecx
pop ecx
push esi
call fcn.00561910
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004e9500
push 0x8000
push edi
call fcn.004e9310
mov eax, dword [esp + 0x6c]
push edi
push dword [eax]
call fcn.004e9700
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x78]
add esp, 0x1c
push 0
push eax
push 0x200000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x495fe6
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x10]
push eax
push esi
push dword [ebx]
call fcn.004e96c0
add esp, 0xc
cmp eax, dword [esp + 0x5c]
jne 0x495fda
add edi, dword [esp + 0x5c]
lea eax, [esp + 0x5c]
push 0
push eax
push 0x200000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x5c]
test eax, eax
jg 0x495fa8
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
push 1
pop eax
push edi
cmove ebx, eax
call fcn.004e8e30
pop ecx
jmp 0x496001
mov esi, dword [esp + 0x18]
push esi
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4960d4
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x496136
cmp word [esi], di
je 0x496136
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004ea120
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004ea3b0
add esp, 0x10
test eax, eax
jne 0x496135
push 0x2c
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x28], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x496807
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x49688d
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x49688c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x496884
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x496875
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00496c17
mov ebp, eax
push edi
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8
Function at 0x4b5dd0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x15401f8], 0
jne 0x4b5e7d
push 0x153fe18
push 0
mov dword [0x15401f8], 1
mov dword [0x15418e0], 0x40
call fcn.0052cd50
add esp, 8
test eax, eax
jne 0x4b5e7d
push fcn.004b5d30
push 0x40
push 0x68
call fcn.004d535d
mov dword [0x153fe10], eax
imul eax, dword [0x15418e0], 0x368
push eax
push 8
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x153fe18
mov dword [0x15418e4], eax
call fcn.0052cd40
push eax
mov dword [0x15418dc], eax
call fcn.0052b240
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x4b5fc0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4b5e73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x153fe14], 1
mov eax, dword [0x153fe10]
pop ecx
ret

Function at 0x4b6660
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
call fcn.00521580
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebx
push eax
mov dword [esp + 0xc], 0x14c1d48
call fcn.00521630
add esp, 8
test eax, eax
jne 0x4b672a
push esi
push edi
push 0x20000
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], eax
call fcn.00562723
push 0x20000
mov dword [ebx + 0x38], eax
call fcn.00562723
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 0x4b6730
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
test eax, eax
je 0x4b672a
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 0x4b6970
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x1540204], 0
jne 0x4b698e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1540200], eax
mov dword [0x1540204], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x1540200]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
cmp dword [0x1540204], 0
jne 0x4b69d0
call fcn.004b6970
push dword [0x1540200]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x4b69f3
call fcn.004b6970
push dword [0x1540200]
call ebx
mov edi, eax
lea edx, [edi + 8]
mov ebx, 0x11
nop dword [eax + eax]
imul eax, esi, 0x53a9b4fb
lea edx, [edx + 4]
mov ecx, 1
mov esi, 1
sub ecx, eax
imul eax, ecx, 0x53a9b4fb
mov dword [edx + 0x40], ecx
sub esi, eax
mov dword [edx - 4], esi
sub ebx, 1
jne 0x4b6a00
xor esi, esi
mov dword [edi], ebx
mov dword [edi + 4], 0xa
mov ebx, 0xa
lea ebp, [esi + 0x1f]
nop dword [eax + eax]
mov ecx, dword [edi + esi*4 + 8]
mov eax, dword [edi + esi*4 + 0x4c]
mov edx, dword [edi + ebx*4 + 8]
ror eax, 0xd
add eax, dword [edi + ebx*4 + 0x4c]
ror ecx, 5
add ecx, edx
mov dword [edi + esi*4 + 8], eax
mov dword [edi + esi*4 + 0x4c], ecx
mov eax, 0x10
add esi, 0xffffffff
cmovs esi, eax
add ebx, 0xffffffff
mov dword [edi], esi
cmovs ebx, eax
mov dword [edi + 4], ebx
sub ebp, 1
jne 0x4b6a40
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b6a80
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, edi
cmp dword [esp + 0x10], edi
cmovbe ebx, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x10], ebx
cmp dword [0x1540204], 0
jne 0x4b6aa5
call fcn.004b6970
push ebp
push esi
push dword [0x1540200]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov ebp, eax
test ebp, ebp
jne 0x4b6aca
call fcn.004b6970
push dword [0x1540200]
call esi
mov ebp, eax
mov esi, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + esi*4 + 0x4c]
mov ecx, dword [ebp + edx*4 + 8]
ror eax, 0xd
add eax, dword [ebp + edx*4 + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + esi*4 + 8]
mov ebx, dword [esp + 0x14]
ror eax, 5
add eax, ecx
mov dword [ebp + esi*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + esi*4 + 0x4c], eax
sub esi, 1
mov eax, 0x10
cmovs esi, eax
sub edx, 1
mov dword [ebp], esi
cmovs edx, eax
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], edx
pop esi
pop ebp
add edi, 1
je 0x4b6b28
mul edi
pop edi
lea eax, [ebx + edx]
pop ebx
ret 8
pop edi
add eax, ebx
pop ebx
ret 8
Function at 0x4b94d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x154181c]
call fcn.004d528b
mov ebx, eax
test ebx, ebx
je 0x4b9538
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4b94fd
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4b9538
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004d5cf0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.00461ce3
pop ecx
sub edi, eax
push edi
call fcn.004d5d80
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b9fde
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x1541a90]
call fcn.004d504a
xor ebx, ebx
mov esi, eax
cmp dword [0x1540654], ebx
jne 0x4ba0b0
xor ebp, ebp
inc ebp
mov dword [0x1540654], ebp
call fcn.004bf064
mov edi, 0xa8
push edi
push ebx
push 0x15405a8
call fcn.0046cb30
add esp, 0xc
mov dword [0x15405a8], 0x13
lea eax, [esp + 0x10]
mov dword [0x15405ac], edi
mov dword [0x15405b8], 0x4b9f29
mov dword [0x15405bc], 0x4ba24e
push eax
mov dword [0x1540610], 0x4b9f01
mov dword [0x1540614], 0x4ba193
mov dword [0x15405b4], 0x4b9edc
mov dword [0x1540638], 0x4b9f46
mov dword [0x1540658], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4ba0b0
cmp dword [esp + 0x20], ebp
je 0x4ba0aa
cmp dword [esp + 0x20], 2
jne 0x4ba0b0
cmp dword [esp + 0x14], 5
jb 0x4ba0aa
jne 0x4ba0b0
cmp dword [esp + 0x18], ebx
jne 0x4ba0b0
mov dword [0x1540658], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004c4b1f
mov eax, dword [esp + 0x140]
push ebx
push dword [0x14c63d4]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4ba184
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x154181c]
call fcn.004d52c9
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x4ba155
push esi
call fcn.004cfea3
test eax, eax
je 0x4ba155
push 0
push 0
push esi
call fcn.004cfa2f
jmp 0x4ba157
xor eax, eax
push 0x4b9c33
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x15405a8
push edi
push ebx
push ebp
mov dword [0x1540650], eax
call fcn.004be60f
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4bd2fa
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x4bd389
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x4bd389
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x14c63d0]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4

Function at 0x4bdec6
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x1541a90]
call fcn.004d504a
xor ebx, ebx
mov ebp, eax
cmp dword [0x1540c10], ebx
jne 0x4bdf5a
mov esi, 0xa8
push esi
push ebx
push 0x1540b68
call fcn.0046cb30
add esp, 0xc
mov dword [0x1540b6c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x1540b68], 0xa
mov dword [0x1540b70], 0x4bda54
push 0x7f89
push ebx
mov dword [0x1540be0], 0x4be748
mov dword [0x1540be4], 0x4be722
mov dword [0x1540b74], 0x4bda73
mov dword [0x1540bf8], 0x4bda93
call esi
mov dword [0x1540c10], eax
test eax, eax
jne 0x4bdf5a
push 0x7f00
push ebx
call esi
mov dword [0x1540c10], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004c4b1f
push ebx
push dword [0x14c63d4]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4be026
push edi
push dword [esp + 0x14]
push dword [0x154181c]
call fcn.004d52c9
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x14c63d0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x1540b68
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.004be60f
push 0x4bdb79
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x4bfb1f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1541810]
call fcn.004d528b
mov esi, eax
test esi, esi
je 0x4bfbfb
cmp dword [ebp + 0xc], 0
je 0x4bfb6b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4bfb5c
cmp dword [esi + 0x1c], 0
jne 0x4bfb5c
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4bfbfb
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x4bfb89
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004c0e94
cmp dword [esi + 0x3c], 0xffffffff
je 0x4bfbad
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4bfbc5
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x4bfbe0
test eax, eax
je 0x4bfbd6
push 8
jmp 0x4bfbe6
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x4bfbf1
test eax, eax
je 0x4bfbe9
push 3
pop ebx
jmp 0x4bfbf1
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4c1238
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 0x4c12ce
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4c12cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4c12cb
lea eax, [esi - 1]
push eax
push dword [0x1541810]
call fcn.004d528b
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4c12cd
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4c12bb
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4c12c6
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4c12ab
jmp 0x4c12cb
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4c1374
push eax
call esi
test al, al
jns 0x4c1374
push 0x11
call esi
test al, al
js 0x4c1374
push 0x10
call esi
test al, al
js 0x4c1374
push 0x12
call esi
test al, al
js 0x4c1374
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4c1374
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004633e7
add esp, 0xc
test eax, eax
je 0x4c1348
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004633e7
add esp, 0xc
test eax, eax
jne 0x4c135f
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4c13b5
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.005783e4
pop ecx
pop ecx
test eax, eax
je 0x4c13b5
test ebp, ebp
je 0x4c1398
push 0x11
call esi
test al, al
js 0x4c1390
push 0x10
call esi
test al, al
js 0x4c1390
push 0x12
call esi
test al, al
jns 0x4c1398
push 1
push ebp
call fcn.004c13c1
test ebx, ebx
je 0x4c13ac
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4c13b5
test edi, edi
je 0x4c13b5
mov eax, dword [edi + 8]
jmp 0x4c13b7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4c173d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4c1766
test byte [esp + 8], 2
je 0x4c175a
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4c1768
xor eax, eax
ret 8