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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x500bcc]
cmp dword [eax + 0x30], 0
je 0x478362
cmp dword [ebx + 0x94], 0
jne 0x47835c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x478248
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47835c
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 0x478322
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47835c
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.0041a92c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x478331
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x478ec4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x478ef9
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.00404ad4
jmp 0x478f06
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a38
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47a010
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47a051
mov eax, esi
call fcn.004602bc
test al, al
je 0x47a051
mov eax, dword [ebx + 0x84]
call fcn.0045ffb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47a051
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045ffb8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47d718
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47d746
mov eax, ebx
call fcn.0047e1cc
cmp dword [ebx + 0x40], 0
je 0x47d73f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47d7b7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47d7a9
cmp dword [ebx + 8], 0
je 0x47d768
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47d77a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47d7a9
cmp dword [ebx + 8], 0
je 0x47d75b
cmp eax, 3
je 0x47d78d
dec eax
jne 0x47d75b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47d75b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47d75b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47d7d5
cmp dword [ebx + 0x14], 0xcc
je 0x47d7d5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047d7e0
pop ebx
ret
Function at 0x48e850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x48e87a
cmp dword [ebx + 0x64], 0
jne 0x48e87a
cmp dword [ebx + 0x6c], 0
jne 0x48e87a
mov esi, edi
jmp 0x48e912
cmp esi, 0xffffffff
jne 0x48e885
dec esi
jmp 0x48e912
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x48e912
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.0048dd64
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
mov dword [esp], edx
sub dword [esp], 2
mov edx, dword [esp]
movzx edx, word [edx]
cmp edi, edx
ja 0x48e8d2
sub dx, di
mov ecx, dword [esp]
mov word [ecx], dx
jmp 0x48e8da
mov edx, dword [esp]
mov word [edx], 0
dec eax
test eax, eax
jne 0x48e8b9
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
mov dword [esp], edx
sub dword [esp], 2
mov edx, dword [esp]
movzx edx, word [edx]
cmp edi, edx
ja 0x48e903
sub dx, di
mov ecx, dword [esp]
mov word [ecx], dx
jmp 0x48e90b
mov edx, dword [esp]
mov word [edx], 0
dec eax
test eax, eax
jne 0x48e8ea
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x48e970
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.0048e574
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x48e95b
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x48e970
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x48e85a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a228c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x4a22a1
add esp, 0xfffffff0
call fcn.00403f34
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4a237c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0049d098
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004192ac
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x28], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004192ac
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x40], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004192ac
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x38], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004192ac
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x30], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004192d4
push esi
lea edi, [esi + 0x44]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x54], 0
mov byte [esi + 0x55], 0
mov byte [esi + 0x56], 0
mov byte [esi + 0x57], 0
mov byte [esi + 0x58], 0
mov byte [esi + 0x59], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2383
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4c1358
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4c1360
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c1552
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4c1568
mov eax, esi
call fcn.004bf1e4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404a38
lea ecx, [ebp - 0x10]
mov edx, 0x4c157c
mov eax, esi
call fcn.004bf1e4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404a38
lea ecx, [ebp - 0x14]
mov edx, 0x4c1594
mov eax, esi
call fcn.004bf1e4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404a38
lea ecx, [ebp - 0x18]
mov edx, 0x4c15b0
mov eax, esi
call fcn.004bf1e4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404a38
lea ecx, [ebp - 0x1c]
mov edx, 0x4c15cc
mov eax, esi
call fcn.004bf1e4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404a38
lea ecx, [ebp - 0x24]
mov edx, 0x4c15e4
mov eax, esi
call fcn.004bf1e4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408f50
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409360
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4c15fc
mov eax, esi
call fcn.004bf1e4
mov eax, dword [ebp - 0x28]
call fcn.004bd894
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4c160c
mov eax, esi
call fcn.004bf1e4
mov eax, dword [ebp - 0x2c]
call fcn.004bd894
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4c1624
mov eax, esi
call fcn.004bf1e4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409360
inc eax
je 0x4c14f5
lea ecx, [ebp - 0x34]
mov edx, 0x4c1624
mov eax, esi
call fcn.004bf1e4
mov eax, dword [ebp - 0x34]
call fcn.00409324
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040abe0
fstp qword [ebp - 0x3c]
wait
call fcn.0040af44
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4c1510
lea ecx, [ebp - 0x40]
mov edx, 0x4c1624
mov eax, esi
call fcn.004bf1e4
mov eax, dword [ebp - 0x40]
call fcn.004bd894
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4c1634
mov eax, esi
call fcn.004bf1e4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1559
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404a08
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404a08
ret
Function at 0x4ccebc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4ccf16
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004cceac
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004bc500
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004bc100
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccf1d
lea eax, [ebp - 4]
call fcn.004049e4
ret

Function at 0x4d0f98
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41757c]
call fcn.00405398
xor eax, eax
push ebp
push 0x4d10dc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fe0e4], 0
jne 0x4d0feb
mov ecx, dword [0x4fef88]
mov dl, 1
mov eax, dword [0x408010]
call fcn.0040ce50
call fcn.0040439c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403274
mov eax, ebx
call fcn.00405248
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4d10ec
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004064bc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405258
test eax, eax
jle 0x4d1083
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4d107c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404c6c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404c54
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408ee0
test eax, eax
jne 0x4d107c
mov ebx, 0x15
jmp 0x4d1088
mov ebx, 0x10
jmp 0x4d1088
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4fe0e4]
call fcn.004d0ef0
mov eax, dword [ebp - 8]
call fcn.004d0ef0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004064d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d10e3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404a08
lea eax, [ebp - 0x10]
mov edx, dword [0x41757c]
call fcn.00405468
ret
Function at 0x4e70ac
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 0x4e7135
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5032cc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4e711f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c55c
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, 0x4e714c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4ff590]
mov dl, 1
mov eax, dword [0x4e68b0]
call fcn.0040ce8c
call fcn.0040439c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e713c
lea eax, [ebp - 0x1c]
call fcn.004049e4
ret

Function at 0x4e77dc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004e7700
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403dcc
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4e7840
call fcn.004e6ff4
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4e7832
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.00403dcc
pop esi
pop ebx
ret

Function at 0x4e7864
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404ea4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403274
test ebx, ebx
je 0x4e78af
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, 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 0x4e798c
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 0x4e79bd
mov ecx, dword [0x4ff40c]
mov dl, 1
mov eax, dword [0x4e68b0]
call fcn.0040ce50
call fcn.0040439c
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 0x4e79ea
mov ecx, dword [0x4ff34c]
mov dl, 1
mov eax, dword [0x4e68b0]
call fcn.0040ce50
call fcn.0040439c
xor eax, eax
push ebp
push 0x4e7a66
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.00403dcc
cmp byte [ebp + 8], 0
je 0x4e7a42
mov eax, dword [ebp + 0x10]
push eax
mov ax, 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.004e78f4
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.004e77dc
jmp 0x4e7a5c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e72e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7a83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e7c64
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
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004e759c
xor eax, eax
push ebp
push 0x4e7dd5
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 0x4e7dbf
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4e7caf
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e7cb9
call fcn.00404448
jmp 0x4e7ddc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d428
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 0x4e7db4
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 ecx, eax
cmp ecx, 0xffffffff
jne 0x4e7d67
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4e7d54
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403dcc
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.004e7c1c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4e7de8]
cmp dl, byte [eax + 0x28]
je 0x4e7dbb
call fcn.0040cd68
jmp 0x4e7dbb
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d448
jmp 0x4e7dbb
cmp ecx, ebx
jge 0x4e7d83
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041d448
jmp 0x4e7cb9
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.0041d428
cmp edx, dword [esp + 4]
jne 0x4e7da3
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e7cb9
push ebp
call fcn.004e7c1c
pop ecx
jmp 0x4e7dbb
push ebp
call fcn.004e7c1c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7ddc
mov eax, dword [ebp - 4]
call fcn.004e75a8
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7dec
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 0x4e7f0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e759c
xor eax, eax
push ebp
push 0x4e7ef1
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 0x4e7e3c
call fcn.00404448
jmp 0x4e7ef8
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 0x4e7edb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e7edb
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403dcc
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 0x4e7edb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c55c
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, 0x4e7f28
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4ff590]
mov dl, 1
mov eax, dword [0x4e68b0]
call fcn.0040ce8c
call fcn.0040439c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7ef8
mov eax, dword [ebp - 4]
call fcn.004e75a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7f15
lea eax, [ebp - 0x28]
call fcn.004049e4
ret
Function at 0x4e7f74
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 0x4e80be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e759c
xor eax, eax
push ebp
push 0x4e80a1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4e7fd9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e7fd9
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 0x4e808b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e7fec
call fcn.00404448
jmp 0x4e80a8
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 0x4e808b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e808b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403dcc
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 0x4e808b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c55c
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, 0x4e80d8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4ff590]
mov dl, 1
mov eax, dword [0x4e68b0]
call fcn.0040ce8c
call fcn.0040439c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e80a8
mov eax, dword [ebp - 4]
call fcn.004e75a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e80c5
lea eax, [ebp - 0x28]
call fcn.004049e4
ret

Function at 0x4e87f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, edx
test ebx, ebx
js 0x4e880e
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4e8807
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e887b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004049e4
xor esi, esi
mov edi, 3
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
mov dl, byte [esi + 0x4feab8]
xor dl, byte [ebx]
call fcn.00404bcc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00404cac
mov eax, dword [ebp - 8]
lea eax, [esi + 1]
mov ecx, 0xa
cdq
idiv ecx
mov esi, edx
inc ebx
dec edi
jne 0x4e8836
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8882
lea eax, [ebp - 0xc]
call fcn.004049e4
ret