joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ee6c
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 0x48f019
push esi
mov esi, dword [esp + 0x58]
test esi, esi
je 0x48f018
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 0x48f017
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push edi
push dword [0xf81410]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x48f010
call fcn.004e1fa0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x48effd
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00573071
push 0x1a4
push edi
call fcn.004e24b0
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004e2720
mov eax, dword [esp + 0x70]
add esp, 0x18
mov eax, dword [eax + 0x28]
cmp dword [eax + 8], 1
je 0x48ef3f
cmp dword [eax + 8], 3
je 0x48ef3f
push dword [esp + 0x60]
push edi
call fcn.004e1ca0
pop ecx
pop ecx
jmp 0x48ef59
push dword [esp + 0x60]
call fcn.0055a920
mov esi, eax
push esi
push edi
call fcn.004e24a0
pop ecx
pop ecx
push esi
call fcn.0055a910
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004e2500
push 0x8000
push edi
call fcn.004e2310
mov eax, dword [esp + 0x6c]
push edi
push dword [eax]
call fcn.004e2700
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 0x48efe6
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x10]
push eax
push esi
push dword [ebx]
call fcn.004e26c0
add esp, 0xc
cmp eax, dword [esp + 0x5c]
jne 0x48efda
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 0x48efa8
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.004e1e30
pop ecx
jmp 0x48f001
mov esi, dword [esp + 0x18]
push esi
push 0
push dword [0xf81410]
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 0x48f0d4
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x48f136
cmp word [esi], di
je 0x48f136
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004e3120
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004e33b0
add esp, 0x10
test eax, eax
jne 0x48f135
push 0x2c
push 8
push dword [0xf81410]
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 0x48f807
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 0x48f88d
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 0x48f88c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0xf81410]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x48f884
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 0x48f875
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0048fc17
mov ebp, eax
push edi
push 0
push dword [0xf81410]
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 0x4aedd0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0xffb238], 0
jne 0x4aee7d
push 0xffae58
push 0
mov dword [0xffb238], 1
mov dword [0xffc920], 0x40
call fcn.00525d50
add esp, 8
test eax, eax
jne 0x4aee7d
push fcn.004aed30
push 0x40
push 0x68
call fcn.004ce35d
mov dword [0xffae50], eax
imul eax, dword [0xffc920], 0x368
push eax
push 8
push dword [0xf81410]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xffae58
mov dword [0xffc924], eax
call fcn.00525d40
push eax
mov dword [0xffc91c], eax
call fcn.00524240
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x4aefc0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4aee73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xffae54], 1
mov eax, dword [0xffae50]
pop ecx
ret

Function at 0x4af660
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
call fcn.0051a580
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebx
push eax
mov dword [esp + 0xc], 0xf7cd88
call fcn.0051a630
add esp, 8
test eax, eax
jne 0x4af72a
push esi
push edi
push 0x20000
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], eax
call fcn.0055b723
push 0x20000
mov dword [ebx + 0x38], eax
call fcn.0055b723
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 0x4af730
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
test eax, eax
je 0x4af72a
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 0x4af970
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0xffb244], 0
jne 0x4af98e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0xffb240], eax
mov dword [0xffb244], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0xf81410]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0xffb240]
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 [0xffb244], 0
jne 0x4af9d0
call fcn.004af970
push dword [0xffb240]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x4af9f3
call fcn.004af970
push dword [0xffb240]
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 0x4afa00
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 0x4afa40
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4afa80
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 [0xffb244], 0
jne 0x4afaa5
call fcn.004af970
push ebp
push esi
push dword [0xffb240]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov ebp, eax
test ebp, ebp
jne 0x4afaca
call fcn.004af970
push dword [0xffb240]
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 0x4afb28
mul edi
pop edi
lea eax, [ebx + edx]
pop ebx
ret 8
pop edi
add eax, ebx
pop ebx
ret 8
Function at 0x4b24d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0xffc85c]
call fcn.004ce28b
mov ebx, eax
test ebx, ebx
je 0x4b2538
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4b24fd
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4b2538
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.004cecf0
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.0045ace3
pop ecx
sub edi, eax
push edi
call fcn.004ced80
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b2fde
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0xffcad0]
call fcn.004ce04a
xor ebx, ebx
mov esi, eax
cmp dword [0xffb694], ebx
jne 0x4b30b0
xor ebp, ebp
inc ebp
mov dword [0xffb694], ebp
call fcn.004b8064
mov edi, 0xa8
push edi
push ebx
push 0xffb5e8
call fcn.00465b30
add esp, 0xc
mov dword [0xffb5e8], 0x13
lea eax, [esp + 0x10]
mov dword [0xffb5ec], edi
mov dword [0xffb5f8], 0x4b2f29
mov dword [0xffb5fc], 0x4b324e
push eax
mov dword [0xffb650], 0x4b2f01
mov dword [0xffb654], 0x4b3193
mov dword [0xffb5f4], 0x4b2edc
mov dword [0xffb678], 0x4b2f46
mov dword [0xffb698], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b30b0
cmp dword [esp + 0x20], ebp
je 0x4b30aa
cmp dword [esp + 0x20], 2
jne 0x4b30b0
cmp dword [esp + 0x14], 5
jb 0x4b30aa
jne 0x4b30b0
cmp dword [esp + 0x18], ebx
jne 0x4b30b0
mov dword [0xffb698], 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.004bdb1f
mov eax, dword [esp + 0x140]
push ebx
push dword [0xf81414]
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 0x5c188c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4b3184
mov ebp, dword [esp + 0x128]
push ebp
push dword [0xffc85c]
call fcn.004ce2c9
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x4b3155
push esi
call fcn.004c8ea3
test eax, eax
je 0x4b3155
push 0
push 0
push esi
call fcn.004c8a2f
jmp 0x4b3157
xor eax, eax
push 0x4b2c33
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 0xffb5e8
push edi
push ebx
push ebp
mov dword [0xffb690], eax
call fcn.004b760f
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x4b4f8e
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4b5000
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, ebp
and ecx, dword [esp + 0x14]
push esi
push edi
push dword [ebx]
cmp ecx, 0xffffffff
cmove ebp, eax
call fcn.004b46ff
push ebp
push dword [ebx]
mov edi, eax
call fcn.004b46d8
add esp, 0xc
mov esi, eax
push 0
push ebp
push 0x130c
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebx]
call fcn.004b5020
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4b632c
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 0x4b63bb
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x4b63bb
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 [0xf81410]
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 [0xf81410]
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 0x4b6ef8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0xffcad0]
call fcn.004ce04a
xor ebx, ebx
mov ebp, eax
cmp dword [0xffbc50], ebx
jne 0x4b6f8c
mov esi, 0xa8
push esi
push ebx
push 0xffbba8
call fcn.00465b30
add esp, 0xc
mov dword [0xffbbac], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0xffbba8], 0xa
mov dword [0xffbbb0], 0x4b6a86
push 0x7f89
push ebx
mov dword [0xffbc20], 0x4b7748
mov dword [0xffbc24], 0x4b7722
mov dword [0xffbbb4], 0x4b6aa5
mov dword [0xffbc38], 0x4b6ac5
call esi
mov dword [0xffbc50], eax
test eax, eax
jne 0x4b6f8c
push 0x7f00
push ebx
call esi
mov dword [0xffbc50], 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.004bdb1f
push ebx
push dword [0xf81414]
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 0x5c18c0
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4b7058
push edi
push dword [esp + 0x14]
push dword [0xffc85c]
call fcn.004ce2c9
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 [0xf81410]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffbba8
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.004b760f
push 0x4b6bab
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 0x4b884b
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b89b4
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x4b8997
sub eax, 1
jne 0x4b89b4
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.004b8804
pop ecx
test eax, eax
je 0x4b88c2
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x4b88f8
inc edi
jmp 0x4b88f8
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b89b4
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x4b8993
sub ecx, 1
je 0x4b898f
sub ecx, 1
je 0x4b8971
sub ecx, 1
je 0x4b8935
sub ecx, 4
jne 0x4b89b4
test eax, eax
jne 0x4b89b4
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4b89b4
sub eax, 0
je 0x4b8964
sub eax, 1
je 0x4b8957
sub eax, 1
je 0x4b8950
sub eax, 1
jne 0x4b89b4
push 0x69
pop esi
push 0x64
jmp 0x4b8969
push 0x5a
pop esi
push 0x5f
jmp 0x4b895c
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x4b89b4
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x4b89b4
sub eax, 0
je 0x4b898b
sub eax, 1
je 0x4b8987
sub eax, 1
jne 0x4b89b4
push 0x41
pop esi
push 0x3c
jmp 0x4b8969
push 0x3c
jmp 0x4b89b3
push 0x32
jmp 0x4b89b3
push 0x14
jmp 0x4b89b3
push 5
jmp 0x4b89b3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b89b1
cmp eax, 0xa
je 0x4b89ad
cmp eax, 0x5a
jne 0x4b89b4
push 0x28
jmp 0x4b89b3
push 0x1e
jmp 0x4b89b3
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x4b8b1f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0xffc850]
call fcn.004ce28b
mov esi, eax
test esi, esi
je 0x4b8bfb
cmp dword [ebp + 0xc], 0
je 0x4b8b6b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4b8b5c
cmp dword [esi + 0x1c], 0
jne 0x4b8b5c
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4b8bfb
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x4b8b89
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004b9e94
cmp dword [esi + 0x3c], 0xffffffff
je 0x4b8bad
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 0x4b8bc5
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 0x4b8be0
test eax, eax
je 0x4b8bd6
push 8
jmp 0x4b8be6
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x4b8bf1
test eax, eax
je 0x4b8be9
push 3
pop ebx
jmp 0x4b8bf1
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 0x4ba238
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 0x4ba2ce
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4ba2cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4ba2cb
lea eax, [esi - 1]
push eax
push dword [0xffc850]
call fcn.004ce28b
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4ba2cd
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4ba2bb
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4ba2c6
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4ba2ab
jmp 0x4ba2cb
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4ba374
push eax
call esi
test al, al
jns 0x4ba374
push 0x11
call esi
test al, al
js 0x4ba374
push 0x10
call esi
test al, al
js 0x4ba374
push 0x12
call esi
test al, al
js 0x4ba374
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4ba374
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0045c3e7
add esp, 0xc
test eax, eax
je 0x4ba348
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0045c3e7
add esp, 0xc
test eax, eax
jne 0x4ba35f
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4ba3b5
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.005713e4
pop ecx
pop ecx
test eax, eax
je 0x4ba3b5
test ebp, ebp
je 0x4ba398
push 0x11
call esi
test al, al
js 0x4ba390
push 0x10
call esi
test al, al
js 0x4ba390
push 0x12
call esi
test al, al
jns 0x4ba398
push 1
push ebp
call fcn.004ba3c1
test ebx, ebx
je 0x4ba3ac
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4ba3b5
test edi, edi
je 0x4ba3b5
mov eax, dword [edi + 8]
jmp 0x4ba3b7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4ba73d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4ba766
test byte [esp + 8], 2
je 0x4ba75a
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 0x4ba768
xor eax, eax
ret 8
Function at 0x4ba779
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4ba8c1
xor ecx, ecx
cmp word [eax], cx
je 0x4ba8c1
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005710fa
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0045ace3
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4ba7d2
cmp eax, 3
jne 0x4ba80c
cmp word [esp + 0xa], 0x3a
jne 0x4ba80c
cmp eax, 2
jne 0x4ba7f0
lea eax, [esp + 8]
push 0x5a5398
push eax
call fcn.00571446
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ba8c1
push 0xfffffffffffffffe
pop edi
jmp 0x4ba8c1
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4ba821
cmp ax, bx
jne 0x4ba82b
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4ba814
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4ba86a
test byte [esp + 0x21c], 0x10
je 0x4ba851
push 0xfffffffffffffffe
pop edi
jmp 0x4ba861
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4ba8bf
cmp word [esp + 0x10], bp
jne 0x4ba878
cmp word [esp + 0x12], bp
je 0x4ba897
cmp word [esp + 0x10], bx
jne 0x4ba886
cmp word [esp + 0x12], bx
je 0x4ba897
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4ba8bf
cmp word [esp + 0x12], ax
jne 0x4ba8bf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4ba8ac
test al, 0x10
je 0x4ba8bf
jmp 0x4ba8bc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ba8bf
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4ba902
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4ba922
cmp dword [esp + 8], 0
je 0x4ba922
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4ba924
xor eax, eax
ret 8