joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547ad0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1001c
call fcn.005d9990
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x547d20
mov eax, dword [esi + 0xd14]
push 1
push 2
push eax
push 0x8016
mov dword [esi + 0xce0], 0
call fcn.00599d90
add esp, 0x10
test eax, eax
jne 0x547d20
jmp 0x547b20
mov ecx, dword [esi + 0xd08]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0xd08], ecx
jl 0x547b5e
mov ecx, dword [esi + 0xd14]
push 0
push 2
push ecx
push 0x8016
mov dword [esi + 0xd08], 0
call fcn.00599d90
add esp, 0x10
test eax, eax
jne 0x547d20
cmp dword [esi + 0xc04], 2
jne 0x547d20
mov eax, dword [esi + 0xcf0]
test eax, eax
mov edi, dword [esi + 0xc14]
je 0x547bae
push esi
call fcn.00545a40
add esp, 4
test eax, eax
jne 0x547bac
mov edx, dword [esi + 0xd14]
push eax
push 2
push edx
push 0x8016
call fcn.00599d90
add esp, 0x10
test eax, eax
jne 0x547d20
mov eax, 0x200
mov edi, eax
cmp edi, 0x200
jge 0x547bbd
mov edi, 0x200
jmp 0x547bca
cmp edi, 0x10000
jbe 0x547bca
mov edi, 0x10000
mov eax, dword [esi + 0xc00]
push 1
push 0
push 0
push eax
call fcn.0049d260
add esp, 0x10
push 0
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x2c], edx
push edi
lea edx, [esp + 0x34]
mov ebx, eax
mov eax, dword [esi + 0xc00]
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x547cd4
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x10], eax
jl 0x547cd4
je 0x547d20
mov edx, dword [esi + 0xd14]
push 0
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x547cdd
cmp edi, dword [esp + 0x10]
jge 0x547c6d
mov ecx, dword [esp + 0x24]
mov eax, edi
cdq
add eax, ebx
push 0
adc edx, ecx
push edx
push eax
mov eax, dword [esi + 0xc00]
push eax
call fcn.0049d260
add esp, 0x10
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
push esi
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fadd qword [esi + 0xc28]
fstp qword [esi + 0xc28]
fld qword [esp + 0x14]
fadd qword [esi + 0xcf8]
fstp qword [esi + 0xcf8]
call fcn.00545f10
mov eax, dword [0x61a9c0]
add esp, 4
test eax, eax
jne 0x547b20
mov ecx, dword [esi + 0xd14]
push 0
push 2
push ecx
push 0x8016
call fcn.00599d90
add esp, 0x10
test eax, eax
je 0x547b20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x1397
jmp 0x547d0f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
push 0
jne 0x547d0a
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0xc00]
push edx
push ebx
push eax
call fcn.0049d260
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x139a
call fcn.00424130
push eax
push 0
push esi
call fcn.00546ec0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x547d30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x547f6d
cmp dword [edi + 0xc04], 2
jne 0x547f6d
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 0xce0], esi
fld qword [edi + 0xc40]
fcomp qword [0x5f56a0]
fnstsw ax
test ah, 1
jne 0x547dfe
fld qword [edi + 0xc40]
fcomp qword [0x5f5808]
fnstsw ax
test ah, 0x41
jne 0x547dfe
mov ecx, dword [edi + 0xd14]
push esi
push 8
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x20], eax
call ebx
mov ecx, dword [esp + 0x20]
push ecx
xor esi, esi
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
or esi, eax
mov eax, esi
xor edx, edx
and esi, 0x7fffffff
or ecx, edx
mov dword [esp + 0x2c], esi
and eax, 0x80000000
xor esi, esi
mov dword [esp + 0x28], ecx
fild qword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
fild qword [esp + 0x30]
fchs
faddp st(1)
jmp 0x547e34
mov ecx, dword [edi + 0xd14]
push esi
push 4
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x20], eax
call ebx
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x547e34
fadd qword [0x5f53f0]
mov eax, dword [esp + 0x1c]
fstp qword [esp + 0x10]
cmp eax, 0xffffffff
je 0x547ea8
cmp eax, esi
jle 0x547f5e
fld qword [esp + 0x10]
fcomp qword [edi + 0xc18]
fnstsw ax
test ah, 0x41
jnp 0x547f5e
fld qword [edi + 0xc40]
mov eax, dword [esp + 0x10]
fcomp qword [0x5f56a0]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0xc18], eax
mov dword [edi + 0xc1c], ecx
fnstsw ax
test ah, 1
jne 0x547e9a
fld qword [esp + 0x10]
fcomp qword [edi + 0xc40]
fnstsw ax
test ah, 1
je 0x547f46
push edi
call fcn.00545f10
add esp, 4
jmp 0x547d62
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x547f27
fld qword [edi + 0xc40]
fcomp qword [0x5f56a0]
fnstsw ax
test ah, 1
jne 0x547edb
fld qword [edi + 0xc28]
fcomp qword [edi + 0xc40]
fnstsw ax
test ah, 5
jnp 0x547ef2
fld qword [edi + 0xc40]
fcomp qword [0x5f56a0]
fnstsw ax
test ah, 5
jp 0x547f6d
cmp dword [0x61a9c0], esi
jne 0x547f15
mov edx, dword [edi + 0xd14]
push esi
push 2
push edx
push 0x8016
call fcn.00599d90
add esp, 0x10
test eax, eax
jne 0x547f6d
push edi
call fcn.00547ad0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x139a
call fcn.00424130
push eax
push esi
push edi
call fcn.00546ec0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc40]
mov ecx, dword [edi + 0xc44]
mov dword [edi + 0xc18], eax
mov dword [edi + 0xc1c], ecx
push 0x5f4c90
push esi
push edi
call fcn.00546ec0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54a470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.00548dc0
mov esi, eax
add esp, 8
test esi, esi
je 0x54a49e
jle 0x54a49e
mov eax, dword [0x68ef74]
test eax, eax
je 0x54a49e
cmp dword [eax + 0x1c], esi
je 0x54a4ad
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x54a492
pop edi
pop esi
mov dword [esp + 4], 0
jmp fcn.00421dc0
mov eax, dword [eax]
push eax
push 0x432
push 0x683fa0
call fcn.00425550
push 0
push 0x5173d0
push 0x3c
push edi
call fcn.004762c0
push esi
push 0x683fa0
push edi
call fcn.0054a270
push edi
call fcn.00549010
add esp, 0x2c
pop edi
pop esi
ret
Function at 0x54bb30
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x461
push edi
call esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x54bc46
push 0x1068
push 0x628dc0
call fcn.004232e0
mov eax, dword [0x62b300]
add esp, 8
test eax, eax
je 0x54bb99
push 0x480
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, eax
neg esi
sbb esi, esi
and esi, 4
add esi, 0x47c
jmp 0x54bb9e
mov esi, 0x480
push 0x628dc0
push 0x1068
push 0x628dc0
call fcn.00423310
add esp, 8
push eax
push 0xd
push esi
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov al, byte [0x628dc0]
test al, al
je 0x54bc46
push 0x2a
push 0x628dc0
call fcn.005d9b20
add esp, 8
test eax, eax
jne 0x54bc46
push 0x3f
push 0x628dc0
call fcn.005d9b20
add esp, 8
test eax, eax
jne 0x54bc46
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54bc46
push eax
call fcn.0054add0
add esp, 4
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x54bc46
mov al, byte [0x692578]
test al, al
je 0x54bc3d
push 9
push 0x692578
call fcn.005d9b20
add esp, 8
test eax, eax
jne 0x54bc3d
call fcn.00508b70
push eax
push 0xffffffffffffffff
push 0x692578
call fcn.00555340
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x54ebf0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x551240
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0x164
push esi
mov esi, dword [esp + 0x16c]
lea eax, [esi + 0x264]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x551271
mov eax, 3
pop esi
add esp, 0x164
ret
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov dword [esp + 8], eax
xor eax, eax
mov ax, word [esi + 0x396]
push ebx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x1c], edx
mov word [esp + 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x24]
mov word [esp + 0xe], ax
mov edx, dword [ecx]
push 0x687448
lea eax, [esp + 0x40]
push 0x132
push eax
mov dword [esp + 0x1c], edx
call fcn.00425550
mov al, byte [esi + 0x398]
mov ebx, dword [0x687440]
lea edi, [esi + 0x398]
add esp, 0xc
test al, al
je 0x551309
push edi
push 0x132
push 0x687448
call fcn.00425550
add esp, 0xc
mov dword [0x687440], 2
push 0
xor ecx, ecx
mov cx, word [0x61a70c]
push 0
xor edx, edx
mov dx, word [0x61a708]
push 2
push 0
push ecx
push edx
call fcn.0052f8a0
mov dword [esi + 0x544], eax
lea eax, [esp + 0x54]
push eax
push 0x132
push 0x687448
call fcn.00425550
mov dword [0x687440], ebx
mov eax, dword [esi + 0x544]
add esp, 0x24
cmp eax, 0xffffffff
jne 0x551367
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x164
ret
push eax
call fcn.00598890
mov ecx, dword [0x6a0f40]
mov edx, dword [esi + 0x544]
add esp, 4
push 0x10
push 0x8039
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x544]
cmp eax, 0xffffffff
je 0x5513df
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x5513df
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push 0x132
push edi
call fcn.00425550
mov ecx, dword [esp + 0x3a]
add esp, 0xc
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 0x4ca], ax
mov eax, dword [esi + 0x544]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x551413
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x551413
pop edi
pop ebx
mov eax, 2
pop esi
add esp, 0x164
ret
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x164
ret
Function at 0x5516e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [0x69362c]
test esi, esi
je 0x551890
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x544], eax
je 0x55170d
mov esi, dword [esi + 0x54c]
test esi, esi
jne 0x5516f6
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
shr eax, 0x10
test ax, ax
push edi
je 0x551765
mov edi, dword [esi + 0x4e4]
movzx eax, ax
mov dword [esi + 0x52c], eax
mov eax, dword [0x68758c]
test eax, eax
je 0x551744
push 3
push 0x3d
push esi
push str.SOCKOPEN
call fcn.0054fc90
add esp, 0x10
push edi
push esi
call fcn.0054fb50
add esp, 8
test eax, eax
je 0x55188f
push esi
call fcn.0054fa70
add esp, 4
pop edi
pop esi
add esp, 0x14
ret
mov edi, 2
push 0
mov dword [esi + 0x4e8], edi
call fcn.005daa26
mov dword [esi + 0x524], eax
mov dword [esi + 0x528], eax
mov eax, dword [esi + 0x538]
add esp, 4
test eax, eax
je 0x5517ff
mov eax, dword [esi + 0x53c]
test eax, eax
jne 0x5517f4
mov ecx, dword [esi + 0x544]
push 1
push ecx
mov dword [esi + 0x53c], 1
call fcn.0055a510
add esp, 8
test eax, eax
jne 0x55188f
mov dword [esi + 0x53c], 3
mov eax, dword [0x68758c]
test eax, eax
je 0x551756
mov edi, dword [esi + 0x4e4]
push 5
push 0x3b
push esi
push str.SOCKCLOSE
call fcn.0054fc90
push edi
push esi
call fcn.0054fb50
add esp, 0x18
jmp 0x55174e
cmp eax, 1
jne 0x5517bd
mov dword [esi + 0x53c], edi
mov edx, dword [0x6a0f40]
mov eax, dword [esi + 0x544]
push 0x23
push 0x8038
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x544]
cmp eax, 0xffffffff
je 0x551874
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x551874
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [esi + 0x398]
push 0x132
push ecx
call fcn.00425550
mov edx, dword [esp + 0x1a]
add esp, 0xc
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 0x4ca], ax
mov eax, dword [0x68758c]
test eax, eax
je 0x55188f
push 0
push 0x3d
push esi
push str.SOCKOPEN
call fcn.0054fc90
add esp, 0x10
pop edi
pop esi
add esp, 0x14
ret
Function at 0x552870
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [0x69362c]
test esi, esi
je 0x552af0
mov eax, dword [esp + 0x20]
cmp dword [esi + 0x544], eax
je 0x55289d
mov esi, dword [esi + 0x54c]
test esi, esi
jne 0x552886
pop esi
add esp, 0x18
ret
cmp dword [esi + 0x4e8], 2
jne 0x552af0
mov eax, dword [esp + 0x24]
shr eax, 0x10
test ax, ax
push edi
je 0x5528f0
movzx eax, ax
jmp 0x5529b8
push 0x3f
push esi
push str.SOCKWRITE
call fcn.0054fc90
add esp, 0x10
push edi
push esi
call fcn.0054fb50
add esp, 8
test eax, eax
je 0x552aef
push esi
call fcn.0054fa70
add esp, 4
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x4dc]
test eax, eax
je 0x552aef
mov edi, dword [esi + 0x4e0]
cmp edi, 0x2000
jle 0x552911
mov edi, 0x2000
mov ecx, dword [esi + 0x4f4]
test ecx, ecx
je 0x55298b
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea eax, [esi + 0x4fc]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ecx
mov word [esp + 0x10], 2
mov edx, dword [eax]
xor eax, eax
mov ax, word [esi + 0x500]
mov dword [esp + 0x14], edx
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 8]
push 0x10
mov word [esp + 0x16], ax
mov edx, dword [ecx]
mov ecx, dword [esi + 0x4dc]
lea eax, [esp + 0x14]
push eax
push 0
push edi
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x544]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
jmp 0x55299c
push 0
push edi
push eax
mov eax, dword [esi + 0x544]
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
jne 0x5529ee
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x552aef
mov edi, dword [esi + 0x4e4]
mov dword [esi + 0x52c], eax
mov eax, dword [0x68758c]
test eax, eax
je 0x5528cf
mov eax, dword [esi + 0x4f4]
test eax, eax
push 3
je 0x5528bf
push 0x46
push esi
push str.UDPWRITE
jmp 0x5528c7
push 0
call fcn.005daa26
add esp, 4
test edi, edi
mov dword [esi + 0x524], eax
jle 0x552a7e
fild dword [esp + 8]
mov eax, dword [esi + 0x4e0]
cmp edi, eax
fstp qword [esp + 8]
fld qword [esp + 8]
fadd qword [esi + 0x510]
fstp qword [esi + 0x510]
jge 0x552a7e
mov ecx, dword [esi + 0x4dc]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
mov dword [esi + 0x4e0], eax
call fcn.005daa60
mov eax, dword [esi + 0x4e0]
mov ecx, dword [esi + 0x4dc]
add eax, 0xa
push eax
push ecx
call fcn.005dbd64
add esp, 0x14
test eax, eax
je 0x552a60
mov dword [esi + 0x4dc], eax
mov edx, dword [esi + 0x544]
push 0
push 2
push edx
push 0x8038
call fcn.00599d90
add esp, 0x10
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x4dc]
push eax
call fcn.005d9fa3
mov eax, dword [esi + 0x4f4]
add esp, 4
test eax, eax
mov dword [esi + 0x4dc], 0
mov dword [esi + 0x4e0], 0
je 0x552ab9
mov ecx, dword [esi + 0x4f8]
test ecx, ecx
je 0x5528e1
mov ecx, dword [0x68758c]
test ecx, ecx
je 0x552aef
test eax, eax
push 0
je 0x552adf
push 0x46
push esi
push str.UDPWRITE
call fcn.0054fc90
add esp, 0x10
pop edi
pop esi
add esp, 0x18
ret
push 0x3f
push esi
push str.SOCKWRITE
call fcn.0054fc90
add esp, 0x10
pop edi
pop esi
add esp, 0x18
ret
Function at 0x55eda0
Capabilities:
Log keystrokes via polling

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.0058ed20
add esp, 4
test eax, eax
je 0x55ef13
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ah, ah
jns 0x55eddd
mov eax, dword [edi]
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop edi
ret
push 0x11
call esi
test ah, ah
jns 0x55ee17
mov ecx, dword [edi]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x55ef12
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x55ef12
mov eax, dword [edi]
push 1
push eax
call fcn.004a8840
add esp, 8
pop esi
pop edi
ret
mov eax, dword [0x676ed8]
test eax, eax
je 0x55ee82
call fcn.00423480
mov ecx, dword [0x676ed0]
mov esi, dword [0x676ed4]
sub eax, ecx
sbb edx, esi
test edx, edx
jg 0x55ee82
jl 0x55ee42
cmp eax, 0xfa
jae 0x55ee82
mov ecx, dword [edi]
push ecx
call fcn.0058ee70
add esp, 4
test eax, eax
jne 0x55eec3
mov esi, dword [edi]
call fcn.0058ec80
cmp esi, eax
jne 0x55ee63
mov eax, 2
jmp 0x55eecd
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x55eec8
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x55eec8
mov eax, 2
jmp 0x55eecd
mov eax, dword [edi]
push eax
call fcn.0058ee70
add esp, 4
test eax, eax
je 0x55eec3
call fcn.0058ec80
cmp dword [edi], eax
jne 0x55eec8
call fcn.00423480
mov ecx, dword [0x676ed0]
mov esi, dword [0x676ed4]
sub eax, ecx
sbb edx, esi
test edx, edx
jg 0x55eebc
jl 0x55eec8
cmp eax, 0xfa
jb 0x55eec8
mov eax, 2
jmp 0x55eecd
call fcn.0058ec80
mov eax, 1
cmp eax, 1
mov dword [0x676ed0], 0
mov dword [0x676ed4], 0
mov dword [0x676ed8], 0
jne 0x55ef00
mov ecx, dword [edi]
push 0
push ecx
call fcn.004a8560
add esp, 8
pop esi
pop edi
ret
cmp eax, 2
jne 0x55ef12
mov edx, dword [edi]
push 1
push edx
call fcn.004a8840
add esp, 8
pop esi
pop edi
ret
Function at 0x55f090
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ecx, dword [0x694c7c]
cmp ecx, eax
je 0x55f0c0
mov esi, 1
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x55f0e8
mov eax, dword [0x6950c4]
test eax, eax
jne 0x55f0e8
xor eax, eax
pop esi
add esp, 0x18
ret
push ebx
xor ebx, ebx
test esi, esi
push edi
jne 0x55f163
mov esi, dword [0x6a0f38]
test esi, esi
je 0x55f163
mov edi, dword [sym.imp.USER32.dll_PtInRect]
mov eax, dword [esi + 0x18f4]
test eax, eax
je 0x55f155
push esi
call fcn.0055dd00
add esp, 4
test eax, eax
je 0x55f155
lea ecx, [esi + 0x18e4]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 0xc]
add ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
inc eax
push ecx
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x55f161
mov esi, dword [esi + 0x21c0]
test esi, esi
jne 0x55f100
jmp 0x55f163
mov ebx, esi
cmp dword [0x6950c4], ebx
je 0x55f1b7
test ebx, ebx
mov dword [0x6950c4], ebx
je 0x55f188
mov ecx, dword [0x694c7c]
push 0
push 0x32
push 0x7d
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [0x6950c8]
mov edx, dword [0x6a0f40]
push 0
push 0
push 0x8042
inc edi
push edx
mov dword [0x6950c8], edi
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x18
ret
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x560080
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x434
call fcn.00560010
test eax, eax
je 0x5600cb
mov eax, dword [0x6a0f3c]
mov ecx, dword [0x6a0f40]
push 0
push eax
push 0x80b5
push ecx
push 0
push 0
push 0
push 0
push 0x42000000
push 0x5f4c90
push str.mIRC_SwitchBar
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x694c7c], eax
jne 0x5600d4
xor eax, eax
add esp, 0x434
ret
push 0x66c768
lea edx, [esp + 4]
push 0x432
push edx
mov dword [0x694c80], eax
call fcn.00423310
add esp, 8
push eax
lea eax, [esp + 8]
push eax
push 0x5f4c90
push str.switchbar
push 0x5f56c8
call fcn.004ce2e0
mov al, byte [esp + 0x18]
add esp, 0x18
test al, al
je 0x560133
lea ecx, [esp]
push ecx
call fcn.00421f70
push 0
lea edx, [esp + 8]
push edx
push 0x694c80
call fcn.00429410
add esp, 0x10
mov eax, dword [0x61a9ec]
test eax, eax
je 0x560156
mov eax, dword [0x694c7c]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x694c7c]
add esp, 0x434
ret
mov ecx, dword [0x694c7c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x694c7c]
add esp, 0x434
ret
Function at 0x560b90
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1074
call fcn.005d9990
mov eax, dword [esp + 0x1078]
push edi
push eax
call fcn.0058ea30
mov edi, eax
add esp, 4
test edi, edi
jne 0x560bbb
xor eax, eax
pop edi
add esp, 0x1074
ret
mov ecx, dword [edi + 0x1e90]
push ecx
call fcn.00508aa0
add esp, 4
test eax, eax
je 0x560bb1
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
cmp esi, dword [edi + 0x1480]
je 0x560bf2
cmp esi, dword [edi + 0x1484]
je 0x560bf2
pop esi
xor eax, eax
pop edi
add esp, 0x1074
ret
mov ecx, dword [edi + 0x14ac]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
push esi
call fcn.00489f80
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [esp + 0x10], eax
jge 0x560c28
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x14ac]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push esi
call fcn.00489ba0
mov eax, dword [esp + 0x18]
add esp, 0x10
test eax, eax
jle 0x560be7
lea ecx, [esp + 0x14]
push 0x1068
push ecx
call fcn.004232e0
add esp, 8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x18]
push 0x1068
push eax
call fcn.00423310
add esp, 8
push eax
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 8], eax
jle 0x560be7
push 5
lea ecx, [esp + 0x18]
push 0x5fe580
push ecx
mov byte [esp + eax + 0x20], 0
call fcn.005f18c9
add esp, 0xc
test eax, eax
jne 0x560cb1
pop esi
mov eax, 1
pop edi
add esp, 0x1074
ret
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 8]
jg 0x560be7
dec eax
jns 0x560cc4
xor eax, eax
mov cl, byte [esp + eax + 0x14]
xor edx, edx
cmp cl, 0x20
setne dl
pop esi
pop edi
mov eax, edx
add esp, 0x1074
ret
Function at 0x562bd0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1068
call fcn.005d9990
mov eax, dword [esp + 0x1070]
test eax, eax
push esi
push edi
lea ecx, [esp + 8]
je 0x562c40
lea eax, [esp + 8]
push eax
push 0x1068
push ecx
call fcn.00423310
mov esi, dword [esp + 0x1080]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push eax
push 0xd
push esi
call edi
test eax, eax
jle 0x562c8c
lea edx, [esp + 8]
push 1
push edx
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x562c8c
mov byte [eax], 0x26
lea eax, [esp + 8]
push eax
push 0
push 0xc
push esi
call edi
pop edi
pop esi
add esp, 0x1068
ret
push ecx
lea edx, [esp + 0xc]
push 0x1068
push edx
call fcn.00423310
mov esi, dword [esp + 0x1080]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push eax
push 0xd
push esi
call edi
test eax, eax
jle 0x562c8c
lea eax, [esp + 8]
push 0x26
push eax
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x562c8c
lea ecx, [esp + 8]
push ecx
push 0
push 0xc
push esi
mov byte [eax], 1
call edi
pop edi
pop esi
add esp, 0x1068
ret
Function at 0x5631e0
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x5631ed
cmp eax, 0x32
jl 0x5631ef
xor eax, eax
mov dword [esp + 0xc], eax
jmp fcn.005627c0