joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ff01
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.0041ee53
cmp byte [esi + 0x24], 0
mov ecx, esi
jne 0x41ff72
call fcn.0041fe24
mov ebx, 0x70000001
test al, al
je 0x41ff4f
mov edx, dword [esi]
mov al, byte [edx + 0x21]
mov ecx, dword [esi + 0x1c]
mov edx, dword [edx + 0x18]
and al, 8
movzx eax, al
push 1
push dword [ebp + 8]
neg eax
push dword [ebp + 0xc]
sbb eax, eax
and eax, 3
call fcn.0041f164
mov edi, eax
jmp 0x41ff51
mov edi, ebx
test edi, edi
je 0x41ff5d
cmp edi, ebx
jne 0x420002
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi]
call fcn.00444cbc
push eax
push ebx
mov ecx, esi
call fcn.0041fb15
jmp 0x41ffe6
call fcn.0041fe24
test al, al
je 0x41ffe1
push dword [ebp + 8]
push dword [esi + 0x1c]
push str.Moving_files_from__s_to__s
call fcn.004890f7
mov ebx, dword [sym.imp.KERNEL32.DLL_MoveFileW]
add esp, 0xc
push dword [ebp + 8]
push dword [esi + 0x1c]
call ebx
test eax, eax
jne 0x41ffd8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x41ffc4
push dword [ebp + 8]
mov ecx, esi
call fcn.0041f419
mov edi, eax
test edi, edi
je 0x41ffd8
xor ecx, ecx
call fcn.004444cc
jmp 0x420002
mov ecx, dword [ebp + 8]
call fcn.004462c7
push dword [ebp + 8]
push dword [esi + 0x1c]
call ebx
test eax, eax
je 0x41ffab
xor ecx, ecx
call fcn.004444cc
jmp 0x41ffe6
mov edi, 0x70000001
call fcn.0042957f
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x1c]
call fcn.0043ac1c
mov ecx, esi
call fcn.0041facd
call fcn.00429590
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420dbf
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, edx
cmp edx, 4
jb 0x420dda
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
rol eax, 0xd
sub esi, 4
dec edx
jne 0x420dcc
test esi, esi
je 0x420dea
movzx edx, byte [ecx]
xor eax, edx
rol eax, 8
inc ecx
dec esi
jne 0x420dde
pop esi
ret

Function at 0x420dec
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, edx
movzx edx, byte [ecx + 2]
xor eax, eax
push edi
cmp edx, 4
jb 0x420e0e
mov edi, edx
shr edi, 2
xor eax, dword [esi]
add esi, 4
rol eax, 0xd
sub edx, 4
dec edi
jne 0x420e00
test edx, edx
je 0x420e1e
movzx edi, byte [esi]
xor eax, edi
rol eax, 8
inc esi
dec edx
jne 0x420e12
movzx ecx, word [ecx]
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
ret
Function at 0x4259b2
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0xc], 0
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0x20000013
push dword [esi]
mov dword [ebp - 4], ebx
call dword [0x4c5490]
test eax, eax
je 0x425a08
cmp dword [ebp - 8], 0xc8
je 0x425a08
push dword [ebp - 8]
push str.HTTP_Reply__d
call fcn.0043c748
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004257c0
jmp 0x425aaa
push edi
xor eax, eax
mov byte [ebp - 0x28], 0
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x1d
push dword [esi]
mov dword [ebp - 4], 0x14
call dword [0x4c5490]
test eax, eax
je 0x425a52
lea eax, [ebp - 0x28]
push str.gzip
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x425a52
or byte [esi + 5], 1
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push dword [esi]
mov dword [ebp - 0x10], ebx
call dword [0x4c5490]
test eax, eax
je 0x425a7a
mov eax, dword [ebp - 0x14]
and dword [esi + 0x54], 0
mov dword [esi + 0x50], eax
lea edx, [esi + 0xc]
push 0xa
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x2000
mov ecx, edi
mov dword [edx], 0x28
call fcn.00444a40
mov ecx, esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov byte [esi + 4], 1
call fcn.0042596f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4265e5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x4c54d8], 0
je 0x4265fb
mov al, 1
leave
ret
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x426631
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x42662b
shr eax, 8
cmp al, 2
jne 0x42662b
mov byte [0x4c54d8], 1
jmp 0x4265f7
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
leave
ret

Function at 0x42670f
Capabilities:
Reference l3 dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ebx, edx
cmp cl, 2
jne 0x42674f
test byte [0x4c54f4], 1
jne 0x426740
or dword [0x4c54f4], 1
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x4c54f0], eax
push ebx
push dword [0x4c54f0]
call dword [0x4c54c4]
jmp 0x42679c
cmp dword [0x4c54c8], 0
jne 0x42675f
mov eax, 0x2741
jmp 0x42679c
test byte [0x4c54f4], 2
push esi
mov esi, 0x4c54dc
jne 0x426783
or dword [0x4c54f4], 2
push 0
mov edx, str.2001:db8::1428:57ab
mov ecx, esi
call fcn.00439803
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00426684
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [0x4c54c8]
pop esi
pop ebx
leave
ret
Function at 0x42679f
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
mov edi, ecx
mov bl, dl
mov dword [ebp - 4], edi
call fcn.004262e5
test al, al
je 0x4267f1
lea edx, [ebp - 8]
mov cl, bl
call fcn.0042670f
test eax, eax
jne 0x4267f1
push dword [ebp - 8]
mov dl, bl
lea ecx, [ebp - 0x1c]
call fcn.0042648f
lea ecx, [ebp - 0x1c]
call fcn.00408465
test al, al
jne 0x4267f1
mov eax, dword [ebp - 4]
push esi
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]
movsw word es:[edi], word [esi]
pop esi
jmp 0x42684e
cmp bl, 2
jne 0x426845
push 0x100
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x426845
cmp word [eax + 8], 2
jne 0x426845
cmp word [eax + 0xa], 4
jne 0x426845
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x426845
mov eax, dword [eax]
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, edi
call fcn.0043968f
jmp 0x42684c
mov ecx, edi
call fcn.00439654
mov eax, edi
pop edi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0
push 2
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebx + 4], eax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x426d23
xor al, al
jmp 0x426ddd
push edi
push 0x1a73
push 0
lea ecx, [ebp - 0x22]
call fcn.0043968f
push eax
mov ecx, ebx
call fcn.0042afd2
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.192.152.143
call edi
push 0x491768
mov dword [ebp - 0x10], eax
call edi
push 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0xc
push 0
push dword [ebx + 4]
call esi
test eax, eax
jne 0x426dcf
mov byte [ebp - 8], al
lea edi, [ebp - 7]
stosw word es:[edi], ax
push 4
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push 9
push 0
push dword [ebx + 4]
call esi
test eax, eax
jne 0x426dcf
push 4
lea eax, [ebp - 4]
push eax
push 0xb
push 0
push dword [ebx + 4]
mov dword [ebp - 4], 1
call esi
test eax, eax
jne 0x426dcf
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebx + 4]
mov edi, 0xff
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x426dcf
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push 0
push dword [ebx + 4]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x426dd3
xor al, al
jmp 0x426ddc
mov ecx, ebx
call fcn.00429469
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426de1
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 0x10]
push edi
push dword [ebp + 0xc]
mov ebx, ecx
push eax
push str.BT_SEARCH__HTTP_1.1_r_nHost:_239.192.152.143:6771_r_nPort:__u_r_nInfohash:__s_r_n_r_n_r_n
lea eax, [ebp - 0x194]
push 0x100
push eax
call fcn.0043c4e7
lea edi, [ebp - 0x14]
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, 0x1a73
movsw word es:[edi], word [esi]
mov word [ebp - 4], ax
add esp, 0x14
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x95], 0
call fcn.00426684
lea eax, [ebp - 0x194]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426e48
push dword [ebp + 0xc]
lea ecx, [ebp - 0x94]
push ecx
push 0
sub eax, esi
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
pop edi
setg cl
pop esi
mov al, cl
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [esi + 4], eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4272b6
xor al, al
jmp 0x4272da
push 0x14e7
call fcn.00427230
push eax
lea ecx, [ebp - 0x16]
call fcn.0043968f
push eax
mov ecx, esi
call fcn.0042afd2
mov ecx, esi
call fcn.00429469
mov al, 1
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
mov eax, 0xe714
mov esi, ecx
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 4
Function at 0x42733a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dl, byte [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.0042723f
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x1c], ax
mov eax, 0xe714
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xc
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 0x10

Function at 0x427ae9
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
mov ebx, ecx
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x427b1c
or eax, eax
jmp 0x427bc8
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00426684
call fcn.0042957f
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x427b7d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x427b75
cmp esi, 0x2734
je 0x427b75
push esi
push dword [0x4cfa70]
mov ecx, ebx
call fcn.00427a58
mov eax, esi
jmp 0x427bc7
mov ecx, dword [ebp + 0xc]
call fcn.0042ae27
call fcn.00429590
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.00427937
mov dword [ebp + 8], eax
call fcn.0042957f
cmp dword [ebp + 8], 0
je 0x427bb7
mov esi, dword [0x4cfccc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
mov ecx, ebx
call fcn.00427a58
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
call fcn.00429946
call fcn.00429590
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x427bce
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x427c31
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.004278b5
test eax, eax
jne 0x427c35
push eax
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x427c43
mov eax, dword [ebp + 0xc]
add dword [ebp - 8], eax
sub esi, eax
add ebx, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x427c5e
test eax, eax
je 0x427c5e
test esi, esi
jg 0x427bed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov esi, eax
push esi
push dword [0x4cfa74]
call fcn.00427a58
mov eax, esi
jmp 0x427c3b
mov eax, ebx
jmp 0x427c3d

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push 0
mov edi, ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.0043968f
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x427e9c
push 0xfffffffffffffffe
pop eax
jmp 0x427f17
lea eax, [ebp - 0x28]
push eax
push esi
mov ecx, edi
call fcn.00427e39
test eax, eax
je 0x427ec0
push 0xa
push dword [0x4cfc88]
mov ecx, edi
call fcn.00427a06
or eax, 0xffffffff
jmp 0x427f17
lea ecx, [ebp - 0x14]
call fcn.00439654
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00427d9d
test eax, eax
jne 0x427f17
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00426684
lea eax, [ebp - 0x14]
push eax
push 0x490a70
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.0043c4e7
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
mov ecx, edi
call fcn.00427ae9
pop edi
pop esi
leave
ret 0x10
Function at 0x427f1d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x427f75
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.00427937
test eax, eax
jne 0x427f79
push eax
push eax
push eax
lea eax, [ebp + 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x427f87
mov eax, dword [ebp + 0x10]
add dword [ebp - 8], eax
sub esi, eax
add ebx, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x427fa2
test esi, esi
jg 0x427f38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
mov esi, eax
push esi
push dword [0x4cfa78]
call fcn.00427a58
mov eax, esi
jmp 0x427f7f
mov eax, ebx
jmp 0x427f81

Function at 0x4294e2
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 0x98
cmp eax, 0xffffffff
jne 0x4294f8
or eax, 0xffffffff
leave
ret
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
mov dword [ebp - 4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4294f3
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x16]
call fcn.004396e0
movzx eax, word [eax + 0x10]
leave
ret
Function at 0x42a9d7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x42aae7
cmp byte [ebp + 8], 0
je 0x42aa16
xor ecx, ecx
inc ecx
mov word [ebp + 8], cx
xor ecx, ecx
push 4
mov word [ebp + 0xa], cx
lea ecx, [ebp + 8]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0042941e
test byte [esi + 0xe], 0x20
je 0x42aa69
mov eax, dword [esi + 0x49]
test eax, eax
jge 0x42aa35
neg eax
mov dword [ebp + 8], eax
jmp 0x42aa39
and dword [ebp + 8], 0
mov eax, dword [esi + 0x61]
test eax, eax
jge 0x42aa47
neg eax
mov dword [ebp - 4], eax
jmp 0x42aa4b
and dword [ebp - 4], 0
fild dword [ebp + 8]
fadd dword [0x4c5944]
fstp dword [0x4c5944]
fild dword [ebp - 4]
fadd dword [0x4c593c]
fstp dword [0x4c593c]
mov ecx, dword [esi + 4]
call fcn.00429493
or dword [esi + 4], 0xffffffff
test byte [esi + 0xe], 0x20
je 0x42aae7
cmp byte [esi + 0x13], 6
jb 0x42aa97
push 2
push 0x40
mov ecx, esi
call fcn.0042912e
push 2
push 0x40
mov ecx, esi
call fcn.0042910f
mov ecx, dword [esi + 0x45]
mov eax, dword [esi + 0x49]
cmp ecx, eax
jae 0x42aabf
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aab3
fadd dword [0x4906a0]
fadd dword [0x4c5948]
fstp dword [0x4c5948]
mov ecx, dword [esi + 0x5d]
mov eax, dword [esi + 0x61]
cmp ecx, eax
jae 0x42aae7
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aadb
fadd dword [0x4906a0]
fadd dword [0x4c5940]
fstp dword [0x4c5940]
and byte [esi + 0xe], 0xdf
test byte [esi + 0xe], 0x80
je 0x42ab05
lea eax, [esi + 0xb9]
mov ecx, dword [eax]
and dword [eax], 0
test ecx, ecx
je 0x42ab05
call fcn.0044a507
pop esi
leave
ret 4
Function at 0x42b6d3
Capabilities:
Check for time delay via gettickcount
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
push esi
push edi
je 0x42b6ee
push 0
call fcn.0042a9d7
lea ecx, [ebp - 0x14]
call fcn.00439654
mov ecx, dword [ebp + 8]
call fcn.00404a32
push 0
lea ecx, [ebp - 0x26]
test al, al
jne 0x42b713
push 0x4c6164
call fcn.004396c4
jmp 0x42b71a
push 0
call fcn.0043968f
mov ecx, dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 1
movsw word es:[edi], word [esi]
call fcn.00404a32
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0042a990
cmp dword [ebx + 4], 0xffffffff
jne 0x42b761
mov esi, dword [ebx]
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x42b894
mov si, word [ebp + 0xc]
test si, si
jbe 0x42b76e
mov word [ebp - 4], si
mov ecx, 0x4c59a8
call fcn.00408465
mov ecx, 0x4c59a8
test al, al
jne 0x42b790
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov si, word [ebp + 0xc]
call fcn.00408465
test al, al
je 0x42b79e
test si, si
jbe 0x42b7c6
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0xffff
push dword [ebx + 4]
mov dword [ebp + 0xc], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0042afd2
mov word [ebx + 0xd3], si
mov esi, dword [ebp + 8]
lea edi, [ebx + 0xc1]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ecx, dword [ebp + 8]
mov dword [ebx + 0xe8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00426684
push dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42b852
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42b83e
lea ecx, [ebx + 0xc1]
mov byte [ebx + 0x13], 3
mov byte [ebx + 0x14], 6
call fcn.0042ae27
or byte [ebx + 0xe7], 2
jmp 0x42b889
mov edx, dword [ebx]
xor esi, esi
inc esi
push esi
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov dword [ebx + 0xe8], esi
jmp 0x42b889
mov byte [ebx + 0x13], 6
call esi
sub eax, dword [ebx + 0xe8]
cmp eax, 0xffffffff
jbe 0x42b866
or eax, 0xffffffff
xor esi, esi
inc esi
cmp eax, esi
jae 0x42b86f
mov eax, esi
push esi
push 0x40
mov ecx, ebx
mov dword [ebx + 0xe8], eax
call fcn.0042912e
push esi
push 0x40
mov ecx, ebx
call fcn.0042910f
push 1
push 0x40
mov ecx, ebx
call fcn.0042910f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42d411
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x1cc]
push edi
mov dword [ebp + 0x74], esi
call fcn.0042d32d
mov esi, dword [esi + 0xf0]
push 5
pop ecx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp + 0x5c], 0x32716572
add esi, 0x164
lea edi, [ebp + 0x60]
push 0x18
rep movsd dword es:[edi], dword [esi]
pop edx
lea ecx, [ebp + 0x5c]
call fcn.0043961d
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor eax, eax
mov ecx, dword [ebx + eax + 0x14]
xor dword [ebp + eax - 0xc], ecx
add eax, 4
cmp eax, 0x14
jb 0x42d45b
mov al, byte [0x4b6261]
mov esi, dword [ebp + 0x74]
shr al, 2
not al
and al, 1
or al, 2
mov dword [ebp + 0x10], edi
mov byte [ebp + 0x13], al
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
mov byte [ebx], al
xor eax, eax
mov word [ebp + 0x14], ax
mov eax, 0x4400
mov word [ebp + 0x16], ax
lea eax, [ebp + 0x18]
push eax
mov ecx, esi
call fcn.0042d2e3
mov eax, dword [esi + 0xf0]
push 0x14
add eax, 0x164
push eax
mov ecx, esi
call fcn.0042d374
lea eax, [ebp + 8]
push eax
push eax
push 0x54
lea eax, [ebx + 9]
push eax
call fcn.00435232
lea eax, [ebx + 1]
push eax
push eax
mov dword [ebx + 5], edi
push 8
add ebx, 0x10b
push ebx
mov dword [eax], edi
call fcn.00435232
push 0x7c
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0042b5d3
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret