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

Disassembly:
push 0x44
mov eax, 0x4f9d1c
call fcn.004cb654
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
call fcn.0045d95e
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.0044d2fd
test eax, eax
jne 0x4539e6
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.0044ed4d
test eax, eax
jne 0x4539e6
mov eax, dword [ebp - 0x18]
mov ecx, esi
test eax, eax
je 0x453952
mov dword [esi + 0x60], eax
call fcn.0045443e
mov ebx, dword [ebp - 0x18]
jmp 0x4539e9
call fcn.00454488
lea eax, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004352f6
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x118]
call fcn.00454a4c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00435318
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4539ac
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.0042961e
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 0x4539da
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 0x4539e9
push 0xfffffffffffffff6
pop ebx
lea ecx, [ebp - 0x34]
call fcn.00401443
mov eax, ebx
call fcn.004cb5fe
ret 0xc
Function at 0x454cd4
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 0x454db9
cmp dword [ebp + 0xc], 0
jl 0x454db9
mov edi, dword [ebp + 8]
jg 0x454d0c
test edi, edi
je 0x454db9
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 0x454d39
jg 0x454d30
cmp ecx, 0x10000
jbe 0x454d39
mov eax, 0x10000
mov ecx, esi
jmp 0x454d3f
mov ecx, esi
mov eax, edi
sub eax, ecx
cmp edx, 0x2800
jg 0x454da8
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 0x454d80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x454da0
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 0x454d90
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 0x454db3
jl 0x454d18
cmp esi, edi
jae 0x454db3
jmp 0x454d18
push 0xfffffffffffffffe
pop eax
or edx, 0xffffffff
jmp 0x454dbe
push 2
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, esi
mov edx, ebx
jmp 0x454dbe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45cb00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0x48
mov eax, 0x4fb01f
call fcn.004cb654
mov ebx, ecx
mov eax, 0x10000
push eax
mov dword [ebx + 0x34], eax
call fcn.004cac4e
push 0
mov dword [ebx + 0x30], eax
call fcn.004d1564
pop ecx
pop ecx
and dword [ebp - 0x50], 0
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x54], 1
call fcn.0045a535
mov ecx, eax
test ecx, ecx
je 0x45cbba
cmp ecx, 0xfffffffd
jne 0x45cb5b
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x70], 0
jne 0x45cb40
call fcn.004cb5fe
ret
mov esi, dword [ebx + 0x80]
cmp dword [esi + 0x68], 0
jle 0x45cb7f
call fcn.0043de60
mov ecx, eax
call fcn.0043dfad
xor edx, edx
mov edi, dword [esi + 0x64]
div dword [esi + 0x68]
add edi, edx
jmp 0x45cb82
mov edi, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x45cbad
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebx + 0x80]
mov ecx, esi
add dword [ebp - 0x4c], 0x64
call fcn.0045a535
test eax, eax
je 0x45cbba
cmp dword [ebp - 0x4c], edi
jl 0x45cb8b
push 1
push 0
mov ecx, esi
call fcn.00459c4f
jmp 0x45cb3e
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebx + 0x38]
call fcn.00455b23
cmp dword [ebx + 0x48], 1
jg 0x45cbe6
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45cb28
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 0x45cb28
call fcn.0042961e
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + 0x7c]
cmp byte [ecx + 4], 0
je 0x45cc2b
mov eax, dword [ecx]
push dword [edx + 0xa0]
call dword [eax + 8]
test eax, eax
je 0x45cb28
jmp 0x45cc81
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 0x45cc6a
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 0x45cb28
cmp eax, 0xfffffff7
jmp 0x45cc23
jns 0x45cc79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jmp 0x45cc23
test eax, eax
jne 0x45cb28
cmp dword [0x5417b4], 3
jl 0x45ccd9
push 0x521da8
lea ecx, [ebp - 0x48]
call fcn.004408e0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push str.recv_check_error_set_connect_state
call fcn.00440806
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.0045964d
lea ecx, [ebp - 0x2c]
call fcn.00440d86
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00440d86
mov eax, dword [ebx + 0x80]
mov byte [eax + 0xa9], 0
jmp 0x45cb28
Function at 0x468b21
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 0x468b92
mov esi, edi
sub esi, ecx
add esi, edx
and esi, eax
jmp 0x468ba4
cmp edi, dword [ebp - 0x58]
jne 0x468ba9
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 0x468bbe
cmp edi, 0x30
jne 0x468bbe
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.004cd440
mov edx, dword [ebp - 0x50]
add esp, 0xc
cmp edx, dword [ebp - 0x5c]
jge 0x468c52
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 0x468c43
mov ebx, dword [ebp - 0x50]
lea eax, [ebp - 0x44]
add eax, ecx
add eax, ebx
cmp eax, dword [ebp - 0x5c]
jge 0x468c3e
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 0x468bfc
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 0x468bf0
mov esi, dword [ebp - 0x54]
cmp dword [ebp - 0x4c], 0
jne 0x468c79
test edi, edi
jle 0x468cc5
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 0x468c64
jmp 0x468cc5
mov eax, dword [ebp - 0x58]
cmp edi, eax
jne 0x468c9e
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 0x468c87
jmp 0x468cc5
push 0x30
pop ecx
cmp edi, ecx
jne 0x468cc5
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 0x468cad
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x468cd6
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 0x468d3f
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 0x468d24
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.00468b21
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.004ca9ff
leave
ret
Function at 0x469070
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 0x4691a9
test byte [edi + 0x40e], 1
je 0x4690d2
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 0x46912f
push dword [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebp - 0x50]
mov ecx, edi
push eax
call fcn.00468cd6
add esp, 0x10
test eax, eax
jne 0x469215
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
cmp byte [edi + 0x2d9], 2
jne 0x469207
movzx eax, word [edi + 0x2d6]
jmp 0x46920e
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 0x469198
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 0x46917c
mov edi, dword [ebp - 0x68]
test esi, esi
jne 0x469200
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x469200
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x54], eax
ja 0x469200
jmp 0x469113
cmp byte [ebp - 0x45], cl
jne 0x469116
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 0x4691f8
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 0x4691dc
mov edi, dword [ebp - 0x68]
test esi, esi
jne 0x469200
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x469113
mov eax, 0xfffffecf
jmp 0x469215
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.004ca9ff
leave
ret
Function at 0x475648
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 0x475783
mov edx, 0x51bd7c
mov ecx, eax
call fcn.00407285
mov esi, eax
test esi, esi
je 0x475783
push 2
push 0
push esi
call fcn.004d810f
add esp, 0xc
test eax, eax
jne 0x47577c
push esi
call fcn.004dc9d0
pop ecx
push esi
mov ebx, eax
call fcn.004df9a2
lea eax, [ebx - 1]
pop ecx
cmp eax, 0x3fffff
ja 0x47577c
cmp ebx, 0x400
jle 0x4756f0
mov ecx, ebx
call fcn.004993e8
mov edi, eax
test edi, edi
je 0x47577c
mov dword [ebp - 0x414], 1
push esi
push ebx
push 1
push edi
call fcn.004d82f6
add esp, 0x10
cmp eax, ebx
je 0x475706
push 0xfffffffffffffffc
pop ebx
jmp 0x47575d
mov eax, dword [ebp + 0xc]
cmp eax, 5
je 0x475713
cmp eax, 0xf
jne 0x475738
cmp dword [ebp + 8], 1
jne 0x475738
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x410]
mov edx, edi
push dword [ebp - 0x40c]
push eax
push 1
push ebx
call fcn.00475469
add esp, 0x14
jmp 0x47575b
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.00474b59
add esp, 0x1c
mov ebx, eax
push esi
call fcn.004cfe5f
cmp dword [ebp - 0x414], 0
pop ecx
je 0x475778
test edi, edi
je 0x475778
mov ecx, edi
call fcn.004993fd
mov eax, ebx
jmp 0x475786
push esi
call fcn.004cfe5f
pop ecx
push 0xfffffffffffffffc
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x4797f5
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 0x479a1f
lea eax, [edi + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
test eax, eax
je 0x47983e
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 0x479a21
mov edx, dword [ebp - 8]
mov ecx, edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4799fa
cmp byte [edi + 0x4c], 3
je 0x4799fa
mov edi, eax
test edi, edi
jne 0x47983e
jmp 0x4799fa
test esi, esi
js 0x479a02
mov eax, dword [edi + 4]
test eax, eax
je 0x479886
mov eax, dword [eax + 0x108]
test eax, eax
je 0x479886
push dword [ebp + 8]
push ebx
push edi
call eax
add esp, 0xc
jmp 0x4799e1
movzx eax, byte [edi + 0x4c]
dec eax
sub eax, 1
je 0x4799d2
sub eax, 1
je 0x479988
sub eax, 1
je 0x479979
sub eax, 1
je 0x479956
sub eax, 1
je 0x479930
sub eax, 1
je 0x479907
sub eax, 1
jne 0x4799e6
mov ecx, dword [edi + 0x18]
call fcn.004732b2
mov edx, ebx
push esi
cmp eax, 0x357
jne 0x4798eb
call fcn.00473281
pop ecx
cmp eax, 1
je 0x4799e3
or eax, 0xffffffff
jmp 0x4799e1
call fcn.004733ca
pop ecx
mov ecx, dword [ebp - 4]
cmp eax, 1
je 0x4799e6
or eax, 0xffffffff
mov esi, eax
jmp 0x4799e6
test edx, edx
jle 0x4799e6
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edx
push eax
push ebx
mov ecx, ebx
call fcn.0048f500
mov esi, dword [ebp - 0xc]
test eax, eax
pop ecx
pop ecx
push 0xffffffffffffffff
pop eax
cmovne esi, eax
jmp 0x4799e3
cmp dword [edi + 0x18], 0
je 0x47994c
push dword [edi + 0x18]
push dword [ebp + 8]
push 1
push ebx
call fcn.004d82f6
add esp, 0x10
jmp 0x4799e1
mov esi, 0xffffff52
jmp 0x4799e6
push dword [ebp + 8]
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00479e4c
mov esi, eax
pop ecx
test esi, esi
jle 0x4799e3
push esi
push dword [ebp - 0x10]
push ebx
call fcn.004cc940
add esp, 0xc
jmp 0x4799e3
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.0047971b
pop ecx
jmp 0x4799e1
cmp dword [ecx + 0x44], 0
jne 0x4798fd
push dword [ebp + 8]
mov ecx, dword [edi + 0x18]
mov edx, ebx
and dword [edi + 0x48], 0xffffffef
call fcn.00473cac
mov esi, eax
pop ecx
test esi, esi
je 0x4799c6
jns 0x4799e3
mov ecx, dword [edi + 0x18]
xor edx, edx
call fcn.00473f94
cmp eax, 2
je 0x4799c0
cmp eax, 3
jne 0x4799c6
or dword [edi + 0x48], 0x10
jmp 0x4799e3
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], 1
jmp 0x4799e3
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 0x479a02
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 0x47985e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x479a1f
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 0x48102b
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.00480fa2
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 0x481047
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x481055
pop edi
pop esi
pop ebp
ret

Function at 0x485728
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 0x48575c
shr edi, 2
test edi, edi
je 0x485772
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 0x48574a
jmp 0x485772
test edi, edi
je 0x485772
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 0x485764
pop edi
pop esi
pop ebp
ret

Function at 0x485776
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 0x48579f
shr esi, 2
test esi, esi
je 0x4857b0
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x485790
jmp 0x4857b0
test esi, esi
je 0x4857b0
sub edx, ecx
mov al, byte [ecx + edx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x4857a5
pop esi
pop ebp
ret
Function at 0x488482
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 0x4884e1
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 0x48850b
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.00487fb0
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.00487fb0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x58]
add esp, 0x14
lea edx, [esp + 0x24]
mov ecx, esi
push eax
call fcn.004857b3
pop ecx
test eax, eax
jne 0x48863d
push 0x10
lea edx, [esp + 0x48]
lea ecx, [esp + 0x38]
call fcn.00485776
cmp dword [esp + 0x14], 0
pop ecx
jne 0x488569
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x144], eax
xor edx, edx
cmp dword [ebp + 0x1c], edx
jle 0x4885ec
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 0x48857b
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test edx, edx
je 0x4885ec
mov eax, 0xffffff4c
jmp 0x48863d
dec edi
mov eax, ebx
add byte [esp + eax + 0x24], 1
jne 0x4885b8
dec eax
cmp eax, 0xc
jge 0x4885ab
lea eax, [esp + 0x34]
mov ecx, esi
push eax
lea edx, [esp + 0x28]
call fcn.004857b3
pop ecx
test eax, eax
jne 0x48863d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
push 0x10
push dword [esp + 0x10]
call fcn.00485728
add dword [esp + 0x18], 0x10
add dword [esp + 0x14], 0x10
pop ecx
pop ecx
test edi, edi
jne 0x4885a8
mov edi, dword [esp + 0x20]
test edi, edi
je 0x48863b
add byte [esp + ebx + 0x24], 1
jne 0x488605
dec ebx
cmp ebx, 0xc
jge 0x4885f8
lea eax, [esp + 0x34]
mov ecx, esi
push eax
lea edx, [esp + 0x28]
call fcn.004857b3
pop ecx
test eax, eax
jne 0x48863d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x34]
push edi
call fcn.00485776
pop ecx
push edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
call fcn.004cc940
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ca9ff
mov esp, ebp
pop ebp
ret