joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbb70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543440
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x830
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 0x34], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x840], ecx
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push str.GetWeb
lea ecx, [ebp - 0x30]
call fcn.004a95e0
push 0x400000
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0xc]
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x30]
call fcn.004a95c0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a97a0
push 0x554518
lea ecx, [ebp - 0x20]
call fcn.0041c8a0
push 0
lea eax, [ebp - 0x24]
push eax
push 0x13
lea ecx, [ebp - 0x1c]
call fcn.004a97f0
cmp dword [ebp - 0x24], 0xc8
jne 0x4bbd1c
mov byte [ebp - 0x828], 0
push 0x7e8
push 0
lea ecx, [ebp - 0x827]
push ecx
call fcn.00512af0
add esp, 0xc
push 0x7e8
lea edx, [ebp - 0x828]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004a9760
test eax, eax
jbe 0x4bbd1c
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x828]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x830], eax
xor ecx, ecx
mov eax, dword [ebp - 0x830]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c8580
add esp, 4
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x4bbcbf
mov ecx, dword [ebp - 0x82c]
mov dword [ebp - 0x838], ecx
mov edx, dword [ebp - 0x838]
push edx
call fcn.005124eb
add esp, 4
mov eax, dword [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x82c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x828]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041c900
mov ecx, dword [ebp - 0x82c]
mov dword [ebp - 0x83c], ecx
mov edx, dword [ebp - 0x83c]
push edx
call fcn.005124eb
add esp, 4
mov dword [ebp - 0x82c], 0
jmp 0x4bbc2e
lea ecx, [ebp - 0x1c]
call fcn.004a9590
lea ecx, [ebp - 0x30]
call fcn.004a9590
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041c880
lea ecx, [ebp - 0x20]
call fcn.0040f740
lea ecx, [ebp - 0x1c]
call fcn.004a98b0
lea ecx, [ebp - 0x30]
call fcn.004a9740
lea ecx, [ebp + 0xc]
call fcn.0040f740
mov eax, dword [ebp + 8]
jmp 0x4bbd91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret 8
Function at 0x4c83d8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x591e94], 0
push esi
push edi
jne 0x4c8349
call fcn.004c82a3
test eax, eax
je 0x4c838e
mov eax, dword [0x591e94]
cmp eax, 1
jne 0x4c836a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4c838e
jmp 0x4c83d0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4c83d0
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4c8392
xor eax, eax
jmp 0x4c83d0
mov eax, dword [esi]
push dword [0x591e94]
call edi
mov edi, eax
test edi, edi
je 0x4c83b4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4c83d0
lea edi, [esi + 0xff0]
push esi
push dword [0x591e94]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4c83ba
mov eax, esi
pop edi
pop esi
ret
jmp 0x4c8335

Function at 0x4c9f9e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 4
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
mov dword [ebp - 0xc], eax
call esi
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4ca093
xor eax, eax
cmp dword [ebp - 4], eax
je 0x4ca01c
jmp 0x4c9fee
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4ca01a
push dword [ebp - 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
inc dword [ebp - 8]
test eax, eax
jne 0x4ca014
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c9fec
xor eax, eax
push eax
push eax
push eax
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4ca093
test eax, eax
je 0x4ca0a0
cmp dword [edi + 0x28], 0x10
jne 0x4ca050
mov eax, dword [ebp + 8]
cmp dword [edi + 0x24], eax
jne 0x4ca050
push 1
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [edi]
lea eax, [edi + 0x24]
push eax
mov ecx, edi
call dword [edx]
test eax, eax
jne 0x4ca078
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [edi + 0x28], 0x12
je 0x4ca0a0
lea eax, [edi + 0x24]
push eax
call fcn.004c95a1
add esp, 4
test eax, eax
je 0x4ca093
and dword [ebp - 8], 0
mov dword [ebp - 4], 1
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x4c9fe3
push 1
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [edi + 0x28], 0x12
jne 0x4ca0bf
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [edi + 0x2c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4cdbca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 8
call fcn.00512067
pop ecx
test eax, eax
jne 0x4cdbdc
leave
ret
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push eax
push 0x4cdbaa
push 0
push 0
call fcn.0051f19c
add esp, 0x18
leave
ret

Function at 0x4cdc32
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x28], edi
jne 0x4cdcb3
push ebx
lea eax, [esi + 8]
push eax
mov dword [esi + 0x28], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi + 0x30], edi
jle 0x4cdc68
mov eax, dword [esi + 0x2c]
push dword [eax + ebx*4]
call fcn.00511ac4
inc ebx
pop ecx
cmp ebx, dword [esi + 0x30]
jl 0x4cdc56
lea ecx, [esi + 0x2c]
call fcn.004cd7fb
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
cmp dword [esi + 0x24], edi
je 0x4cdca2
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x24], edi
cmp edi, edi
jne 0x4cdc80
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x4cdcb3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], edi
pop edi
pop esi
ret

Function at 0x4ce3f7
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x4ce40d
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x4ce419
or edi, 1
push 1
call esi
test ax, ax
jns 0x4ce425
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x4ce431
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x4ce43d
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x4ce442
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20319
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsDWM
push SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ce47c
xor eax, eax
jmp 0x4ce4aa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.ColorizationColor
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4ce49e
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4ce573
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00512af0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4ce5ce
cmp dword [ebp - 0x114], 6
jne 0x4ce5ce
cmp dword [ebp - 0x110], 2
jb 0x4ce5ce
xor eax, eax
inc eax
jmp 0x4ce5d0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00512610
leave
ret

Function at 0x4dd425
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x4dd44a
cmp ebx, dword [esi + 0x74]
je 0x4dd44a
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x74]
cmp ebx, eax
je 0x4dd514
push edi
test eax, eax
je 0x4dd4a1
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x1a
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1d8]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x74]
mov ecx, esi
call fcn.004dd2c4
mov dword [esi + 0x74], edi
test ebx, ebx
je 0x4dd513
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
cmp eax, esi
jne 0x4dd513
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x17c]
test al, al
je 0x4dd513
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x188]
test al, al
je 0x4dd513
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov dword [esi + 0x74], ebx
mov dword [ebp - 0x20], 0x1b
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1d8]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x74]
mov ecx, esi
call fcn.004dd2c4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4dd770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x148]
call fcn.004cd83e
mov edi, dword [ebp + 8]
test eax, eax
jle 0x4dd7c1
push dword [ebp - 4]
lea ecx, [esi + 0x148]
call fcn.004cd861
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx]
test al, al
jne 0x4dd853
inc dword [ebp - 4]
lea ecx, [esi + 0x148]
call fcn.004cd83e
cmp dword [ebp - 4], eax
jl 0x4dd791
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push 0xfffffffffffffff0
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi]
cmp dword [edi], ecx
je 0x4dd7ee
cmp ebx, ecx
jne 0x4dd8a9
test eax, 0x40000000
je 0x4dd8a9
mov edx, dword [edi + 8]
mov edi, dword [edi + 4]
sub edi, 0x100
je 0x4dd8b2
sub edi, 4
je 0x4dd857
dec edi
dec edi
jne 0x4dd8a9
xor eax, eax
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
push edx
stosw word es:[edi], ax
call fcn.0051f35f
pop ecx
mov ecx, dword [esi + 0x70]
push reloc.WS2_32.dll_sendto
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x4dc340
call dword [eax + 0x1cc]
mov esi, eax
test esi, esi
je 0x4dd8a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1a4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov al, 1
jmp 0x4dd8ab
cmp dword [esi + 0x74], 0
je 0x4dd8a9
xor eax, eax
push 8
pop ecx
mov byte [ebp - 0x28], 0
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x10], dx
mov dword [ebp - 0x14], eax
call fcn.004ce3f7
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x74]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1d8]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
cmp edx, 9
jne 0x4dd8a9
cmp dword [esi + 0x74], 0
je 0x4dd90b
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x17c]
test al, al
je 0x4dd90b
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x188]
test al, al
je 0x4dd90b
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
push 0x56d0dc
call dword [eax + 8]
push eax
call fcn.0051c16f
pop ecx
pop ecx
test eax, eax
je 0x4dd90b
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4dd900
lea ecx, [eax - 8]
jmp 0x4dd902
xor ecx, ecx
call fcn.004f9088
test al, al
jne 0x4dd8a9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.004dd5c9
jmp 0x4dd853
Function at 0x4f9ac8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x298], ebx
je 0x4f9b33
cmp dword [ebp + 8], 0x100
jne 0x4f9b22
cmp word [ebp + 0xc], 0xd
jne 0x4f9b22
cmp byte [esi + 0x29e], bl
je 0x4f9b06
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f9b22
cmp byte [esi + 0x29f], bl
jne 0x4f9b22
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
je 0x4f9b1e
push ebx
push ebx
push ebx
lea eax, [esi + 8]
push str.return
push eax
call fcn.004dd2c4
xor eax, eax
jmp 0x4f9b36
mov eax, dword [esi + 0x298]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4fe956
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
je 0x4fe982
mov ecx, dword [esi + 0x10]
add ecx, 8
mov eax, dword [ecx]
push 0
call dword [eax + 0x18]
mov ecx, eax
call fcn.004dbb4c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4fe9d4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00517e00
mov eax, esp
test eax, eax
je 0x4fe9d4
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00512610
leave
ret 0x10
Function at 0x500487
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
push edi
je 0x500519
cmp dword [esi + 0x10], 0
je 0x500519
mov eax, dword [esi]
call dword [eax + 0x1c]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x500519
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00517e00
mov ebx, esp
test ebx, ebx
je 0x500519
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0xe0
call fcn.0041dca0
mov eax, dword [esi + 0x10]
xor edx, edx
cmp eax, edx
je 0x5004fc
add eax, 8
jmp 0x5004fe
xor eax, eax
mov ecx, dword [esi + 0x10]
push edx
push edx
push edx
push str.textchanged
add ecx, 8
push eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
call fcn.004dd2c4
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00512610
leave
ret 0x10

Function at 0x50207a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, esi
mov edx, eax
call fcn.00500fdf
test al, al
je 0x5020cc
cmp byte [ebp + 8], 0
je 0x5020cc
cmp byte [ebp + 0xc], 0
mov byte [esi + 0x11], 1
je 0x5020ae
push edx
call fcn.00501dad
jmp 0x5020b2
mov byte [esi + 0x10], 1
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x5020e8
push 4
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5020e8
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5020e4
push 0
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x11], 0
pop esi
pop ebp
ret 8

Function at 0x50267a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x58f15c], 0xffffffff
jne 0x5026e3
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00512af0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5026dc
cmp dword [ebp - 0x114], 6
jb 0x5026dc
mov dword [0x58f15c], 1
jmp 0x5026e3
and dword [0x58f15c], 0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x58f15c], 1
sete al
xor ecx, ebp
call fcn.00512610
leave
ret
Function at 0x50647c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x5064a1
cmp eax, edi
jge 0x506499
mov eax, esi
call fcn.00505d35
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x5064ce
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x5064ae
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x5064ed
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x5064db
xor eax, eax
jmp 0x5064e3
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x5064d1
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x506521
mov dword [0x592678], str.zlib_corrupt
xor eax, eax
jmp 0x506561
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x506536
mov dword [0x592678], str.read_past_buffer
jmp 0x50651d
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x50654b
mov ecx, edi
call fcn.00505e68
test eax, eax
je 0x50651d
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00511ce0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x50acbc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d8], 0
push edi
je 0x50ad49
cmp dword [esi + 0x2d0], 0
je 0x50ad49
mov eax, dword [esi]
call dword [eax + 0x44]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50ad49
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00517e00
mov ebx, esp
test ebx, ebx
je 0x50ad49
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x2d0]
push ebx
add ecx, 0xd8
call fcn.0041dca0
mov ecx, dword [esi + 0x2d0]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x18]
mov ecx, eax
call fcn.004dd2c4
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00512610
leave
ret 0x10
Function at 0x510634
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0xc]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5106b0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00517e00
mov dword [ebp - 8], esp
test esp, esp
je 0x5106d8
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 8]
test eax, eax
je 0x510693
push dword [ebp - 8]
lea ecx, [eax + 0xd8]
call fcn.0041dca0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 8], 0
je 0x5106d8
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 0xffffffffffffffff
call dword [eax + 0x148]
mov ecx, dword [esi + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.killfocus
call fcn.004d61ec
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00512610
leave
ret 0x10

Function at 0x5106ee
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x510768
mov eax, dword [edi]
call dword [eax + 0xc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x510768
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00517e00
mov ebx, esp
test ebx, ebx
je 0x510768
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 8]
test eax, eax
je 0x510768
push ebx
lea ecx, [eax + 0xd8]
call fcn.0041dca0
mov ecx, dword [edi + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.textchanged
call fcn.004d61ec
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00512610
leave
ret 0x10

Function at 0x512610
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58f860]
jne 0x51261a
repz ret
jmp fcn.005205b2