joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4aa391
cmp dword [esi + 0x84], 0
je 0x4aa391
push 2
push 3
push esi
call fcn.004931a0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004ac900
add esp, 4
test esi, esi
je 0x4aa3b4
cmp dword [esi + 0x84], 0
je 0x4aa3b4
push 3
push esi
call fcn.004931e0
add esp, 8
pop esi
pop ebp
ret

Function at 0x4abdf0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4abe0a
cmp dword [eax], 0
jne 0x4abe24
test ebx, ebx
je 0x4abe13
cmp dword [ebx], 0
jne 0x4abe24
test edi, edi
je 0x4abf07
cmp dword [edi], 0
je 0x4abf07
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push esi
lea esi, [ebp - 8]
test edx, edx
jg 0x4abe49
jl 0x4abe38
test ecx, ecx
jae 0x4abe3f
xor esi, esi
jmp 0x4abed0
test edx, edx
jl 0x4abec2
jg 0x4abe49
test ecx, ecx
je 0x4abec2
push 0
push 0x3e8
push edx
push ecx
call fcn.0051ed30
push 0
push 0x3e8
mov esi, edx
mov dword [ebp - 4], eax
push esi
push eax
call fcn.0051e5f0
mov ecx, dword [ebp + 0x18]
sub ecx, eax
mov eax, dword [ebp + 0x1c]
push 0
push 0x3e8
sbb eax, edx
push eax
push ecx
call fcn.0051e5f0
mov dword [ebp - 0xc], edx
mov ecx, eax
test esi, esi
jl 0x4abeb1
jg 0x4abe97
mov eax, dword [ebp - 4]
cmp eax, 0x7fffffff
jbe 0x4abeb4
mov eax, SysReAllocString
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
lea esi, [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x4abed0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea esi, [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x4abed0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x4abed9
cmp dword [edi], 0
jne 0x4abedb
xor edi, edi
test ebx, ebx
je 0x4abee4
cmp dword [ebx], 0
jne 0x4abee6
xor ebx, ebx
test eax, eax
je 0x4abeef
cmp dword [eax], 0
jne 0x4abef1
xor eax, eax
push esi
push edi
push ebx
push eax
mov eax, dword [ebp + 8]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp + 0x1c]
or eax, edx
mov dword [ebp - 4], edx
je 0x4abf52
test edx, edx
jg 0x4abf3f
jl 0x4abf20
test ecx, ecx
jae 0x4abf34
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x4abf4b
jg 0x4abf3f
cmp ecx, 0xffffffff
jb 0x4abf4b
mov ecx, 0xfffffffe
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af730
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4af745
mov eax, dword [eax + 0x7c]
mov al, byte [eax + 0xe7]
pop ebp
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4af763
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret

Function at 0x4af780
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x108], 2
jne 0x4af7d1
mov eax, dword [ebp + 8]
test eax, eax
je 0x4af7a1
mov eax, dword [eax + 0x7c]
mov al, byte [eax + 0xe7]
pop ebp
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4af7bd
xor esi, esi
test esi, esi
pop esi
setg al
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
pop esi
setg al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x4afc30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x34], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4afe01
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x2c], xmm0
push 0x7f000001
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x28], eax
xor eax, eax
push 4
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x34]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4afdef
push 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4afdef
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4afdef
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4afdef
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4afdef
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4afdef
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x4afdef
push ebx
push 0x590648
lea eax, [ebp - 0x1c]
push 0xc
push eax
call sym.XFPDFEditor.exe_curl_msnprintf
lea esi, [ebp - 0x1c]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4afd56
push 0
sub esi, ecx
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4afdef
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x4afdef
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x10]
sub esi, 4
jb 0x4afda3
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4afda8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4afd92
cmp esi, 0xfffffffc
je 0x4afdd5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4afdef
cmp esi, 0xfffffffd
je 0x4afdd5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4afdef
cmp esi, 0xfffffffe
je 0x4afdd5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4afdef
cmp esi, 0xffffffff
je 0x4afdd5
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4afdef
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005101e9
mov esp, ebp
pop ebp
ret
Function at 0x4b1330
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4b14c7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4b14b3
push edi
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b138e
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b1380
sub eax, edx
lea ecx, [eax + 1]
jmp 0x4b1390
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x4b13a2
mov eax, 0x10
jmp 0x4b13b0
cmp eax, 0x17
jne 0x4b1455
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x4b1455
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4b1455
cmp edx, eax
jb 0x4b1455
add eax, 0x20
add eax, ecx
push eax
call dword [0x5ae090]
mov edi, eax
add esp, 4
test edi, edi
je 0x4b14a5
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.005102b0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x4b1443
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.005102b0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x4b1452
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4b1370
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x4b1472
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4b14af
test ebx, ebx
je 0x4b1496
lea ebx, [ebx]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x5ae094]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x4b1480
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x4b1463
test ebx, ebx
jne 0x4b14bf
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0051faff
add esp, 0x18
test eax, eax
je 0x4b1832
cmp eax, 0xffffffff
jne 0x4b1834
xor eax, eax
pop ebp
ret
Function at 0x4ba270
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5ae090]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4ba29d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4ba2e4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4ba2ea
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4ba34a
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x4ba310
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4ba377
nop
mov eax, dword [esi + 4]
push 1
push 0x5690d1
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5690d2
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4ba350
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ba4c0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4ba4f5
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.00493520
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x20
jne 0x4ba543
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4ba551
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4ba561
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x4bc779
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x4bc79c
or esi, 1
push 2
call edi
test ax, ax
jns 0x4bc7a8
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4bc7b4
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4bc7c0
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4bfb84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x4a8]
call fcn.004ccd99
mov edi, dword [ebp + 8]
test eax, eax
jle 0x4bfbda
push ebx
lea ecx, [esi + 0x4a8]
mov byte [ebp + 0xb], 0
call fcn.004c285c
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x4bfc38
lea ecx, [esi + 0x4a8]
inc ebx
call fcn.004ccd99
cmp ebx, eax
jl 0x4bfba3
sub edi, 0x100
je 0x4bfc9e
sub edi, 4
je 0x4bfc3c
dec edi
dec edi
jne 0x4bfc93
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.005202e4
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x4c1510
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x4bfc93
mov edx, dword [esi]
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x4bfc95
cmp dword [esi + 0x108], 0
je 0x4bfc93
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.004bc779
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4bfc93
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x4bfcf7
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x4bfcf7
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x4bfcf7
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00516641
pop ecx
pop ecx
test eax, eax
je 0x4bfcf7
mov ecx, dword [esi + 0x108]
call fcn.004f0a06
test al, al
jne 0x4bfc93
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x4bfd3f
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x4bfd3f
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x4bfd3f
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00516641
pop ecx
pop ecx
test eax, eax
jne 0x4bfc93
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004c0d44
jmp 0x4bfc38
Function at 0x4c09cf
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x4c09fb
cmp esi, dword [ebx + 0x108]
je 0x4c09fb
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x4c0ad2
push edi
test eax, eax
je 0x4c0a5a
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x108]
call fcn.004c061c
mov dword [ebx + 0x108], edi
test esi, esi
je 0x4c0ad1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x4c0ad1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4c0ad1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4c0ad1
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x108]
call fcn.004c061c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c1e50
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x557dc3
call fcn.0051d595
mov edi, ecx
push 0xfffffffffffffff0
call fcn.004ccd99
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004ccd99
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.004bc45a
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call fcn.004bb8d3
lea ecx, [ebp - 0x36c]
call fcn.004d30fa
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004c2e27
test al, al
mov eax, dword [edi]
jne 0x4c1f2f
lea ecx, [ebp - 0x94]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004c2c76
push eax
call fcn.0051d3d4
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.004c2767
push 0
lea eax, [edi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.004c2c76
push eax
push esi
lea ecx, [ebp - 0x36c]
call fcn.004d4123
mov esi, eax
jmp 0x4c1f70
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, edi
lea esi, [edi + 0x28]
call dword [eax + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004c2c76
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
call fcn.004d4123
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.004c2767
test esi, esi
jne 0x4c1fd9
push 0xffffffffffffffff
push 0x5694a8
lea ecx, [ebp - 0x94]
call fcn.004c2664
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.004c2881
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.004c2767
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.004c2c76
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.004bb969
lea eax, [edi + 0x20]
mov ecx, ebx
push eax
call fcn.004bb819
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.004c2767
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.004d476d
xor eax, eax
call fcn.0051d544
ret 0x10

Function at 0x4c3af8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c3b2a
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4cbbfb
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.004cb934
Function at 0x4d0de4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb934

Function at 0x4d0ded
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.virtual_324

Function at 0x4d1dc9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x774], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x770], ecx
mov dword [ebx + 0x778], eax
test ecx, ecx
jne 0x4d1e31
call fcn.004d1b4c
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4d1e31
call fcn.004d1b4c
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.004d1b4c
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x770]
test ecx, ecx
jne 0x4d1e4e
mov ecx, edi
jmp 0x4d1e55
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004bc38c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.004c261b
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004c35a2
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4d1e98
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4d1e93
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005101e9
mov esp, ebp
pop ebp
ret 0x1c