joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6ca
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.00445c1c
push str.ntdll
mov dword [0x4c2f58], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x4c2f48], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, str.SetFileValidData
mov ecx, esi
mov dword [0x4c5f08], eax
call fcn.00445c1c
xor esi, esi
mov dword [0x4c2f54], eax
cmp eax, esi
je 0x41c734
push 2
pop edx
mov ecx, str.SeManageVolumePrivilege
call fcn.00445f31
mov byte [0x4c2f7c], al
push esi
push esi
push esi
push esi
mov dword [0x4c2f98], esi
mov dword [0x4c2f9c], 0x4c2f98
mov dword [0x4c2fa8], esi
mov dword [0x4c2fac], 0x4c2fa8
mov dword [0x4c2fa0], esi
mov dword [0x4c2fa4], 0x4c2fa0
mov dword [0x4c2f90], esi
mov dword [0x4c2f94], 0x4c2f90
mov dword [0x4c2f78], esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov edx, 0x4919cc
mov ecx, 0x4c2f5c
mov dword [0x4c2f74], eax
call fcn.0041e474
mov edx, 0x4919c8
mov ecx, 0x4c4d8c
call fcn.0041e474
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x8000000
jae 0x41c7c2
mov ecx, 0x800000
jmp 0x41c7d0
shr eax, 4
mov ecx, 0x2000000
cmp eax, ecx
jae 0x41c7d0
mov ecx, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x41c6b1
push esi
push esi
push str.IOThread
mov dword [0x4c2f80], ecx
mov byte [edi], 1
call fcn.0041e306
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret

Function at 0x41c8db
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 0x41c954
cmp word [ebx + 8], 2
jne 0x41c931
cmp word [ebx + 0xa], 4
jne 0x41c931
mov esi, dword [ebx + 0xc]
jmp 0x41c92b
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041c874
mov dword [edi], eax
test eax, eax
je 0x41c94f
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x41c90f
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 0x41c97a
push 8
pop eax
jmp 0x41c97a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x41c97a
dec ecx
je 0x41c975
dec ecx
je 0x41c96e
dec ecx
jmp 0x41c97a
mov eax, 0x2afb
jmp 0x41c97a
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x41cf54
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4c30f8], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x41cb12
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x41cd9c
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0041cadd
jne 0x41d0b0
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x41d0a6
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x41cfb0
push edi
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41cfcb
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 0x41d00e
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41d00a
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x41d065
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x41d010
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d02a
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 0x41d0a3
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41d061
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41d0a3
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 0x41d082
inc edi
cmp edi, 3
jl 0x41d067
jmp 0x41d08b
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41d0a3
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4b5d5c], ecx
add eax, 8
cmp eax, 0x18
jl 0x41d091
pop esi
pop ebx
pop edi
mov dword [0x4c30f8], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4b5d5c]
leave
ret 4
Function at 0x41e306
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, 0x4c3360
mov ecx, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call fcn.0041e1b8
push dword [0x4c43a0]
mov ecx, dword [0x4c4398]
push 0
lea edx, [ebp - 8]
call fcn.0041e14a
mov esi, eax
mov eax, dword [0x4c43a0]
cmp eax, dword [0x4c439c]
jb 0x41e370
mov ecx, 0x4c4398
call fcn.0043de3a
mov eax, dword [0x4c43a0]
mov ecx, dword [0x4c4398]
sub eax, esi
inc dword [0x4c43a0]
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 [0x4c4398]
mov ecx, dword [ebp - 4]
mov dword [esi + eax], ebx
mov eax, dword [0x4c4398]
mov dword [esi + eax + 4], ecx
add esp, 0xc
mov ecx, edi
call fcn.0041e236
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x41e967
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.0043c727
mov ecx, dword [esi + 0x1c]
add esp, 0xc
mov edx, eax
call fcn.00444f48
mov ecx, eax
pop esi
jmp fcn.0043b32f

Function at 0x41efb8
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 0x41f090
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.0044500b
mov edi, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41efe4
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 0x41effa
sub eax, edx
sar eax, 1
sub ecx, eax
lea esi, [edi + ecx*2 - 2]
jmp 0x41f065
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x41f065
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x41f065
push 0
mov edx, str.thumbs.db
mov ecx, edi
call fcn.0044500b
mov ecx, eax
call fcn.0043b32f
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x41f073
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x41f065
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x41f073
push 0x5c
push edi
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, esi
jae 0x41f010
mov ecx, edi
call fcn.00444521
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add ebp, 0x34
cmp eax, dword [ebx + 8]
jne 0x41efce
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41fb7b
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.0041ee2b
mov esi, dword [ebp + 8]
mov eax, dword [edi]
imul esi, esi, 0x34
add eax, esi
push eax
mov ecx, edi
call fcn.0041e948
mov dword [ebp - 0xc], eax
mov ebx, 0x48e94c
test eax, eax
jne 0x41fbb1
mov eax, ebx
mov ecx, eax
call fcn.004458fa
test al, al
je 0x41fbde
cmp dword [ebp - 0xc], 0
je 0x41fbc5
mov ebx, dword [ebp - 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x41fbde
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41fbf3
mov ebx, dword [edi]
mov ecx, dword [ebp + 0xc]
add ebx, esi
call fcn.00444d11
push eax
push ebx
mov ecx, edi
call fcn.0041faed
mov ecx, dword [ebp - 0xc]
call fcn.00444521
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41fdfc
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.004439fb
test al, al
je 0x41fe26
mov eax, dword [esi + 0x1c]
jmp 0x41fe2e
mov ecx, dword [esi + 0x1c]
call fcn.004440ef
push eax
lea ecx, [ebp - 0x1c]
call fcn.00443e98
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.0044403f
push eax
mov ecx, esi
call fcn.0041fd62
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x41fec2
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fe86
test al, 0x10
jne 0x41fe8e
mov ecx, dword [ebp - 8]
dec ecx
cmp esi, ecx
je 0x41fe94
test eax, 0x1000
jne 0x41feac
test eax, 0x400
jne 0x41feac
inc esi
cmp esi, dword [ebp - 8]
jb 0x41fe5e
jmp 0x41feaf
mov byte [ebp - 1], 1
jmp 0x41feaf
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 0x41feaf
mov byte [ebp - 1], bl
cmp dword [ebp - 8], ebx
jbe 0x41fec2
mov ecx, dword [edi + ebx*4]
call fcn.00444521
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41feb4
mov ecx, edi
call fcn.00444521
mov ecx, dword [ebp - 0x1c]
call fcn.00444521
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fed9
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.0041ee2b
cmp byte [esi + 0x24], 0
mov ecx, esi
jne 0x41ff4a
call fcn.0041fdfc
mov ebx, 0x70000001
test al, al
je 0x41ff27
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.0041f13c
mov edi, eax
jmp 0x41ff29
mov edi, ebx
test edi, edi
je 0x41ff35
cmp edi, ebx
jne 0x41ffda
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi]
call fcn.00444d11
push eax
push ebx
mov ecx, esi
call fcn.0041faed
jmp 0x41ffbe
call fcn.0041fdfc
test al, al
je 0x41ffb9
push dword [ebp + 8]
push dword [esi + 0x1c]
push str.Moving_files_from__s_to__s
call fcn.00488f98
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 0x41ffb0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x41ff9c
push dword [ebp + 8]
mov ecx, esi
call fcn.0041f3f1
mov edi, eax
test edi, edi
je 0x41ffb0
xor ecx, ecx
call fcn.00444521
jmp 0x41ffda
mov ecx, dword [ebp + 8]
call fcn.0044631c
push dword [ebp + 8]
push dword [esi + 0x1c]
call ebx
test eax, eax
je 0x41ff83
xor ecx, ecx
call fcn.00444521
jmp 0x41ffbe
mov edi, 0x70000001
call fcn.00429592
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x1c]
call fcn.0043abfb
mov ecx, esi
call fcn.0041faa5
call fcn.004295a3
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

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

Function at 0x420dc4
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 0x420de6
mov edi, edx
shr edi, 2
xor eax, dword [esi]
add esi, 4
rol eax, 0xd
sub edx, 4
dec edi
jne 0x420dd8
test edx, edx
je 0x420df6
movzx edi, byte [esi]
xor eax, edi
rol eax, 8
inc esi
dec edx
jne 0x420dea
movzx ecx, word [ecx]
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
ret
Function at 0x42598d
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 [0x4c4470]
test eax, eax
je 0x4259e3
cmp dword [ebp - 8], 0xc8
je 0x4259e3
push dword [ebp - 8]
push str.HTTP_Reply__d
call fcn.0043c727
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0042579b
jmp 0x425a85
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 [0x4c4470]
test eax, eax
je 0x425a2d
lea eax, [ebp - 0x28]
push str.gzip
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x425a2d
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 [0x4c4470]
test eax, eax
je 0x425a55
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.00444a95
mov ecx, esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov byte [esi + 4], 1
call fcn.0042594a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4265be
Capabilities:
Initialize winsock library

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

Function at 0x4266e8
Capabilities:
Reference l3 dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ebx, edx
cmp cl, 2
jne 0x426728
test byte [0x4c44d4], 1
jne 0x426719
or dword [0x4c44d4], 1
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x4c44d0], eax
push ebx
push dword [0x4c44d0]
call dword [0x4c44a4]
jmp 0x426775
cmp dword [0x4c44a8], 0
jne 0x426738
mov eax, 0x2741
jmp 0x426775
test byte [0x4c44d4], 2
push esi
mov esi, 0x4c44bc
jne 0x42675c
or dword [0x4c44d4], 2
push 0
mov edx, str.2001:db8::1428:57ab
mov ecx, esi
call fcn.004397e2
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.0042665d
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [0x4c44a8]
pop esi
pop ebx
leave
ret
Function at 0x426778
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.004262be
test al, al
je 0x4267ca
lea edx, [ebp - 8]
mov cl, bl
call fcn.004266e8
test eax, eax
jne 0x4267ca
push dword [ebp - 8]
mov dl, bl
lea ecx, [ebp - 0x1c]
call fcn.00426468
lea ecx, [ebp - 0x1c]
call fcn.00408480
test al, al
jne 0x4267ca
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 0x426827
cmp bl, 2
jne 0x42681e
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 0x42681e
cmp word [eax + 8], 2
jne 0x42681e
cmp word [eax + 0xa], 4
jne 0x42681e
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x42681e
mov eax, dword [eax]
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, edi
call fcn.0043966e
jmp 0x426825
mov ecx, edi
call fcn.00439633
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x426cbb
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 0x426cfc
xor al, al
jmp 0x426db6
push edi
push 0x1a73
push 0
lea ecx, [ebp - 0x22]
call fcn.0043966e
push eax
mov ecx, ebx
call fcn.0042afe5
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.192.152.143
call edi
push 0x490768
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 0x426da8
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 0x426da8
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 0x426da8
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 0x426da8
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 0x426dac
xor al, al
jmp 0x426db5
mov ecx, ebx
call fcn.0042947c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426df4
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.0043c4c6
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.0042665d
lea eax, [ebp - 0x194]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426e5b
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 0x42728e
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 0x4272c9
xor al, al
jmp 0x4272ed
push 0x14e7
call fcn.00427243
push eax
lea ecx, [ebp - 0x16]
call fcn.0043966e
push eax
mov ecx, esi
call fcn.0042afe5
mov ecx, esi
call fcn.0042947c
mov al, 1
pop esi
leave
ret

Function at 0x4272f0
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 0x42734d
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.00427252
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 0x427afc
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 0x427b2f
or eax, eax
jmp 0x427bdb
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0042665d
call fcn.00429592
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x427b90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x427b88
cmp esi, 0x2734
je 0x427b88
push esi
push dword [0x4cea34]
mov ecx, ebx
call fcn.00427a6b
mov eax, esi
jmp 0x427bda
mov ecx, dword [ebp + 0xc]
call fcn.0042ae3a
call fcn.004295a3
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.0042794a
mov dword [ebp + 8], eax
call fcn.00429592
cmp dword [ebp + 8], 0
je 0x427bca
mov esi, dword [0x4cec90]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
mov ecx, ebx
call fcn.00427a6b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
call fcn.00429959
call fcn.004295a3
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc