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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0
mov edi, ecx
call fcn.0041e3d7
mov esi, dword [ebp + 8]
mov eax, dword [edi]
imul esi, esi, 0x34
add eax, esi
push eax
mov ecx, edi
call fcn.0041de1f
mov dword [ebp - 0xc], eax
mov ebx, 0x492538
test eax, eax
jne 0x41ef28
mov eax, ebx
mov ecx, eax
call fcn.00444795
test al, al
je 0x41ef55
cmp dword [ebp - 0xc], 0
je 0x41ef3c
mov ebx, dword [ebp - 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x41ef55
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41ef6a
mov ebx, dword [edi]
mov ecx, dword [ebp + 0xc]
add ebx, esi
call fcn.00443bc8
push eax
push ebx
mov ecx, edi
call fcn.0041ed9f
mov ecx, dword [ebp - 0xc]
call fcn.004433ab
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41f173
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov ecx, dword [esi + 0x1c]
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.00442885
test al, al
je 0x41f19d
mov eax, dword [esi + 0x1c]
jmp 0x41f1a5
mov ecx, dword [esi + 0x1c]
call fcn.00442f79
push eax
lea ecx, [ebp - 0x1c]
call fcn.00442d22
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.00442ec9
push eax
mov ecx, esi
call fcn.0041f0d9
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x41f239
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f1fd
test al, 0x10
jne 0x41f205
mov ecx, dword [ebp - 8]
dec ecx
cmp esi, ecx
je 0x41f20b
test eax, 0x1000
jne 0x41f223
test eax, 0x400
jne 0x41f223
inc esi
cmp esi, dword [ebp - 8]
jb 0x41f1d5
jmp 0x41f226
mov byte [ebp - 1], 1
jmp 0x41f226
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
setne byte [ebp - 1]
jmp 0x41f226
mov byte [ebp - 1], bl
cmp dword [ebp - 8], ebx
jbe 0x41f239
mov ecx, dword [edi + ebx*4]
call fcn.004433ab
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41f22b
mov ecx, edi
call fcn.004433ab
mov ecx, dword [ebp - 0x1c]
call fcn.004433ab
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420004
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 0x42001f
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
rol eax, 0xd
sub esi, 4
dec edx
jne 0x420011
test esi, esi
je 0x42002f
movzx edx, byte [ecx]
xor eax, edx
rol eax, 8
inc ecx
dec esi
jne 0x420023
pop esi
ret
Function at 0x420031
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 0x420053
mov edi, edx
shr edi, 2
xor eax, dword [esi]
add esi, 4
rol eax, 0xd
sub edx, 4
dec edi
jne 0x420045
test edx, edx
je 0x420063
movzx edi, byte [esi]
xor eax, edi
rol eax, 8
inc esi
dec edx
jne 0x420057
movzx ecx, word [ecx]
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
ret

Function at 0x424be6
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 [0x4c2350]
test eax, eax
je 0x424c3c
cmp dword [ebp - 8], 0xc8
je 0x424c3c
push dword [ebp - 8]
push str.HTTP_Reply__d
call fcn.0043b6af
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004249f4
jmp 0x424cde
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 [0x4c2350]
test eax, eax
je 0x424c86
lea eax, [ebp - 0x28]
push str.gzip
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x424c86
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 [0x4c2350]
test eax, eax
je 0x424cae
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.0044394c
mov ecx, esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov byte [esi + 4], 1
call fcn.00424ba3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42572b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x4c2398], 0
je 0x425741
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 0x425777
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x425771
shr eax, 8
cmp al, 2
jne 0x425771
mov byte [0x4c2398], 1
jmp 0x42573d
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
leave
ret
Function at 0x425855
Capabilities:
Reference l3 dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ebx, edx
cmp cl, 2
jne 0x425895
test byte [0x4c23b4], 1
jne 0x425886
or dword [0x4c23b4], 1
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x4c23b0], eax
push ebx
push dword [0x4c23b0]
call dword [0x4c2384]
jmp 0x4258e2
cmp dword [0x4c2388], 0
jne 0x4258a5
mov eax, 0x2741
jmp 0x4258e2
test byte [0x4c23b4], 2
push esi
mov esi, 0x4c239c
jne 0x4258c9
or dword [0x4c23b4], 2
push 0
mov edx, str.2001:db8::1428:57ab
mov ecx, esi
call fcn.00438764
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.004257ca
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [0x4c2388]
pop esi
pop ebx
leave
ret

Function at 0x4258e5
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.0042542b
test al, al
je 0x425937
lea edx, [ebp - 8]
mov cl, bl
call fcn.00425855
test eax, eax
jne 0x425937
push dword [ebp - 8]
mov dl, bl
lea ecx, [ebp - 0x1c]
call fcn.004255d5
lea ecx, [ebp - 0x1c]
call fcn.0040841b
test al, al
jne 0x425937
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 0x425994
cmp bl, 2
jne 0x42598b
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 0x42598b
cmp word [eax + 8], 2
jne 0x42598b
cmp word [eax + 0xa], 4
jne 0x42598b
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x42598b
mov eax, dword [eax]
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, edi
call fcn.004385f0
jmp 0x425992
mov ecx, edi
call fcn.004385b5
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x425e28
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 0x425e69
xor al, al
jmp 0x425f23
push edi
push 0x1a73
push 0
lea ecx, [ebp - 0x22]
call fcn.004385f0
push eax
mov ecx, ebx
call fcn.0042a13c
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.192.152.143
call edi
push 0x48f758
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 0x425f15
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 0x425f15
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 0x425f15
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 0x425f15
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 0x425f19
xor al, al
jmp 0x425f22
mov ecx, ebx
call fcn.004285ed
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425f27
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.0043b44e
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.004257ca
lea eax, [ebp - 0x194]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425f8e
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 0x4263c1
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 0x4263fc
xor al, al
jmp 0x426420
push 0x14e7
call fcn.00426376
push eax
lea ecx, [ebp - 0x16]
call fcn.004385f0
push eax
mov ecx, esi
call fcn.0042a13c
mov ecx, esi
call fcn.004285ed
mov al, 1
pop esi
leave
ret

Function at 0x426423
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 0x426480
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.00426385
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 0x426c4b
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 0x426c7e
or eax, eax
jmp 0x426d2a
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004257ca
call fcn.00428703
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x426cdf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x426cd7
cmp esi, 0x2734
je 0x426cd7
push esi
push dword [0x4cc41c]
mov ecx, ebx
call fcn.00426bba
mov eax, esi
jmp 0x426d29
mov ecx, dword [ebp + 0xc]
call fcn.00429f91
call fcn.00428714
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.00426a99
mov dword [ebp + 8], eax
call fcn.00428703
cmp dword [ebp + 8], 0
je 0x426d19
mov esi, dword [0x4cc678]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
mov ecx, ebx
call fcn.00426bba
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
call fcn.00428aba
call fcn.00428714
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x426d30
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 0x426d93
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.00426a17
test eax, eax
jne 0x426d97
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 0x426da5
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 0x426dc0
test eax, eax
je 0x426dc0
test esi, esi
jg 0x426d4f
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 [0x4cc420]
call fcn.00426bba
mov eax, esi
jmp 0x426d9d
mov eax, ebx
jmp 0x426d9f
Function at 0x426fca
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.004385f0
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 0x426ffe
push 0xfffffffffffffffe
pop eax
jmp 0x427079
lea eax, [ebp - 0x28]
push eax
push esi
mov ecx, edi
call fcn.00426f9b
test eax, eax
je 0x427022
push 0xa
push dword [0x4cc634]
mov ecx, edi
call fcn.00426b68
or eax, 0xffffffff
jmp 0x427079
lea ecx, [ebp - 0x14]
call fcn.004385b5
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00426eff
test eax, eax
jne 0x427079
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004257ca
lea eax, [ebp - 0x14]
push eax
push 0x48ea68
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.0043b44e
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
mov ecx, edi
call fcn.00426c4b
pop edi
pop esi
leave
ret 0x10

Function at 0x42707f
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 0x4270d7
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.00426a99
test eax, eax
jne 0x4270db
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 0x4270e9
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 0x427104
test esi, esi
jg 0x42709a
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 [0x4cc424]
call fcn.00426bba
mov eax, esi
jmp 0x4270e1
mov eax, ebx
jmp 0x4270e3

Function at 0x428666
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 0x42867c
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 0x428677
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x16]
call fcn.00438641
movzx eax, word [eax + 0x10]
leave
ret
Function at 0x429b45
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 0x429c55
cmp byte [ebp + 8], 0
je 0x429b84
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.00428595
test byte [esi + 0xe], 0x20
je 0x429bd7
mov eax, dword [esi + 0x49]
test eax, eax
jge 0x429ba3
neg eax
mov dword [ebp + 8], eax
jmp 0x429ba7
and dword [ebp + 8], 0
mov eax, dword [esi + 0x5d]
test eax, eax
jge 0x429bb5
neg eax
mov dword [ebp - 4], eax
jmp 0x429bb9
and dword [ebp - 4], 0
fild dword [ebp + 8]
fadd dword [0x4c2804]
fstp dword [0x4c2804]
fild dword [ebp - 4]
fadd dword [0x4c27fc]
fstp dword [0x4c27fc]
mov ecx, dword [esi + 4]
call fcn.00428617
or dword [esi + 4], 0xffffffff
test byte [esi + 0xe], 0x20
je 0x429c55
cmp byte [esi + 0x13], 6
jb 0x429c05
push 2
push 0x40
mov ecx, esi
call fcn.004282a5
push 2
push 0x40
mov ecx, esi
call fcn.00428286
mov ecx, dword [esi + 0x45]
mov eax, dword [esi + 0x49]
cmp ecx, eax
jae 0x429c2d
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x429c21
fadd dword [0x48e6a0]
fadd dword [0x4c2808]
fstp dword [0x4c2808]
mov ecx, dword [esi + 0x59]
mov eax, dword [esi + 0x5d]
cmp ecx, eax
jae 0x429c55
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x429c49
fadd dword [0x48e6a0]
fadd dword [0x4c2800]
fstp dword [0x4c2800]
and byte [esi + 0xe], 0xdf
test byte [esi + 0xe], 0x80
je 0x429c73
lea eax, [esi + 0xb1]
mov ecx, dword [eax]
and dword [eax], 0
test ecx, ecx
je 0x429c73
call fcn.00449281
pop esi
leave
ret 4
Function at 0x42a83a
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 0x42a855
push 0
call fcn.00429b45
lea ecx, [ebp - 0x14]
call fcn.004385b5
mov ecx, dword [ebp + 8]
call fcn.00404ac1
push 0
lea ecx, [ebp - 0x26]
test al, al
jne 0x42a87a
push 0x4c300c
call fcn.00438625
jmp 0x42a881
push 0
call fcn.004385f0
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.00404ac1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.00429afe
cmp dword [ebx + 4], 0xffffffff
jne 0x42a8c8
mov esi, dword [ebx]
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x42a9fb
mov si, word [ebp + 0xc]
test si, si
jbe 0x42a8d5
mov word [ebp - 4], si
mov ecx, 0x4c2850
call fcn.0040841b
mov ecx, 0x4c2850
test al, al
jne 0x42a8f7
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.0040841b
test al, al
je 0x42a905
test si, si
jbe 0x42a92d
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.0042a13c
mov word [ebx + 0xcb], si
mov esi, dword [ebp + 8]
lea edi, [ebx + 0xb9]
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 + 0xe0], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004257ca
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 0x42a9b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42a9a5
lea ecx, [ebx + 0xb9]
mov byte [ebx + 0x13], 3
mov byte [ebx + 0x14], 6
call fcn.00429f91
or byte [ebx + 0xdf], 2
jmp 0x42a9f0
mov edx, dword [ebx]
xor esi, esi
inc esi
push esi
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov dword [ebx + 0xe0], esi
jmp 0x42a9f0
mov byte [ebx + 0x13], 6
call esi
sub eax, dword [ebx + 0xe0]
cmp eax, 0xffffffff
jbe 0x42a9cd
or eax, 0xffffffff
xor esi, esi
inc esi
cmp eax, esi
jae 0x42a9d6
mov eax, esi
push esi
push 0x40
mov ecx, ebx
mov dword [ebx + 0xe0], eax
call fcn.004282a5
push esi
push 0x40
mov ecx, ebx
call fcn.00428286
push 1
push 0x40
mov ecx, ebx
call fcn.00428286
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42c3e5
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 + 0x1c4]
push edi
mov dword [ebp + 0x74], esi
call fcn.0042c301
mov esi, dword [esi + 0xe8]
push 5
pop ecx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp + 0x5c], 0x32716572
add esi, 0x160
lea edi, [ebp + 0x60]
push 0x18
rep movsd dword es:[edi], dword [esi]
pop edx
lea ecx, [ebp + 0x5c]
call fcn.0043857e
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 0x42c42f
mov al, byte [0x4b3261]
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.0042c2b7
mov eax, dword [esi + 0xe8]
push 0x14
add eax, 0x160
push eax
mov ecx, esi
call fcn.0042c348
lea eax, [ebp + 8]
push eax
push eax
push 0x54
lea eax, [ebx + 9]
push eax
call fcn.004341ed
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.004341ed
push 0x7c
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0042a73a
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret