Function at 0x1009eae0
Capabilities:
Create thread
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x994]
sub esp, 0x994
push 0xffffffffffffffff
push 0x10147d58
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10189710]
xor eax, ebp
mov dword [ebp + 0x990], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bl, dl
mov eax, dword [ebp + 0x9a0]
mov esi, dword [ebp + 0x9ac]
mov edi, dword [ebp + 0x9a4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x9a8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
cmp bl, 0x50
jne 0x1009eeac
lea edx, [ebp - 0x38]
push edx
mov edi, 2
call fcn.1008c6d0
mov eax, dword [ebp + 0x99c]
push eax
lea ebx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.1008ba00
xor edi, edi
add esp, 4
cmp eax, edi
jg 0x1009ebbf
cmp esi, edi
je 0x1009eb95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_to_receive_protocol_version__WSAGetLastError___:__d
push esi
call fcn.10127dc0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x1009eba5
push eax
call fcn.10128f9e
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.10128f9e
add esp, 4
jmp 0x1009fb4f
lea edx, [ebp + 0x58]
push edx
mov edi, 7
call fcn.1008c6d0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x64]
jne 0x1009ebde
call fcn.10128a71
mov ecx, dword [ebp + 0x64]
mov bl, 0x30
mov byte [ecx], bl
mov edx, dword [ebp + 0x68]
sub edx, dword [ebp + 0x64]
cmp edx, 1
ja 0x1009ebf5
call fcn.10128a71
mov eax, dword [ebp + 0x64]
mov byte [eax + 1], 0x31
mov ecx, dword [ebp + 0x68]
sub ecx, dword [ebp + 0x64]
cmp ecx, 2
ja 0x1009ec0c
call fcn.10128a71
mov edx, dword [ebp + 0x64]
mov byte [edx + 2], bl
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x64]
cmp eax, 3
ja 0x1009ec22
call fcn.10128a71
mov ecx, dword [ebp + 0x64]
mov byte [ecx + 3], bl
mov edx, dword [ebp + 0x68]
sub edx, dword [ebp + 0x64]
cmp edx, 4
ja 0x1009ec38
call fcn.10128a71
mov eax, dword [ebp + 0x64]
mov byte [eax + 4], 0x31
mov ecx, dword [ebp + 0x68]
sub ecx, dword [ebp + 0x64]
cmp ecx, 5
ja 0x1009ec4f
call fcn.10128a71
mov edx, dword [ebp + 0x64]
lea eax, [ebp + 0x20]
push eax
mov edi, 1
mov byte [edx + 5], bl
call fcn.1008c6d0
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x10]
sub ebx, dword [eax + 0xc]
lea esi, [ebp + 0x20]
call fcn.1008b1a0
mov ecx, dword [ebp + 0x30]
sub ecx, dword [ebp + 0x2c]
jne 0x1009ec81
call fcn.10128a71
mov edx, dword [ebp + 0x68]
sub edx, dword [ebp + 0x64]
mov esi, dword [ebp + 0x2c]
cmp edx, 6
ja 0x1009ec94
call fcn.10128a71
mov al, byte [esi]
mov ecx, dword [ebp + 0x64]
mov byte [ecx + 6], al
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], 0
mov byte [ebp + 0x74], 0
push 6
push str.server
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.1000de90
mov edx, dword [ebp + 0x30]
sub edx, dword [ebp + 0x2c]
jne 0x1009ecd4
call fcn.10128a71
mov esi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp + 0x68]
jbe 0x1009ece7
call fcn.10128a71
mov eax, dword [ebp + 0x58]
mov edi, eax
mov ebx, edi
mov dword [ebp - 0x44], esi
test eax, eax
jne 0x1009ed0c
call fcn.10128a71
xor eax, eax
add esi, 7
cmp esi, dword [eax + 0x10]
ja 0x1009ed17
test edi, edi
je 0x1009ed10
mov edi, dword [edi]
jmp 0x1009ed12
mov eax, dword [eax]
jmp 0x1009ecfc
xor edi, edi
cmp esi, dword [edi + 0xc]
jae 0x1009ed1c
call fcn.10128a71
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx]
mov dword [ebp - 0x48], ebx
push edx
lea ebx, [ebp - 0x40]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], esi
call fcn.1008c880
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x88]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x74]
mov eax, edx
cmp ecx, 0x10
jae 0x1009ed52
lea eax, [ebp + 0x74]
mov esi, dword [ebp + 0x84]
lea edi, [esi + eax]
test edi, edi
je 0x1009ed7d
mov eax, edx
cmp ecx, 0x10
jae 0x1009ed69
lea eax, [ebp + 0x74]
cmp eax, edi
ja 0x1009ed7d
mov eax, edx
cmp ecx, 0x10
jae 0x1009ed77
lea eax, [ebp + 0x74]
add esi, eax
cmp edi, esi
jbe 0x1009ed8b
call fcn.10128a71
mov ecx, dword [ebp + 0x88]
mov edx, dword [ebp + 0x74]
lea ebx, [ebp + 0x70]
cmp ecx, 0x10
jb 0x1009ee59
mov esi, edx
test edx, edx
je 0x1009edc1
mov eax, edx
cmp ecx, 0x10
jae 0x1009eda7
lea eax, [ebp + 0x74]
cmp eax, esi
ja 0x1009edc1
mov eax, edx
cmp ecx, 0x10
jae 0x1009edb5
lea eax, [ebp + 0x74]
mov ecx, dword [ebp + 0x84]
add ecx, eax
cmp esi, ecx
jbe 0x1009edc6
call fcn.10128a71
mov edx, dword [ebp - 0x1c]
push edi
push ebx
push esi
lea eax, [ebp + 0x70]
push eax
mov eax, dword [ebp - 0x20]
push edx
push eax
lea esi, [ebp + 0x58]
call fcn.10093410
mov edx, dword [ebp + 0x99c]
mov ecx, esi
push ecx
push 0x50
push edx
call fcn.1008b610
xor edi, edi
add esp, 0xc
cmp eax, edi
jg 0x1009ee61
mov esi, dword [ebp - 0x18]
cmp esi, edi
je 0x1009ee13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_to_send_protocol_and_app_version___WSAGetLastError___:__d
push esi
call fcn.10127dc0
add esp, 0xc
cmp dword [ebp + 0x88], 0x10
jb 0x1009ee28
mov eax, dword [ebp + 0x74]
push eax
call fcn.10128f9e
add esp, 4
lea esi, [ebp + 0x20]
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], edi
mov byte [ebp + 0x74], 0
call fcn.10040e60
lea esi, [ebp + 0x58]
call fcn.10040e60
lea esi, [ebp - 0x38]
call fcn.10040e60
jmp 0x1009fb4f
lea esi, [ebp + 0x74]
jmp 0x1009ed9d
cmp dword [ebp + 0x88], 0x10
jb 0x1009ee76
mov ecx, dword [ebp + 0x74]
push ecx
call fcn.10128f9e
add esp, 4
lea esi, [ebp + 0x20]
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], edi
mov byte [ebp + 0x74], 0
call fcn.10040e60
lea esi, [ebp + 0x58]
call fcn.10040e60
lea esi, [ebp - 0x38]
call fcn.10040e60
mov eax, 1
jmp 0x1009fb51
cmp bl, 0x49
jne 0x1009f193
lea edx, [ebp + 0x58]
push edx
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea eax, [ebp + 0x58]
push eax
mov byte [ebp - 4], 5
call fcn.1008bb60
add esp, 4
test eax, eax
jg 0x1009eefe
test esi, esi
je 0x1009eef1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_to_receive_command_id__WSAGetLastError___:__d
push esi
call fcn.10127dc0
add esp, 0xc
lea esi, [ebp + 0x58]
call fcn.10040e60
jmp 0x1009fb4f
lea ecx, [ebp + 0x58]
push 0
push ecx
call fcn.1008b2d0
mov esi, eax
mov eax, dword [ebp + 0x64]
add esp, 8
mov dword [ebp - 0x1c], esi
mov edi, eax
cmp eax, dword [ebp + 0x68]
jbe 0x1009ef23
call fcn.10128a71
mov eax, dword [ebp + 0x64]
mov edx, dword [ebp + 0x58]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov edi, eax
cmp eax, dword [ebp + 0x68]
jbe 0x1009ef38
call fcn.10128a71
mov eax, dword [ebp + 0x58]
push esi
mov dword [ebp - 0x40], eax
push 1
lea ebx, [ebp - 0x68]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], edi
call fcn.1008c880
lea ebx, [ebp - 0x70]
call fcn.1008c880
mov edi, eax
push 1
lea ebx, [ebp - 0x78]
lea eax, [ebp - 0x40]
call fcn.1008c880
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp + 0x3c]
push eax
call fcn.10093490
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
push eax
mov byte [ebp - 4], 6
mov eax, ecx
mov dword [ebp - 0x44], ecx
call fcn.10093310
lea esi, [ebp + 0x3c]
mov byte [ebp - 4], 5
call fcn.10040e60
mov edi, dword [ebp - 0x1c]
lea ecx, [edi + 1]
push ecx
lea edx, [ebp + 0x58]
push edx
call fcn.1008b2d0
mov ebx, eax
mov eax, dword [ebp + 0x64]
add esp, 8
mov esi, eax
cmp eax, dword [ebp + 0x68]
jbe 0x1009efc5
call fcn.10128a71
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x58]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
mov esi, eax
cmp eax, dword [ebp + 0x68]
jbe 0x1009efda
call fcn.10128a71
mov edx, dword [ebp + 0x58]
push ebx
push edi
push 1
push 1
lea ebx, [ebp - 0x78]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], esi
call fcn.1008c880
lea ebx, [ebp - 0x70]
call fcn.1008c880
lea ebx, [ebp - 0x68]
call fcn.1008c880
lea ebx, [ebp - 0x80]
call fcn.1008c880
push edi
push 1
mov esi, eax
push 1
lea ebx, [ebp - 0x60]
lea eax, [ebp - 0x40]
call fcn.1008c880
lea ebx, [ebp - 0x58]
call fcn.1008c880
lea ebx, [ebp - 0x50]
call fcn.1008c880
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp + 0x3c]
push eax
call fcn.10093490
push eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.10093310
lea esi, [ebp + 0x3c]
mov byte [ebp - 4], 5
call fcn.10040e60
mov esi, dword [ebp - 0x44]
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x1009f06e
call fcn.10128a71
mov edi, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
cmp edi, dword [esi + 0x10]
jbe 0x1009f080
call fcn.10128a71
mov edx, dword [ebp - 0x20]
mov esi, dword [esi]
push ebx
push edx
push edi
push esi
lea esi, [ebp + 0x1c]
call fcn.10093510
mov eax, dword [ebp - 0x14]
add eax, 0x34
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 8
call fcn.100098a0
mov byte [ebp - 4], 9
mov edi, dword [ebp + 0x88]
mov edx, dword [ebp + 0x74]
mov eax, edx
cmp edi, 0x10
jae 0x1009f0bb
lea eax, [ebp + 0x74]
mov ecx, dword [ebp + 0x84]
lea esi, [ecx + eax]
test esi, esi
je 0x1009f0e6
mov eax, edx
cmp edi, 0x10
jae 0x1009f0d2
lea eax, [ebp + 0x74]
cmp eax, esi
ja 0x1009f0e6
mov eax, edx
cmp edi, 0x10
jae 0x1009f0e0
lea eax, [ebp + 0x74]
add ecx, eax
cmp esi, ecx
jbe 0x1009f0eb
call fcn.10128a71
lea ecx, [ebp - 0x50]
lea edi, [ebp + 0x70]
push ecx
mov ecx, edi
call fcn.1000ab20
mov edx, dword [eax + 4]
mov eax, dword [eax]
push esi
push edi
push edx
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.10093580
mov edi, dword [ebp + 0x99c]
lea edx, [ebp - 0x38]
push edx
mov eax, edx
push eax
mov byte [ebp - 4], 0xa
call fcn.1008c1b0
add esp, 8
test eax, eax
jne 0x1009f169
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1009f144
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_to_send_connect_command_to_remote_agent__WSAGetLastError___:__d
push esi
call fcn.10127dc0
add esp, 0xc
lea esi, [ebp - 0x38]
call fcn.10040e60
lea ecx, [ebp + 0x70]
call fcn.100098e0
lea ecx, [ebp + 0x1c]
call fcn.100098e0
lea esi, [ebp + 0x58]
call fcn.10040e60
jmp 0x1009fb4f
lea esi, [ebp - 0x38]
call fcn.10040e60
lea ecx, [ebp + 0x70]
call fcn.100098e0
lea ecx, [ebp + 0x1c]
call fcn.100098e0
lea esi, [ebp + 0x58]
call fcn.10040e60
mov eax, 1
jmp 0x1009fb51
cmp bl, 0x63
jne 0x1009f1b3
test esi, esi
je 0x1009fb4f
push str.MWAGENT_daemon_with_the_given_ID_is_not_connected_to_the_server
push esi
call fcn.10127dc0
add esp, 8
jmp 0x1009fb4f
cmp bl, 0x41
jne 0x1009f38f
lea ecx, [ebp - 0x38]
push ecx
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea edx, [ebp - 0x38]
push edx
mov byte [ebp - 4], 0xb
call fcn.1008bb60
add esp, 4
push 0x7ff
lea eax, [ebp + 0x8d]
push 0
push eax
mov dword [ebp - 0x3c], 0
mov byte [ebp + 0x8c], 0
call fcn.1012e060
push 0x103
lea ecx, [ebp + 0x88d]
push 0
push ecx
mov byte [ebp + 0x88c], 0
call fcn.1012e060
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea edx, [ebp + 0x88c]
push edx
mov edx, dword [ebp - 0x18]
lea ebx, [esi + 0x244]
push ebx
add esi, 0x138
push esi
lea eax, [ebp - 0x3c]
push eax
add ecx, 0x250
push edi
call fcn.1009fb80
cmp eax, 1
jne 0x1009f2b0
cmp dword [ebp - 0x3c], 0
je 0x1009ee4c
cmp byte [ebp + 0x88c], 0
mov ecx, dword [ebx]
jne 0x1009f285
push ecx
push 0
mov ecx, esi
call fcn.100620f0
add esp, 4
push eax
lea edx, [ebp + 0x8c]
push str.RECFIL_s_d
push edx
call fcn.10127dc0
add esp, 0x10
jmp 0x1009f2ec
lea eax, [ebp + 0x88c]
push eax
push ecx
push 0
mov ecx, esi
call fcn.100620f0
add esp, 4
push eax
lea edx, [ebp + 0x8c]
push str.RECFIL_s_d_s
push edx
call fcn.10127dc0
add esp, 0x14
jmp 0x1009f2ec
push 0
push str.SEND
push edi
call fcn.10063340
add esp, 0xc
cmp eax, 0xffffffff
je 0x1009f2dc
mov ecx, edi
lea edx, [ebp + 0x8c]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1009f2d0
jmp 0x1009f2ec
lea eax, [ebp + 0x8c]
push eax
push edi
call fcn.1007ba80
add esp, 8
lea ecx, [ebp + 0x8c]
push ecx
lea ecx, [ebp + 0x70]
call fcn.100098a0
lea esi, [ebp - 0x50]
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0xc
call fcn.1000ab60
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp + 0x70]
mov esi, eax
call fcn.1000ab20
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp + 0x20]
push eax
call fcn.10093580
mov edx, dword [ebp + 0x99c]
lea ecx, [ebp + 0x20]
push ecx
push 0x45
push edx
mov byte [ebp - 4], 0xd
call fcn.1008b610
add esp, 0xc
lea esi, [ebp + 0x20]
call fcn.10040e60
cmp dword [ebp + 0x88], 0x10
jb 0x1009f365
mov eax, dword [ebp + 0x74]
push eax
call fcn.10128f9e
add esp, 4
lea esi, [ebp - 0x38]
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], 0
mov byte [ebp + 0x74], 0
call fcn.10040e60
mov eax, 1
jmp 0x1009fb51
cmp bl, 0x61
jne 0x1009f482
lea ecx, [ebp - 0x38]
push ecx
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea edx, [ebp - 0x38]
push edx
mov byte [ebp - 4], 0xe
call fcn.1008bb60
add esp, 4
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x38]
call fcn.1008c760
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.1008c740
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea esi, [ebp + 0x70]
call fcn.10093510
mov byte [ebp - 4], 0xf
mov edx, dword [ebp + 0x74]
mov edi, 0x10
cmp dword [ebp + 0x88], edi
jae 0x1009f3f9
lea edx, [ebp + 0x74]
mov ecx, dword [ebp - 0x3c]
lea esp, [esp]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x1009f400
mov eax, dword [ebp - 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x1009f419
mov dword [eax], 1
lea eax, [ebp + 0x3c]
push eax
call fcn.1008c670
mov ecx, dword [ebp + 0x99c]
push 0x44
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.1008b3f0
add esp, 8
lea esi, [ebp + 0x3c]
call fcn.10040e60
mov esi, dword [ebp - 0x14]
call fcn.100a0240
cmp dword [ebp + 0x88], edi
jb 0x1009f45d
mov edx, dword [ebp + 0x74]
push edx
call fcn.10128f9e
add esp, 4
lea esi, [ebp - 0x38]
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], ebx
mov byte [ebp + 0x74], bl
call fcn.10040e60
mov eax, 1
jmp 0x1009fb51
cmp bl, 0x47
jne 0x1009f581
lea eax, [ebp - 0x38]
push eax
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 0x11
call fcn.1008bb60
add esp, 4
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x38]
call fcn.1008c760
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.1008c740
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea esi, [ebp + 0x70]
call fcn.10093510
cmp dword [ebp + 0x88], 0x10
mov eax, dword [ebp + 0x74]
jae 0x1009f4e4
lea eax, [ebp + 0x74]
push eax
call fcn.10128222
mov esi, dword [ebp - 0x14]
lea edi, [esi + 0x138]
push 0x10163160
push edi
mov dword [esi + 0x354], eax
call fcn.1012982a
add esp, 0xc
mov dword [esi + 0x248], eax
test eax, eax
jne 0x1009f53c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009f527
push edi
push str.Failed_to_open_file___s__to_be_sent..
push eax
call fcn.10127dc0
add esp, 0xc
lea ecx, [ebp + 0x70]
call fcn.100098e0
lea esi, [ebp - 0x38]
call fcn.10040e60
jmp 0x1009fb4f
mov ecx, dword [esi + 0x354]
push 0
push ecx
push eax
call fcn.1012b1f9
mov edx, dword [ebp + 0x99c]
push esi
push 0
push 0x1009fee0
mov dword [esi + 0x24c], edx
call fcn.10127f7d
add esp, 0x18
lea ecx, [ebp + 0x70]
call fcn.100098e0
lea esi, [ebp - 0x38]
call fcn.10040e60
mov eax, 1
jmp 0x1009fb51
cmp bl, 0x4e
jne 0x1009f776
lea eax, [ebp + 0x58]
push eax
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea ecx, [ebp + 0x58]
push ecx
mov byte [ebp - 4], 0x12
call fcn.1008bb60
add esp, 4
lea esi, [ebp - 0x50]
lea edi, [ebp + 0x58]
call fcn.1008c760
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.1008c740
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea esi, [ebp + 0x70]
call fcn.10093510
mov eax, edi
mov byte [ebp - 4], 0x13
call fcn.1008c830
mov eax, dword [ebp + 0x74]
mov edi, 0x10
cmp dword [ebp + 0x88], edi
jae 0x1009f5f2
lea eax, [ebp + 0x74]
push 0x10157a1c
push eax
call fcn.1012982a
mov esi, dword [ebp - 0x14]
add esp, 8
mov dword [esi + 0x248], eax
test eax, eax
jne 0x1009f6b6
push str.Failed_to_open_file_to_write..
lea ecx, [ebp + 0x38]
call fcn.100098a0
lea esi, [ebp - 0x50]
lea edi, [ebp + 0x58]
mov byte [ebp - 4], 0x14
call fcn.1008c740
mov edi, dword [eax]
mov ebx, dword [eax + 4]
lea esi, [ebp - 0x58]
lea eax, [ebp + 0x38]
call fcn.1000ab60
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp + 0x38]
mov esi, eax
call fcn.1000ab20
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push ebx
push edi
lea esi, [ebp + 0x58]
call fcn.10093410
mov edx, dword [ebp + 0x99c]
mov ecx, esi
push ecx
push 0x5a
push edx
call fcn.1008b610
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x1009f699
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x1009f68a
lea eax, [ebp + 0x3c]
push eax
push str.FNACK_____s
push ecx
call fcn.10127dc0
add esp, 0xc
lea ecx, [ebp + 0x38]
call fcn.100098e0
lea ecx, [ebp + 0x70]
call fcn.100098e0
lea esi, [ebp + 0x58]
call fcn.10040e60
jmp 0x1009fb4f
mov eax, dword [str.STARTDATA]
mov ecx, dword [0x10172fc0]
mov dx, word [0x10172fc4]
push 0xfa
mov dword [ebp + 0x88c], eax
lea eax, [ebp + 0x896]
push 0
push eax
mov dword [ebp + 0x890], ecx
mov word [ebp + 0x894], dx
call fcn.1012e060
mov edx, dword [ebp + 0x74]
add esp, 0xc
cmp dword [ebp + 0x88], edi
jae 0x1009f6ff
lea edx, [ebp + 0x74]
lea ecx, [esi + 0x138]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x1009f705
lea eax, [ebp + 0x88c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009f718
sub eax, edx
lea esi, [ebp - 0x60]
lea edi, [ebp + 0x58]
mov ebx, eax
call fcn.1008c740
lea ecx, [ebp + ebx + 0x88d]
push ecx
mov ecx, dword [eax + 4]
lea edx, [ebp + 0x88c]
push edx
mov edx, dword [eax]
push ecx
push edx
mov esi, edi
call fcn.10093550
mov ecx, dword [ebp + 0x99c]
mov eax, edi
push eax
push 0x47
push ecx
call fcn.1008b610
add esp, 0xc
lea ecx, [ebp + 0x70]
call fcn.100098e0
call fcn.10040e60
mov eax, 1
jmp 0x1009fb51
cmp bl, 0x46
jne 0x1009f7ec
lea edx, [ebp - 0x38]
push edx
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x15
call fcn.1008bb60
mov esi, eax
add esp, 4
test esi, esi
jle 0x1009f56f
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0x248], 0
je 0x1009f56f
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
jne 0x1009f7c1
call fcn.10128a71
mov edx, dword [edi + 0x248]
mov eax, dword [ebp - 0x2c]
push edx
add esi, 0xfffffffc
push esi
push 1
push eax
call fcn.1012ad69
add esp, 0x10
lea esi, [ebp - 0x38]
call fcn.10040e60
mov eax, 1
jmp 0x1009fb51
cmp bl, 0x66
jne 0x1009fa32
mov eax, dword [eax + 0x248]
test eax, eax
je 0x1009f577
push eax
call fcn.10129ad3
mov ecx, dword [ebp - 0x14]
push 0x103
lea edx, [ebp + 0x88d]
push 0
push edx
mov dword [ecx + 0x248], 0
mov byte [ebp + 0x88c], 0
call fcn.1012e060
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 0x16
call fcn.1008bb60
add esp, 4
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x38]
call fcn.1008c760
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.1008c740
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea esi, [ebp + 0x54]
call fcn.10093510
push 1
mov byte [ebp - 4], 0x17
call fcn.1012911a
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
sub esp, 0x1c
lea edx, [ecx + 0x138]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov byte [ebp - 4], 0x18
call fcn.100098a0
lea edi, [ebp + 0x70]
call fcn.1008a1b0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp + 0x58]
mov ecx, 0x10
cmp dword [ebp + 0x6c], ecx
jae 0x1009f8c5
lea eax, [ebp + 0x58]
cmp dword [ebp + 0x88], ecx
mov ecx, dword [ebp + 0x74]
jae 0x1009f8d3
lea ecx, [ebp + 0x74]
call fcn.1005a140
test eax, eax
jne 0x1009f993
mov eax, dword [str.ALLOK]
mov cx, word [0x10170438]
lea edx, [ebp + 0x891]
mov dword [ebp + 0x88c], eax
push edx
lea eax, [ebp + 0x88c]
mov word [ebp + 0x890], cx
push eax
lea ecx, [ebp + 0x3c]
push ecx
call fcn.10093600
mov esi, dword [ebp + 0x99c]
lea edx, [ebp + 0x3c]
push edx
push 0x61
push esi
mov byte [ebp - 4], 0x1a
call fcn.1008b610
mov eax, dword [ebp - 0x3c]
add esp, 0xc
test eax, eax
je 0x1009f940
lea ecx, [ebp + 0x88c]
push ecx
push eax
call fcn.10127dc0
add esp, 8
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1009f94d
mov dword [eax], 1
lea edx, [ebp + 0x20]
push edx
call fcn.1008c670
push 0x44
push esi
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.1008b3f0
add esp, 8
lea esi, [ebp + 0x20]
call fcn.10040e60
lea esi, [ebp + 0x3c]
call fcn.10040e60
lea ecx, [ebp + 0x70]
call fcn.100098e0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10128f9e
add esp, 4
lea ecx, [ebp + 0x54]
jmp 0x1009f56a
mov ecx, 0xd
mov esi, str.Hash_of_the_sent_and_received_file_s__do_not_match...
lea edi, [ebp + 0x88c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x88c]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009f9b0
sub eax, edx
lea ecx, [ebp + eax + 0x88c]
push ecx
lea edx, [ebp + 0x88c]
push edx
lea eax, [ebp + 0x3c]
push eax
call fcn.10093600
mov edx, dword [ebp + 0x99c]
lea ecx, [ebp + 0x3c]
push ecx
push 0x5a
push edx
mov byte [ebp - 4], 0x1c
call fcn.1008b610
mov edx, dword [ebp - 0x18]
add esp, 0xc
test edx, edx
je 0x1009fa01
lea ecx, [ebp + 0x88c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1009f9f7
lea esi, [ebp + 0x3c]
call fcn.10040e60
lea ecx, [ebp + 0x70]
call fcn.100098e0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10128f9e
add esp, 4
lea ecx, [ebp + 0x54]
call fcn.100098e0
lea esi, [ebp - 0x38]
call fcn.10040e60
jmp 0x1009fb4f
cmp bl, 0x5a
jne 0x1009fadf
lea ecx, [ebp + 0x3c]
push ecx
call fcn.1008c670
mov ebx, dword [ebp + 0x99c]
lea edx, [ebp + 0x3c]
push edx
mov byte [ebp - 4], 0x1d
call fcn.1008bb60
add esp, 4
lea esi, [ebp - 0x50]
lea edi, [ebp + 0x3c]
call fcn.1008c760
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.1008c740
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea esi, [ebp]
call fcn.10093510
mov esi, dword [ebp - 0x14]
call fcn.100a0240
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1009faaf
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x1009faa0
lea eax, [ebp + 4]
push eax
push str.Negative_ACK_recvd_..__s
push ecx
call fcn.10127dc0
add esp, 0xc
lea ecx, [ebp]
call fcn.100098e0
lea esi, [ebp + 0x3c]
call fcn.10040e60
jmp 0x1009fb4f
cmp bl, 0x44
jne 0x1009fb15
mov esi, dword [ebp - 0x14]
push 0xa
mov dword [esi + 0x23c], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100a0240
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009fb4f
push str.Disconnect_message_received_from_remtote_agent_computer..
push eax
call fcn.10127dc0
add esp, 8
jmp 0x1009fb4f
cmp bl, 0x54
jne 0x1009fb2e
test esi, esi
je 0x1009fb4f
push str.Client_has_already_been_connected..
push esi
call fcn.10127dc0
add esp, 8
jmp 0x1009fb4f
mov esi, dword [ebp - 0x14]
call fcn.100a0240
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009fb4f
movsx ecx, bl
push ecx
push str.Unknown_command__c_Received___
push eax
call fcn.10127dc0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x990]
xor ecx, ebp
call fcn.10127db1
add ebp, 0x994
mov esp, ebp
pop ebp
ret 0x14