joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427b92
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 0x427bf5
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.00427879
test eax, eax
jne 0x427bf9
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 0x427c07
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 0x427c22
test eax, eax
je 0x427c22
test esi, esi
jg 0x427bb1
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 [0x4cfa58]
call fcn.00427a1c
mov eax, esi
jmp 0x427bff
mov eax, ebx
jmp 0x427c01

Function at 0x427e2c
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.004396d4
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 0x427e60
push 0xfffffffffffffffe
pop eax
jmp 0x427edb
lea eax, [ebp - 0x28]
push eax
push esi
mov ecx, edi
call fcn.00427dfd
test eax, eax
je 0x427e84
push 0xa
push dword [0x4cfc6c]
mov ecx, edi
call fcn.004279ca
or eax, 0xffffffff
jmp 0x427edb
lea ecx, [ebp - 0x14]
call fcn.00439699
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00427d61
test eax, eax
jne 0x427edb
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00426648
lea eax, [ebp - 0x14]
push eax
push 0x490a70
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.0043c508
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
mov ecx, edi
call fcn.00427aad
pop edi
pop esi
leave
ret 0x10
Function at 0x427ee1
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 0x427f39
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.004278fb
test eax, eax
jne 0x427f3d
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 0x427f4b
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 0x427f66
test esi, esi
jg 0x427efc
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 [0x4cfa5c]
call fcn.00427a1c
mov eax, esi
jmp 0x427f43
mov eax, ebx
jmp 0x427f45

Function at 0x4294b3
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 0x4294c9
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 0x4294c4
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x16]
call fcn.00439725
movzx eax, word [eax + 0x10]
leave
ret
Function at 0x42a9a8
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 0x42aab8
cmp byte [ebp + 8], 0
je 0x42a9e7
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.004293e2
test byte [esi + 0xe], 0x20
je 0x42aa3a
mov eax, dword [esi + 0x49]
test eax, eax
jge 0x42aa06
neg eax
mov dword [ebp + 8], eax
jmp 0x42aa0a
and dword [ebp + 8], 0
mov eax, dword [esi + 0x61]
test eax, eax
jge 0x42aa18
neg eax
mov dword [ebp - 4], eax
jmp 0x42aa1c
and dword [ebp - 4], 0
fild dword [ebp + 8]
fadd dword [0x4c5924]
fstp dword [0x4c5924]
fild dword [ebp - 4]
fadd dword [0x4c591c]
fstp dword [0x4c591c]
mov ecx, dword [esi + 4]
call fcn.00429464
or dword [esi + 4], 0xffffffff
test byte [esi + 0xe], 0x20
je 0x42aab8
cmp byte [esi + 0x13], 6
jb 0x42aa68
push 2
push 0x40
mov ecx, esi
call fcn.004290f2
push 2
push 0x40
mov ecx, esi
call fcn.004290d3
mov ecx, dword [esi + 0x45]
mov eax, dword [esi + 0x49]
cmp ecx, eax
jae 0x42aa90
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aa84
fadd dword [0x4906a0]
fadd dword [0x4c5928]
fstp dword [0x4c5928]
mov ecx, dword [esi + 0x5d]
mov eax, dword [esi + 0x61]
cmp ecx, eax
jae 0x42aab8
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aaac
fadd dword [0x4906a0]
fadd dword [0x4c5920]
fstp dword [0x4c5920]
and byte [esi + 0xe], 0xdf
test byte [esi + 0xe], 0x80
je 0x42aad6
lea eax, [esi + 0xb9]
mov ecx, dword [eax]
and dword [eax], 0
test ecx, ecx
je 0x42aad6
call fcn.0044a51c
pop esi
leave
ret 4
Function at 0x42b6a4
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 0x42b6bf
push 0
call fcn.0042a9a8
lea ecx, [ebp - 0x14]
call fcn.00439699
mov ecx, dword [ebp + 8]
call fcn.00404a8c
push 0
lea ecx, [ebp - 0x26]
test al, al
jne 0x42b6e4
push 0x4c6144
call fcn.00439709
jmp 0x42b6eb
push 0
call fcn.004396d4
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.00404a8c
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0042a961
cmp dword [ebx + 4], 0xffffffff
jne 0x42b732
mov esi, dword [ebx]
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x42b865
mov si, word [ebp + 0xc]
test si, si
jbe 0x42b73f
mov word [ebp - 4], si
mov ecx, 0x4c5988
call fcn.004084c0
mov ecx, 0x4c5988
test al, al
jne 0x42b761
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.004084c0
test al, al
je 0x42b76f
test si, si
jbe 0x42b797
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.0042afa3
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.00426648
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 0x42b823
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42b80f
lea ecx, [ebx + 0xc1]
mov byte [ebx + 0x13], 3
mov byte [ebx + 0x14], 6
call fcn.0042adf8
or byte [ebx + 0xe7], 2
jmp 0x42b85a
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 0x42b85a
mov byte [ebx + 0x13], 6
call esi
sub eax, dword [ebx + 0xe8]
cmp eax, 0xffffffff
jbe 0x42b837
or eax, 0xffffffff
xor esi, esi
inc esi
cmp eax, esi
jae 0x42b840
mov eax, esi
push esi
push 0x40
mov ecx, ebx
mov dword [ebx + 0xe8], eax
call fcn.004290f2
push esi
push 0x40
mov ecx, ebx
call fcn.004290d3
push 1
push 0x40
mov ecx, ebx
call fcn.004290d3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42d3e4
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.0042d300
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.00439662
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 0x42d42e
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.0042d2b6
mov eax, dword [esi + 0xf0]
push 0x14
add eax, 0x164
push eax
mov ecx, esi
call fcn.0042d347
lea eax, [ebp + 8]
push eax
push eax
push 0x54
lea eax, [ebx + 9]
push eax
call fcn.0043523e
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.0043523e
push 0x7c
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0042b5a4
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x431902
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebx + 0x1cc]
mov dword [ebp - 4], edi
sub dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x20]
lea eax, [esi + 0x14]
mov dword [ebp - 8], 5
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
dec dword [ebp - 8]
jne 0x43192c
and dword [ebp - 4], 0
cmp dword [0x4c3b58], 0
je 0x4319a3
mov eax, dword [0x4c3b50]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push 5
pop ecx
lea esi, [eax + 0x164]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x4c], 0x32716572
lea edi, [ebp - 0x48]
push 0x18
rep movsd dword es:[edi], dword [esi]
pop edx
lea ecx, [ebp - 0x4c]
call fcn.00439662
push 5
pop ecx
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x34]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4319a7
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x4c3b58]
jne 0x43194e
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
jmp 0x4319b0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
test eax, eax
jne 0x4319c0
push str.No_such_torrent
jmp 0x431a49
push 0x14
add eax, 0x164
push eax
call fcn.0042d347
and dword [ebx + 0xa1], 0
lea ecx, [esi + 0x28]
push ecx
push ecx
lea eax, [edi + 9]
push 0xe
mov dword [ebx + 0x9d], eax
or byte [ebx + 0xe], 0x40
push eax
call fcn.0043523e
movzx eax, word [esi + 0x34]
mov ecx, eax
shr ecx, 8
shl eax, 8
movzx ecx, cx
movzx eax, ax
or ecx, eax
cmp dword [esi + 0x28], 0
jne 0x431a42
cmp dword [esi + 0x2c], 0
jne 0x431a42
cmp ecx, 0x200
ja 0x431a42
mov al, byte [esi + 0x33]
mov byte [edi], al
test al, 2
je 0x431a31
test byte [0x4b6261], 4
jne 0x431a2c
test al, 1
jne 0x431a31
mov byte [edi], 2
jmp 0x431a35
and al, 1
mov byte [edi], al
add ecx, 2
mov dword [ebx + 0x188], ecx
mov al, 1
jmp 0x431a50
push str.Error_in_DH_header_3
mov ecx, ebx
call fcn.00430ff3
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x4352c6
push ebp
push ebx
push esi
push edi
push eax
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
movzx eax, byte [ebp]
movzx ebx, byte [ebp + 1]
mov edi, dword [esp + 0x24]
inc al
add ebp, 2
lea edx, [edx + esi - 1]
mov dword [esp], edx
movzx ecx, byte [ebp + eax]
sub edi, esi
jmp 0x43527e
add ebx, ecx
and ebx, 0xff
movzx edx, byte [ebp + ebx]
mov byte [ebp + ebx], cl
mov byte [ebp + eax], dl
add edx, ecx
and edx, 0xff
movzx edx, byte [ebp + edx]
add eax, 1
and eax, 0xff
xor dl, byte [esi]
movzx ecx, byte [ebp + eax]
cmp esi, dword [esp]
mov byte [esi + edi], dl
lea esi, [esi + 1]
jb 0x43527e
dec eax
pop ecx
mov byte [ebp - 1], bl
mov byte [ebp - 2], al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4363b4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
push 0x7c
push esi
call sub.MSVCRT.dll_wcschr
pop ecx
pop ecx
test eax, eax
jne 0x4363c8
lea eax, [esi - 2]
lea ecx, [eax + 2]
pop esi
jmp fcn.0043b312
Function at 0x439d78
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
call fcn.00404a8c
test al, al
je 0x439daa
push dword [esi + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push eax
call esi
push eax
push str._I.in_addr.arpa
call fcn.0043c7f6
pop ecx
pop ecx
jmp 0x439e89
push edi
xor eax, eax
lea edi, [ebp - 0x13]
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 edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 0x4900b8
movsd dword es:[edi], dword [esi]
call fcn.0043c869
mov esi, eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 4]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0x10]
push eax
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x12]
push eax
movzx eax, byte [esi + 0x13]
push eax
movzx eax, byte [esi + 0x14]
push eax
movzx eax, byte [esi + 0x15]
push eax
movzx eax, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x17]
push eax
movzx eax, byte [esi + 0x18]
push eax
movzx eax, byte [esi + 0x19]
push eax
movzx eax, byte [esi + 0x1a]
push eax
movzx eax, byte [esi + 0x1b]
push eax
movzx eax, byte [esi + 0x1c]
push eax
movzx eax, byte [esi + 0x1d]
push eax
movzx eax, byte [esi + 0x1e]
push eax
movzx eax, byte [esi + 0x1f]
push eax
push str._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c.ip6.arpa
call fcn.0043c7f6
add esp, 0x8c
mov ecx, esi
mov edi, eax
call fcn.004444fe
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x43adb2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
call fcn.0043ad6c
cmp byte [0x4c6ce8], 0
mov ebx, eax
je 0x43adff
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x43adff
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43ae01
push edi
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x43ae01
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.004444fe
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x43ae11
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
call fcn.0043ad5d
cmp byte [0x4c6ce8], 0
mov ebx, eax
je 0x43ae5e
mov eax, dword [0x4c6cec]
cmp eax, 0xffffffff
je 0x43ae5e
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43ae60
push edi
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c6cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x43ae60
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.004444fe
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4414b4
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 0
push 2
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x4414f7
test dword [0x4cb474], 0x800000
je 0x4414f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
call fcn.004891ee
pop ecx
pop ecx
xor al, al
jmp 0x4415b6
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], 1
call edi
test eax, eax
jne 0x44155a
push 0x76c
call fcn.004413ea
push eax
lea ecx, [ebp - 0x20]
call fcn.004396d4
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0042afa3
test eax, eax
je 0x44155e
test dword [0x4cb474], 0x800000
je 0x44155a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.004891ee
pop ecx
pop ecx
xor al, al
jmp 0x4415b5
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call esi
push 0x491768
mov dword [ebp - 0xc], eax
call esi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [ebx + 4]
call edi
pop esi
test eax, eax
je 0x4415ac
test dword [0x4cb474], 0x800000
je 0x4415ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
call fcn.004891ee
pop ecx
pop ecx
mov ecx, ebx
call fcn.0042943a
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x4415b9
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor esi, esi
push esi
push 2
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov dword [edi + 4], eax
call fcn.004413ea
push eax
lea ecx, [ebp - 0x28]
call fcn.004396d4
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0042afa3
test eax, eax
je 0x441617
test dword [0x4cb474], 0x800000
je 0x441610
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.004891ee
pop ecx
pop ecx
xor al, al
jmp 0x4416cc
push 4
lea eax, [ebp - 0x10]
push eax
push 9
push esi
push dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
call esi
test eax, eax
je 0x441651
test dword [0x4cb474], 0x800000
je 0x441651
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
call fcn.004891ee
pop ecx
pop ecx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [edi + 4]
mov dword [ebp - 4], 0xff
call esi
test eax, eax
je 0x44168a
test dword [0x4cb474], 0x800000
je 0x44168a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
call fcn.004891ee
pop ecx
pop ecx
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push 0
push dword [edi + 4]
mov dword [ebp - 4], 0xff
call esi
test eax, eax
je 0x4416c3
test dword [0x4cb474], 0x800000
je 0x4416c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
call fcn.004891ee
pop ecx
pop ecx
mov ecx, edi
call fcn.0042943a
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x4416d0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
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 - 0x10], ax
mov eax, 0x6c07
mov esi, ecx
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x62
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:upnp:rootdevice_r_nMAN:_ssdp:discover__r_nMX:3_r_n_r_n
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 0x442f34
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x10], 0
push ebx
push esi
mov ebx, edx
push edi
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
jne 0x442f52
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov eax, ebx
push 3
shl eax, 2
xor edx, edx
pop ecx
div ecx
mov dword [ebp + 0x10], reloc.WS2_32.dll_accept
mov ecx, eax
add ecx, 5
cmp byte [ebp + 0xc], 0
je 0x442f84
mov eax, ebx
push 0x16
xor edx, edx
pop ebx
div ebx
and dword [ebp + 0x10], 0
mov ebx, dword [ebp - 4]
lea ecx, [ecx + eax + 2]
call fcn.00444a72
mov ecx, eax
mov dword [ebp + 0xc], ecx
lea ebx, [esi + ebx - 3]
jmp 0x442ff4
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
mov al, byte [eax + edi]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + edi]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + edi]
and edx, 0x3f
mov byte [ecx + 2], al
mov al, byte [edx + edi]
add esi, 3
mov byte [ecx + 3], al
add ecx, 4
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jne 0x442ff4
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
inc ecx
inc ecx
and dword [ebp + 0x10], 0
cmp esi, ebx
jbe 0x442f94
lea eax, [ebx + 2]
cmp esi, eax
jne 0x44301e
movzx edx, byte [esi]
shl edx, 4
mov eax, edx
shr eax, 6
mov al, byte [eax + edi]
and edx, 0x3f
mov byte [ecx], al
mov al, byte [edx + edi]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
jmp 0x443053
inc ebx
cmp esi, ebx
jne 0x44305d
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
add edx, eax
shl edx, 2
mov eax, edx
shr eax, 0xc
mov al, byte [eax + edi]
mov byte [ecx], al
mov eax, edx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + edi]
and edx, 0x3f
mov byte [ecx + 1], al
mov al, byte [edx + edi]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
jle 0x44306c
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
inc ecx
inc ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, ecx
sub edx, eax
pop edi
mov dword [esi], edx
pop esi
mov byte [ecx], 0
pop ebx
leave
ret 0xc

Function at 0x4432cf
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4c6328], ecx
xor ecx, ecx
inc ecx
mov eax, 0x4c6328
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x4c6ce4
jl 0x4432de
mov dword [0x4b73d0], ecx
pop esi
ret