joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c707
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, ecx
mov esi, str.kernel32
mov edx, str.TryEnterCriticalSection
mov ecx, esi
call fcn.00445bf9
push str.ntdll
mov dword [0x4c3f58], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x4c3f48], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, str.SetFileValidData
mov ecx, esi
mov dword [0x4c6f08], eax
call fcn.00445bf9
xor esi, esi
mov dword [0x4c3f54], eax
cmp eax, esi
je 0x41c771
push 2
pop edx
mov ecx, str.SeManageVolumePrivilege
call fcn.00445f0e
mov byte [0x4c3f7c], al
push esi
push esi
push esi
push esi
mov dword [0x4c3f98], esi
mov dword [0x4c3f9c], 0x4c3f98
mov dword [0x4c3fa8], esi
mov dword [0x4c3fac], 0x4c3fa8
mov dword [0x4c3fa0], esi
mov dword [0x4c3fa4], 0x4c3fa0
mov dword [0x4c3f90], esi
mov dword [0x4c3f94], 0x4c3f90
mov dword [0x4c3f78], esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov edx, 0x4929cc
mov ecx, 0x4c3f5c
mov dword [0x4c3f74], eax
call fcn.0041e478
mov edx, 0x4929c8
mov ecx, 0x4c5d8c
call fcn.0041e478
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x8000000
jae 0x41c7ff
mov ecx, 0x800000
jmp 0x41c80d
shr eax, 4
mov ecx, 0x2000000
cmp eax, ecx
jae 0x41c80d
mov ecx, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x41c6ee
push esi
push esi
push str.IOThread
mov dword [0x4c3f80], ecx
mov byte [edi], 1
call fcn.0041e30a
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret

Function at 0x41c918
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x41c991
cmp word [ebx + 8], 2
jne 0x41c96e
cmp word [ebx + 0xa], 4
jne 0x41c96e
mov esi, dword [ebx + 0xc]
jmp 0x41c968
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041c8b1
mov dword [edi], eax
test eax, eax
je 0x41c98c
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x41c94c
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x41c9b7
push 8
pop eax
jmp 0x41c9b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x41c9b7
dec ecx
je 0x41c9b2
dec ecx
je 0x41c9ab
dec ecx
jmp 0x41c9b7
mov eax, 0x2afb
jmp 0x41c9b7
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x41cf91
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4c40f8], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x41cb4f
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x41cdd9
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0041cb1a
jne 0x41d0ed
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x41d0e3
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x41cfed
push edi
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d008
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push esi
mov esi, str.ws2_32
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x41d04b
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41d047
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x41d0a2
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x41d04d
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d067
mov esi, str.wship6
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x41d0e0
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41d09e
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41d0e0
xor edi, edi
push dword [ebp + edi*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp + edi*8 - 0x14], eax
test eax, eax
je 0x41d0bf
inc edi
cmp edi, 3
jl 0x41d0a4
jmp 0x41d0c8
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41d0e0
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4b6d5c], ecx
add eax, 8
cmp eax, 0x18
jl 0x41d0ce
pop esi
pop ebx
pop edi
mov dword [0x4c40f8], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4b6d5c]
leave
ret 4
Function at 0x41e30a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, dword [esi]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 8]
mov edi, 0x4c4360
mov ecx, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call fcn.0041e1bc
push dword [0x4c53a0]
mov ecx, dword [0x4c5398]
push 0
lea edx, [ebp - 8]
call fcn.00405462
mov esi, eax
mov eax, dword [0x4c53a0]
cmp eax, dword [0x4c539c]
jb 0x41e374
mov ecx, 0x4c5398
call fcn.004023d4
mov eax, dword [0x4c53a0]
mov ecx, dword [0x4c5398]
sub eax, esi
inc dword [0x4c53a0]
shl eax, 3
shl esi, 3
add ecx, esi
push eax
push ecx
add ecx, 8
push ecx
call sub.MSVCRT.dll_memmove
mov eax, dword [0x4c5398]
mov ecx, dword [ebp - 4]
mov dword [esi + eax], ebx
mov eax, dword [0x4c5398]
mov dword [esi + eax + 4], ecx
add esp, 0xc
mov ecx, edi
call fcn.0041e23a
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x1c

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

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x18]
push dword [esi + 0x14]
push str.uTorrentPartFile__LX.dat
call fcn.0043c769
mov ecx, dword [esi + 0x1c]
add esp, 0xc
mov edx, eax
call fcn.00444f25
mov ecx, eax
pop esi
jmp fcn.0043b371

Function at 0x41efbc
Capabilities:
Delete directory
Delete file

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 8], ebp
cmp dword [ebx + 8], ebp
je 0x41f094
push esi
push edi
mov esi, dword [ebx]
mov ecx, dword [ebx + 0x1c]
add esi, ebp
mov edx, dword [esi + 0x18]
push 0
call fcn.00444fe8
mov edi, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41efe8
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [esi + 0x18]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x41effe
sub eax, edx
sar eax, 1
sub ecx, eax
lea esi, [edi + ecx*2 - 2]
jmp 0x41f069
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x41f069
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x41f069
push 0
mov edx, str.thumbs.db
mov ecx, edi
call fcn.00444fe8
mov ecx, eax
call fcn.0043b371
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x41f077
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x41f069
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x41f077
push 0x5c
push edi
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, esi
jae 0x41f014
mov ecx, edi
call fcn.004444fe
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add ebp, 0x34
cmp eax, dword [ebx + 8]
jne 0x41efd2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41fb7f
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.0041ee2f
mov esi, dword [ebp + 8]
mov eax, dword [edi]
imul esi, esi, 0x34
add eax, esi
push eax
mov ecx, edi
call fcn.0041e94c
mov dword [ebp - 0xc], eax
mov ebx, 0x48f94c
test eax, eax
jne 0x41fbb5
mov eax, ebx
mov ecx, eax
call fcn.004458d7
test al, al
je 0x41fbe2
cmp dword [ebp - 0xc], 0
je 0x41fbc9
mov ebx, dword [ebp - 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x41fbe2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41fbf7
mov ebx, dword [edi]
mov ecx, dword [ebp + 0xc]
add ebx, esi
call fcn.00444cee
push eax
push ebx
mov ecx, edi
call fcn.0041faf1
mov ecx, dword [ebp - 0xc]
call fcn.004444fe
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41fe00
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.004439d8
test al, al
je 0x41fe2a
mov eax, dword [esi + 0x1c]
jmp 0x41fe32
mov ecx, dword [esi + 0x1c]
call fcn.004440cc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00443e75
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.0044401c
push eax
mov ecx, esi
call fcn.0041fd66
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x41fec6
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fe8a
test al, 0x10
jne 0x41fe92
mov ecx, dword [ebp - 8]
dec ecx
cmp esi, ecx
je 0x41fe98
test eax, 0x1000
jne 0x41feb0
test eax, 0x400
jne 0x41feb0
inc esi
cmp esi, dword [ebp - 8]
jb 0x41fe62
jmp 0x41feb3
mov byte [ebp - 1], 1
jmp 0x41feb3
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 0x41feb3
mov byte [ebp - 1], bl
cmp dword [ebp - 8], ebx
jbe 0x41fec6
mov ecx, dword [edi + ebx*4]
call fcn.004444fe
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41feb8
mov ecx, edi
call fcn.004444fe
mov ecx, dword [ebp - 0x1c]
call fcn.004444fe
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fedd
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.0041ee2f
cmp byte [esi + 0x24], 0
mov ecx, esi
jne 0x41ff4e
call fcn.0041fe00
mov ebx, 0x70000001
test al, al
je 0x41ff2b
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.0041f140
mov edi, eax
jmp 0x41ff2d
mov edi, ebx
test edi, edi
je 0x41ff39
cmp edi, ebx
jne 0x41ffde
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi]
call fcn.00444cee
push eax
push ebx
mov ecx, esi
call fcn.0041faf1
jmp 0x41ffc2
call fcn.0041fe00
test al, al
je 0x41ffbd
push dword [ebp + 8]
push dword [esi + 0x1c]
push str.Moving_files_from__s_to__s
call fcn.004891ee
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 0x41ffb4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x41ffa0
push dword [ebp + 8]
mov ecx, esi
call fcn.0041f3f5
mov edi, eax
test edi, edi
je 0x41ffb4
xor ecx, ecx
call fcn.004444fe
jmp 0x41ffde
mov ecx, dword [ebp + 8]
call fcn.004462f9
push dword [ebp + 8]
push dword [esi + 0x1c]
call ebx
test eax, eax
je 0x41ff87
xor ecx, ecx
call fcn.004444fe
jmp 0x41ffc2
mov edi, 0x70000001
call fcn.00429550
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x1c]
call fcn.0043ac3d
mov ecx, esi
call fcn.0041faa9
call fcn.00429561
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420d85
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 0x420da0
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
rol eax, 0xd
sub esi, 4
dec edx
jne 0x420d92
test esi, esi
je 0x420db0
movzx edx, byte [ecx]
xor eax, edx
rol eax, 8
inc ecx
dec esi
jne 0x420da4
pop esi
ret

Function at 0x420db2
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 0x420dd4
mov edi, edx
shr edi, 2
xor eax, dword [esi]
add esi, 4
rol eax, 0xd
sub edx, 4
dec edi
jne 0x420dc6
test edx, edx
je 0x420de4
movzx edi, byte [esi]
xor eax, edi
rol eax, 8
inc esi
dec edx
jne 0x420dd8
movzx ecx, word [ecx]
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
ret
Function at 0x425978
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 [0x4c5470]
test eax, eax
je 0x4259ce
cmp dword [ebp - 8], 0xc8
je 0x4259ce
push dword [ebp - 8]
push str.HTTP_Reply__d
call fcn.0043c769
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00425786
jmp 0x425a70
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 [0x4c5470]
test eax, eax
je 0x425a18
lea eax, [ebp - 0x28]
push str.gzip
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x425a18
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 [0x4c5470]
test eax, eax
je 0x425a40
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.00444a72
mov ecx, esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov byte [esi + 4], 1
call fcn.00425935
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4265a9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x4c54b8], 0
je 0x4265bf
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 0x4265f5
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x4265ef
shr eax, 8
cmp al, 2
jne 0x4265ef
mov byte [0x4c54b8], 1
jmp 0x4265bb
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
leave
ret

Function at 0x4266d3
Capabilities:
Reference l3 dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ebx, edx
cmp cl, 2
jne 0x426713
test byte [0x4c54d4], 1
jne 0x426704
or dword [0x4c54d4], 1
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x4c54d0], eax
push ebx
push dword [0x4c54d0]
call dword [0x4c54a4]
jmp 0x426760
cmp dword [0x4c54a8], 0
jne 0x426723
mov eax, 0x2741
jmp 0x426760
test byte [0x4c54d4], 2
push esi
mov esi, 0x4c54bc
jne 0x426747
or dword [0x4c54d4], 2
push 0
mov edx, str.2001:db8::1428:57ab
mov ecx, esi
call fcn.00439848
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.00426648
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [0x4c54a8]
pop esi
pop ebx
leave
ret
Function at 0x426763
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.004262a9
test al, al
je 0x4267b5
lea edx, [ebp - 8]
mov cl, bl
call fcn.004266d3
test eax, eax
jne 0x4267b5
push dword [ebp - 8]
mov dl, bl
lea ecx, [ebp - 0x1c]
call fcn.00426453
lea ecx, [ebp - 0x1c]
call fcn.004084c0
test al, al
jne 0x4267b5
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 0x426812
cmp bl, 2
jne 0x426809
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 0x426809
cmp word [eax + 8], 2
jne 0x426809
cmp word [eax + 0xa], 4
jne 0x426809
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x426809
mov eax, dword [eax]
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, edi
call fcn.004396d4
jmp 0x426810
mov ecx, edi
call fcn.00439699
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x426ca6
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 0x426ce7
xor al, al
jmp 0x426da1
push edi
push 0x1a73
push 0
lea ecx, [ebp - 0x22]
call fcn.004396d4
push eax
mov ecx, ebx
call fcn.0042afa3
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 0x426d93
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 0x426d93
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 0x426d93
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 0x426d93
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 0x426d97
xor al, al
jmp 0x426da0
mov ecx, ebx
call fcn.0042943a
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426da5
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.0043c508
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.00426648
lea eax, [ebp - 0x194]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426e0c
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 0x42723f
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 0x42727a
xor al, al
jmp 0x42729e
push 0x14e7
call fcn.004271f4
push eax
lea ecx, [ebp - 0x16]
call fcn.004396d4
push eax
mov ecx, esi
call fcn.0042afa3
mov ecx, esi
call fcn.0042943a
mov al, 1
pop esi
leave
ret

Function at 0x4272a1
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 0x4272fe
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.00427203
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 0x427aad
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 0x427ae0
or eax, eax
jmp 0x427b8c
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00426648
call fcn.00429550
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x427b41
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x427b39
cmp esi, 0x2734
je 0x427b39
push esi
push dword [0x4cfa54]
mov ecx, ebx
call fcn.00427a1c
mov eax, esi
jmp 0x427b8b
mov ecx, dword [ebp + 0xc]
call fcn.0042adf8
call fcn.00429561
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.004278fb
mov dword [ebp + 8], eax
call fcn.00429550
cmp dword [ebp + 8], 0
je 0x427b7b
mov esi, dword [0x4cfcb0]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
mov ecx, ebx
call fcn.00427a1c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
call fcn.00429917
call fcn.00429561
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc