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

Disassembly:
push 0x44
mov eax, 0x4f9dc3
call fcn.004cb6c8
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
call fcn.0045d9d4
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], ebx
push eax
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x40], xmm0
call fcn.0044d360
test eax, eax
jne 0x453a48
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [esi + 0x98]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x40]
call fcn.0044edb0
test eax, eax
jne 0x453a48
mov eax, dword [ebp - 0x18]
mov ecx, esi
test eax, eax
je 0x4539b4
mov dword [esi + 0x60], eax
call fcn.004544a0
mov ebx, dword [ebp - 0x18]
jmp 0x453a4b
call fcn.004544ea
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00435307
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x118]
call fcn.00454aae
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00435329
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x453a0e
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push 4
push eax
mov eax, dword [ebp - 0x44]
push 0x1002
push 0xffff
mov eax, dword [eax]
push dword [eax + 0x6c]
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.0042962b
mov ecx, dword [esi + 0x178]
mov dword [ecx + 0x1d0], eax
mov dword [ecx + 0x1d4], edx
mov eax, dword [esi + 0x178]
mov ecx, dword [eax + 0x1d8]
test ecx, ecx
je 0x453a3c
mov eax, dword [ecx]
push 2
call dword [eax + 0xc]
mov eax, dword [ebp - 0x38]
cdq
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
jmp 0x453a4b
push 0xfffffffffffffff6
pop ebx
lea ecx, [ebp - 0x34]
call fcn.00401443
mov eax, ebx
call fcn.004cb672
ret 0xc
Function at 0x454d36
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push esi
push edi
test eax, eax
je 0x454e1b
cmp dword [ebp + 0xc], 0
jl 0x454e1b
mov edi, dword [ebp + 8]
jg 0x454d6e
test edi, edi
je 0x454e1b
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push 5
pop edx
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, edi
sub ecx, esi
sbb eax, ebx
mov dword [ebp - 0x18], eax
js 0x454d9b
jg 0x454d92
cmp ecx, 0x10000
jbe 0x454d9b
mov eax, 0x10000
mov ecx, esi
jmp 0x454da1
mov ecx, esi
mov eax, edi
sub eax, ecx
cmp edx, 0x2800
jg 0x454e0a
push 0
push eax
mov eax, dword [ebp - 0x10]
add eax, ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
test ecx, ecx
jg 0x454de2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x454e02
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
add edx, edx
mov dword [ebp - 8], edx
jmp 0x454df2
push 5
pop eax
mov dword [ebp - 8], eax
mov eax, ecx
cdq
add esi, eax
adc ebx, edx
mov edx, dword [ebp - 8]
cmp ebx, dword [ebp + 0xc]
jg 0x454e15
jl 0x454d7a
cmp esi, edi
jae 0x454e15
jmp 0x454d7a
push 0xfffffffffffffffe
pop eax
or edx, 0xffffffff
jmp 0x454e20
push 2
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, esi
mov edx, ebx
jmp 0x454e20
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45cb5a
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0x48
mov eax, 0x4fb0c6
call fcn.004cb6c8
mov ebx, ecx
mov eax, 0x10000
push eax
mov dword [ebx + 0x34], eax
call fcn.004cacc1
push 0
mov dword [ebx + 0x30], eax
call fcn.004d15d4
pop ecx
pop ecx
and dword [ebp - 0x50], 0
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x54], 1
call fcn.0045a58f
mov ecx, eax
test ecx, ecx
je 0x45cc14
cmp ecx, 0xfffffffd
jne 0x45cbb5
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x70], 0
jne 0x45cb9a
call fcn.004cb672
ret
mov esi, dword [ebx + 0x80]
cmp dword [esi + 0x68], 0
jle 0x45cbd9
call fcn.0043dec3
mov ecx, eax
call fcn.0043e010
xor edx, edx
mov edi, dword [esi + 0x64]
div dword [esi + 0x68]
add edi, edx
jmp 0x45cbdc
mov edi, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x45cc07
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebx + 0x80]
mov ecx, esi
add dword [ebp - 0x4c], 0x64
call fcn.0045a58f
test eax, eax
je 0x45cc14
cmp dword [ebp - 0x4c], edi
jl 0x45cbe5
push 1
push 0
mov ecx, esi
call fcn.00459cb1
jmp 0x45cb98
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebx + 0x38]
call fcn.00455b85
cmp dword [ebx + 0x48], 1
jg 0x45cc40
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45cb82
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push dword [ebx + 0x44]
push dword [ebx + 0x48]
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x45cb82
call fcn.0042962b
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + 0x7c]
cmp byte [ecx + 4], 0
je 0x45cc85
mov eax, dword [ecx]
push dword [edx + 0xa0]
call dword [eax + 8]
test eax, eax
je 0x45cb82
jmp 0x45ccdb
push 0
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push dword [edx + 0xa0]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x45ccc4
mov esi, dword [ebx + 0x80]
cdq
push edx
push eax
mov ecx, dword [esi + 0x7c]
push dword [ebx + 0x30]
push dword [esi + 0xa0]
mov edi, dword [ecx]
call dword [edi + 0xc]
test eax, eax
je 0x45cb82
cmp eax, 0xfffffff7
jmp 0x45cc7d
jns 0x45ccd3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jmp 0x45cc7d
test eax, eax
jne 0x45cb82
cmp dword [0x5417b4], 3
jl 0x45cd33
push str.e:works10820_blowsnow_source_smartice_sirecvthread.cpp
lea ecx, [ebp - 0x48]
call fcn.00440943
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push str.recv_check_error_set_connect_state
call fcn.00440869
push 3
push 0xc9
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x5417b4
push eax
call fcn.004596af
lea ecx, [ebp - 0x2c]
call fcn.00440de9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00440de9
mov eax, dword [ebx + 0x80]
mov byte [eax + 0xa9], 0
jmp 0x45cb82
Function at 0x468b97
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x5c], edx
push ebx
mov dword [ebp - 0x60], eax
mov ecx, edx
push esi
movzx eax, byte [eax + edx - 1]
xor ebx, ebx
sub edx, eax
mov dword [ebp - 0x58], 0x14
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
sub ecx, edi
mov dword [ebp - 0x54], esi
sub ecx, 0x100
dec edx
mov eax, ecx
mov dword [ebp - 0x64], edx
shr eax, 0x1f
sub edx, edi
dec eax
and ecx, eax
mov eax, edx
shr eax, 0x1f
dec eax
mov dword [ebp - 0x50], ecx
and edx, eax
lea eax, [edi - 1]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x6c], eax
jne 0x468c08
mov esi, edi
sub esi, ecx
add esi, edx
and esi, eax
jmp 0x468c1a
cmp edi, dword [ebp - 0x58]
jne 0x468c1f
mov eax, edx
sub eax, ecx
add eax, dword [ebp - 0x58]
cdq
idiv dword [ebp - 0x58]
mov esi, edx
mov dword [ebp - 0x54], esi
jmp 0x468c34
cmp edi, 0x30
jne 0x468c34
mov eax, edx
sub eax, ecx
push edi
pop ecx
add eax, ecx
cdq
idiv ecx
mov esi, edx
mov dword [ebp - 0x54], edx
push edi
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.004cd4b0
mov edx, dword [ebp - 0x50]
add esp, 0xc
cmp edx, dword [ebp - 0x5c]
jge 0x468cc8
lea ecx, [ebp - 0x44]
mov eax, edx
sub eax, ecx
mov esi, ecx
mov ecx, dword [ebp - 0x60]
sub esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x68], esi
lea ecx, [ebp + ecx - 0x44]
mov dword [ebp - 0x60], ecx
mov ecx, ebx
mov dword [ebp - 0x48], ecx
test edi, edi
jle 0x468cb9
mov ebx, dword [ebp - 0x50]
lea eax, [ebp - 0x44]
add eax, ecx
add eax, ebx
cmp eax, dword [ebp - 0x5c]
jge 0x468cb4
mov ecx, dword [ebp - 0x64]
lea eax, [esi + ebx]
sub ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x48]
sub ecx, edx
dec ecx
add eax, esi
shr ecx, 0x1f
dec cl
shr eax, 0x1f
dec al
and cl, al
mov eax, dword [ebp - 0x60]
add eax, ebx
and cl, byte [eax + esi]
or byte [ebp + esi - 0x44], cl
mov ecx, esi
mov esi, dword [ebp - 0x68]
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, edi
jl 0x468c72
mov eax, dword [ebp - 0x50]
xor ebx, ebx
add edx, edi
add eax, edi
mov dword [ebp - 0x50], eax
cmp edx, dword [ebp - 0x5c]
jl 0x468c66
mov esi, dword [ebp - 0x54]
cmp dword [ebp - 0x4c], 0
jne 0x468cef
test edi, edi
jle 0x468d3b
mov ecx, dword [ebp + 0xc]
sub esi, ecx
mov edx, dword [ebp - 0x6c]
lea eax, [esi + ecx]
and eax, edx
mov al, byte [ebp + eax - 0x44]
xor al, byte [ecx]
or bl, al
inc ecx
sub edi, 1
jne 0x468cda
jmp 0x468d3b
mov eax, dword [ebp - 0x58]
cmp edi, eax
jne 0x468d14
mov ecx, dword [ebp + 0xc]
mov edi, eax
sub esi, ecx
lea eax, [ecx + esi]
cdq
idiv dword [ebp - 0x58]
mov al, byte [ebp + edx - 0x44]
xor al, byte [ecx]
or bl, al
inc ecx
sub edi, 1
jne 0x468cfd
jmp 0x468d3b
push 0x30
pop ecx
cmp edi, ecx
jne 0x468d3b
mov edi, dword [ebp + 0xc]
sub esi, edi
mov dword [ebp - 0x4c], ecx
lea eax, [edi + esi]
cdq
idiv ecx
push 0x30
mov cl, byte [ebp + edx - 0x44]
xor cl, byte [edi]
or bl, cl
inc edi
sub dword [ebp - 0x4c], 1
pop ecx
jne 0x468d23
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret
Function at 0x468d4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
lea esi, [edx - 1]
mov dword [ebp - 0x54], ecx
add esi, eax
mov dword [ebp - 0x4c], edx
push edi
mov edx, 0xff
lea edi, [eax - 1]
mov cl, byte [esi]
mov byte [ebp - 0x45], cl
movzx ecx, cl
mov ebx, ecx
mov dword [ebp - 0x50], ecx
sub ebx, eax
add ebx, dword [ebp + 0xc]
shr ebx, 0x1f
dec bl
cmp edi, edx
cmovg edi, edx
xor edx, edx
test edi, edi
jle 0x468db5
mov ah, byte [ebp - 0x45]
mov al, byte [esi]
sub ecx, edx
shr ecx, 0x1f
xor al, ah
dec cl
and cl, al
or bl, cl
mov ecx, dword [ebp - 0x50]
inc edx
dec esi
cmp edx, edi
jl 0x468d9a
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x54]
dec eax
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
push esi
call dword [esi + 0x1b8]
movzx esi, byte [esi + 0x2dd]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x4c]
lea edi, [eax - 1]
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00468b97
or al, bl
add esp, 0x28
not al
mov cl, al
shr cl, 4
and al, cl
movzx eax, al
mov ecx, eax
shr ecx, 2
and ecx, eax
mov eax, ecx
shr eax, 1
and eax, ecx
mov ecx, 0xfffffecf
add eax, edi
pop edi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret
Function at 0x4690e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x70], eax
xor esi, esi
mov dword [ebp - 0x50], edx
mov ecx, esi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], esi
mov al, byte [edi + 0x2d9]
movzx edx, byte [edi + 0x2dd]
cmp al, 1
mov byte [ebp - 0x45], al
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x58], edx
jne 0x46921f
test byte [edi + 0x40e], 1
je 0x469148
movzx ecx, word [edi + 0x2d4]
mov dword [ebp - 0x54], ecx
mov ecx, ebx
mov dword [ebp - 0x6c], 1
sub ecx, dword [ebp - 0x54]
movzx eax, byte [ecx + eax - 1]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], eax
cmp word [edi + 0x40c], si
jge 0x4691a5
push dword [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebp - 0x50]
mov ecx, edi
push eax
call fcn.00468d4c
add esp, 0x10
test eax, eax
jne 0x46928b
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
cmp byte [edi + 0x2d9], 2
jne 0x46927d
movzx eax, word [edi + 0x2d6]
jmp 0x469284
sub ebx, edx
xor ecx, ecx
push 1
push 1
push dword [ebp + 0xc]
lea edx, [ebx - 1]
cmp eax, edx
mov dword [ebp - 0x64], edx
cmova eax, ecx
cmp dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], eax
mov eax, ebx
cmovbe ecx, dword [ebp - 0x5c]
push ecx
sub eax, ecx
dec eax
push eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push eax
push edi
call dword [edi + 0x1b8]
mov edx, dword [ebp - 0x58]
add esp, 0x20
mov dword [ebp - 0x60], eax
test edx, edx
je 0x46920e
mov eax, dword [ebp - 0x50]
mov edi, esi
sub ebx, dword [ebp - 0x4c]
dec eax
add ebx, eax
movzx ecx, byte [ebp + edi - 0x44]
movzx eax, byte [ebx]
xor ecx, eax
or esi, ecx
inc edi
inc ebx
cmp edi, edx
jl 0x4691f2
mov edi, dword [ebp - 0x68]
test esi, esi
jne 0x469276
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x469276
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x54], eax
ja 0x469276
jmp 0x469189
cmp byte [ebp - 0x45], cl
jne 0x46918c
push 1
push 1
push dword [ebp + 0xc]
sub ebx, edx
push 0xffffffffffffffff
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
push edi
call dword [edi + 0x1b8]
mov edx, dword [ebp - 0x58]
add esp, 0x20
mov dword [ebp - 0x60], eax
test edx, edx
je 0x46926e
add ebx, dword [ebp - 0x50]
mov edi, esi
movzx ecx, byte [ebp + edi - 0x44]
movzx eax, byte [ebx]
xor ecx, eax
or esi, ecx
inc edi
inc ebx
cmp edi, edx
jl 0x469252
mov edi, dword [ebp - 0x68]
test esi, esi
jne 0x469276
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x469189
mov eax, 0xfffffecf
jmp 0x46928b
mov eax, dword [ebp - 0x6c]
add eax, edx
add eax, ecx
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret
Function at 0x4756be
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x414], 0
mov eax, edx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40c], ecx
push ebx
push esi
push edi
lea edi, [ebp - 0x408]
test eax, eax
je 0x4757f9
mov edx, 0x51bd7c
mov ecx, eax
call fcn.00407285
mov esi, eax
test esi, esi
je 0x4757f9
push 2
push 0
push esi
call fcn.004d817f
add esp, 0xc
test eax, eax
jne 0x4757f2
push esi
call fcn.004dca40
pop ecx
push esi
mov ebx, eax
call fcn.004dfa14
lea eax, [ebx - 1]
pop ecx
cmp eax, 0x3fffff
ja 0x4757f2
cmp ebx, 0x400
jle 0x475766
mov ecx, ebx
call fcn.0049945a
mov edi, eax
test edi, edi
je 0x4757f2
mov dword [ebp - 0x414], 1
push esi
push ebx
push 1
push edi
call fcn.004d8366
add esp, 0x10
cmp eax, ebx
je 0x47577c
push 0xfffffffffffffffc
pop ebx
jmp 0x4757d3
mov eax, dword [ebp + 0xc]
cmp eax, 5
je 0x475789
cmp eax, 0xf
jne 0x4757ae
cmp dword [ebp + 8], 1
jne 0x4757ae
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x410]
mov edx, edi
push dword [ebp - 0x40c]
push eax
push 1
push ebx
call fcn.004754df
add esp, 0x14
jmp 0x4757d1
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x410]
mov edx, edi
push dword [ebp + 0x14]
push 0
push dword [ebp - 0x40c]
push eax
push dword [ebp + 8]
push ebx
call fcn.00474bcf
add esp, 0x1c
mov ebx, eax
push esi
call fcn.004cfecf
cmp dword [ebp - 0x414], 0
pop ecx
je 0x4757ee
test edi, edi
je 0x4757ee
mov ecx, edi
call fcn.0049946f
mov eax, ebx
jmp 0x4757fc
push esi
call fcn.004cfecf
pop ecx
push 0xfffffffffffffffc
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004caa72
leave
ret
Function at 0x47986b
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], ecx
mov edi, ecx
xor edx, edx
xor esi, esi
mov dword [ebp - 8], edx
test edi, edi
je 0x479a95
lea eax, [edi + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
test eax, eax
je 0x4798b4
push 1
push edx
push dword [ebp + 8]
push ebx
push 2
push edi
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jle 0x479a97
mov edx, dword [ebp - 8]
mov ecx, edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x479a70
cmp byte [edi + 0x4c], 3
je 0x479a70
mov edi, eax
test edi, edi
jne 0x4798b4
jmp 0x479a70
test esi, esi
js 0x479a78
mov eax, dword [edi + 4]
test eax, eax
je 0x4798fc
mov eax, dword [eax + 0x108]
test eax, eax
je 0x4798fc
push dword [ebp + 8]
push ebx
push edi
call eax
add esp, 0xc
jmp 0x479a57
movzx eax, byte [edi + 0x4c]
dec eax
sub eax, 1
je 0x479a48
sub eax, 1
je 0x4799fe
sub eax, 1
je 0x4799ef
sub eax, 1
je 0x4799cc
sub eax, 1
je 0x4799a6
sub eax, 1
je 0x47997d
sub eax, 1
jne 0x479a5c
mov ecx, dword [edi + 0x18]
call fcn.00473328
mov edx, ebx
push esi
cmp eax, 0x357
jne 0x479961
call fcn.004732f7
pop ecx
cmp eax, 1
je 0x479a59
or eax, 0xffffffff
jmp 0x479a57
call fcn.00473440
pop ecx
mov ecx, dword [ebp - 4]
cmp eax, 1
je 0x479a5c
or eax, 0xffffffff
mov esi, eax
jmp 0x479a5c
test edx, edx
jle 0x479a5c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edx
push eax
push ebx
mov ecx, ebx
call fcn.0048f573
mov esi, dword [ebp - 0xc]
test eax, eax
pop ecx
pop ecx
push 0xffffffffffffffff
pop eax
cmovne esi, eax
jmp 0x479a59
cmp dword [edi + 0x18], 0
je 0x4799c2
push dword [edi + 0x18]
push dword [ebp + 8]
push 1
push ebx
call fcn.004d8366
add esp, 0x10
jmp 0x479a57
mov esi, 0xffffff52
jmp 0x479a5c
push dword [ebp + 8]
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00479ec2
mov esi, eax
pop ecx
test esi, esi
jle 0x479a59
push esi
push dword [ebp - 0x10]
push ebx
call fcn.004cc9b0
add esp, 0xc
jmp 0x479a59
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00479791
pop ecx
jmp 0x479a57
cmp dword [ecx + 0x44], 0
jne 0x479973
push dword [ebp + 8]
mov ecx, dword [edi + 0x18]
mov edx, ebx
and dword [edi + 0x48], 0xffffffef
call fcn.00473d22
mov esi, eax
pop ecx
test esi, esi
je 0x479a3c
jns 0x479a59
mov ecx, dword [edi + 0x18]
xor edx, edx
call fcn.0047400a
cmp eax, 2
je 0x479a36
cmp eax, 3
jne 0x479a3c
or dword [edi + 0x48], 0x10
jmp 0x479a59
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], 1
jmp 0x479a59
push 0
push dword [ebp + 8]
push ebx
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
mov ecx, dword [ebp - 4]
cmp edi, ecx
je 0x479a78
mov edi, dword [edi + 8]
test esi, esi
mov eax, esi
cmovle eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 8], eax
test edi, edi
jne 0x4798d4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x479a95
push esi
push 0
push dword [ebp + 8]
push ebx
push 0x82
push ecx
call eax
add esp, 0x18
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4810a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
mov edx, dword [ebp + 0xc]
lea esi, [edi + 4]
push esi
call fcn.00481018
mov edx, dword [ebp + 8]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x4810bd
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x4810cb
pop edi
pop esi
pop ebp
ret

Function at 0x48579e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
or eax, edx
push esi
mov esi, dword [ebp + 8]
or eax, esi
push edi
mov edi, dword [ebp + 0xc]
or eax, edi
test al, 3
jne 0x4857d2
shr edi, 2
test edi, edi
je 0x4857e8
sub edx, esi
sub ecx, esi
mov eax, dword [edx + esi]
xor eax, dword [esi]
mov dword [ecx + esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x4857c0
jmp 0x4857e8
test edi, edi
je 0x4857e8
sub esi, edx
sub ecx, edx
mov al, byte [esi + edx]
xor al, byte [edx]
mov byte [ecx + edx], al
inc edx
sub edi, 1
jne 0x4857da
pop edi
pop esi
pop ebp
ret

Function at 0x4857ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
or eax, edx
push esi
mov esi, dword [ebp + 8]
or eax, esi
test al, 3
jne 0x485815
shr esi, 2
test esi, esi
je 0x485826
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x485806
jmp 0x485826
test esi, esi
je 0x485826
sub edx, ecx
mov al, byte [ecx + edx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x48581b
pop esi
pop ebp
ret
Function at 0x4884f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x53b070]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push 0xf
shr edi, 4
pop ebx
and eax, ebx
mov dword [esp + 0x10], edx
cmp dword [ebp + 0x14], 0xc
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
lea edi, [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jne 0x488557
mov esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x30], 0x1000000
jmp 0x488581
mov esi, dword [ecx + 0x144]
xor eax, eax
push 0x10
push edi
push dword [ebp + 0x14]
mov dword [ecx + 0x144], eax
push edx
push eax
xor edx, edx
call fcn.00488026
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov dword [ecx + 0x144], esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
mov edi, dword [esp + 0x14]
push 0x10
push eax
push dword [ebp + 0xc]
push dword [esp + 0x18]
push dword [ebp + 0x24]
call fcn.00488026
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x58]
add esp, 0x14
lea edx, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00485829
pop ecx
test eax, eax
jne 0x4886b3
push 0x10
lea edx, [esp + 0x48]
lea ecx, [esp + 0x38]
call fcn.004857ec
cmp dword [esp + 0x14], 0
pop ecx
jne 0x4885df
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x144], eax
xor edx, edx
cmp dword [ebp + 0x1c], edx
jle 0x488662
mov esi, dword [ebp + 0x18]
lea eax, [esp + 0x34]
sub esi, eax
mov edi, edx
lea eax, [esp + 0x34]
add eax, edi
movzx ecx, byte [esi + eax]
movzx eax, byte [eax]
xor ecx, eax
or edx, ecx
inc edi
cmp edi, dword [ebp + 0x1c]
jl 0x4885f1
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test edx, edx
je 0x488662
mov eax, 0xffffff4c
jmp 0x4886b3
dec edi
mov eax, ebx
add byte [esp + eax + 0x24], 1
jne 0x48862e
dec eax
cmp eax, 0xc
jge 0x488621
lea eax, [esp + 0x34]
mov ecx, esi
push eax
lea edx, [esp + 0x28]
call fcn.00485829
pop ecx
test eax, eax
jne 0x4886b3
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push 0x10
push dword [esp + 0x10]
call fcn.0048579e
add dword [esp + 0x18], 0x10
add dword [esp + 0x14], 0x10
pop ecx
pop ecx
test edi, edi
jne 0x48861e
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4886b1
add byte [esp + ebx + 0x24], 1
jne 0x48867b
dec ebx
cmp ebx, 0xc
jge 0x48866e
lea eax, [esp + 0x34]
mov ecx, esi
push eax
lea edx, [esp + 0x28]
call fcn.00485829
pop ecx
test eax, eax
jne 0x4886b3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x34]
push edi
call fcn.004857ec
pop ecx
push edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
call fcn.004cc9b0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004caa72
mov esp, ebp
pop ebp
ret