Function at 0x422be0
Capabilities:
Copy file
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x44bb16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
mov ebx, dword [esp + 0xa4]
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
push 0x10
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
lea esi, [ebx + 0xa]
call fcn.00401ff0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.004050e0
mov edi, 0x455138
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x44e274]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xa8], 0
push ecx
push edx
push 0x455138
lea ecx, [esp + 0x20]
call fcn.00401f70
mov edx, dword [esp + 0x1c]
lea edi, [eax + 1]
sub edx, edi
lea eax, [esp + 0x38]
push edx
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00401d50
mov ecx, dword [0x44e274]
mov byte [esp + 0xa8], 1
push ecx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.004025b0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.00401ff0
test edi, edi
jg 0x422ccb
mov byte [esp + 0x34], 1
jmp 0x422f09
push 0x45f300
lea ecx, [esp + 0x28]
call fcn.00401000
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 2
call fcn.00401030
test eax, eax
jne 0x422cf8
mov byte [esp + 0x34], 1
jmp 0x422ef8
lea edx, [esp + 0x14]
lea eax, [esp + 0x90]
push edx
push 0x45f3d8
push eax
call fcn.004052f0
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x422d1e
mov eax, 0x44e270
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 1
lea ecx, [esp + 0x94]
call fcn.00401ff0
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x54], cl
lea ecx, [esp + 0x54]
call fcn.00401ff0
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x64]
mov byte [esp + 0xac], 3
mov byte [esp + 0x64], dl
call fcn.00401ff0
mov al, byte [0x45f3a8]
mov edi, str..torrent
mov byte [esp + 0x88], al
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x44e274]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xa8], 4
push ecx
push edx
push str..torrent
lea ecx, [esp + 0x20]
mov byte [esp + 0x95], 0xff
mov byte [esp + 0x96], 0xff
mov byte [esp + 0x97], 1
call fcn.00401f70
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00401d50
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x5c], esp
lea esi, [ecx + ebx + 0xb]
push eax
mov ecx, ebp
mov byte [esp + 0xbc], 5
mov byte [ebp], dl
call fcn.00401ff0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402180
test al, al
je 0x422e31
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
sub esp, 0x10
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
mov byte [esp + 0xcc], 6
call fcn.00401bf0
lea eax, [esp + 0x70]
mov ecx, 0x45f438
push eax
mov byte [esp + 0xcc], 5
call fcn.0041dbc0
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x422e9c
mov ecx, 0x45f438
call fcn.0041e8b0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push esi
call fcn.00432b20
add esp, 4
call fcn.00434130
push esi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x30], eax
mov byte [esp + 0x34], 0
jmp 0x422ea1
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x422ec6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x422ebd
cmp al, 0xff
je 0x422ebd
dec al
mov byte [ecx], al
jmp 0x422ec6
push ecx
call fcn.00439308
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0xac], 7
call fcn.00401ff0
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xac], 2
call fcn.00401ff0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 0
call fcn.00401010
mov ecx, dword [esp + 0xb4]
push 0
lea eax, [esp + 0x2c]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x18]
test eax, eax
jg 0x422f4e
test ecx, ecx
je 0x422f4a
mov al, byte [ecx - 1]
test al, al
je 0x422f40
cmp al, 0xff
je 0x422f40
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x422f70
dec ecx
push ecx
call fcn.00439308
add esp, 4
xor al, al
jmp 0x422f70
test ecx, ecx
je 0x422f6e
mov al, byte [ecx - 1]
test al, al
je 0x422f64
cmp al, 0xff
je 0x422f64
dec al
mov byte [ecx - 1], al
jmp 0x422f6e
dec ecx
push ecx
call fcn.00439308
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret