joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c7d1
Capabilities:
Identify system language via api

Disassembly:
push ebp
push ebx
call fcn.00490160
call fcn.004098c7
push 0x34
push 0
call fcn.0041e3a9
push 0xffffffec
push 0x32
call fcn.004732ad
push eax
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
or ebx, 0x20
push ebx
push 0xffffffec
push 0x32
call fcn.004732ad
push eax
call sub.USER32.dll_SetWindowLongW
push 0x5a
call fcn.0048873d
push eax
mov eax, 0x54a03e
push eax
push 0
push 5
call fcn.00470370
push 0x17
call fcn.0048873d
push eax
mov eax, 0x54a03e
push eax
push 1
push 5
call fcn.00470370
push 8
call fcn.0048873d
push eax
mov eax, 0x54a03e
push eax
push 2
push 5
call fcn.00470370
mov ebp, dword [0x637d00]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 1
jne 0x40c933
call sub.KERNEL32.dll_GetUserDefaultLangID
mov ebx, eax
and ebx, 0x3ff
push ebx
mov ebx, 4
cmp ebx, dword [esp]
jne 0x40c8d2
mov eax, 0x55ef1a
push eax
call fcn.0040d23f
push 2
push 5
call fcn.004703d5
mov eax, 0x55ef1a
push eax
push 5
call fcn.0047040d
jmp 0x40c932
mov ebx, 9
cmp ebx, dword [esp]
jne 0x40c908
mov eax, str.English
push eax
call fcn.0040d23f
push 1
push 5
call fcn.004703d5
mov eax, str.English
push eax
push 5
call fcn.0047040d
jmp 0x40c932
mov eax, 0x54b740
push eax
call fcn.0040d23f
push 0
push 5
call fcn.004703d5
mov eax, 0x54b740
push eax
push 5
call fcn.0047040d
pop eax
mov ebp, dword [0x637d00]
mov ebx, dword [ebp + 0x1c]
xor ebx, 1
and ebx, ebx
je 0x40c9f1
mov ebp, dword [0x637ce0]
push dword [ebp]
mov edx, 0x55ef1a
mov ecx, dword [esp]
call fcn.00446340
je 0x40c98b
mov eax, 0x55ef1a
push eax
call fcn.0040d23f
push 2
push 5
call fcn.004703d5
mov eax, 0x55ef1a
push eax
push 5
call fcn.0047040d
jmp 0x40c9f0
mov edx, str.English
mov ecx, dword [esp]
call fcn.00446340
je 0x40c9c6
mov eax, str.English
push eax
call fcn.0040d23f
push 1
push 5
call fcn.004703d5
mov eax, str.English
push eax
push 5
call fcn.0047040d
jmp 0x40c9f0
mov eax, 0x54b740
push eax
call fcn.0040d23f
push 0
push 5
call fcn.004703d5
mov eax, 0x54b740
push eax
push 5
call fcn.0047040d
pop eax
call fcn.0040abaa
call fcn.00407402
call fcn.0043fbba
mov ebp, dword [0x637d00]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 1
jne 0x40ca15
call fcn.0042d8d4
jmp 0x40ca0e
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x41e67a
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.00490160
push dword [esp + 0x14]
call fcn.00446320
lea eax, [esp]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call sub.SHELL32.dll_SHGetKnownFolderPath
cmp dword [esp], 0
je 0x41e6d3
push edx
call fcn.0048fff0
pop edx
push eax
push edx
call fcn.0048fff0
pop edx
push eax
push dword [esp + 8]
call fcn.0048f140
lea eax, [esp + 8]
push eax
call fcn.00490090
push dword [esp]
call sub.ole32.dll_CoTaskMemFree
mov edx, dword [esp + 4]
push edx
call fcn.0048fff0
pop edx
push eax
push edx
call fcn.00490030
pop eax
push eax
call fcn.004462f0
pop edx
add eax, edx
jmp 0x41e6fb
push dword [esp + 4]
call fcn.004901f0
add esp, 8
ret 8
Function at 0x41ec9c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41eca3
call fcn.00490160
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00446000
mov edx, dword [esp + 0x34]
lea ecx, [esp + 4]
call fcn.00446000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
call fcn.00446000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
call fcn.00446000
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
call fcn.00446000
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.00446000
push 0
call sub.ole32.dll_CoInitialize
lea eax, [esp + 0x18]
push eax
mov ebp, 0x633d80
push ebp
push 1
push 0
mov ebp, 0x633d60
push ebp
call sub.ole32.dll_CoCreateInstance
mov ebx, eax
and ebx, ebx
jne 0x41ee10
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
add esp, 4
sub esp, 4
push dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
add esp, 4
sub esp, 4
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
add esp, 4
sub esp, 4
push dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
add esp, 4
push dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
push 0
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
sub esp, 4
push dword [esp + 0x50]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov ebp, 0x633d70
push ebp
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax]
mov ebx, eax
and ebx, ebx
jne 0x41ee06
sub esp, 4
push 1
push dword [esp + 0xc]
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
add esp, 4
mov ebx, eax
and ebx, ebx
jne 0x41edfc
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.ole32.dll_CoUninitialize
mov eax, dword [esp + 0x20]
jmp 0x41ee1d
push dword [esp + 8]
call fcn.004901f0
push dword [esp + 0xc]
call fcn.004901f0
push dword [esp]
call fcn.004901f0
push dword [esp + 4]
call fcn.004901f0
push dword [esp + 0x10]
call fcn.004901f0
push dword [esp + 0x14]
call fcn.004901f0
add esp, 0x24
pop ebx
pop ebp
ret 0x20
Function at 0x41f177
Capabilities:
Create process on windows

Disassembly:
push ebp
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41f17d
call fcn.00490160
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.00446000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.00446000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.00446000
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov eax, str.runas
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 1
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.dll_ShellExecuteExW
jmp 0x41f1f1
push dword [esp + 4]
call fcn.004901f0
push dword [esp]
call fcn.004901f0
push dword [esp + 8]
call fcn.004901f0
add esp, 0x48
pop ebp
ret 0xc

Function at 0x4478b5
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x44794d
push edi
push 0x6b2360
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x638760]
test edi, edi
je 0x447921
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44791a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x638760
call fcn.0048ff01
pop ecx
pop ecx
jmp 0x44791c
mov edi, dword [edi]
test edi, edi
jne 0x4478f1
pop ebx
mov eax, dword [0x633d90]
mov esi, eax
inc eax
push 0x10
push 0x638760
mov dword [0x633d90], eax
call fcn.0048ff41
pop ecx
pop ecx
push 0x6b2360
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x44b691
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x44b6e6
push dword [esp + 0x10]
push 0x44b610
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x638810]
test esi, esi
je 0x44b73f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x44b6de
cmp byte [esi + 0x10], 0
je 0x44b6de
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x44b6ba
jmp 0x44b73f
mov esi, dword [0x638810]
test esi, esi
je 0x44b73f
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x44b738
cmp byte [esi + 0x11], 0
je 0x44b714
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x44b72b
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x638810
call fcn.0048ff01
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x44b6f3
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x44bf23
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 0x44bfe2
cmp dword [esp + 0x24], 2
je 0x44bfe2
push 0x2000
push ebp
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x44bfb1
cmp dword [esp + 0x18], 2
jne 0x44bfcd
cmp dword [esp + 0x28], 0xffffffff
je 0x44bf75
cmp ebp, dword [esp + 0x28]
jae 0x44bfcd
add ebp, 2
test ebx, ebx
jne 0x44bf9a
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x44bfcd
cmp ax, 0xd
je 0x44bfb1
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 0x44bf61
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00529650
jmp 0x44c074
push eax
push 0
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x44c000
cmp ebp, dword [esp + 0x28]
jae 0x44c058
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 0x44c058
cmp dword [esp + 0x18], 1
jne 0x44c058
inc ebp
test ebx, ebx
jne 0x44c045
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x44c058
cmp al, 0xd
je 0x44bff3
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x44bff3
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x44c06f
call fcn.005296a0
jmp 0x44c074
call fcn.00529850
push esi
push 0
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x44d091
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x44d0f3
cmp word [esi], di
je 0x44d0f3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004b7200
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004b7410
add esp, 0x10
test eax, eax
jne 0x44d0f2
push 0x24
push 8
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x46dd90
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b0b48], 0
jne 0x46dd9e
call fcn.0046dc10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b0b4c]
call esi
test eax, eax
jne 0x46ddc1
call fcn.0046dc10
push dword [0x6b0b4c]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x46ddd0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x46de30
mov ebx, 0x10
test edi, edi
jns 0x46de39
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x46de02
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46de50
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b0b48], 0
jne 0x46de5e
call fcn.0046dc10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b0b4c]
call esi
mov edx, eax
test edx, edx
jne 0x46de85
call fcn.0046dc10
push dword [0x6b0b4c]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x46deb8
mov ebx, 0x10
test esi, esi
jns 0x46dec1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x46ded0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

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

Disassembly:
mov eax, dword [esp + 8]
push ebp
push edi
xor edi, edi
mov ebp, edi
test eax, eax
je 0x46e334
cmp word [eax], di
je 0x46e334
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46e32f
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x46e327
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 0x46e318
push dword [esp + 0x1c]
push ebx
push edi
push dword [esp + 0x20]
call fcn.0046e786
mov ebp, eax
push edi
push 0
push dword [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, ebp
pop esi
jmp 0x46e336
xor eax, eax
pop edi
pop ebp
ret 0xc
Function at 0x472377
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x6b26e4]
call fcn.0048f592
xor ebp, ebp
mov esi, eax
cmp dword [0x6b0e50], ebp
jne 0x472453
xor ebx, ebx
inc ebx
mov dword [0x6b0e50], ebx
call fcn.004768bf
mov edi, 0xa4
push edi
push ebp
push 0x6b0e58
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6b0e58], 0x13
lea eax, [esp + 0x10]
mov dword [0x6b0e5c], edi
mov dword [0x6b0e68], 0x4722c2
mov dword [0x6b0e6c], 0x47260d
push eax
mov dword [0x6b0ec0], 0x47229d
mov dword [0x6b0ec4], 0x472558
mov dword [0x6b0e64], 0x472278
mov dword [0x6b0ee8], 0x4722dd
mov dword [0x6b0efc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x472453
cmp dword [esp + 0x20], ebx
je 0x47243b
cmp dword [esp + 0x20], 2
jne 0x472453
cmp dword [esp + 0x14], 5
jae 0x472443
mov dword [0x6b0efc], ebp
jmp 0x472453
jne 0x472453
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x6b0efc], eax
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.0047b30d
mov eax, dword [esp + 0x140]
push ebp
push dword [0x637cc4]
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 ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x472529
push dword [esp + 0x128]
push dword [0x6b2700]
call fcn.0048fc11
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4724f8
push edi
call fcn.0048a3d5
test eax, eax
je 0x4724f8
push ebp
push ebp
push edi
call fcn.0048a044
mov dword [esi + 0x18], eax
jmp 0x4724fb
mov dword [esi + 0x18], ebp
push 0x471fc7
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x6b0e58
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x6b0e54], eax
call fcn.00476c80
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x475352
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00476c51
push eax
call fcn.00477828
push dword [0x6b12a4]
mov dword [esp + 0x24], eax
call fcn.0048f6e2
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x4753c6
inc ebx
push 0x12
call esi
test di, ax
je 0x4753d2
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4753de
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00474c11
push 0x475433
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.0047a5a8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4761f3
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x6b26e4]
call fcn.0048f592
xor ebx, ebx
mov ebp, eax
cmp dword [0x6b1380], ebx
jne 0x476287
mov esi, 0xa4
push esi
push ebx
push 0x6b1388
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6b138c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x6b1388], 0xa
mov dword [0x6b1390], 0x475d88
push 0x7f89
push ebx
mov dword [0x6b1400], 0x476e6a
mov dword [0x6b1404], 0x476e44
mov dword [0x6b1394], 0x475da7
mov dword [0x6b1418], 0x475dc7
call esi
mov dword [0x6b1380], eax
test eax, eax
jne 0x476287
push 0x7f00
push ebx
call esi
mov dword [0x6b1380], 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.0047b30d
push ebx
push dword [0x637cc4]
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 0x476353
push edi
push dword [esp + 0x14]
push dword [0x6b2700]
call fcn.0048fc11
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 [0x637cc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x6b1388
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.00476c80
push 0x475ead
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 0x477dc4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x6b2710]
call fcn.0048fbd2
mov esi, eax
test esi, esi
je 0x477e9e
cmp dword [ebp + 0xc], 0
je 0x477e10
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x477e01
cmp dword [esi + 0x1c], 0
jne 0x477e01
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x477e9e
test byte [ebp + 0x10], 3
je 0x477e2b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0047891e
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x477e50
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x477e64
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x477e81
test ebx, ebx
je 0x477e75
push 8
jmp 0x477e87
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x477e94
test ebx, ebx
je 0x477e8a
push 3
pop ecx
jmp 0x477e94
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x478ab1
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 0x478b49
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x478b46
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x478b46
lea eax, [esi - 1]
push eax
push dword [0x6b2710]
call fcn.0048fbd2
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x478b48
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x478b3d
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x478c30
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x478b23
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x478bef
push eax
call esi
test al, al
jns 0x478bef
push 0x11
call esi
test al, al
js 0x478bef
push 0x10
call esi
test al, al
js 0x478bef
push 0x12
call esi
test al, al
js 0x478bef
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x478bef
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x478bc3
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x478bda
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x478c3a
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x478c3a
test ebp, ebp
je 0x478c13
push 0x11
call esi
test al, al
js 0x478c0b
push 0x10
call esi
test al, al
js 0x478c0b
push 0x12
call esi
test al, al
jns 0x478c13
push 1
push ebp
call fcn.00478c46
test ebx, ebx
je 0x478c27
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x478c3a
test edi, edi
je 0x478c3a
mov eax, dword [edi + 8]
jmp 0x478c3c
and dword [esp + 0x14], 0
jmp 0x478b48
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4