joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7790
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x5c77da
pop edi
mov dword [0x6527a4], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00602a00
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c7814
cmp dword [esp + 0xc], esi
jne 0x5c7814
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00602a00
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x6527a4], 0x62
call fcn.00602a00
add esp, 8
ret 0x10

Function at 0x5c7840
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x14]
lea ebx, [ecx + 0x14]
lea edx, [ecx + 0x18]
push edi
mov edi, 0x18
movzx eax, word [esi + 0x40]
mov word [ebx], ax
movzx eax, word [esi + 0x44]
mov word [ecx + 0x16], ax
movzx eax, word [esi + 0x54]
mov word [edx], ax
movzx eax, word [esi + 0x44]
add ax, word [esi + 0x40]
movzx eax, ax
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub edi, 1
jne 0x5c7885
mov eax, dword [esi + 0x60]
push 0x1c
push ebx
add eax, 0x14
push eax
push esi
call fcn.005c90a0
test eax, eax
je 0x5c78fc
mov al, 0xfa
cmp dword [esi + 0x6c], edi
jne 0x5c78cb
mov al, byte [esi + 0x50]
push 1
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push eax
push dword [esi + 0x5c]
push esi
call fcn.005c90a0
test eax, eax
je 0x5c78fc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00602a00
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 8
ret 8
Function at 0x5c7920
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x40
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0xb]
push esi
mov esi, dword [esp + 0x50]
push edi
push 1
push eax
push dword [esi + 0x5c]
push esi
call fcn.005c7790
test eax, eax
je 0x5c7af0
cmp byte [esp + 0x13], 0xfa
ja 0x5c7ae6
push 0x38
xor edi, edi
lea eax, [esp + 0x18]
push edi
push eax
call fcn.006046d0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x1d
push eax
mov eax, dword [esi + 0x60]
add eax, 0x14
push eax
push esi
call fcn.005c7790
test eax, eax
je 0x5c7af0
mov eax, dword [esp + 0x2a]
lea edx, [esp + 0x2c]
add eax, dword [esp + 0x28]
lea ebx, [edi + 0x18]
movzx eax, ax
nop dword [eax]
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub ebx, 1
jne 0x5c79a0
cmp dword [esp + 0x40], edi
je 0x5c79dd
mov dword [0x6527a4], 0x65
jmp 0x5c7af0
mov ax, word [esp + 0x2c]
cmp ax, word [esi + 0x54]
jne 0x5c7ae6
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x5c79fb
push eax
call fcn.005cb790
mov edi, eax
test ebp, ebp
je 0x5c7a5e
test edi, edi
je 0x5c7a5e
cmp dword [edi + 0x10], 1
jne 0x5c7a5e
cmp byte [esp + 0x13], 0xfa
jae 0x5c7a5e
mov al, byte [esp + 0x44]
test al, al
jne 0x5c7a3d
test byte [edi + 0x28], 0x80
jne 0x5c7a3d
push dword [edi + 0x34]
mov eax, dword [esi + 0x64]
push dword [edi + 0x2c]
add eax, dword [esi + 0x60]
push eax
push esi
call fcn.005c7790
test eax, eax
je 0x5c7af0
mov al, byte [esp + 0x44]
movzx eax, al
xor ecx, ecx
test eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 2
sete cl
mov dword [edi + 0x18], ecx
mov dword [esi + 0x6c], 0
mov dword [ebp], edi
mov edx, dword [esp + 0x58]
test edx, edx
je 0x5c7acc
mov edi, dword [esi + 0x3c]
xor ecx, ecx
mov ebx, dword [esi + 0x44]
cmp edi, ebx
jbe 0x5c7a86
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x38]
jbe 0x5c7a8a
mov ecx, ebx
sub ecx, edi
add ecx, 0xa8c0
jmp 0x5c7a8a
mov ecx, ebx
sub ecx, edi
lea eax, [ecx + ecx]
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov eax, 0xffff
cmp ecx, 0xffff
jg 0x5c7aa4
movzx eax, cx
cmp eax, edx
jae 0x5c7ac5
sub edx, eax
mov eax, edx
xor edx, edx
div dword [esi + 0x34]
mov dword [esi + 0x14], eax
cmp eax, 1
jbe 0x5c7acc
mov dword [0x6527a4], 0x63
jmp 0x5c7af0
mov dword [esi + 0x14], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00602a00
add esp, 0x40
ret 0xc
mov dword [0x6527a4], 0x67
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x40
ret 0xc
Function at 0x5c90a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x5c90ea
pop edi
mov dword [0x6527a4], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00602a00
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c9124
cmp dword [esp + 0xc], esi
jne 0x5c9124
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00602a00
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x6527a4], 0x61
call fcn.00602a00
add esp, 8
ret 0x10

Function at 0x5c9150
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.006046d0
add esp, 0xc
lea eax, [esp + 0xc]
push 0xff
push eax
push 0x4a4080
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x5c92cb
cmp esi, 0x20
jae 0x5c92cb
mov ecx, 0x4a408c
lea eax, [esp + 0xc]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5c91d0
test dl, dl
je 0x5c91cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5c91d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5c91b0
xor eax, eax
jmp 0x5c91d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x5c92cb
mov ecx, 0x4a4094
lea eax, [esp + 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5c9206
test dl, dl
je 0x5c9202
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5c9206
add eax, 2
add ecx, 2
test dl, dl
jne 0x5c91e6
xor eax, eax
jmp 0x5c920b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5c92cb
push 8
lea eax, [esp + 0x10]
push 0x4a40a4
push eax
call fcn.0053e470
add esp, 0xc
test eax, eax
jne 0x5c9288
lea eax, [esp + 8]
mov dword [esp + 8], ebx
push eax
lea eax, [esp + 0x10]
push 0x4a40b0
push eax
call fcn.00582890
add esp, 0xc
cmp eax, 1
jne 0x5c9267
mov eax, dword [esp + 8]
inc eax
and eax, 0x800000ff
jns 0x5c925e
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x652820]
jmp 0x5c92a6
xor edx, edx
test esi, esi
je 0x5c92ad
nop dword [eax]
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x652820]
cmp edx, esi
jb 0x5c9270
jmp 0x5c92a6
xor edx, edx
test esi, esi
je 0x5c92ad
nop
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x652820]
cmp edx, esi
jb 0x5c9290
xor eax, eax
cmp ax, bx
jne 0x5c92b2
mov ebx, 0xff
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00602a00
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x108
ret
Function at 0x5c92f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x220
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
mov esi, dword [esp + 0x22c]
lea eax, [esp + 0x124]
push 0x100
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x5c9371
lea eax, [esp + 0x124]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5c9371
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax]
mov ebx, dword [eax]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x10c
push eax
call fcn.005cced0
test eax, eax
jne 0x5c9371
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x5c9371
lea ecx, [esp + 0x1c]
cmp dword [ecx], ebx
je 0x5c9378
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x5c9365
xor al, al
jmp 0x5c943c
lea eax, [eax + eax*2]
mov edx, dword [esp + eax*8 + 0x24]
test edx, edx
je 0x5c9371
mov ecx, dword [esi + 4]
mov eax, ebx
shr eax, 0x18
and ecx, edx
mov byte [esp + 0x14], al
not edx
mov eax, ebx
mov byte [esp + 0xf], cl
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x16], al
movzx eax, byte [esi + 7]
mov byte [esp + 0x10], al
movzx eax, byte [esi + 6]
mov byte [esp + 0x11], al
movzx eax, byte [esi + 5]
mov byte [esp + 0x12], al
movzx eax, byte [esi + 4]
mov byte [esp + 0x13], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 8
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 8], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 9], al
mov eax, edx
shr eax, 8
mov byte [esp + 0xa], al
mov byte [esp + 0xb], dl
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
or eax, edi
mov byte [esp + 0x1b], bl
cmp ecx, edi
jbe 0x5c942c
cmp ecx, eax
jae 0x5c942a
mov edx, dword [esp + 0x18]
cmp edx, edi
jbe 0x5c942a
cmp edx, eax
jb 0x5c9432
cmp ecx, edi
je 0x5c9455
cmp ecx, eax
je 0x5c9455
mov dword [esi + 8], 1
mov al, 1
pop edi
mov ecx, dword [esp + 0x224]
pop esi
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x220
ret 4
mov dword [esi + 8], 0
xor al, al
jmp 0x5c943b
Function at 0x5c95d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor esi, esi
push esi
push 1
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x5c971a
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 1
push 6
push edi
call sub.WS2_32.dll_setsockopt
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push edi
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x5c9707
push 0x64
call fcn.005c6d10
mov esi, eax
add esp, 4
test esi, esi
je 0x5c9707
push 0x64
push 0
push esi
call fcn.006046d0
mov dword [esi + 4], edi
add esp, 0xc
mov eax, dword [0x65b288]
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [0x65b288], esi
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x2c]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x1c], xmm0
movups xmm0, xmmword [eax + 0x20]
mov dword [esi + 0x60], 0
movups xmmword [esi + 0x2c], xmm0
mov dword [esi + 0x24], 0
test ebx, ebx
je 0x5c96d9
push ebx
call fcn.005c6d10
add esp, 4
mov dword [esi + 0x60], eax
test eax, eax
je 0x5c9707
push ebp
push ebx
push eax
call fcn.005402dd
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00602a00
add esp, 0x18
ret 0x10
push 2
call fcn.005c6d10
mov dword [esi + 0x60], eax
add esp, 4
mov byte [eax], 0
mov eax, dword [esi + 0x60]
pop edi
mov byte [eax + 1], 0
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00602a00
add esp, 0x18
ret 0x10
push edi
call sub.WS2_32.dll_closesocket
test esi, esi
jne 0x5c971a
push esi
call fcn.0053ae24
add esp, 4
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x18
ret 0x10
Function at 0x5c9f80
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x1a4], eax
cmp dword [0x65b290], 0
jne 0x5ca0ea
lea eax, [esp + 0x14]
mov dword [0x65b290], 1
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x5ca0ea
push 4
push 0x65b28c
push 0x4a6854
push 7
mov dword [0x65b274], 1
call fcn.005c7380
add esp, 0x10
test eax, eax
je 0x5c9ff6
mov eax, dword [0x65b28c]
test eax, eax
je 0x5c9ff6
cmp eax, 0xffff
jbe 0x5ca000
mov dword [0x65b28c], 0x574b
push 0x7fff
call fcn.0053e0c0
add esp, 4
mov dword [0x65b270], eax
test eax, eax
je 0x5ca078
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [0x652808], eax
cmp eax, 0xffffffff
je 0x5ca093
push 4
lea ecx, [esp + 4]
mov dword [esp + 4], 1
push ecx
push 0x20
push 0xffff
push eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x5ca073
push 0x10
lea eax, [esp + 8]
push eax
push dword [0x652808]
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x5ca0ea
mov eax, dword [0x65b270]
mov ecx, dword [0x652808]
cmp ecx, 0xffffffff
je 0x5ca098
push ecx
call sub.WS2_32.dll_closesocket
mov dword [0x652808], 0xffffffff
mov eax, dword [0x65b270]
test eax, eax
je 0x5ca0af
push eax
call fcn.0053ae24
add esp, 4
mov dword [0x65b270], 0
mov eax, dword [0x65b288]
test eax, eax
je 0x5ca0d2
push esi
nop dword [eax]
mov esi, dword [eax]
push eax
call fcn.0053ae24
add esp, 4
mov eax, esi
test esi, esi
jne 0x5ca0c0
pop esi
cmp dword [0x65b274], 0
je 0x5ca0ea
call sub.WS2_32.dll_WSACleanup
mov dword [0x65b274], 0
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.00602a00
add esp, 0x1a8
ret

Function at 0x5ca800
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
push 0
push 1
push 2
mov eax, dword [esi + 8]
and eax, 0xfffffffd
or eax, 1
mov dword [esi + 8], eax
call sub.WS2_32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x5ca8bd
push 4
lea ecx, [esp + 8]
mov dword [esp + 8], 1
push ecx
push 1
push 6
push eax
call sub.WS2_32.dll_setsockopt
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 8], xmm0
mov word [esp + 8], ax
lea eax, [esp + 8]
push 0x10
push eax
push dword [esi + 4]
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x5ca8bd
or dword [esi + 0xc], 8
test dword [esi + 0x3c], 0x200000
movzx eax, word [esi + 0x44]
je 0x5ca88a
movzx eax, word [esi + 0x1e]
push 0
push 0
push 0
push eax
push 0
push esi
call fcn.005c97e0
test eax, eax
je 0x5ca8bd
mov ecx, dword [0x6527c0]
pop esi
mov dword [ecx + 0x14], eax
mov eax, 1
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00602a00
add esp, 0x18
ret 4
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [0x6527a4], 0x63
or dword [esi + 8], 2
pop esi
xor ecx, esp
call fcn.00602a00
add esp, 0x18
ret 4
Function at 0x5ca8e0
Capabilities:
Get hostname
Send data
Send data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x30]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebp
call fcn.005ca5e0
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ca906
sub ecx, edx
xor ebp, ebp
inc ecx
push 0x100
mov dword [esp + 0x14], ecx
call fcn.005c6d10
mov esi, eax
add esp, 4
test esi, esi
je 0x5ca955
push 0x100
push esi
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x5ca94c
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ca940
sub ecx, edx
lea ebp, [ecx + 1]
push esi
call fcn.0053ae24
add esp, 4
mov esi, dword [esp + 0x10]
push 0x12c
lea eax, [esi + 0x20]
add eax, ebp
push eax
push 0x12
mov dword [esp + 0x24], eax
call fcn.005c6f50
mov edi, eax
test edi, edi
je 0x5caa71
mov eax, dword [esp + 0x34]
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
movq qword [edi + 0x18], xmm0
test eax, eax
je 0x5ca9c9
mov esi, dword [eax]
mov eax, dword [0x6527a8]
and esi, 1
and eax, 0xe00000
or esi, eax
call fcn.005c9150
mov ecx, dword [esp + 0x34]
movzx eax, al
shl eax, 0x18
or eax, esi
mov esi, dword [esp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x1c], eax
push esi
push dword [esp + 0x18]
lea eax, [edi + 0x20]
mov dword [edi + 0x14], esi
push eax
mov dword [edi + 0x18], ebp
call fcn.00604150
lea eax, [esi + 0x20]
add esp, 0xc
xor esi, esi
add eax, edi
jne 0x5ca9f8
push ebp
call fcn.005c6d10
mov esi, eax
add esp, 4
test esi, esi
je 0x5caa08
push ebp
push eax
call sub.WS2_32.dll_gethostname
push esi
call fcn.0053ae24
add esp, 4
mov esi, dword [0x65c7fc]
test esi, esi
je 0x5caa71
mov ebp, dword [esp + 0x18]
mov eax, 2
nop dword [eax + eax]
mov word [esp + 0x1c], ax
mov eax, dword [esi + 4]
test eax, eax
je 0x5caa62
mov dword [esp + 0x20], eax
movzx eax, word [0x65b28c]
push eax
call sub.WS2_32.dll_htons
push 0x10
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push eax
push 0
push ebp
push edi
push dword [0x652808]
call sub.WS2_32.dll_sendto
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
je 0x5caa6d
mov esi, dword [esi]
mov eax, 2
test esi, esi
jne 0x5caa20
test ebx, ebx
jne 0x5caa8e
cmp dword [0x6527a4], 0
jne 0x5caa8e
mov dword [0x65b268], 0
mov dword [0x6527a4], 0x61
push edi
call fcn.0053ae24
mov ecx, dword [esp + 0x30]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x20
ret 0xc

Function at 0x5caab0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 8]
push 0
movzx eax, word [ecx + 2]
push eax
mov eax, dword [esp + 0xc]
push ecx
push dword [eax + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x5caadc
mov dword [0x6527a4], 0x61
xor eax, eax
ret 8
mov eax, 1
ret 8
Function at 0x5caaf0
Capabilities:
Enumerate pe sections
Get hostname
Resolve dns

Disassembly:
sub esp, 0x228
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [0x65c7fc]
xor cl, cl
mov byte [esp + 7], cl
test esi, esi
je 0x5cacd4
push ebx
push edi
nop dword [eax + eax]
cmp byte [esi + 0xc], 0
lea eax, [esi + 0xc]
je 0x5cacc8
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5cacc4
mov eax, dword [eax + 0xc]
push 0x100
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
lea eax, [esp + 0x134]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x5cacb6
lea eax, [esp + 0x130]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5cacb6
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax]
mov ebx, dword [eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x10c
push eax
call fcn.005cced0
test eax, eax
jne 0x5cacb6
mov edx, dword [esp + 0x24]
test edx, edx
jle 0x5cacb6
lea ecx, [esp + 0x28]
nop dword [eax + eax]
cmp dword [ecx], ebx
je 0x5cabdd
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x5cabc0
mov cl, byte [esp + 0xf]
xor al, al
or cl, al
mov byte [esp + 0xf], cl
jmp 0x5cacc8
lea eax, [eax + eax*2]
mov edx, dword [esp + eax*8 + 0x30]
test edx, edx
je 0x5cacb6
mov ecx, dword [esi + 4]
mov eax, ebx
shr eax, 0x18
and ecx, edx
mov byte [esp + 0x1c], al
not edx
mov eax, ebx
mov byte [esp + 0x17], cl
shr eax, 0x10
mov byte [esp + 0x1d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x1e], al
movzx eax, byte [esi + 7]
mov byte [esp + 0x18], al
movzx eax, byte [esi + 6]
mov byte [esp + 0x19], al
movzx eax, byte [esi + 5]
mov byte [esp + 0x1a], al
movzx eax, byte [esi + 4]
mov byte [esp + 0x1b], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ecx
mov ecx, dword [esp + 0x18]
shr eax, 8
mov byte [esp + 0x16], al
mov eax, edx
mov edi, dword [esp + 0x14]
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x11], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x12], al
mov byte [esp + 0x13], dl
mov eax, dword [esp + 0x10]
or eax, edi
mov byte [esp + 0x1f], bl
cmp ecx, edi
jbe 0x5cac94
cmp ecx, eax
jae 0x5cac92
mov edx, dword [esp + 0x1c]
cmp edx, edi
jbe 0x5cac92
cmp edx, eax
jb 0x5cac9a
cmp ecx, edi
je 0x5cacaf
cmp ecx, eax
je 0x5cacaf
mov cl, byte [esp + 0xf]
mov al, 1
or cl, al
mov dword [esi + 8], 1
mov byte [esp + 0xf], cl
jmp 0x5cacc8
mov dword [esi + 8], 0
mov cl, byte [esp + 0xf]
xor al, al
or cl, al
mov byte [esp + 0xf], cl
jmp 0x5cacc8
mov cl, byte [esp + 0xf]
mov esi, dword [esi]
test esi, esi
jne 0x5cab20
pop edi
pop ebx
mov al, cl
mov ecx, dword [esp + 0x228]
pop esi
xor ecx, esp
call fcn.00602a00
add esp, 0x228
ret
Function at 0x5cacf0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x124
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [0x652808]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
mov edi, dword [esp + 0x138]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
nop dword [eax]
call ebx
mov ecx, edi
sub ecx, eax
cmp dword [0x65b280], 0
jne 0x5cadde
xor eax, eax
mov dword [esp + 0x118], 0
test ecx, ecx
cmovns eax, ecx
imul eax, eax, 0x3e8
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x118]
push eax
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0x40
call sub.WS2_32.dll_select
cmp eax, 1
jl 0x5cadde
mov esi, dword [0x65b270]
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x124]
mov dword [esp + 0x118], 0x10
push eax
push 0
push 0x7fff
push esi
push dword [0x652808]
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x5cadde
cmp byte [esi + 1], 0
jge 0x5cad30
cmp byte [esi + 6], 0x12
jne 0x5cad30
test ebp, ebp
je 0x5cadda
mov ecx, dword [esp + 0x124]
mov dword [ebp], ecx
mov eax, esi
jmp 0x5cade0
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x124
ret 8

Function at 0x5cae00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x118
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x114], eax
imul edx, dword [esp + 0x124], 0x3e8
mov ecx, dword [esp + 0x11c]
push ebx
push ebp
push esi
mov esi, dword [0x65b270]
mov ebp, 1
push edi
mov dword [esp + 0x10], ecx
mov edi, 0x7fff
mov ebx, esi
mov dword [esp + 0x14], edx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x11c]
push eax
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 1
push eax
push 0x40
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], edx
call sub.WS2_32.dll_select
cmp eax, 1
jl 0x5caf05
mov eax, dword [esp + 0x10]
push 0
push edi
push ebx
push dword [eax + 4]
call sub.WS2_32.dll_recv
test eax, eax
je 0x5caef9
cmp eax, 0xffffffff
je 0x5caeed
test ebp, ebp
je 0x5caed4
cmp byte [esi], 0xb2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jne 0x5cae50
mov cl, byte [esp + 0x130]
cmp byte [esi + 6], cl
mov ecx, dword [esp + 0x10]
jne 0x5cae50
cmp byte [esi + 1], 0
jge 0x5cae50
movzx edi, word [esi + 2]
xor ebp, ebp
cmp edi, eax
jbe 0x5caee9
mov ecx, dword [esp + 0x10]
sub edi, eax
mov edx, dword [esp + 0x14]
add ebx, eax
jmp 0x5cae50
mov eax, esi
jmp 0x5caf11
mov dword [0x6527a4], 0x62
jmp 0x5caf0f
mov dword [0x6527a4], 0x65
jmp 0x5caf0f
mov dword [0x6527a4], 0x63
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x118
ret 0xc