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

Disassembly:
mov eax, dword [0x5f4f78]
sub esp, 0x3e8
test eax, eax
push ebp
push esi
mov ebp, edx
mov esi, ecx
je 0x526714
lea esp, [esp]
cmp eax, esi
je 0x526629
mov eax, dword [eax + 0x3d4]
test eax, eax
jne 0x526610
pop esi
pop ebp
add esp, 0x3e8
ret 8
mov ecx, dword [esi]
push edi
call fcn.004f0c00
mov edi, eax
test edi, edi
je 0x526713
push ebx
mov bl, byte [esp + 0x400]
test bl, 1
je 0x526692
xor edx, edx
mov ecx, 0x1391
call fcn.0041f1a0
push eax
push 1
push 0
push 1
mov edx, 1
mov ecx, esi
call fcn.0054bd60
push ebp
lea eax, [esi + 0x234]
push eax
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x1c]
push str.NOTICE__s_:DCC_Send__s___s__n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.00569cc0
test bl, 2
je 0x5266b5
mov eax, dword [esi + 0x364]
mov edx, dword [esp + 0x3fc]
xor ecx, ecx
mov cx, word [esi + 0x354]
push edi
push 0
push eax
push ecx
push edx
jmp 0x5266e8
test bl, 4
je 0x5266f6
mov eax, dword [esi + 0x340]
mov ecx, dword [esi + 0x364]
xor edx, edx
mov dx, word [esi + 0x354]
push edi
push eax
push ecx
lea eax, [esi + 0xcc]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
push eax
lea ecx, [esi + 4]
lea edx, [esi + 0x234]
call fcn.00526470
xor edx, edx
mov ecx, 0x1392
call fcn.0041f1a0
push eax
push 0
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.0054bd60
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x3e8
ret 8
Function at 0x527ac0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3d0]
call fcn.004f0af0
test eax, eax
jne 0x527aea
push 0x5a4bec
xor edx, edx
mov ecx, esi
call fcn.005273e0
xor eax, eax
pop esi
add esp, 0x1c
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 [0x5cd3e0]
mov dword [esp + 8], eax
jne 0x527b57
test ecx, ecx
je 0x527b29
mov edx, dword [0x5cd3dc]
test edx, edx
jne 0x527b57
mov eax, dword [esi + 0x378]
test eax, eax
je 0x527b4d
mov ecx, dword [esi]
push 8
push 0
push edi
lea edx, [esi + 4]
call fcn.00475c40
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
mov ecx, 0x138d
jmp 0x527c7d
test ecx, ecx
je 0x527bb8
xor edx, edx
mov ecx, 0x138e
call fcn.0041f1a0
push eax
push 1
push 0
push 1
mov edx, 1
mov ecx, esi
call fcn.0054bd60
mov eax, dword [esi + 0x340]
test eax, eax
jne 0x527b8f
call fcn.00420bb0
mov dword [esi + 0x340], eax
mov eax, dword [esi + 0x3d0]
mov ecx, dword [esi + 0x340]
mov dx, word [esi + 0x354]
push eax
push ecx
push 0
mov ecx, edi
call fcn.0048ab30
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea edx, [esp + 8]
mov dword [esp + 0xc], edx
xor edx, edx
mov dx, word [esi + 0x354]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ecx
push edx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov dx, word [0x5bfd6c]
push 1
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 2
mov dword [esp + 0x24], ecx
mov cx, word [0x5bfd68]
push 0
call fcn.00515a30
cmp eax, 0xffffffff
mov dword [esi + 0x3cc], eax
jne 0x527c31
mov ecx, 0x138f
jmp 0x527c7d
mov ecx, eax
call fcn.00569850
mov edx, dword [0x5f92ec]
mov eax, dword [esi + 0x3cc]
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 + 0x18]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x527c8e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x527c8e
mov ecx, 0x1390
xor edx, edx
call fcn.0041f1a0
mov ecx, esi
xor edx, edx
push eax
call fcn.005273e0
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x527e70
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.005925e0
push esi
mov esi, ecx
test esi, esi
je 0x5280b5
mov edx, dword [esi + 0x3cc]
push 1
push 2
mov ecx, 0x8017
mov dword [esi + 0x39c], 0
call fcn.0056ab30
test eax, eax
jne 0x5280b5
push ebx
push ebp
push edi
mov edi, edi
mov ecx, dword [esi + 0x3c0]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0x3c0], ecx
jl 0x527eea
mov edx, dword [esi + 0x3cc]
push 0
push 2
mov ecx, 0x8017
mov dword [esi + 0x3c0], 0
call fcn.0056ab30
test eax, eax
jne 0x5280b2
cmp dword [esi + 0x33c], 2
jne 0x5280b2
mov eax, dword [0x5f5554]
test eax, eax
jne 0x527f1b
mov eax, dword [0x5bfd90]
test eax, eax
jne 0x527f1b
mov eax, dword [esi + 0x350]
cmp eax, dword [esi + 0x358]
jb 0x5280b2
mov eax, dword [esi + 0x3ac]
test eax, eax
mov edi, dword [esi + 0x34c]
je 0x527f58
mov ecx, esi
call fcn.00526290
test eax, eax
jne 0x527f56
mov edx, dword [esi + 0x3cc]
push eax
push 2
mov ecx, 0x8017
call fcn.0056ab30
test eax, eax
jne 0x5280b2
mov eax, 0x200
mov edi, eax
cmp edi, 0x200
jge 0x527f67
mov edi, 0x200
jmp 0x527f74
cmp edi, 0x2000
jbe 0x527f74
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 0x528069
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, eax
jl 0x528069
je 0x5280b2
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 0x528070
cmp edi, ebx
jge 0x528002
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 ecx, dword [esi + 0x3b0]
mov edx, dword [esi + 0x358]
add ecx, ebx
add edx, ebx
mov dword [esi + 0x3b0], ecx
mov ecx, esi
mov dword [esi + 0x358], edx
call fcn.00526720
mov eax, dword [0x5f5554]
test eax, eax
jne 0x527eb0
mov eax, dword [0x5bfd90]
test eax, eax
je 0x5280b2
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 0x527eb0
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x2004
ret
mov ecx, 0x1397
jmp 0x5280a1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x52809c
mov eax, dword [esi + 0x338]
push 0
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
mov ecx, 0x139a
xor edx, edx
call fcn.0041f1a0
mov ecx, esi
xor edx, edx
push eax
call fcn.005273e0
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x2004
ret
Function at 0x5280c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x5281b9
cmp dword [esi + 0x33c], 2
jne 0x5281b9
mov ecx, dword [esi + 0x3cc]
push 0
push 4
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esi + 0x39c], 0
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x52812a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x5281b9
xor edx, edx
mov ecx, 0x139a
call fcn.0041f1a0
push eax
xor edx, edx
mov ecx, esi
call fcn.005273e0
xor eax, eax
pop esi
pop ecx
ret
test eax, eax
jle 0x528157
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.WSOCK32.dll_ntohl]
cmp eax, dword [esi + 0x350]
jbe 0x528157
mov ecx, dword [esi + 0x364]
cmp eax, ecx
mov dword [esi + 0x350], eax
jb 0x52816a
mov dword [esi + 0x350], ecx
push 0x5a4bec
xor edx, edx
mov ecx, esi
call fcn.005273e0
xor eax, eax
pop esi
pop ecx
ret
mov ecx, esi
call fcn.00526720
mov edx, dword [esi + 0x358]
cmp edx, dword [esi + 0x364]
jae 0x5281b9
mov eax, dword [esi + 0x34c]
mov ecx, dword [esi + 0x350]
push edi
lea eax, [eax + eax*4]
shl eax, 1
mov edi, edx
sub edi, ecx
cmp edi, eax
sbb eax, eax
neg eax
cmp ecx, edx
mov dword [esp + 8], eax
pop edi
jae 0x5281b2
mov ecx, dword [0x5bfd90]
test ecx, ecx
je 0x5281b9
test eax, eax
je 0x5281b9
mov ecx, esi
call fcn.00527e70
xor eax, eax
pop esi
pop ecx
ret
Function at 0x5281c0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, dword [0x5f4f78]
test eax, eax
push esi
push edi
mov esi, ecx
je 0x527e28
cmp eax, esi
je 0x527cc2
mov eax, dword [eax + 0x3d4]
test eax, eax
jne 0x527cb1
pop edi
pop esi
ret
mov ecx, dword [esi + 0x3d0]
call fcn.004f0af0
test eax, eax
jne 0x527ce4
push 0x5a4bec
xor edx, edx
mov ecx, esi
call fcn.005273e0
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 0x527d2a
mov word [esi + 0x354], 0
call fcn.00420bb0
mov dword [esi + 0x340], eax
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x908]
push 5
push ecx
jmp 0x527e51
mov eax, dword [0x5cd3e0]
test eax, eax
je 0x527de7
mov edx, dword [esi + 0x3d0]
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
call fcn.0048ab30
mov al, byte [0x5cd2a8]
test al, al
je 0x527dcb
mov eax, dword [0x5cd3e8]
test eax, eax
lea edi, [esi + 0xcc]
mov edx, 0x64
mov ecx, edi
je 0x527d71
push 0x5cd2a8
jmp 0x527d7d
mov eax, dword [esi + 0x3d0]
add eax, 0x8a4
push eax
call fcn.00420d70
mov eax, dword [esi + 0x340]
test eax, eax
mov word [esi + 0x354], 0
jne 0x527da0
call fcn.00420bb0
mov dword [esi + 0x340], eax
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x527dd2
mov ecx, dword [esi + 0x3d0]
mov ecx, dword [ecx]
push 9
push 0
push edi
mov edx, str.firewall
call fcn.00475c40
test eax, eax
jne 0x527e5e
mov ecx, 0x1393
jmp 0x527e17
push 5
push 0
mov edx, edi
mov ecx, esi
call fcn.005265f0
pop edi
mov eax, 1
pop esi
ret
mov cx, word [0x5bfd68]
push 1
push 1
lea edx, [esi + 0x354]
push 0
push edx
mov dx, word [0x5bfd6c]
call fcn.00515a30
cmp eax, 0xffffffff
mov dword [esi + 0x3cc], eax
jne 0x527e2d
mov ecx, 0x138f
xor edx, edx
call fcn.0041f1a0
push eax
xor edx, edx
mov ecx, esi
call fcn.005273e0
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [0x5f92ec]
push 8
push 0x8016
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x3d0]
mov edx, dword [eax + 0x908]
push 3
push edx
lea edx, [eax + 0x8a4]
mov ecx, esi
call fcn.005265f0
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [0x5f4f78]
test ecx, ecx
je 0x5281e4
lea ebx, [ebx]
mov eax, dword [ecx + 0x3a0]
test eax, eax
jne 0x528200
mov ecx, dword [ecx + 0x3d4]
test ecx, ecx
jne 0x5281d0
mov eax, dword [0x5f92ec]
push 0x85
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x5f5558], 0
ret
mov eax, dword [ecx + 0x378]
test eax, eax
mov dword [ecx + 0x3a0], 0
je 0x528219
jmp fcn.00527ac0
jmp 0x527ca0
Function at 0x52b1c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
push ecx
mov ebx, edx
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 ebp, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebp
je 0x52b2b9
mov edx, 0x3e7
mov ecx, 0x5c5218
call fcn.00420e60
mov eax, dword [0x5c5e38]
test eax, eax
je 0x52b222
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 0x52b227
mov eax, 0x480
push 0x5c5218
push 0x3e7
push 0xd
push eax
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov al, byte [0x5c5218]
test al, al
je 0x52b2b9
push 0x2a
push 0x5c5218
call fcn.005912e0
add esp, 8
test eax, eax
jne 0x52b2b9
push 0x3f
push 0x5c5218
call fcn.005912e0
add esp, 8
test eax, eax
jne 0x52b2b9
test ebx, ebx
je 0x52b2b9
mov ecx, ebx
call fcn.0052a4d0
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x52b2b9
mov al, byte [0x5f6170]
test al, al
je 0x52b2af
push 9
push 0x5f6170
call fcn.005912e0
add esp, 8
test eax, eax
jne 0x52b2af
call fcn.004f0b80
push eax
xor edx, edx
mov ecx, 0x5f6170
call fcn.005323b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x52e2e0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0x94
push esi
mov esi, ecx
lea eax, [esi + 0xc8]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x52e30c
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]
mov dword [esp + 0x10], edx
push 0x5f3560
mov edx, 0x64
lea ecx, [esp + 0x40]
call fcn.00420d70
mov al, byte [esi + 0x12e]
test al, al
mov ebx, dword [0x5f3558]
lea edi, [esi + 0x12e]
je 0x52e39d
push edi
mov edx, 0x64
mov ecx, 0x5f3560
call fcn.00420d70
mov dword [0x5f3558], 2
mov dx, word [0x5bfd6c]
mov cx, word [0x5bfd68]
push 0
push 0
push 2
push 0
call fcn.00515a30
mov dword [esi + 0x200], eax
lea eax, [esp + 0x3c]
push eax
mov edx, 0x64
mov ecx, 0x5f3560
call fcn.00420d70
mov dword [0x5f3558], ebx
mov ecx, dword [esi + 0x200]
cmp ecx, 0xffffffff
jne 0x52e3f2
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x94
ret
call fcn.00569850
mov ecx, dword [0x5f92ec]
mov edx, dword [esi + 0x200]
push 0x10
push 0x8039
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x200]
cmp eax, 0xffffffff
je 0x52e464
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 0x52e464
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
mov edx, 0x64
mov ecx, edi
call fcn.00420d70
mov ecx, dword [esp + 0x2e]
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 0x52e498
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x52e498
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 0x52e740
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [0x5f659c]
test esi, esi
mov eax, edx
je 0x52e8ca
cmp dword [esi + 0x200], ecx
je 0x52e76b
mov esi, dword [esi + 0x208]
test esi, esi
jne 0x52e754
pop esi
add esp, 0x14
ret
shr eax, 0x10
test ax, ax
push edi
je 0x52e7ba
mov edi, dword [esi + 0x1ac]
movzx eax, ax
mov dword [esi + 0x1e8], eax
mov eax, dword [0x5f35d0]
test eax, eax
je 0x52e79c
push 3
push 0x3d
mov ecx, str.SOCKOPEN
mov edx, esi
call fcn.0052cef0
mov edx, edi
mov ecx, esi
call fcn.0052cdb0
test eax, eax
je 0x52e8c9
mov ecx, esi
call fcn.0052ccd0
pop edi
pop esi
add esp, 0x14
ret
mov edi, 2
push 0
mov dword [esi + 0x1b0], edi
call fcn.00591e16
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1e4], eax
mov eax, dword [esi + 0x1f4]
add esp, 4
test eax, eax
je 0x52e83f
mov eax, dword [esi + 0x1f8]
test eax, eax
jne 0x52e834
mov ecx, dword [esi + 0x200]
mov edx, 1
mov dword [esi + 0x1f8], edx
call fcn.00537320
test eax, eax
jne 0x52e8c9
mov dword [esi + 0x1f8], 3
mov eax, dword [0x5f35d0]
test eax, eax
je 0x52e7ad
mov edi, dword [esi + 0x1ac]
push 5
push 0x3b
mov ecx, str.SOCKCLOSE
jmp 0x52e795
cmp eax, 1
jne 0x52e80d
mov dword [esi + 0x1f8], edi
mov ecx, dword [0x5f92ec]
mov edx, dword [esi + 0x200]
push 0x23
push 0x8038
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x200]
cmp eax, 0xffffffff
je 0x52e8b0
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 0x52e8b0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [esi + 0x12e]
mov edx, 0x64
call fcn.00420d70
mov ecx, dword [esp + 0xe]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esi + 0x192], ax
mov eax, dword [0x5f35d0]
test eax, eax
je 0x52e8c9
push 0
push 0x3d
mov edx, esi
mov ecx, str.SOCKOPEN
call fcn.0052cef0
pop edi
pop esi
add esp, 0x14
ret
Function at 0x52f7b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [0x5f659c]
test esi, esi
mov eax, edx
je 0x52fa0c
cmp dword [esi + 0x200], ecx
je 0x52f7db
mov esi, dword [esi + 0x208]
test esi, esi
jne 0x52f7c4
pop esi
add esp, 0x18
ret
cmp dword [esi + 0x1b0], 2
jne 0x52fa0c
shr eax, 0x10
test ax, ax
push edi
je 0x52f823
movzx eax, ax
jmp 0x52f8e7
push 0x3f
mov ecx, str.SOCKWRITE
call fcn.0052cef0
mov edx, edi
mov ecx, esi
call fcn.0052cdb0
test eax, eax
je 0x52fa0b
mov ecx, esi
call fcn.0052ccd0
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x52fa0b
mov edi, dword [esi + 0x1a8]
cmp edi, 0x2000
jle 0x52f844
mov edi, 0x2000
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x52f8be
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 0x52f8cf
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 0x52f91e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x52fa0b
mov edi, dword [esi + 0x1ac]
mov dword [esi + 0x1e8], eax
mov eax, dword [0x5f35d0]
test eax, eax
je 0x52f805
mov eax, dword [esi + 0x1bc]
test eax, eax
mov edx, esi
push 3
je 0x52f7f9
push 0x46
mov ecx, str.UDPWRITE
jmp 0x52f800
push 0
call fcn.00591e16
add esp, 4
test edi, edi
mov dword [esi + 0x1e0], eax
jle 0x52f9a0
mov edx, dword [esi + 0x1d4]
mov eax, dword [esi + 0x1a8]
add edx, edi
cmp edi, eax
mov dword [esi + 0x1d4], edx
jge 0x52f9a0
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.00592290
mov eax, dword [esi + 0x1a8]
mov ecx, dword [esi + 0x1a4]
add eax, 0xa
push eax
push ecx
call fcn.00593194
add esp, 0x14
test eax, eax
je 0x52f986
mov dword [esi + 0x1a4], eax
mov edx, dword [esi + 0x200]
push 0
push 2
mov ecx, 0x8038
call fcn.0056ab30
pop edi
pop esi
add esp, 0x18
ret
mov edx, dword [esi + 0x1a4]
push edx
call fcn.0059112a
mov eax, dword [esi + 0x1bc]
add esp, 4
test eax, eax
mov dword [esi + 0x1a4], 0
mov dword [esi + 0x1a8], 0
je 0x52f9db
mov ecx, dword [esi + 0x1c0]
test ecx, ecx
je 0x52f816
mov ecx, dword [0x5f35d0]
test ecx, ecx
je 0x52fa0b
test eax, eax
mov edx, esi
push 0
je 0x52f9ff
push 0x46
mov ecx, str.UDPWRITE
call fcn.0052cef0
pop edi
pop esi
add esp, 0x18
ret
push 0x3f
mov ecx, str.SOCKWRITE
call fcn.0052cef0
pop edi
pop esi
add esp, 0x18
ret
Function at 0x538160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push esi
mov esi, ecx
call fcn.005612a0
test eax, eax
jne 0x538177
pop esi
mov eax, 1
pop ebp
ret 0x10
mov eax, dword [esp + 0x14]
sub eax, 0
push ebx
push edi
je 0x538316
dec eax
jne 0x53837d
mov ebx, dword [esp + 0x14]
cmp ebx, 0xd
je 0x538306
cmp ebx, 0xa
je 0x538306
movzx eax, bl
push eax
call fcn.00591ff4
add esp, 4
test eax, eax
je 0x5381c0
push ebx
call fcn.00591fd2
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x88c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x53837d
mov ebp, edi
inc edi
cmp edi, ebp
mov dword [esp + 0x1c], ebp
je 0x5382fd
cmp dword [esi + 0x71c], 4
jne 0x538240
mov eax, dword [esi + 0x88c]
lea edx, [esp + 0x20]
push edx
push edi
push 0x189
push eax
call ebx
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x538259
cmp eax, 0xffffffff
je 0x538259
cmp byte [ecx], 0x20
jne 0x53822b
inc ecx
mov dword [esp + 0x20], ecx
cmp byte [ecx], 0x20
je 0x538221
mov edx, dword [esi + 0xbe8]
call fcn.0050fa60
test al, al
je case.0x53827c.2
inc dword [esp + 0x20]
jmp case.0x53827c.2
mov ecx, dword [esi + 0x88c]
push 0x5f14f8
push edi
push 0x189
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x538260
xor edi, edi
jmp 0x5382db
mov eax, dword [esi + 0x71c]
dec eax
cmp eax, 8
mov ecx, 0x5f14f8
mov dword [esp + 0x20], ecx
ja case.0x53827c.2
movzx edx, byte [eax + 0x538398]
jmp dword [edx*4 + 0x53838c]
mov edx, dword [esi + 0xbe8]
mov ecx, 0x5f14f8
call fcn.0050faa0
jmp 0x538236
cmp byte [0x5f14f8], 0x20
jne case.0x53827c.2
mov edi, edi
inc ecx
mov dword [esp + 0x20], ecx
cmp byte [ecx], 0x20
je 0x5382a0
mov eax, dword [esp + 0x20]
mov al, byte [eax]
test al, al
je 0x5382da
movzx ebp, al
push ebp
call fcn.00591ff4
add esp, 4
test eax, eax
je 0x5382d0
push ebp
call fcn.00591fd2
add esp, 4
movzx ebp, al
cmp ebp, dword [esp + 0x14]
je 0x5382ec
mov ebp, dword [esp + 0x1c]
inc edi
cmp edi, ebp
jne 0x5381f2
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0x10
mov ecx, dword [esi]
push 1
push 1
push edi
mov edx, 0x8098
call fcn.004202a0
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0x10
mov ecx, dword [esi]
call fcn.00431c70
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0x10
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x538346
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x53837d
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
mov edx, 1
call fcn.0047e370
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0x10
cmp eax, 9
jne 0x538360
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
js 0x53837d
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0x10
cmp eax, 0xd
je 0x53836a
cmp eax, 0xa
jne 0x53837d
mov edx, dword [esp + 0x20]
mov ecx, dword [esi]
push 1
push 3
call fcn.0047f3e0
test eax, eax
jne 0x5382fd
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
ret 0x10
Function at 0x53b450
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 [0x5f6bf8]
cmp ecx, eax
je 0x53b480
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 0x53b4a8
mov eax, dword [0x5f6d28]
test eax, eax
jne 0x53b4a8
xor eax, eax
pop esi
add esp, 0x18
ret
push ebx
xor ebx, ebx
test esi, esi
push edi
jne 0x53b521
mov esi, dword [0x5f92e4]
test esi, esi
je 0x53b521
mov edi, dword [sym.imp.USER32.dll_PtInRect]
mov eax, dword [esi + 0xa5c]
test eax, eax
je 0x53b513
mov ecx, esi
call fcn.0053a610
test eax, eax
je 0x53b513
lea ecx, [esi + 0xa4c]
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 0x53b51f
mov esi, dword [esi + 0xe08]
test esi, esi
jne 0x53b4c0
jmp 0x53b521
mov ebx, esi
cmp dword [0x5f6d28], ebx
je 0x53b583
test ebx, ebx
mov dword [0x5f6d28], ebx
je 0x53b554
mov eax, dword [0x5f6d1c]
test eax, eax
jne 0x53b554
mov ecx, dword [0x5f6bf8]
push 0
push 0x32
push 0x7d
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x5f6d1c], eax
mov edi, dword [0x5ee984]
mov edx, dword [0x5f92ec]
push 0
push 0
push 0x8042
inc edi
push edx
mov dword [0x5ee984], 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