joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49662e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx + 0x198]
push edi
mov edi, dword [ecx + 0x1a0]
mov dword [ebp - 0xc], ecx
jmp 0x49665d
mov eax, dword [esi]
push str.torrent_file
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x496672
add esi, 0xc
dec edi
jns 0x496647
mov ecx, dword [ebp + 8]
push str.Error___torrent_file_content_not_supplied_in_form_parameter
call fcn.0048ea2a
jmp 0x4967c0
xor edx, edx
xor ecx, ecx
call fcn.00472785
mov edi, eax
lea ecx, [ebp - 4]
mov dword [ebp - 8], edi
call fcn.0048ea4a
cmp byte [ebp + 0x14], 0
mov eax, dword [esi + 8]
je 0x496699
mov ecx, dword [esi + 4]
call fcn.004a2095
mov edx, dword [esi + 4]
push eax
mov ecx, edi
call fcn.004a4b1e
test al, al
je 0x496789
push ebx
push 0x28
pop ecx
call fcn.0046b3f1
mov esi, dword [ebp - 0xc]
mov ebx, eax
and dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], edi
push 5
add esi, 0x1f4
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
and dword [ebx + 0x24], 0
lea ecx, [ebp + 0x14]
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], esi
call fcn.0048ea4a
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4966f5
call fcn.0048c22b
jmp 0x4966f7
xor eax, eax
lea ecx, [ebp + 0x14]
push ecx
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
setne dl
lea edx, [edx + edx + 1]
push edx
push ecx
push eax
push ecx
push ebx
push 0x49505a
push ecx
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.00420a6a
pop ebx
test eax, eax
jne 0x496768
lea ecx, [ebp + 0x14]
call fcn.0048ea50
push eax
push esi
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.0041ffc1
add esp, 0xc
lea ecx, [ebp + 0x14]
call fcn.0048ea50
push eax
lea eax, [ebp + 0x18]
push str.Cant_add_torrent:__s
push eax
call fcn.0048f08b
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 4]
call fcn.0048ea75
lea ecx, [ebp + 0x18]
call fcn.0048e75f
jmp 0x496775
push esi
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.0041ffc1
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp + 0x14]
call fcn.0048e75f
mov edi, dword [ebp - 8]
jmp 0x4967a3
push edi
push str.Cant_save_temporary_torrent_file__s
call fcn.0041ffc1
pop ecx
pop ecx
push str.Unable_to_save_temp_file
lea ecx, [ebp - 4]
call fcn.0048ea75
mov dl, 1
mov ecx, edi
call fcn.0046b3e9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0048f0de
lea ecx, [ebp - 4]
call fcn.0048e75f
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 0x14
Function at 0x499eeb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x44]
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499f02
sub eax, edi
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
mov eax, 0xbb7
sub eax, edi
push eax
lea eax, [ebx + edi]
push eax
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
mov eax, dword [ebp - 8]
je 0x499f37
mov byte [ebp - 1], 1
test eax, eax
jne 0x499f3b
mov byte [ebp - 1], 0
add edi, eax
mov byte [edi + esi + 0x44], 0
mov eax, dword [ebp - 8]
add dword [esi + 0xc], eax
push 0xa
push ebx
adc dword [esi + 0x10], 0
call sub.MSVCRT.dll_strchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x499f6d
push 0xd
push ebx
call sub.MSVCRT.dll_strchr
pop ecx
pop ecx
mov edi, eax
jmp 0x49a035
mov eax, edi
sub eax, esi
sub eax, 0x44
push eax
push 0
push ebx
lea ecx, [ebp - 0xc]
call fcn.0048e916
jmp 0x499f87
cmp al, 0x20
jae 0x499f8d
inc edi
mov al, byte [edi]
test al, al
jne 0x499f82
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x499f92
sub eax, ecx
inc eax
push eax
push edi
push ebx
call sub.MSVCRT.dll_memmove
push 0xa
push ebx
call sub.MSVCRT.dll_strchr
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x499fc3
push 0xd
push ebx
call sub.MSVCRT.dll_strchr
pop ecx
mov edi, eax
pop ecx
test edi, edi
setne al
movzx eax, al
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0x34]
call fcn.00440c21
lea ecx, [esi + 0x34]
call fcn.00440863
fmul qword [0x4f4d20]
call fcn.00401030
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
test eax, eax
je 0x49a02d
xor ecx, ecx
call fcn.0046c08a
mov ecx, eax
mov eax, dword [ebp + 8]
sub ecx, dword [eax + 0x14]
sbb edx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
fild qword [ebp - 0x14]
lea ecx, [esi + 0x34]
fstp qword [ebp - 0x1c]
call fcn.00440863
fdiv qword [0x4f23f0]
fdivr qword [ebp - 0x1c]
call fcn.00401030
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0xc]
call fcn.0048e75f
test edi, edi
jne 0x499f6d
cmp byte [ebp - 1], 0
jne 0x499efd
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49a0c2
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x49a0d5
mov al, 1
jmp 0x49a251
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x49a115
lea ecx, [esi + 0x34]
call fcn.00440863
fcomp qword [0x4f23f0]
fnstsw ax
test ah, 0x44
jnp 0x49a115
mov eax, dword [ebp + 8]
cmp byte [eax], 6
je 0x49a10e
or dword [eax + 8], 0xffffffff
push str.Transcode_process_failed_to_start
lea ecx, [eax + 0x20]
mov byte [eax], 3
call fcn.0048e984
xor al, al
jmp 0x49a250
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
test eax, eax
jne 0x49a23d
call fcn.00499eeb
push dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
or dword [esi + 0x30], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
push dword [esi + 8]
call ebx
and dword [esi + 8], 0
cmp dword [edi + 8], 0
jne 0x49a1d6
lea ecx, [esi + 0x24]
call fcn.0048ea50
push eax
lea ecx, [esi + 0x20]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x49a18c
mov byte [edi], 6
mov dword [edi + 4], 0x3e8
jmp 0x49a1bc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov dword [edi + 8], eax
lea eax, [ebp + 8]
push str.Error_moving_file:__d
push eax
mov byte [edi], 3
call fcn.0048f06d
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x20]
call fcn.0048e984
lea ecx, [ebp + 8]
call fcn.0048e75f
cmp byte [0x54bc1c], 0
je 0x49a239
lea ecx, [esi + 0x2c]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x49a239
lea ecx, [esi + 0x20]
mov byte [edi], 3
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
add esi, 0x3c
push esi
lea ecx, [ebp + 8]
call fcn.0048f0c0
push dword [ebp + 8]
lea esi, [edi + 0x20]
mov ecx, esi
call fcn.0048e984
lea ecx, [ebp + 8]
call fcn.0048e75f
mov ecx, esi
call fcn.0048e970
test eax, eax
jne 0x49a239
push dword [ebp - 4]
lea eax, [ebp + 8]
push str.Process_aborted_with_error__d
push eax
call fcn.0048f06d
add esp, 0xc
push dword [eax]
mov ecx, esi
call fcn.0048e984
lea ecx, [ebp + 8]
call fcn.0048e75f
xor al, al
jmp 0x49a24f
mov byte [edi], 1
call fcn.00499eeb
cmp dword [esi + 0x14], ebx
je 0x49a24d
mov byte [edi], 2
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x49a980
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push dword [ebx + 4]
xor edi, edi
lea esi, [ebp - 0x10]
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.0049a6da
test al, al
jne 0x49a9bd
xor bl, bl
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], edi
call fcn.0048e6b4
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
xor esi, esi
cmp dword [ebp - 8], edi
jbe 0x49a9f8
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x49a9f2
xor edi, edi
mov byte [ebp - 1], 0
test esi, esi
jle 0x49a9f2
mov eax, dword [ebp - 0x10]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
inc edi
cmp edi, esi
jl 0x49a9e1
inc esi
cmp esi, dword [ebp - 8]
jb 0x49a9c4
xor edi, edi
xor esi, esi
cmp dword [ebp - 8], edi
jbe 0x49aa13
mov eax, dword [ebp - 0x10]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x49aa01
cmp byte [ebp - 1], 0
je 0x49aa1c
inc dword [ebx + 0x14]
mov bl, byte [ebp - 1]
jmp 0x49a9ab

Function at 0x49aa21
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x14], ebx
jne 0x49aa48
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.0048e6b4
jmp 0x49aa8c
push esi
push dword [edi + 4]
lea esi, [ebp - 0xc]
call fcn.0049a6da
test al, al
je 0x49aa80
xor esi, esi
cmp dword [ebp - 4], ebx
jbe 0x49aa7d
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, dword [ebp - 4]
jb 0x49aa5f
dec dword [edi + 0x14]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ebx
call fcn.0048e6b4
pop esi
pop edi
pop ebx
leave
ret

Function at 0x49bd18
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], 0x80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49bd6b
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0048ae50
mov edi, dword [ebp + 0x18]
push 5
pop ecx
lea esi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x49c554
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x19c
push ebx
push esi
mov esi, dword [ebp + 0x78]
movzx eax, word [esi + 0x10]
push eax
mov dword [ebp + 0x60], ecx
mov byte [ebp - 0xb6], 0
mov byte [ebp - 0xb5], 0
mov byte [ebp - 0xb7], 0
mov byte [ebp - 0xb8], 0
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x7c], 0
movzx ebx, ax
mov dword [ebp + 0x78], ebx
je 0x49c5d9
mov eax, dword [ebp + 0x7c]
mov byte [ebp - 0xb5], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49c5a7
sub eax, edx
mov ebx, eax
push ebx
push dword [ebp + 0x7c]
lea eax, [ebp - 0xb3]
push eax
mov byte [ebp - 0xb4], bl
call sub.MSVCRT.dll_memcpy
mov ax, word [ebp + 0x78]
add esp, 0xc
mov word [ebp + ebx - 0xb3], ax
jmp 0x49c617
mov ecx, esi
call fcn.004078ca
test al, al
je 0x49c5fd
mov eax, dword [esi + 0xc]
mov byte [ebp - 0xb5], 1
mov dword [ebp - 0xb4], eax
mov word [ebp - 0xb0], bx
jmp 0x49c617
push edi
mov byte [ebp - 0xb5], 4
lea edi, [ebp - 0xb4]
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 word [ebp - 0xa4], bx
pop edi
lea eax, [ebp - 0xb8]
mov ecx, eax
mov dword [ebp + 0x54], eax
call fcn.0049be5f
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x138]
push eax
add ecx, 0xe4
call fcn.00466321
xor esi, esi
push esi
push esi
push dword [ebp + 0x78]
lea eax, [ebp - 0x138]
push eax
push esi
lea eax, [ebp + 0x7c]
push eax
push 2
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x7c], esi
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, esi
mov esi, eax
jne 0x49c67d
mov esi, dword [ebp + 0x7c]
or eax, 0xffffffff
cmp esi, eax
je 0x49c69d
lea ecx, [ebp - 0xb8]
call fcn.0049be5f
mov ecx, eax
cmp esi, ecx
jg 0x49c699
xor eax, eax
jmp 0x49c69d
mov eax, esi
sub eax, ecx
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x49c803
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebx + 0x28]
push edi
mov ecx, esi
call fcn.0048afb0
test al, al
je 0x49c829
cmp word [esi + 0x10], 0
jne 0x49c927
cmp dword [ebx + 4], 0xffffffff
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
je 0x49c83d
push 0
mov ecx, ebx
call fcn.0046f258
push 0
push 0
push 2
lea ecx, [ebx + 0x28]
call fcn.004078ca
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.004707ce
cmp dword [ebx + 4], 0xffffffff
je 0x49c927
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.0046eb5e
cmp eax, 0xffffffff
jne 0x49c89b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, edi
call fcn.0046e693
push eax
push edi
push esi
push str.UDP_port_bind_failed__A:___d___s
call fcn.0041ffc1
add esp, 0x10
jmp 0x49c8ad
cmp word [esi + 0x10], 0
jne 0x49c8ad
mov ecx, ebx
call fcn.0046e527
mov word [ebx + 0x38], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
mov edi, 0xffff
push edi
push dword [ebx + 4]
mov dword [ebp - 4], 0x200000
call esi
cmp eax, 0xffffffff
jne 0x49c8ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.0041ff85
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push edi
push dword [ebx + 4]
mov dword [ebp - 4], 0x200000
call esi
cmp eax, 0xffffffff
jne 0x49c920
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.0041ff85
add esp, 0xc
mov ecx, ebx
call fcn.0046f22d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49ebf5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
inc edi
push edi
push 0
push 2
push 2
mov esi, ecx
call fcn.004707ce
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x49ec3c
test dword [0x545154], 0x800000
je 0x49ec35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
call fcn.0041ffc1
pop ecx
pop ecx
xor al, al
jmp 0x49ecf0
push ebx
mov ebx, 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], edi
call ebx
test eax, eax
jne 0x49ec96
push 0x76c
push eax
lea ecx, [ebp - 0x20]
call fcn.0048adff
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0046eb5e
test eax, eax
je 0x49ec9a
test dword [0x545154], 0x800000
je 0x49ec96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.0041ffc1
pop ecx
pop ecx
xor al, al
jmp 0x49ecef
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call edi
push str.0.0.0.0
mov dword [ebp - 0xc], eax
call edi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [esi + 4]
call ebx
test eax, eax
je 0x49ece6
test dword [0x545154], 0x800000
je 0x49ece6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
call fcn.0041ffc1
pop ecx
pop ecx
mov ecx, esi
call fcn.0046f22d
mov al, 1
pop ebx
pop edi
pop esi
leave
ret

Function at 0x49ecf4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 1
xor ebx, ebx
push ebx
push 2
push 2
mov esi, ecx
call fcn.004707ce
push dword [ebp + 8]
mov ecx, esi
call fcn.0046eb5e
test eax, eax
je 0x49ed40
test dword [0x545154], 0x800000
je 0x49ed39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.0041ffc1
pop ecx
pop ecx
xor al, al
jmp 0x49edee
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x10]
push eax
push 9
push ebx
push dword [esi + 4]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x49ed7b
test dword [0x545154], 0x800000
je 0x49ed7b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
call fcn.0041ffc1
pop ecx
pop ecx
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push dword [esi + 4]
mov dword [ebp - 4], 0xff
call edi
test eax, eax
je 0x49edb3
test dword [0x545154], 0x800000
je 0x49edb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
call fcn.0041ffc1
pop ecx
pop ecx
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push ebx
push dword [esi + 4]
mov dword [ebp - 4], 0xff
call edi
pop edi
test eax, eax
je 0x49edec
test dword [0x545154], 0x800000
je 0x49edec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
call fcn.0041ffc1
pop ecx
pop ecx
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x49edf4
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 0x4a0bfc
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi + 0x34], 2
jne 0x4a0c64
lea ecx, [esi + 0x28]
call fcn.0048ea50
push eax
lea eax, [ebp - 4]
push str._s:_
push eax
call fcn.0048f08b
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a0c52
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x30], eax
jmp 0x4a0c5a
and dword [esi + 0x2c], 0
and dword [esi + 0x30], 0
lea ecx, [ebp - 4]
call fcn.0048e75f
jmp 0x4a0c6c
and dword [esi + 0x2c], 0
and dword [esi + 0x30], 0
pop esi
leave
ret

Function at 0x4a0c6f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
mov esi, ecx
cmp dword [esi + 0x34], 2
jne 0x4a0c89
xor eax, eax
inc eax
jmp 0x4a0d70
push ebx
movzx ebx, word [ebp + 8]
push ebx
lea eax, [ebp - 4]
push 0x50cd48
push eax
call fcn.0048f08b
push ebx
lea eax, [ebp + 8]
push str._c:_
push eax
call fcn.0048f08b
add esp, 0x18
mov eax, 0x104
push eax
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp + 8]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
pop ebx
test eax, eax
je 0x4a0d58
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x1c]
call fcn.0048ea75
mov ecx, dword [ebp + 0xc]
call fcn.0048ea50
push eax
lea ecx, [esi + 0x20]
call fcn.0048ea75
mov ecx, dword [ebp + 0x10]
call fcn.0048ea50
push eax
lea ecx, [esi + 0x24]
call fcn.0048ea75
lea ecx, [ebp - 4]
call fcn.0048ea50
push eax
lea ecx, [esi + 0x28]
call fcn.0048ea75
mov ecx, esi
mov dword [esi + 0x34], 2
call fcn.004a0bfc
push 7
push esi
call fcn.0043382f
mov ecx, eax
call fcn.0043373d
lea ecx, [ebp + 8]
call fcn.0048e75f
lea ecx, [ebp - 4]
call fcn.0048e75f
jmp 0x4a0c81
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp + 8]
call fcn.0048e75f
lea ecx, [ebp - 4]
call fcn.0048e75f
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x4a0dc9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push 0x41
pop eax
push 0x3a
mov word [ebp - 8], ax
pop eax
mov word [ebp - 6], ax
push 0x5c
pop eax
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
xor esi, esi
test ebx, ebx
jne 0x4a0e0d
lea ecx, [ebp + 8]
call fcn.0048e75f
mov eax, esi
pop esi
pop ebx
leave
ret 8
test bl, 1
je 0x4a0e69
lea eax, [esi + 0x41]
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x4a0e69
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4a0e69
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xc]
call fcn.0048ea2a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403916
test al, al
jne 0x4a0e75
lea ecx, [ebp - 0xc]
call fcn.0048e75f
shr ebx, 1
inc esi
cmp esi, 0x1a
jl 0x4a0e0d
xor esi, esi
jmp 0x4a0dfd
mov cx, word [ebp - 8]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
lea ecx, [ebp - 0xc]
call fcn.0048e75f
xor esi, esi
inc esi
jmp 0x4a0dfd
Function at 0x4a1db7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x549e58], ecx
xor ecx, ecx
inc ecx
mov eax, 0x549e58
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, 0x54a814
jl 0x4a1dc6
mov dword [0x537570], ecx
pop esi
ret

Function at 0x4a1eaa
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x537570]
cmp eax, 0x270
jl 0x4a1f69
push esi
push edi
xor edx, edx
mov esi, SysReAllocString
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x549e5c]
xor eax, dword [ecx + 0x549e58]
and eax, esi
xor eax, dword [ecx + 0x549e58]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x537574]
xor eax, dword [ecx + 0x54a48c]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x549e58], eax
jl 0x4a1ec3
cmp edx, 0x26f
jge 0x4a1f3b
lea ecx, [edx*4 + 0x549e58]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x537574]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x54a814
jl 0x4a1f0e
mov ecx, dword [0x54a814]
mov eax, dword [0x549e58]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x537574]
pop edi
xor eax, dword [0x54a488]
pop esi
mov dword [0x54a814], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x549e58]
inc eax
mov dword [0x537570], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x4a25fb
Capabilities:
Create process on windows

Disassembly:
push 5
xor eax, eax
push eax
push eax
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret