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

Disassembly:
push ebp
lea ebp, [esp - 0x994]
sub esp, 0x994
push 0xffffffffffffffff
push 0x10136668
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1017455c]
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 0x1009ab4c
lea edx, [ebp - 0x38]
push edx
mov edi, 2
call fcn.100804b0
mov eax, dword [ebp + 0x99c]
push eax
lea ebx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.1007f780
xor edi, edi
add esp, 4
cmp eax, edi
jg 0x1009a85f
cmp esi, edi
je 0x1009a835
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_to_receive_protocol_version__WSAGetLastError___:__d
push esi
call fcn.1010d6a8
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x1009a845
push eax
call fcn.1010e8a3
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.1010e8a3
add esp, 4
jmp 0x1009b7f0
lea edx, [ebp + 0x58]
push edx
mov edi, 7
call fcn.100804b0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x64]
jne 0x1009a87e
call fcn.1010e381
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 0x1009a895
call fcn.1010e381
mov eax, dword [ebp + 0x64]
mov byte [eax + 1], 0x31
mov ecx, dword [ebp + 0x68]
sub ecx, dword [ebp + 0x64]
cmp ecx, 2
ja 0x1009a8ac
call fcn.1010e381
mov edx, dword [ebp + 0x64]
mov byte [edx + 2], bl
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x64]
cmp eax, 3
ja 0x1009a8c2
call fcn.1010e381
mov ecx, dword [ebp + 0x64]
mov byte [ecx + 3], bl
mov edx, dword [ebp + 0x68]
sub edx, dword [ebp + 0x64]
cmp edx, 4
ja 0x1009a8d8
call fcn.1010e381
mov eax, dword [ebp + 0x64]
mov byte [eax + 4], 0x31
mov ecx, dword [ebp + 0x68]
sub ecx, dword [ebp + 0x64]
cmp ecx, 5
ja 0x1009a8ef
call fcn.1010e381
mov edx, dword [ebp + 0x64]
lea eax, [ebp + 0x20]
push eax
mov edi, 1
mov byte [edx + 5], bl
call fcn.100804b0
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x10]
sub ebx, dword [eax + 0xc]
lea esi, [ebp + 0x20]
call fcn.1007ef20
mov ecx, dword [ebp + 0x30]
sub ecx, dword [ebp + 0x2c]
jne 0x1009a921
call fcn.1010e381
mov edx, dword [ebp + 0x68]
sub edx, dword [ebp + 0x64]
mov esi, dword [ebp + 0x2c]
cmp edx, 6
ja 0x1009a934
call fcn.1010e381
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.10081dd0
mov edx, dword [ebp + 0x30]
sub edx, dword [ebp + 0x2c]
jne 0x1009a974
call fcn.1010e381
mov esi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp + 0x68]
jbe 0x1009a987
call fcn.1010e381
mov eax, dword [ebp + 0x58]
mov edi, eax
mov ebx, edi
mov dword [ebp - 0x44], esi
test eax, eax
jne 0x1009a9ac
call fcn.1010e381
xor eax, eax
add esi, 7
cmp esi, dword [eax + 0x10]
ja 0x1009a9b7
test edi, edi
je 0x1009a9b0
mov edi, dword [edi]
jmp 0x1009a9b2
mov eax, dword [eax]
jmp 0x1009a99c
xor edi, edi
cmp esi, dword [edi + 0xc]
jae 0x1009a9bc
call fcn.1010e381
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.10080640
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 0x1009a9f2
lea eax, [ebp + 0x74]
mov esi, dword [ebp + 0x84]
lea edi, [esi + eax]
test edi, edi
je 0x1009aa1d
mov eax, edx
cmp ecx, 0x10
jae 0x1009aa09
lea eax, [ebp + 0x74]
cmp eax, edi
ja 0x1009aa1d
mov eax, edx
cmp ecx, 0x10
jae 0x1009aa17
lea eax, [ebp + 0x74]
add esi, eax
cmp edi, esi
jbe 0x1009aa2b
call fcn.1010e381
mov ecx, dword [ebp + 0x88]
mov edx, dword [ebp + 0x74]
lea ebx, [ebp + 0x70]
cmp ecx, 0x10
jb 0x1009aaf9
mov esi, edx
test edx, edx
je 0x1009aa61
mov eax, edx
cmp ecx, 0x10
jae 0x1009aa47
lea eax, [ebp + 0x74]
cmp eax, esi
ja 0x1009aa61
mov eax, edx
cmp ecx, 0x10
jae 0x1009aa55
lea eax, [ebp + 0x74]
mov ecx, dword [ebp + 0x84]
add ecx, eax
cmp esi, ecx
jbe 0x1009aa66
call fcn.1010e381
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.100194b0
mov edx, dword [ebp + 0x99c]
mov ecx, esi
push ecx
push 0x50
push edx
call fcn.1007f390
xor edi, edi
add esp, 0xc
cmp eax, edi
jg 0x1009ab01
mov esi, dword [ebp - 0x18]
cmp esi, edi
je 0x1009aab3
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.1010d6a8
add esp, 0xc
cmp dword [ebp + 0x88], 0x10
jb 0x1009aac8
mov eax, dword [ebp + 0x74]
push eax
call fcn.1010e8a3
add esp, 4
lea esi, [ebp + 0x20]
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], edi
mov byte [ebp + 0x74], 0
call fcn.1002a680
lea esi, [ebp + 0x58]
call fcn.1002a680
lea esi, [ebp - 0x38]
call fcn.1002a680
jmp 0x1009b7f0
lea esi, [ebp + 0x74]
jmp 0x1009aa3d
cmp dword [ebp + 0x88], 0x10
jb 0x1009ab16
mov ecx, dword [ebp + 0x74]
push ecx
call fcn.1010e8a3
add esp, 4
lea esi, [ebp + 0x20]
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], edi
mov byte [ebp + 0x74], 0
call fcn.1002a680
lea esi, [ebp + 0x58]
call fcn.1002a680
lea esi, [ebp - 0x38]
call fcn.1002a680
mov eax, 1
jmp 0x1009b7f2
cmp bl, 0x49
jne 0x1009ae34
lea edx, [ebp + 0x58]
push edx
call fcn.1000b220
mov ecx, dword [ebp + 0x99c]
lea eax, [ebp + 0x58]
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.1007f8e0
add esp, 8
test eax, eax
jg 0x1009ab9f
test esi, esi
je 0x1009ab92
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Failed_to_receive_command_id__WSAGetLastError___:__d
push esi
call fcn.1010d6a8
add esp, 0xc
lea esi, [ebp + 0x58]
call fcn.1002a680
jmp 0x1009b7f0
lea edx, [ebp + 0x58]
push 0
push edx
call fcn.1007f050
mov ebx, eax
mov eax, dword [ebp + 0x64]
add esp, 8
mov dword [ebp - 0x1c], ebx
mov esi, eax
cmp eax, dword [ebp + 0x68]
jbe 0x1009abc4
call fcn.1010e381
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x58]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], esi
mov edi, eax
cmp eax, dword [ebp + 0x68]
jbe 0x1009abd9
call fcn.1010e381
mov edx, dword [ebp + 0x58]
push ebx
push 1
lea ebx, [ebp - 0x68]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edi
call fcn.10080640
lea ebx, [ebp - 0x70]
call fcn.10080640
mov edi, eax
push 1
lea ebx, [ebp - 0x78]
lea eax, [ebp - 0x40]
call fcn.10080640
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.1009c020
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.1009bf20
lea esi, [ebp + 0x3c]
mov byte [ebp - 4], 5
call fcn.1002a680
mov edi, dword [ebp - 0x1c]
lea ecx, [edi + 1]
push ecx
lea edx, [ebp + 0x58]
push edx
call fcn.1007f050
mov ebx, eax
mov eax, dword [ebp + 0x64]
add esp, 8
mov esi, eax
cmp eax, dword [ebp + 0x68]
jbe 0x1009ac66
call fcn.1010e381
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 0x1009ac7b
call fcn.1010e381
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.10080640
lea ebx, [ebp - 0x70]
call fcn.10080640
lea ebx, [ebp - 0x68]
call fcn.10080640
lea ebx, [ebp - 0x80]
call fcn.10080640
push edi
push 1
mov esi, eax
push 1
lea ebx, [ebp - 0x60]
lea eax, [ebp - 0x40]
call fcn.10080640
lea ebx, [ebp - 0x58]
call fcn.10080640
lea ebx, [ebp - 0x50]
call fcn.10080640
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.1009c020
push eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.1009bf20
lea esi, [ebp + 0x3c]
mov byte [ebp - 4], 5
call fcn.1002a680
mov esi, dword [ebp - 0x44]
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x1009ad0f
call fcn.1010e381
mov edi, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
cmp edi, dword [esi + 0x10]
jbe 0x1009ad21
call fcn.1010e381
mov edx, dword [ebp - 0x20]
mov esi, dword [esi]
push ebx
push edx
push edi
push esi
lea esi, [ebp + 0x1c]
call fcn.1009c0a0
mov eax, dword [ebp - 0x14]
add eax, 0x34
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 8
call fcn.10008e20
mov byte [ebp - 4], 9
mov edi, dword [ebp + 0x88]
mov edx, dword [ebp + 0x74]
mov eax, edx
cmp edi, 0x10
jae 0x1009ad5c
lea eax, [ebp + 0x74]
mov ecx, dword [ebp + 0x84]
lea esi, [ecx + eax]
test esi, esi
je 0x1009ad87
mov eax, edx
cmp edi, 0x10
jae 0x1009ad73
lea eax, [ebp + 0x74]
cmp eax, esi
ja 0x1009ad87
mov eax, edx
cmp edi, 0x10
jae 0x1009ad81
lea eax, [ebp + 0x74]
add ecx, eax
cmp esi, ecx
jbe 0x1009ad8c
call fcn.1010e381
lea ecx, [ebp - 0x50]
lea edi, [ebp + 0x70]
push ecx
mov ecx, edi
call fcn.10009f90
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.1009c0e0
mov edi, dword [ebp + 0x99c]
lea edx, [ebp - 0x38]
push edx
mov eax, edx
push eax
mov byte [ebp - 4], 0xa
call fcn.1007ff50
add esp, 8
test eax, eax
jne 0x1009ae0a
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1009ade5
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.1010d6a8
add esp, 0xc
lea esi, [ebp - 0x38]
call fcn.1002a680
lea ecx, [ebp + 0x70]
call fcn.10008e60
lea ecx, [ebp + 0x1c]
call fcn.10008e60
lea esi, [ebp + 0x58]
call fcn.1002a680
jmp 0x1009b7f0
lea esi, [ebp - 0x38]
call fcn.1002a680
lea ecx, [ebp + 0x70]
call fcn.10008e60
lea ecx, [ebp + 0x1c]
call fcn.10008e60
lea esi, [ebp + 0x58]
call fcn.1002a680
mov eax, 1
jmp 0x1009b7f2
cmp bl, 0x63
jne 0x1009ae54
test esi, esi
je 0x1009b7f0
push str.MWAGENT_daemon_with_the_given_ID_is_not_connected_to_the_server
push esi
call fcn.1010d6a8
add esp, 8
jmp 0x1009b7f0
cmp bl, 0x41
jne 0x1009b02e
lea ecx, [ebp - 0x38]
push ecx
call fcn.1000b220
mov eax, dword [ebp + 0x99c]
lea edx, [ebp - 0x38]
push edx
push eax
mov byte [ebp - 4], 0xb
call fcn.1007f8e0
add esp, 8
push 0x7ff
lea ecx, [ebp + 0x8d]
push 0
push ecx
mov dword [ebp - 0x3c], 0
mov byte [ebp + 0x8c], 0
call fcn.10116880
push 0x103
lea edx, [ebp + 0x88d]
push 0
push edx
mov byte [ebp + 0x88c], 0
call fcn.10116880
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea eax, [ebp + 0x88c]
push eax
lea ebx, [esi + 0x244]
push ebx
add esi, 0x138
push esi
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x18]
add ecx, 0x250
push edi
call fcn.1009b820
cmp eax, 1
jne 0x1009af50
cmp dword [ebp - 0x3c], 0
je 0x1009aaec
cmp byte [ebp + 0x88c], 0
mov eax, dword [ebx]
mov ecx, esi
jne 0x1009af27
push eax
push 0
call fcn.10045a10
add esp, 4
push eax
lea ecx, [ebp + 0x8c]
push str.RECFIL_s_d
push ecx
call fcn.1010d6a8
add esp, 0x10
jmp 0x1009af8b
lea edx, [ebp + 0x88c]
push edx
push eax
push 0
call fcn.10045a10
add esp, 4
push eax
lea ecx, [ebp + 0x8c]
push str.RECFIL_s_d_s
push ecx
call fcn.1010d6a8
add esp, 0x14
jmp 0x1009af8b
push str.SEND
mov ecx, edi
call fcn.10047020
add esp, 4
lea edx, [ebp + 0x8c]
cmp eax, 0xffffffff
je 0x1009af7c
mov ecx, edi
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1009af70
jmp 0x1009af8b
push edx
push edi
mov ecx, 0xe3ec
call fcn.1005e670
add esp, 8
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0x70]
call fcn.10008e20
lea esi, [ebp - 0x50]
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0xc
call fcn.10009fd0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp + 0x70]
mov esi, eax
call fcn.10009f90
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
lea ecx, [ebp + 0x20]
push ecx
call fcn.1009c0e0
mov eax, dword [ebp + 0x99c]
lea edx, [ebp + 0x20]
push edx
push 0x45
push eax
mov byte [ebp - 4], 0xd
call fcn.1007f390
add esp, 0xc
lea esi, [ebp + 0x20]
call fcn.1002a680
cmp dword [ebp + 0x88], 0x10
jb 0x1009b004
mov ecx, dword [ebp + 0x74]
push ecx
call fcn.1010e8a3
add esp, 4
lea esi, [ebp - 0x38]
mov dword [ebp + 0x88], 0xf
mov dword [ebp + 0x84], 0
mov byte [ebp + 0x74], 0
call fcn.1002a680
mov eax, 1
jmp 0x1009b7f2
cmp bl, 0x61
jne 0x1009b11f
lea edx, [ebp - 0x38]
push edx
call fcn.1000b220
mov ecx, dword [ebp + 0x99c]
lea eax, [ebp - 0x38]
push eax
push ecx
mov byte [ebp - 4], 0xe
call fcn.1007f8e0
add esp, 8
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x38]
call fcn.10019430
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.10080520
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.1009c0a0
mov ebx, 0xf
mov byte [ebp - 4], bl
mov edx, dword [ebp + 0x74]
mov edi, 0x10
cmp dword [ebp + 0x88], edi
jae 0x1009b09d
lea edx, [ebp + 0x74]
mov ecx, dword [ebp - 0x3c]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x1009b0a0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1009b0b7
mov dword [eax], 1
lea ecx, [ebp + 0x3c]
push ecx
call fcn.1000b220
mov edx, dword [ebp + 0x99c]
push edx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.1007f170
add esp, 4
lea esi, [ebp + 0x3c]
call fcn.1002a680
mov esi, dword [ebp - 0x14]
call fcn.1009bee0
cmp dword [ebp + 0x88], edi
jb 0x1009b0f9
mov eax, dword [ebp + 0x74]
push eax
call fcn.1010e8a3
add esp, 4
lea esi, [ebp - 0x38]
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x84], 0
mov byte [ebp + 0x74], 0
call fcn.1002a680
mov eax, 1
jmp 0x1009b7f2
cmp bl, 0x47
jne 0x1009b21f
lea ecx, [ebp - 0x38]
push ecx
call fcn.1000b220
mov eax, dword [ebp + 0x99c]
lea edx, [ebp - 0x38]
push edx
push eax
mov byte [ebp - 4], 0x11
call fcn.1007f8e0
add esp, 8
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x38]
call fcn.10019430
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.10080520
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.1009c0a0
cmp dword [ebp + 0x88], 0x10
mov eax, dword [ebp + 0x74]
jae 0x1009b182
lea eax, [ebp + 0x74]
push eax
call fcn.1010dbef
mov esi, dword [ebp - 0x14]
lea edi, [esi + 0x138]
push 0x10148b5c
push edi
mov dword [esi + 0x354], eax
call fcn.1010ebfe
add esp, 0xc
mov dword [esi + 0x248], eax
test eax, eax
jne 0x1009b1da
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009b1c5
push edi
push str.Failed_to_open_file___s__to_be_sent..
push eax
call fcn.1010d6a8
add esp, 0xc
lea ecx, [ebp + 0x70]
call fcn.10008e60
lea esi, [ebp - 0x38]
call fcn.1002a680
jmp 0x1009b7f0
mov ecx, dword [esi + 0x354]
push 0
push ecx
push eax
call fcn.1010f167
mov edx, dword [ebp + 0x99c]
push esi
push 0
push 0x1009bb80
mov dword [esi + 0x24c], edx
call fcn.1010d93f
add esp, 0x18
lea ecx, [ebp + 0x70]
call fcn.10008e60
lea esi, [ebp - 0x38]
call fcn.1002a680
mov eax, 1
jmp 0x1009b7f2
cmp bl, 0x4e
jne 0x1009b415
lea eax, [ebp + 0x58]
push eax
call fcn.1000b220
mov edx, dword [ebp + 0x99c]
lea ecx, [ebp + 0x58]
push ecx
push edx
mov byte [ebp - 4], 0x12
call fcn.1007f8e0
add esp, 8
lea esi, [ebp - 0x50]
lea edi, [ebp + 0x58]
call fcn.10019430
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.10080520
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.1009c0a0
mov eax, edi
mov byte [ebp - 4], 0x13
call fcn.100805f0
mov eax, dword [ebp + 0x74]
mov edi, 0x10
cmp dword [ebp + 0x88], edi
jae 0x1009b291
lea eax, [ebp + 0x74]
push 0x101493d8
push eax
call fcn.1010ebfe
mov esi, dword [ebp - 0x14]
add esp, 8
mov dword [esi + 0x248], eax
test eax, eax
jne 0x1009b355
push str.Failed_to_open_file_to_write..
lea ecx, [ebp + 0x38]
call fcn.10008e20
lea esi, [ebp - 0x50]
lea edi, [ebp + 0x58]
mov byte [ebp - 4], 0x14
call fcn.10080520
mov edi, dword [eax]
mov ebx, dword [eax + 4]
lea esi, [ebp - 0x58]
lea eax, [ebp + 0x38]
call fcn.10009fd0
mov esi, eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x38]
call fcn.10009f90
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
push ebx
push edi
lea esi, [ebp + 0x58]
call fcn.100194b0
mov ecx, dword [ebp + 0x99c]
mov eax, esi
push eax
push 0x5a
push ecx
call fcn.1007f390
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x1009b338
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x1009b329
lea eax, [ebp + 0x3c]
push eax
push str.FNACK_____s
push ecx
call fcn.1010d6a8
add esp, 0xc
lea ecx, [ebp + 0x38]
call fcn.10008e60
lea ecx, [ebp + 0x70]
call fcn.10008e60
lea esi, [ebp + 0x58]
call fcn.1002a680
jmp 0x1009b7f0
mov edx, dword [str.STARTDATA]
mov eax, dword [0x10162590]
mov cx, word [0x10162594]
push 0xfa
mov dword [ebp + 0x88c], edx
lea edx, [ebp + 0x896]
push 0
push edx
mov dword [ebp + 0x890], eax
mov word [ebp + 0x894], cx
call fcn.10116880
mov edx, dword [ebp + 0x74]
add esp, 0xc
cmp dword [ebp + 0x88], edi
jae 0x1009b39e
lea edx, [ebp + 0x74]
lea ecx, [esi + 0x138]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x1009b3a4
lea eax, [ebp + 0x88c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009b3b7
sub eax, edx
lea esi, [ebp - 0x60]
lea edi, [ebp + 0x58]
mov ebx, eax
call fcn.10080520
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.1009c160
mov ecx, dword [ebp + 0x99c]
mov eax, edi
push eax
push 0x47
push ecx
call fcn.1007f390
add esp, 0xc
lea ecx, [ebp + 0x70]
call fcn.10008e60
call fcn.1002a680
mov eax, 1
jmp 0x1009b7f2
cmp bl, 0x46
jne 0x1009b48c
lea edx, [ebp - 0x38]
push edx
call fcn.1000b220
mov ecx, dword [ebp + 0x99c]
lea eax, [ebp - 0x38]
push eax
push ecx
mov byte [ebp - 4], 0x15
call fcn.1007f8e0
mov esi, eax
add esp, 8
test esi, esi
jle 0x1009b20d
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0x248], 0
je 0x1009b20d
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
jne 0x1009b461
call fcn.1010e381
mov eax, dword [edi + 0x248]
mov ecx, dword [ebp - 0x2c]
push eax
add esi, 0xfffffffc
push esi
push 1
push ecx
call fcn.10110b60
add esp, 0x10
lea esi, [ebp - 0x38]
call fcn.1002a680
mov eax, 1
jmp 0x1009b7f2
cmp bl, 0x66
jne 0x1009b6d2
mov eax, dword [eax + 0x248]
test eax, eax
je 0x1009b215
push eax
call fcn.1010f263
mov edx, dword [ebp - 0x14]
push 0x103
lea eax, [ebp + 0x88d]
push 0
push eax
mov dword [edx + 0x248], 0
mov byte [ebp + 0x88c], 0
call fcn.10116880
add esp, 0x10
lea ecx, [ebp - 0x38]
push ecx
call fcn.1000b220
mov eax, dword [ebp + 0x99c]
lea edx, [ebp - 0x38]
push edx
push eax
mov byte [ebp - 4], 0x16
call fcn.1007f8e0
add esp, 8
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x38]
call fcn.10019430
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.10080520
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 + 0x54]
call fcn.1009c0a0
push 1
mov byte [ebp - 4], 0x17
call fcn.1010ea1a
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
sub esp, 0x1c
add eax, 0x138
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 0x18
call fcn.10008e20
lea edi, [ebp + 0x70]
call fcn.1006f860
mov byte [ebp - 4], 0x19
mov eax, dword [ebp + 0x58]
mov ecx, 0x10
cmp dword [ebp + 0x6c], ecx
jae 0x1009b565
lea eax, [ebp + 0x58]
cmp dword [ebp + 0x88], ecx
mov ecx, dword [ebp + 0x74]
jae 0x1009b573
lea ecx, [ebp + 0x74]
call fcn.10031940
test eax, eax
jne 0x1009b632
mov ecx, dword [str.ALLOK]
mov dx, word [0x1016259c]
lea eax, [ebp + 0x891]
mov dword [ebp + 0x88c], ecx
push eax
lea ecx, [ebp + 0x88c]
mov word [ebp + 0x890], dx
push ecx
lea edx, [ebp + 0x3c]
push edx
call fcn.1009c190
mov esi, dword [ebp + 0x99c]
lea eax, [ebp + 0x3c]
push eax
push 0x61
push esi
mov byte [ebp - 4], 0x1a
call fcn.1007f390
mov eax, dword [ebp - 0x3c]
add esp, 0xc
test eax, eax
je 0x1009b5e1
lea ecx, [ebp + 0x88c]
push ecx
push eax
call fcn.1010d6a8
add esp, 8
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1009b5ee
mov dword [eax], 1
lea edx, [ebp + 0x20]
push edx
call fcn.1000b220
push esi
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.1007f170
add esp, 4
lea esi, [ebp + 0x20]
call fcn.1002a680
lea esi, [ebp + 0x3c]
call fcn.1002a680
lea ecx, [ebp + 0x70]
call fcn.10008e60
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1010e8a3
add esp, 4
lea ecx, [ebp + 0x54]
jmp 0x1009b208
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]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009b650
sub eax, edx
lea ecx, [ebp + eax + 0x88c]
push ecx
lea edx, [ebp + 0x88c]
push edx
lea eax, [ebp + 0x3c]
push eax
call fcn.1009c190
mov edx, dword [ebp + 0x99c]
lea ecx, [ebp + 0x3c]
push ecx
push 0x5a
push edx
mov byte [ebp - 4], 0x1c
call fcn.1007f390
mov edx, dword [ebp - 0x18]
add esp, 0xc
test edx, edx
je 0x1009b6a1
lea ecx, [ebp + 0x88c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1009b697
lea esi, [ebp + 0x3c]
call fcn.1002a680
lea ecx, [ebp + 0x70]
call fcn.10008e60
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1010e8a3
add esp, 4
lea ecx, [ebp + 0x54]
call fcn.10008e60
lea esi, [ebp - 0x38]
call fcn.1002a680
jmp 0x1009b7f0
cmp bl, 0x5a
jne 0x1009b780
lea ecx, [ebp + 0x3c]
push ecx
call fcn.1000b220
mov eax, dword [ebp + 0x99c]
lea edx, [ebp + 0x3c]
push edx
push eax
mov byte [ebp - 4], 0x1d
call fcn.1007f8e0
add esp, 8
lea esi, [ebp - 0x50]
lea edi, [ebp + 0x3c]
call fcn.10019430
lea esi, [ebp - 0x58]
mov ebx, eax
call fcn.10080520
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.1009c0a0
mov esi, dword [ebp - 0x14]
call fcn.1009bee0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1009b750
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x1009b741
lea eax, [ebp + 4]
push eax
push str.Negative_ACK_recvd_..__s
push ecx
call fcn.1010d6a8
add esp, 0xc
lea ecx, [ebp]
call fcn.10008e60
lea esi, [ebp + 0x3c]
call fcn.1002a680
jmp 0x1009b7f0
cmp bl, 0x44
jne 0x1009b7b6
mov esi, dword [ebp - 0x14]
push 0xa
mov dword [esi + 0x23c], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1009bee0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009b7f0
push str.Disconnect_message_received_from_remtote_agent_computer..
push eax
call fcn.1010d6a8
add esp, 8
jmp 0x1009b7f0
cmp bl, 0x54
jne 0x1009b7cf
test esi, esi
je 0x1009b7f0
push str.Client_has_already_been_connected..
push esi
call fcn.1010d6a8
add esp, 8
jmp 0x1009b7f0
mov esi, dword [ebp - 0x14]
call fcn.1009bee0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009b7f0
movsx ecx, bl
push ecx
push str.Unknown_command__c_Received___
push eax
call fcn.1010d6a8
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.1010d699
add ebp, 0x994
mov esp, ebp
pop ebp
ret 0x14