joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508cb8
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov eax, 0x6aa292
call fcn.006426c4
sub esp, 0x64
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xd], 0
lea esi, [edi + 0x28]
push esi
call fcn.00460edf
push esi
test al, al
je 0x508ced
lea ecx, [ebp - 0x70]
call fcn.00427fbe
xor ebx, ebx
inc ebx
jmp 0x508cf9
lea eax, [ebp - 0x58]
push eax
call fcn.00473f76
push 2
pop ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.00427f9c
mov dword [ebp - 4], 1
test bl, 2
je 0x508d1d
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.004285f6
mov byte [ebp - 4], 2
test bl, 1
je 0x508d35
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.004285f6
jmp 0x508d37
xor ebx, ebx
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00507386
cmp dword [ebp - 0x18], 0
mov esi, ebx
jbe 0x508dc3
push esi
lea ecx, [ebp - 0x28]
call fcn.0053d231
cmp dword [eax + 0x14], 8
jb 0x508d5f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x508d8c
test cl, 0x10
jne 0x508dbf
lea eax, [edx - 1]
cmp esi, eax
je 0x508d98
test ecx, 0x1000
jne 0x508d93
test ecx, 0x400
jne 0x508d93
inc esi
cmp esi, edx
jb 0x508d4e
jmp 0x508dc3
mov byte [ebp - 0xd], bl
jmp 0x508dc3
push esi
lea ecx, [ebp - 0x28]
call fcn.0053d231
cmp dword [eax + 0x14], 8
jb 0x508da9
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
setne byte [ebp - 0xd]
jmp 0x508dc3
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x28]
call fcn.00476bdb
push 8
push 1
push dword [ebp - 0x28]
call fcn.004284f3
push ebx
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], ebx
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x509afc
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6aa34a
call fcn.006426c4
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0051e0a4
xor ebx, ebx
mov dword [esi + 0xc], 0x6e6ad4
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], 0x6c4094
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 8]
mov dword [esi], 0x6e6b58
mov dword [esi + 0xc], 0x6e6efc
mov dword [esi + 0x10], 0x6e73dc
mov byte [esi + 0x18], dl
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
mov ecx, dword [eax]
movzx eax, dl
push eax
push ecx
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.00506047
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
push 0x7bd2bc
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50bb43
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x6aefef
call fcn.006426c4
sub esp, 0x24
push esi
push edi
mov al, 1
mov ecx, 0x7bd2b9
xchg byte [ecx], al
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x7bd780], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0xc
mov dword [0x7af658], eax
call fcn.00642424
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x50bbaf
mov edi, ecx
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 4], 0x6c4094
mov dword [ecx + 8], esi
mov dword [ecx], 0x6e7438
mov dword [ecx + 4], 0x6e744c
jmp 0x50bbb3
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x50bbc0
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.0053b0a4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test eax, eax
je 0x50bbe0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov edi, 0x6d4848
push 0x6e750c
push edi
call fcn.0046462c
push str.SetFileValidData
push edi
mov dword [0x7bd74c], eax
call fcn.0046462c
mov dword [0x7bd750], eax
test eax, eax
je 0x50bc1e
push 2
push str.SeManageVolumePrivilege
call fcn.0046258f
mov byte [0x7bd72c], al
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0x6e7550
push 0x7bd754
mov dword [0x7bd730], eax
call fcn.0046bb16
push 0x6e7554
push 0x7bef88
call fcn.0046bb16
push 0x6e7558
push 0x7bd734
call fcn.0046bb16
call fcn.004f50a1
push 0x6e755c
push 0x78fbd8
call fcn.004f50f2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov ecx, 0x8000000
cmp dword [ebp - 0x28], ecx
push esi
sbb eax, eax
and eax, 0xf8800000
add eax, ecx
push eax
push esi
push dword [ebp - 0x28]
mov dword [0x7bd2c4], eax
push str.total_physical_memory__Ld_max_disk_cache__Ld
call fcn.0047d579
add esp, 0x14
call fcn.00547c1c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50e120
Capabilities:
Clear file content
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x7bd72c], 0
push ebx
push esi
push edi
je 0x50e13c
cmp byte [0x7bd2c9], 0
je 0x50e13c
xor bl, bl
jmp 0x50e13e
mov bl, 1
cmp byte [ebp + 0x20], 0
mov edi, dword [ebp + 8]
je 0x50e176
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x50e152
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x50e199
push 0
lea eax, [ebp + 8]
mov byte [ebp + 0x23], 0
push eax
push 0
push 0
push 1
lea eax, [ebp + 0x23]
push eax
jmp 0x50e18d
cmp byte [0x7bd2c8], 0
je 0x50e199
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0x900c4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp byte [ebp + 0x1c], 0
jne 0x50e20a
mov esi, dword [ebp + 0x10]
add esi, 8
mov byte [0x7bd2b8], 1
test bl, bl
je 0x50e1bd
push dword [esi + 4]
push dword [esi]
push edi
call fcn.0046220f
jmp 0x50e1dc
push 0
push dword [esi + 4]
push dword [esi]
push edi
call fcn.00461f37
and eax, edx
cmp eax, 0xffffffff
je 0x50e214
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x50e214
cmp byte [0x7bd72c], 0
je 0x50e203
cmp byte [0x7bd2c9], 0
je 0x50e203
cmp byte [0x7bd2c8], 0
jne 0x50e203
push dword [esi + 4]
push dword [esi]
push edi
call dword [0x7bd750]
mov byte [0x7bd2b8], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov byte [0x7bd2b8], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
jmp 0x50e20d

Function at 0x50fb9d
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x6aaaff
call fcn.006426c4
sub esp, 0x14
push ebx
xor ebx, ebx
mov byte [ebp - 0xd], 1
push edi
mov edi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [edi + 4]
call fcn.0050f921
test al, al
je 0x50fc57
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
mov edx, dword [ebp - 0x20]
sub eax, edx
sar eax, 2
push esi
mov esi, ebx
test eax, eax
je 0x50fc28
push dword [edx + esi*4]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x50fc13
mov byte [ebp - 0xd], bl
mov edi, ebx
test esi, esi
jle 0x50fc13
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
inc edi
cmp edi, esi
jl 0x50fc02
mov ecx, dword [ebp - 0x1c]
inc esi
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x50fbeb
mov edi, dword [ebp - 0x14]
sub ecx, edx
sar ecx, 2
pop esi
test ecx, ecx
je 0x50fc4b
push dword [edx + ebx*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x1c]
inc ebx
mov edx, dword [ebp - 0x20]
sub eax, edx
sar eax, 2
cmp ebx, eax
jb 0x50fc32
mov al, byte [ebp - 0xd]
test al, al
je 0x50fc55
inc dword [edi + 0x14]
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.004dc90c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50fd09
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x6aab3f
call fcn.006426c4
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0xd0]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x50fd2a
push 0
lea eax, [ebp - 0x14]
sub esi, ecx
push eax
mov eax, 0xbb7
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x50fd60
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x50fd64
mov byte [ebp - 0xd], 0
add eax, esi
push 0xa
push ebx
mov byte [eax + edi + 0xd0], 0
mov eax, dword [ebp - 0x14]
add dword [edi + 0xc], eax
adc dword [edi + 0x10], 0
call fcn.0065d3f0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x50fd99
push 0xd
push ebx
call fcn.0065d3f0
pop ecx
pop ecx
mov esi, eax
jmp 0x50fe7c
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040f32f
mov eax, esi
mov dword [ebp - 0x18], 0xf
sub eax, edi
xor ecx, ecx
sub eax, 0xd0
mov dword [ebp - 4], ecx
push eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040f84e
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040f95f
jmp 0x50fde2
cmp al, 0x20
jae 0x50fde8
inc esi
mov al, byte [esi]
test al, al
jne 0x50fddd
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50fded
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push ebx
call fcn.0065a600
push 0xa
push ebx
call fcn.0065d3f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x50fe20
push 0xd
push ebx
call fcn.0065d3f0
pop ecx
mov esi, eax
pop ecx
test esi, esi
setne al
lea ecx, [edi + 0xac]
movzx eax, al
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00549fa0
lea ecx, [edi + 0xac]
call fcn.0054a042
fmul qword [0x6d02c0]
call fcn.00642fc0
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
test eax, eax
je 0x50fe6c
lea ecx, [edi + 0xac]
call fcn.00549c83
call fcn.00642fc0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.0040f95f
test esi, esi
jne 0x50fd99
cmp byte [ebp - 0xd], 0
jne 0x50fd25
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5107e0
Capabilities:
Resume thread

Disassembly:
mov eax, 0x6a642c
call fcn.006426c4
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], esi
je 0x51084b
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call fcn.0050f921
test al, al
je 0x51084b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x510848
push dword [ecx + esi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [ebp - 0x18]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x14]
inc esi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x510823
dec dword [edi + 0x14]
lea ecx, [ebp - 0x18]
call fcn.004dc90c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x51468d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
push 0
push 2
push 2
mov esi, ecx
call fcn.0047ad2c
mov eax, dword [esi + 4]
mov ecx, esi
mov edi, dword [ebp + 8]
push edi
mov dword [esi + 0x18], eax
call fcn.004792b1
test eax, eax
je 0x5146d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
push 1
call fcn.00513fa9
add esp, 0xc
xor al, al
jmp 0x514761
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [edi + 0xc]
push 4
push eax
push 9
push 0
push dword [esi + 4]
call ebx
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x514706
call edi
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
push 1
call fcn.00513fa9
add esp, 0xc
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xff
push eax
push 4
push 0
push dword [esi + 4]
call ebx
test eax, eax
je 0x514732
call edi
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
push 1
call fcn.00513fa9
add esp, 0xc
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xff
push eax
push 0xa
push 0
push dword [esi + 4]
call ebx
pop ebx
test eax, eax
je 0x51475f
call edi
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
push 1
call fcn.00513fa9
add esp, 0xc
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x514769
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 0
push 2
pop eax
push eax
push eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x5147a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
push 1
call fcn.00513fa9
add esp, 0xc
xor al, al
jmp 0x5148ab
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x51479c
push esi
push 4
lea eax, [ebp - 8]
xor esi, esi
push eax
push 4
push 0xffff
push dword [ebx]
inc esi
mov dword [ebp - 8], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x5147f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_setsockopt:__d
push esi
call fcn.00513fa9
jmp 0x514837
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push 0x76c
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_bind]
pop edi
test eax, eax
je 0x51483c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x6e7d8c
push esi
call fcn.00513dfb
add esp, 0xc
jmp 0x514897
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call esi
push str.0.0.0.0
mov dword [ebp - 0x10], eax
call esi
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push 0xc
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x51489b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
push 1
call fcn.00513fa9
add esp, 0xc
mov byte [0x7bd7a7], 1
or dword [0x7bd7a8], 0xffffffff
mov dword [0x7bd7ac], esi
xor al, al
jmp 0x5148aa
push str.UPnP:_Joined_multicast_group
push esi
call fcn.00513dfb
pop ecx
pop ecx
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x514fd3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
mov word [ebp - 4], 0
lea edi, [ebp - 0x14]
mov esi, ecx
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0xe714
pop edi
push dword [ebp + 8]
mov word [ebp - 0x14], di
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 edi
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
pop edi
setg al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5152be
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
mov esi, ecx
push dword [ebp + 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00515232
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
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
pop edi
setg al
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x515328
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 1
push 0
push 2
push 2
mov esi, ecx
call fcn.0047ad2c
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 4
push 0xffff
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x515363
xor al, al
jmp 0x515387
push 0x14e7
call fcn.00515273
push eax
lea ecx, [ebp - 0x18]
call fcn.004cc35d
push eax
mov ecx, esi
call fcn.004792b1
mov ecx, esi
call fcn.0047a49f
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x52247c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x18]
jmp 0x522498
mov ecx, dword [esi]
push 0xffffffffffffffff
mov ecx, dword [ecx + 0xd8]
call fcn.00508253
add esi, 4
cmp esi, dword [edi + 0x1c]
jne 0x522486
push dword [esp + 8]
mov eax, dword [edi + 0x18]
lea esi, [edi + 0x24]
push esi
mov dword [edi + 0x1c], eax
push dword [esi + 4]
push dword [esi]
call fcn.0051fc9f
mov eax, dword [esi]
push 1
mov dword [esi + 4], eax
push dword [edi + 0x3c]
call fcn.00460614
xor eax, eax
lea ecx, [edi + 0x78]
push eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
call fcn.005092fe
pop edi
pop esi
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x194
cmp dword [eax + 0x14], 0x10
push ebx
mov ebx, ecx
jb 0x52b7f7
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
movzx eax, word [esi + 0x10]
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.00465192
add esp, 0x14
mov byte [ebp - 0x95], 0
lea edi, [ebp - 0x14]
mov eax, 0x1a73
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 4], ax
lea ecx, [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0047a9b6
lea ecx, [ebp - 0x194]
pop edi
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52b851
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
sub ecx, edx
push eax
push 0
push ecx
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 ebx
setg al
mov esp, ebp
pop ebp
ret 8
Function at 0x52ba08
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
push 1
xor ebx, ebx
mov edi, ecx
push ebx
push 2
push 2
call fcn.0047ad2c
cmp dword [edi + 4], 0xffffffff
jne 0x52ba3c
mov esi, dword [edi]
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, edi
call dword [esi + 0x14]
xor al, al
jmp 0x52bb5f
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0xffff
push dword [edi + 4]
mov dword [esp + 0x20], 1
call esi
test eax, eax
jne 0x52ba35
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebx + 0xc]
call ebp
push 0x1a73
push eax
lea ecx, [esp + 0x24]
call fcn.004cc35d
push eax
mov ecx, edi
call fcn.004792b1
test eax, eax
jne 0x52bb51
push dword [ebx + 0xc]
mov byte [esp + 0x38], al
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
call ebp
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 9
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x52bb51
and dword [esp + 0x14], eax
and dword [esp + 0x18], eax
push str.239.192.152.143
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebx + 0xc]
mov dword [esp + 0x18], eax
call ebp
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push 8
mov dword [esp + 0x1c], eax
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push 0xc
push ebx
push dword [edi + 4]
call esi
test eax, eax
jne 0x52bb51
push 4
pop ebp
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0xb
push ebx
push dword [edi + 4]
call esi
test eax, eax
jne 0x52bb51
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xff
push eax
push ebp
push ebx
push dword [edi + 4]
call esi
test eax, eax
jne 0x52bb51
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xff
push eax
push 0xa
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x52bb55
xor al, al
jmp 0x52bb5e
mov ecx, edi
call fcn.0047a49f
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x530867
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6ac795
call fcn.006426c4
sub esp, 0x30
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 0xd], 1
push edi
mov dword [ebp - 0x24], ebx
call fcn.00479151
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
and dword [ebp - 4], 0
mov esi, 0x7bed88
push edi
push eax
mov ecx, esi
call fcn.0051bb6d
mov eax, dword [eax]
cmp eax, dword [0x7bed88]
jne 0x5308d4
push str.session_has_expired
lea ecx, [ebp - 0x3c]
call fcn.0040f32f
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.005309e0
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040f95f
jmp 0x5309c1
push edi
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0052d20c
mov esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and dword [esi + 0x2c], 0
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x20]
push edi
mov esi, 0x7bed88
push eax
mov ecx, esi
call fcn.0052d20c
mov ebx, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and dword [ebp - 0x14], 0
mov ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0052d20c
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x94]
mov dword [ebp - 0x1c], ecx
mov eax, ecx
cdq
and eax, dword [ebx + 0x8c]
and edx, dword [ebx + 0x90]
or eax, edx
je 0x530972
not ecx
and ecx, dword [ebx + 0x8c]
mov eax, ecx
cdq
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], edx
push dword [esi + 0x94]
push edi
call fcn.00531291
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], edx
jmp 0x530978
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
shl dword [esi + 0x94], 1
cmp dword [esi + 0x94], 0x800000
jne 0x530994
mov dword [esi + 0x94], 1
mov ecx, eax
mov eax, edx
sub ecx, dword [ebp - 0x18]
sbb eax, 0
test eax, eax
jg 0x5309b8
jl 0x5309a9
cmp ecx, 0x64
jae 0x5309b8
mov ecx, dword [esi + 0x94]
cmp ecx, dword [ebp - 0x1c]
jne 0x53092c
mov ecx, dword [ebp - 0x24]
push edi
call fcn.00530a80
mov dword [ebp - 4], 3
call fcn.00479192
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4