joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fdb4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x47fe53
cmp dword [ebx + 0x94], 0
jne 0x47fe4d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47fd3c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47fe4d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47fe13
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47fe4d
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041fbfc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47fe22
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48006c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x6c6ce0]
cmp dword [eax + 0x30], 0
je 0x4801c9
test bl, bl
jne 0x48011a
cmp dword [esi + 0x9c], 0
jne 0x48010f
mov eax, esi
call fcn.00482a24
push eax
push 0x47ff98
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4800e0
mov eax, dword [0x6c6ce0]
call fcn.00483104
test al, al
je 0x4800e0
mov eax, dword [0x6c6d04]
call fcn.00406a2c
mov edi, eax
cmp edi, 0
jl 0x4800e0
push 0
mov eax, dword [0x6c6d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4800ca
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48010f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041fbfc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4800ef
inc dword [esi + 0x9c]
jmp 0x4801c9
cmp dword [esi + 0x9c], 0
jle 0x4801c9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4801c9
cmp dword [esi + 0x44], 0
je 0x480175
mov eax, dword [0x6c6ce0]
call fcn.00483104
test al, al
je 0x480175
mov eax, dword [0x6c6d04]
call fcn.00406a2c
mov edi, eax
cmp edi, 0
jl 0x480175
push 5
mov eax, dword [0x6c6d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x48015f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4801a4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041fbfc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x480184
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x6c6d04
mov ecx, 1
mov edx, dword [0x47ff78]
call fcn.00406be0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x480cb0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x480d1a
mov eax, ebx
call fcn.00483104
test al, al
jne 0x480d1a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405484
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x480d07
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x480d27
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004053e8
jmp 0x480d27
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004053e8
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x482228
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x482296
mov eax, esi
call fcn.0046a214
test al, al
je 0x482296
mov eax, dword [ebx + 0x84]
call fcn.00469e74
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x482296
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x48228a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00469e74
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00461ccc
jmp 0x482296
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00482064
pop esi
pop ebx
ret
Function at 0x4c8af4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x4c8b10
cmp dword [esi + 4], 0
je 0x4c8b3d
test byte [ebx + 0x55], 1
jne 0x4c8b2f
mov eax, ebx
call fcn.00465de0
test eax, eax
jne 0x4c8b2f
mov edx, esi
mov eax, ebx
call fcn.0046bff8
jmp 0x4c8c31
mov edx, esi
mov eax, ebx
call fcn.004675a4
jmp 0x4c8c31
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4c8c2a
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00469e74
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, eax
mov edx, 0x14
mov eax, ebx
call fcn.004630b4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004c8af4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00469e74
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8c31
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e0134
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e01bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6c7ba0
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4e01a7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ee44
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4e01d4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x6c1034]
mov dl, 1
mov eax, dword [0x4df120]
call fcn.0040f774
call fcn.00404ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e01c4
lea eax, [ebp - 0x1c]
call fcn.00405394
ret
Function at 0x4e07b4
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x4e0810]
cmp al, byte [ebx + 0x28]
je 0x4e07d8
mov esi, 0x401
mov eax, ebx
call fcn.004e090c
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x4e0810]
cmp al, byte [ebx + 0x28]
jne 0x4e0808
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4e089c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004e07b4
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040462c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x4e0904
mov eax, ebx
call fcn.004e0078
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4e08f6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040462c
pop esi
pop ebx
ret

Function at 0x4e0a7c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405824
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403ae0
test ebx, ebx
je 0x4e0acb
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x4e0ba8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e0bd9
mov ecx, dword [0x6c13a4]
mov dl, 1
mov eax, dword [0x4df120]
call fcn.0040f738
call fcn.00404ce4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4e0c06
mov ecx, dword [0x6c0b64]
mov dl, 1
mov eax, dword [0x4df120]
call fcn.0040f738
call fcn.00404ce4
xor eax, eax
push ebp
push 0x4e0c87
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040462c
cmp byte [ebp + 8], 0
je 0x4e0c61
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e0b10
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e0814
jmp 0x4e0c7d
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e036c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0ca4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4e0cb0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e0ce1
mov ecx, dword [0x6c0cf8]
mov dl, 1
mov eax, dword [0x4df120]
call fcn.0040f738
call fcn.00404ce4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4e0d0e
mov ecx, dword [0x6c0b64]
mov dl, 1
mov eax, dword [0x4df120]
call fcn.0040f738
call fcn.00404ce4
xor eax, eax
push ebp
push 0x4e0d8a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040462c
cmp byte [ebp + 8], 0
je 0x4e0d66
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e0b10
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004e089c
jmp 0x4e0d80
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e036c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0da7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e0f88
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004e0634
xor eax, eax
push ebp
push 0x4e10fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4e10e5
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4e0fd4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e0fde
call fcn.00404d90
jmp 0x4e1102
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422808
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4e10da
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e108d
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4e107a
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040462c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004e0f40
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x4e1110]
cmp dl, byte [eax + 0x28]
je 0x4e10e1
call fcn.0040f65c
jmp 0x4e10e1
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422828
jmp 0x4e10e1
cmp edi, ebx
jge 0x4e10a9
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422828
jmp 0x4e0fde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422808
cmp edx, dword [esp + 4]
jne 0x4e10c9
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e0fde
push ebp
call fcn.004e0f40
pop ecx
jmp 0x4e10e1
push ebp
call fcn.004e0f40
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1102
mov eax, dword [ebp - 4]
call fcn.004e0640
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1114
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e1236
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e0634
xor eax, eax
push ebp
push 0x4e1219
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e1164
call fcn.00404d90
jmp 0x4e1220
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e1203
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e1203
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040462c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e1203
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ee44
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e1250
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x6c1034]
mov dl, 1
mov eax, dword [0x4df120]
call fcn.0040f774
call fcn.00404ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1220
mov eax, dword [ebp - 4]
call fcn.004e0640
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e123d
lea eax, [ebp - 0x28]
call fcn.00405394
ret
Function at 0x4e129c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e13e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e0634
xor eax, eax
push ebp
push 0x4e13c9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4e1301
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e1301
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4e13b3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e1314
call fcn.00404d90
jmp 0x4e13d0
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e13b3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e13b3
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040462c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e13b3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ee44
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e1400
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x6c1034]
mov dl, 1
mov eax, dword [0x4df120]
call fcn.0040f774
call fcn.00404ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e13d0
mov eax, dword [ebp - 4]
call fcn.004e0640
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e13ed
lea eax, [ebp - 0x28]
call fcn.00405394
ret
Function at 0x4e6220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
push ebp
push 0x4e62f9
push dword fs:[ebx]
mov dword fs:[ebx], esp
mov eax, 2
xor esi, esi
xor edx, edx
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 0x10]
dec ecx
test ecx, ecx
jl 0x4e62e8
inc ecx
mov dword [ebp - 8], ecx
xor edi, edi
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + edi]
sub ecx, 0x3c
js 0x4e6275
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + edi]
sub cl, 0x3c
mov byte [ebp - 1], cl
jmp 0x4e6279
xor edx, edx
jmp 0x4e62e8
cmp edx, dword [ebp + 0x14]
jge 0x4e62e8
lea ecx, [esi + 6]
cmp ecx, 8
jl 0x4e62c4
mov ecx, 6
sub ecx, eax
movzx ebx, byte [ebp - 1]
and bl, 0x3f
movzx ebx, bl
shr ebx, cl
mov ecx, ebx
or cl, byte [ebp - 2]
mov byte [ebp - 3], 0xaa
add byte [ebp - 3], dl
xor cl, byte [ebp - 3]
mov ebx, dword [ebp + 0xc]
lea esi, [ebx + edx]
mov byte [esi], cl
inc edx
xor esi, esi
cmp eax, 6
jge 0x4e62bd
add eax, 2
jmp 0x4e62c4
mov eax, 2
jmp 0x4e62de
mov ecx, eax
movzx ebx, byte [ebp - 1]
shl bl, cl
and bl, byte [eax + 0x67c62a]
mov byte [ebp - 2], bl
mov ecx, 8
sub ecx, eax
add esi, ecx
inc edi
dec dword [ebp - 8]
jne 0x4e625a
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e6303
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x10

Function at 0x4e630c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
push ebp
push 0x4e6413
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov byte [ebp - 6], 0
xor edx, edx
mov ecx, dword [ebp + 0x10]
dec ecx
test ecx, ecx
jl 0x4e63f0
inc ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
cmp edx, dword [ebp + 0x14]
jge 0x4e63f0
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
movzx ebx, byte [ecx + ebx]
mov byte [ebp - 7], 0xaa
movzx ecx, byte [ebp - 4]
add byte [ebp - 7], cl
xor bl, byte [ebp - 7]
lea ecx, [eax + 2]
movzx esi, bl
shr esi, cl
mov ecx, esi
or cl, byte [ebp - 6]
and cl, 0x3f
mov byte [ebp - 5], cl
lea ecx, [eax + 2]
push ecx
mov ecx, 8
pop esi
sub ecx, esi
movzx ebx, bl
shl ebx, cl
shr ebx, 2
and bl, 0x3f
mov byte [ebp - 6], bl
add eax, 2
cmp eax, 6
jge 0x4e63a8
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [ebp - 5]
add bl, 0x3c
mov byte [ecx + edx], bl
inc edx
jmp 0x4e63e4
mov eax, dword [ebp + 0x14]
dec eax
cmp edx, eax
jge 0x4e63d0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp - 5]
add cl, 0x3c
mov byte [eax + edx], cl
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp - 6]
add cl, 0x3c
mov byte [eax + edx + 1], cl
add edx, 2
jmp 0x4e63de
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp - 5]
add cl, 0x3c
mov byte [eax + edx], cl
inc edx
xor eax, eax
mov byte [ebp - 6], 0
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x4e6342
test eax, eax
jle 0x4e6402
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp - 6]
add cl, 0x3c
mov byte [eax + edx], cl
inc edx
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e641d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10