joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427be1
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 0x427c44
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.004278c8
test eax, eax
jne 0x427c48
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 0x427c56
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 0x427c71
test eax, eax
je 0x427c71
test esi, esi
jg 0x427c00
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 [0x4cea38]
call fcn.00427a6b
mov eax, esi
jmp 0x427c4e
mov eax, ebx
jmp 0x427c50

Function at 0x427e7b
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.0043966e
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 0x427eaf
push 0xfffffffffffffffe
pop eax
jmp 0x427f2a
lea eax, [ebp - 0x28]
push eax
push esi
mov ecx, edi
call fcn.00427e4c
test eax, eax
je 0x427ed3
push 0xa
push dword [0x4cec4c]
mov ecx, edi
call fcn.00427a19
or eax, 0xffffffff
jmp 0x427f2a
lea ecx, [ebp - 0x14]
call fcn.00439633
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00427db0
test eax, eax
jne 0x427f2a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042665d
lea eax, [ebp - 0x14]
push eax
push 0x48fa70
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.0043c4c6
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
mov ecx, edi
call fcn.00427afc
pop edi
pop esi
leave
ret 0x10
Function at 0x427f30
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 0x427f88
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
call fcn.0042794a
test eax, eax
jne 0x427f8c
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 0x427f9a
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 0x427fb5
test esi, esi
jg 0x427f4b
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 [0x4cea3c]
call fcn.00427a6b
mov eax, esi
jmp 0x427f92
mov eax, ebx
jmp 0x427f94

Function at 0x4294f5
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 0x42950b
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 0x429506
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x16]
call fcn.004396bf
movzx eax, word [eax + 0x10]
leave
ret
Function at 0x42a9ea
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 0x42aafa
cmp byte [ebp + 8], 0
je 0x42aa29
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.00429431
test byte [esi + 0xe], 0x20
je 0x42aa7c
mov eax, dword [esi + 0x49]
test eax, eax
jge 0x42aa48
neg eax
mov dword [ebp + 8], eax
jmp 0x42aa4c
and dword [ebp + 8], 0
mov eax, dword [esi + 0x61]
test eax, eax
jge 0x42aa5a
neg eax
mov dword [ebp - 4], eax
jmp 0x42aa5e
and dword [ebp - 4], 0
fild dword [ebp + 8]
fadd dword [0x4c4924]
fstp dword [0x4c4924]
fild dword [ebp - 4]
fadd dword [0x4c491c]
fstp dword [0x4c491c]
mov ecx, dword [esi + 4]
call fcn.004294a6
or dword [esi + 4], 0xffffffff
test byte [esi + 0xe], 0x20
je 0x42aafa
cmp byte [esi + 0x13], 6
jb 0x42aaaa
push 2
push 0x40
mov ecx, esi
call fcn.00429141
push 2
push 0x40
mov ecx, esi
call fcn.00429122
mov ecx, dword [esi + 0x45]
mov eax, dword [esi + 0x49]
cmp ecx, eax
jae 0x42aad2
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aac6
fadd dword [0x48f6a0]
fadd dword [0x4c4928]
fstp dword [0x4c4928]
mov ecx, dword [esi + 0x5d]
mov eax, dword [esi + 0x61]
cmp ecx, eax
jae 0x42aafa
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x42aaee
fadd dword [0x48f6a0]
fadd dword [0x4c4920]
fstp dword [0x4c4920]
and byte [esi + 0xe], 0xdf
test byte [esi + 0xe], 0x80
je 0x42ab18
lea eax, [esi + 0xb9]
mov ecx, dword [eax]
and dword [eax], 0
test ecx, ecx
je 0x42ab18
call fcn.0044a526
pop esi
leave
ret 4
Function at 0x42b6e6
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 0x42b701
push 0
call fcn.0042a9ea
lea ecx, [ebp - 0x14]
call fcn.00439633
mov ecx, dword [ebp + 8]
call fcn.00404a13
push 0
lea ecx, [ebp - 0x26]
test al, al
jne 0x42b726
push 0x4c5144
call fcn.004396a3
jmp 0x42b72d
push 0
call fcn.0043966e
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.00404a13
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0042a9a3
cmp dword [ebx + 4], 0xffffffff
jne 0x42b774
mov esi, dword [ebx]
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x42b8a7
mov si, word [ebp + 0xc]
test si, si
jbe 0x42b781
mov word [ebp - 4], si
mov ecx, 0x4c4988
call fcn.00408480
mov ecx, 0x4c4988
test al, al
jne 0x42b7a3
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.00408480
test al, al
je 0x42b7b1
test si, si
jbe 0x42b7d9
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.0042afe5
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.0042665d
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 0x42b865
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42b851
lea ecx, [ebx + 0xc1]
mov byte [ebx + 0x13], 3
mov byte [ebx + 0x14], 6
call fcn.0042ae3a
or byte [ebx + 0xe7], 2
jmp 0x42b89c
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 0x42b89c
mov byte [ebx + 0x13], 6
call esi
sub eax, dword [ebx + 0xe8]
cmp eax, 0xffffffff
jbe 0x42b879
or eax, 0xffffffff
xor esi, esi
inc esi
cmp eax, esi
jae 0x42b882
mov eax, esi
push esi
push 0x40
mov ecx, ebx
mov dword [ebx + 0xe8], eax
call fcn.00429141
push esi
push 0x40
mov ecx, ebx
call fcn.00429122
push 1
push 0x40
mov ecx, ebx
call fcn.00429122
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42d427
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.0042d343
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.004395fc
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 0x42d471
mov al, byte [0x4b5261]
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.0042d2f9
mov eax, dword [esi + 0xf0]
push 0x14
add eax, 0x164
push eax
mov ecx, esi
call fcn.0042d38a
lea eax, [ebp + 8]
push eax
push eax
push 0x54
lea eax, [ebx + 9]
push eax
call fcn.00435211
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.00435211
push 0x7c
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0042b5e6
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x43190b
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 0x431935
and dword [ebp - 4], 0
cmp dword [0x4c2b58], 0
je 0x4319ac
mov eax, dword [0x4c2b50]
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.004395fc
push 5
pop ecx
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x34]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4319b0
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x4c2b58]
jne 0x431957
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
jmp 0x4319b9
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
test eax, eax
jne 0x4319c9
push str.No_such_torrent
jmp 0x431a52
push 0x14
add eax, 0x164
push eax
call fcn.0042d38a
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.00435211
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 0x431a4b
cmp dword [esi + 0x2c], 0
jne 0x431a4b
cmp ecx, 0x200
ja 0x431a4b
mov al, byte [esi + 0x33]
mov byte [edi], al
test al, 2
je 0x431a3a
test byte [0x4b5261], 4
jne 0x431a35
test al, 1
jne 0x431a3a
mov byte [edi], 2
jmp 0x431a3e
and al, 1
mov byte [edi], al
add ecx, 2
mov dword [ebx + 0x188], ecx
mov al, 1
jmp 0x431a59
push str.Error_in_DH_header_3
mov ecx, ebx
call fcn.00430ffc
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x435299
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 0x435251
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 0x435251
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 0x436386
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 0x43639a
lea eax, [esi - 2]
lea ecx, [eax + 2]
pop esi
jmp fcn.0043b2d0
Function at 0x439d12
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
call fcn.00404a13
test al, al
je 0x439d44
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.0043c7b4
pop ecx
pop ecx
jmp 0x439e23
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 0x48f0b8
movsd dword es:[edi], dword [esi]
call fcn.0043c827
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.0043c7b4
add esp, 0x8c
mov ecx, esi
mov edi, eax
call fcn.00444521
mov eax, edi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebx
push esi
call fcn.0043ad2a
cmp byte [0x4c5ce8], 0
mov ebx, eax
je 0x43adbd
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x43adbd
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43adbf
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 [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x43adbf
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.00444521
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x43adcf
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
call fcn.0043ad1b
cmp byte [0x4c5ce8], 0
mov ebx, eax
je 0x43ae1c
mov eax, dword [0x4c5cec]
cmp eax, 0xffffffff
je 0x43ae1c
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43ae1e
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 [0x4c5cec]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x43ae1e
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.00444521
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4414ea
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 0x44152d
test dword [0x4ca454], 0x800000
je 0x441526
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
call fcn.00488f98
pop ecx
pop ecx
xor al, al
jmp 0x4415ec
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 0x441590
push 0x76c
call fcn.00441420
push eax
lea ecx, [ebp - 0x20]
call fcn.0043966e
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0042afe5
test eax, eax
je 0x441594
test dword [0x4ca454], 0x800000
je 0x441590
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.00488f98
pop ecx
pop ecx
xor al, al
jmp 0x4415eb
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call esi
push 0x490768
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 0x4415e2
test dword [0x4ca454], 0x800000
je 0x4415e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
call fcn.00488f98
pop ecx
pop ecx
mov ecx, ebx
call fcn.0042947c
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x4415ef
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.00441420
push eax
lea ecx, [ebp - 0x28]
call fcn.0043966e
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0042afe5
test eax, eax
je 0x44164d
test dword [0x4ca454], 0x800000
je 0x441646
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.00488f98
pop ecx
pop ecx
xor al, al
jmp 0x441702
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 0x441687
test dword [0x4ca454], 0x800000
je 0x441687
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
call fcn.00488f98
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 0x4416c0
test dword [0x4ca454], 0x800000
je 0x4416c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
call fcn.00488f98
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 0x4416f9
test dword [0x4ca454], 0x800000
je 0x4416f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
call fcn.00488f98
pop ecx
pop ecx
mov ecx, edi
call fcn.0042947c
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x441706
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 0x442f57
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 0x442f75
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 0x442fa7
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.00444a95
mov ecx, eax
mov dword [ebp + 0xc], ecx
lea ebx, [esi + ebx - 3]
jmp 0x443017
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 0x443017
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
inc ecx
inc ecx
and dword [ebp + 0x10], 0
cmp esi, ebx
jbe 0x442fb7
lea eax, [ebx + 2]
cmp esi, eax
jne 0x443041
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 0x443076
inc ebx
cmp esi, ebx
jne 0x443080
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 0x44308f
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 0x4432f2
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4c5328], ecx
xor ecx, ecx
inc ecx
mov eax, 0x4c5328
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, 0x4c5ce4
jl 0x443301
mov dword [0x4b63d0], ecx
pop esi
ret