joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53edb0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x3d0]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
jne 0x53ede1
push 0x5e6c98
push eax
push esi
call fcn.0053e670
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x18
ret
push edi
lea edi, [esi + 0xcc]
push edi
mov dword [esi + 0x33c], 1
mov dword [esi + 0x39c], 0
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov ecx, dword [0x617030]
mov dword [esp + 0x24], eax
jne 0x53ee55
test ecx, ecx
je 0x53ee20
mov edx, dword [0x61702c]
test edx, edx
jne 0x53ee55
mov eax, dword [esi + 0x378]
test eax, eax
je 0x53ee49
mov edx, dword [esi]
push 8
push 0
push edi
lea ecx, [esi + 4]
push ecx
push edx
call fcn.0047e8b0
add esp, 0x14
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
push 0
push 0x138d
jmp 0x53ef8d
test ecx, ecx
je 0x53eeba
push 0
push 0x138e
call fcn.00421db0
push eax
push 1
push 0
push 1
push 1
push esi
call fcn.00567b40
mov eax, dword [esi + 0x340]
add esp, 0x20
test eax, eax
jne 0x53ee8c
call fcn.004236f0
mov dword [esi + 0x340], eax
mov eax, dword [esi + 0x3d0]
mov ecx, dword [esi + 0x340]
xor edx, edx
mov dx, word [esi + 0x354]
push eax
push ecx
push 0
push edx
push edi
call fcn.00495580
add esp, 0x14
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, word [esi + 0x354]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov word [esp + 0x10], 2
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 8]
mov word [esp + 0x12], ax
mov edx, dword [ecx]
push 1
xor eax, eax
mov ax, word [0x609e28]
push 0
xor ecx, ecx
mov cx, word [0x609e24]
push 2
push 0
mov dword [esp + 0x24], edx
push eax
push ecx
call fcn.005285b0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x3cc], eax
jne 0x53ef3d
push 0
push 0x138f
jmp 0x53ef8d
push eax
call fcn.0058be80
mov edx, dword [0x645324]
mov eax, dword [esi + 0x3cc]
add esp, 4
push 0x10
push 0x8014
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x3cc]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x53ef9e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x53ef9e
push 0
push 0x1390
call fcn.00421db0
push eax
push 0
push esi
call fcn.0053e670
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x53efb0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [0x641548]
test eax, eax
push esi
push edi
je 0x53f153
mov esi, dword [esp + 0xc]
cmp eax, esi
je 0x53efd4
mov eax, dword [eax + 0x3d4]
test eax, eax
jne 0x53efc3
pop edi
pop esi
ret
mov eax, dword [esi + 0x3d0]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
jne 0x53effb
push 0x5e6c98
push eax
push esi
call fcn.0053e670
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x3c8]
test eax, eax
mov dword [esi + 0x33c], 1
mov dword [esi + 0x39c], 0
je 0x53f041
mov word [esi + 0x354], 0
call fcn.004236f0
mov dword [esi + 0x340], eax
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x904]
push 5
push ecx
jmp 0x53f17c
mov eax, dword [0x617030]
test eax, eax
je 0x53f107
mov edx, dword [esi + 0x3d0]
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
call fcn.00495580
mov al, byte [0x616ef8]
add esp, 0x14
test al, al
je 0x53f0e8
mov eax, dword [0x617038]
test eax, eax
lea edi, [esi + 0xcc]
je 0x53f084
push 0x616ef8
jmp 0x53f090
mov eax, dword [esi + 0x3d0]
add eax, 0x8a0
push eax
push 0x64
push edi
call fcn.00423900
mov eax, dword [esi + 0x340]
add esp, 0xc
test eax, eax
mov word [esi + 0x354], 0
jne 0x53f0b9
call fcn.004236f0
mov dword [esi + 0x340], eax
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x53f0f1
mov ecx, dword [esi + 0x3d0]
mov edx, dword [ecx]
push 9
push 0
push edi
push str.firewall
push edx
call fcn.0047e8b0
add esp, 0x14
test eax, eax
jne 0x53f18b
push 0
push 0x1393
jmp 0x53f142
push 5
push 0
push edi
push esi
call fcn.0053d710
add esp, 0x10
pop edi
mov eax, 1
pop esi
ret
push 1
xor ecx, ecx
mov cx, word [0x609e28]
push 1
xor edx, edx
mov dx, word [0x609e24]
push 0
lea eax, [esi + 0x354]
push eax
push ecx
push edx
call fcn.005285b0
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x3cc], eax
jne 0x53f158
push 0
push 0x138f
call fcn.00421db0
push eax
push 0
push esi
call fcn.0053e670
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [0x645324]
push 8
push 0x8015
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x3d0]
mov edx, dword [eax + 0x904]
push 3
push edx
add eax, 0x8a0
push eax
push esi
call fcn.0053d710
add esp, 0x10
pop edi
mov eax, 1
pop esi
ret
Function at 0x53f1a0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov eax, 0x2004
call fcn.005cd640
push esi
mov esi, dword [esp + 0x200c]
test esi, esi
je 0x53f3fa
mov eax, dword [esi + 0x3cc]
push 1
push 2
push eax
push 0x8016
mov dword [esi + 0x39c], 0
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x53f3fa
push ebx
push ebp
push edi
mov ecx, dword [esi + 0x3c0]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0x3c0], ecx
jl 0x53f225
mov ecx, dword [esi + 0x3cc]
push 0
push 2
push ecx
push 0x8016
mov dword [esi + 0x3c0], 0
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x53f3f7
cmp dword [esi + 0x33c], 2
jne 0x53f3f7
mov eax, dword [0x641b24]
test eax, eax
jne 0x53f256
mov eax, dword [0x60a0d0]
test eax, eax
jne 0x53f256
mov edx, dword [esi + 0x350]
cmp edx, dword [esi + 0x358]
jb 0x53f3f7
mov eax, dword [esi + 0x3ac]
test eax, eax
mov edi, dword [esi + 0x34c]
je 0x53f299
push esi
call fcn.0053d3d0
add esp, 4
test eax, eax
jne 0x53f297
push eax
mov eax, dword [esi + 0x3cc]
push 2
push eax
push 0x8016
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x53f3f7
mov eax, 0x200
mov edi, eax
cmp edi, 0x200
jge 0x53f2a8
mov edi, 0x200
jmp 0x53f2b5
cmp edi, 0x2000
jbe 0x53f2b5
mov edi, 0x2000
mov ecx, dword [esi + 0x338]
push 1
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x338]
push 0
lea edx, [esp + 0x14]
push edx
mov ebp, eax
push edi
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53f3ac
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, eax
jl 0x53f3ac
je 0x53f3f7
push 0
push eax
mov eax, dword [esi + 0x3cc]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x53f3b5
cmp edi, ebx
jge 0x53f343
mov edx, dword [esi + 0x338]
push 0
push 0
lea ecx, [edi + ebp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, edi
mov ebp, dword [esi + 0x358]
mov edi, dword [esi + 0x3b0]
add ebp, ebx
add edi, ebx
push esi
mov dword [esi + 0x358], ebp
mov dword [esi + 0x3b0], edi
call fcn.0053d850
mov eax, dword [0x641b24]
add esp, 4
test eax, eax
jne 0x53f1e7
mov eax, dword [0x60a0d0]
test eax, eax
je 0x53f3f7
mov eax, dword [esi + 0x34c]
mov ecx, dword [esi + 0x358]
mov ebx, dword [esi + 0x350]
lea edx, [eax + eax*4]
sub ecx, ebx
shl edx, 1
cmp ecx, edx
jb 0x53f1e7
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x2004
ret
push 0
push 0x1397
jmp 0x53f3e6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
push 0
jne 0x53f3e1
mov eax, dword [esi + 0x338]
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x2004
ret
push 0x139a
call fcn.00421db0
push eax
push 0
push esi
call fcn.0053e670
add esp, 0x14
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x2004
ret
Function at 0x53f410
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x53f54d
cmp dword [esi + 0x33c], 2
jne 0x53f54d
mov ecx, dword [esi + 0x3cc]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.WSOCK32.dll_recv]
push 0
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esi + 0x39c], 0
call edi
cmp eax, 0xffffffff
je 0x53f4f2
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, edi
test eax, eax
jle 0x53f52a
mov edx, dword [esp + 0x14]
push edx
call ebx
cmp eax, dword [esi + 0x350]
jbe 0x53f52a
cmp eax, dword [esi + 0x364]
mov dword [esi + 0x350], eax
jae 0x53f51e
push esi
call fcn.0053d850
mov edx, dword [esi + 0x358]
mov eax, dword [esi + 0x364]
add esp, 4
cmp edx, eax
jae 0x53f4d7
mov eax, dword [esi + 0x34c]
mov ecx, dword [esi + 0x350]
lea eax, [eax + eax*4]
shl eax, 1
mov ebp, edx
sub ebp, ecx
cmp ebp, eax
sbb eax, eax
neg eax
cmp ecx, edx
mov dword [esp + 0x14], eax
jae 0x53f541
mov ecx, dword [0x60a0d0]
test ecx, ecx
je 0x53f4d7
test eax, eax
jne 0x53f541
mov edx, dword [esi + 0x3cc]
push 0
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
call edi
cmp eax, 0xffffffff
jne 0x53f460
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x53f54a
push 0
push 0x139a
call fcn.00421db0
push eax
push 0
push esi
call fcn.0053e670
add esp, 0x14
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x364]
mov dword [esi + 0x350], eax
push 0x5e6c98
push 0
push esi
call fcn.0053e670
add esp, 0xc
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
push esi
call fcn.0053f1a0
add esp, 4
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
Function at 0x543050
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 edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x461
push esi
call edi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x543155
push 0x3e7
push 0x60ec68
call fcn.00423a00
mov eax, dword [0x60f57c]
add esp, 8
test eax, eax
je 0x5430b6
push 0x480
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
neg eax
sbb eax, eax
and eax, 4
add eax, 0x47c
jmp 0x5430bb
mov eax, 0x480
push 0x60ec68
push 0x3e7
push 0xd
push eax
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov al, byte [0x60ec68]
test al, al
je 0x543155
push 0x2a
push 0x60ec68
call fcn.005cbf10
add esp, 8
test eax, eax
jne 0x543155
push 0x3f
push 0x60ec68
call fcn.005cbf10
add esp, 8
test eax, eax
jne 0x543155
mov eax, dword [esp + 0x14]
test eax, eax
je 0x543155
push eax
call fcn.00542320
add esp, 4
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x543155
mov al, byte [0x642ac0]
test al, al
je 0x54314c
push 9
push 0x642ac0
call fcn.005cbf10
add esp, 8
test eax, eax
jne 0x54314c
call fcn.00502b30
push eax
push 0xffffffffffffffff
push 0x642ac0
call fcn.0054c790
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 0x546050
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 0x5486f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [esp + 0x9c]
lea eax, [esi + 0xc8]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x548721
mov eax, 3
pop esi
add esp, 0x94
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 + 0x12c]
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 0x63fb20
lea eax, [esp + 0x40]
push 0x64
push eax
mov dword [esp + 0x1c], edx
call fcn.00423900
mov al, byte [esi + 0x12e]
mov ebx, dword [0x63fb18]
lea edi, [esi + 0x12e]
add esp, 0xc
test al, al
je 0x5487b3
push edi
push 0x64
push 0x63fb20
call fcn.00423900
add esp, 0xc
mov dword [0x63fb18], 2
push 0
xor ecx, ecx
mov cx, word [0x609e28]
push 0
xor edx, edx
mov dx, word [0x609e24]
push 2
push 0
push ecx
push edx
call fcn.005285b0
mov dword [esi + 0x200], eax
lea eax, [esp + 0x54]
push eax
push 0x64
push 0x63fb20
call fcn.00423900
mov dword [0x63fb18], ebx
mov eax, dword [esi + 0x200]
add esp, 0x24
cmp eax, 0xffffffff
jne 0x54880e
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x94
ret
push eax
call fcn.0058be80
mov ecx, dword [0x645324]
mov edx, dword [esi + 0x200]
add esp, 4
push 0x10
push 0x8039
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x200]
cmp eax, 0xffffffff
je 0x548883
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 0x548883
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push 0x64
push edi
call fcn.00423900
mov ecx, dword [esp + 0x3a]
add esp, 0xc
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 0x192], ax
mov eax, dword [esi + 0x200]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x5488b7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x5488b7
pop edi
pop ebx
mov eax, 2
pop esi
add esp, 0x94
ret
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x94
ret
Function at 0x548b80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [0x642eec]
test esi, esi
je 0x548d2d
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x200], eax
je 0x548bad
mov esi, dword [esi + 0x208]
test esi, esi
jne 0x548b96
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
shr eax, 0x10
test ax, ax
push edi
je 0x548c05
mov edi, dword [esi + 0x1ac]
movzx eax, ax
mov dword [esi + 0x1e8], eax
mov eax, dword [0x63fb90]
test eax, eax
je 0x548be4
push 3
push 0x3d
push esi
push str.SOCKOPEN
call fcn.00547140
add esp, 0x10
push edi
push esi
call fcn.00547000
add esp, 8
test eax, eax
je 0x548d2c
push esi
call fcn.00546f20
add esp, 4
pop edi
pop esi
add esp, 0x14
ret
mov edi, 2
push 0
mov dword [esi + 0x1b0], edi
call fcn.005cce76
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1e4], eax
mov eax, dword [esi + 0x1f4]
add esp, 4
test eax, eax
je 0x548c9f
mov eax, dword [esi + 0x1f8]
test eax, eax
jne 0x548c94
mov ecx, dword [esi + 0x200]
push 1
push ecx
mov dword [esi + 0x1f8], 1
call fcn.00551940
add esp, 8
test eax, eax
jne 0x548d2c
mov dword [esi + 0x1f8], 3
mov eax, dword [0x63fb90]
test eax, eax
je 0x548bf6
mov edi, dword [esi + 0x1ac]
push 5
push 0x3b
push esi
push str.SOCKCLOSE
call fcn.00547140
push edi
push esi
call fcn.00547000
add esp, 0x18
jmp 0x548bee
cmp eax, 1
jne 0x548c5d
mov dword [esi + 0x1f8], edi
mov edx, dword [0x645324]
mov eax, dword [esi + 0x200]
push 0x23
push 0x8038
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x200]
cmp eax, 0xffffffff
je 0x548d11
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 0x548d11
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [esi + 0x12e]
push 0x64
push ecx
call fcn.00423900
mov edx, dword [esp + 0x1a]
add esp, 0xc
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 0x192], ax
mov eax, dword [0x63fb90]
test eax, eax
je 0x548d2c
push 0
push 0x3d
push esi
push str.SOCKOPEN
call fcn.00547140
add esp, 0x10
pop edi
pop esi
add esp, 0x14
ret
Function at 0x549cc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [0x642eec]
test esi, esi
je 0x549f32
mov eax, dword [esp + 0x20]
cmp dword [esi + 0x200], eax
je 0x549ced
mov esi, dword [esi + 0x208]
test esi, esi
jne 0x549cd6
pop esi
add esp, 0x18
ret
cmp dword [esi + 0x1b0], 2
jne 0x549f32
mov eax, dword [esp + 0x24]
shr eax, 0x10
test ax, ax
push edi
je 0x549d40
movzx eax, ax
jmp 0x549e04
push 0x3f
push esi
push str.SOCKWRITE
call fcn.00547140
add esp, 0x10
push edi
push esi
call fcn.00547000
add esp, 8
test eax, eax
je 0x549f31
push esi
call fcn.00546f20
add esp, 4
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x549f31
mov edi, dword [esi + 0x1a8]
cmp edi, 0x2000
jle 0x549d61
mov edi, 0x2000
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x549ddb
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea eax, [esi + 0x1c4]
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 + 0x1c8]
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 + 0x1a4]
lea eax, [esp + 0x14]
push eax
push 0
push edi
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x200]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
jmp 0x549dec
push 0
push edi
push eax
mov eax, dword [esi + 0x200]
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x549e3a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x549f31
mov edi, dword [esi + 0x1ac]
mov dword [esi + 0x1e8], eax
mov eax, dword [0x63fb90]
test eax, eax
je 0x549d1f
mov eax, dword [esi + 0x1bc]
test eax, eax
push 3
je 0x549d0f
push 0x46
push esi
push str.UDPWRITE
jmp 0x549d17
push 0
call fcn.005cce76
add esp, 4
test edi, edi
mov dword [esi + 0x1e0], eax
jle 0x549ec0
mov edx, dword [esi + 0x1d4]
mov eax, dword [esi + 0x1a8]
add edx, edi
cmp edi, eax
mov dword [esi + 0x1d4], edx
jge 0x549ec0
mov ecx, dword [esi + 0x1a4]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
mov dword [esi + 0x1a8], eax
call fcn.005cceb0
mov eax, dword [esi + 0x1a8]
mov ecx, dword [esi + 0x1a4]
add eax, 0xa
push eax
push ecx
call fcn.005ce1f4
add esp, 0x14
test eax, eax
je 0x549ea2
mov dword [esi + 0x1a4], eax
mov edx, dword [esi + 0x200]
push 0
push 2
push edx
push 0x8038
call fcn.0058d320
add esp, 0x10
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x1a4]
push eax
call fcn.005cc393
mov eax, dword [esi + 0x1bc]
add esp, 4
test eax, eax
mov dword [esi + 0x1a4], 0
mov dword [esi + 0x1a8], 0
je 0x549efb
mov ecx, dword [esi + 0x1c0]
test ecx, ecx
je 0x549d31
mov ecx, dword [0x63fb90]
test ecx, ecx
je 0x549f31
test eax, eax
push 0
je 0x549f21
push 0x46
push esi
push str.UDPWRITE
call fcn.00547140
add esp, 0x10
pop edi
pop esi
add esp, 0x18
ret
push 0x3f
push esi
push str.SOCKWRITE
call fcn.00547140
add esp, 0x10
pop edi
pop esi
add esp, 0x18
ret
Function at 0x556060
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push esi
call fcn.00582ac0
add esp, 4
test eax, eax
je 0x5560e0
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
test ah, ah
jns 0x55609f
mov eax, dword [esi]
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
add esp, 8
ret
push 0x11
call edi
test ah, ah
jns 0x5560e5
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x5560ce
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5560ce
mov eax, dword [esi]
push 1
push eax
call fcn.004a5ab0
add esp, 8
cmp dword [esp + 0x18], 1
jne 0x5560df
push 1
call fcn.0056f3b0
add esp, 4
pop edi
pop esi
add esp, 8
ret
mov ecx, dword [0x63b6e0]
cmp ecx, dword [esi]
jne 0x556155
call fcn.00423b40
mov ecx, dword [0x63b6d8]
mov edi, dword [0x63b6dc]
sub eax, ecx
sbb edx, edi
test edx, edx
jg 0x556155
jl 0x556111
cmp eax, 0xfa
jae 0x556155
mov edx, dword [esi]
push edx
call fcn.00582c10
add esp, 4
test eax, eax
jne 0x55619a
mov edi, dword [esi]
call fcn.00582a20
cmp edi, eax
je 0x5560c1
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x55619f
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x5560c1
mov edx, dword [esi]
push eax
push edx
call fcn.004a57d0
jmp 0x5560cb
mov ecx, dword [esi]
push ecx
call fcn.00582c10
add esp, 4
test eax, eax
je 0x55619a
call fcn.00582a20
cmp dword [esi], eax
jne 0x55619f
call fcn.00423b40
mov edi, dword [0x63b6d8]
mov ecx, dword [0x63b6dc]
sub eax, edi
sbb edx, ecx
mov dword [esp + 0xc], edx
js 0x55619f
jg 0x5560c1
cmp eax, 0xfa
jb 0x55619f
jmp 0x5560c1
call fcn.00582a20
mov edx, dword [esi]
push 0
push edx
call fcn.004a57d0
jmp 0x5560cb
Function at 0x5561b0
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 [0x64354c]
cmp ecx, eax
je 0x5561e0
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 0x556208
mov eax, dword [0x64366c]
test eax, eax
jne 0x556208
xor eax, eax
pop esi
add esp, 0x18
ret
push ebx
xor ebx, ebx
test esi, esi
push edi
jne 0x556283
mov esi, dword [0x64531c]
test esi, esi
je 0x556283
mov edi, dword [sym.imp.USER32.dll_PtInRect]
mov eax, dword [esi + 0xa58]
test eax, eax
je 0x556275
push esi
call fcn.00555030
add esp, 4
test eax, eax
je 0x556275
lea ecx, [esi + 0xa48]
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 0x556281
mov esi, dword [esi + 0xe54]
test esi, esi
jne 0x556220
jmp 0x556283
mov ebx, esi
cmp dword [0x64366c], ebx
je 0x5562d7
test ebx, ebx
mov dword [0x64366c], ebx
je 0x5562a8
mov ecx, dword [0x64354c]
push 0
push 0x32
push 0x7d
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [0x643670]
mov edx, dword [0x645324]
push 0
push 0
push 0x8042
inc edi
push edx
mov dword [0x643670], 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 0x5571a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x180
call fcn.00557130
test eax, eax
je 0x5571eb
mov eax, dword [0x645320]
mov ecx, dword [0x645324]
push 0
push eax
push 0x80b5
push ecx
push 0
push 0
push 0
push 0
push 0x42000000
push 0x5e6c98
push str.mIRC_SwitchBar
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x64354c], eax
jne 0x5571f4
xor eax, eax
add esp, 0x180
ret
push 0x637d00
push 0x180
lea edx, [esp + 8]
push edx
push 0x5e6c98
push str.switchbar
push 0x5e76c8
mov dword [0x643558], eax
call fcn.004c9870
mov al, byte [esp + 0x18]
add esp, 0x18
test al, al
je 0x557245
lea eax, [esp]
push eax
call fcn.00421f30
push 0
lea ecx, [esp + 8]
push ecx
push 0x643558
call fcn.004291e0
add esp, 0x10
mov eax, dword [0x60a0fc]
test eax, eax
je 0x557269
mov edx, dword [0x64354c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x64354c]
add esp, 0x180
ret
mov eax, dword [0x64354c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x64354c]
add esp, 0x180
ret