Function at 0x418320
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd00f
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x532ab0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x26c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x268], eax
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov eax, 0x518d1c
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4183ae
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x4183be
push esi
push eax
lea ecx, [ebp - 0x24c]
call fcn.00401f80
jmp 0x4183be
push 0x518d1c
lea ecx, [ebp - 0x24c]
call fcn.00404640
push str.ReplaceTheAgent
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 1
call fcn.004019c0
mov byte [ebp - 4], 2
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 3
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp - 0x25c]
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 4
call fcn.0041de50
add esp, 4
lea ecx, [ebp - 0x24c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 5
call fcn.0041de50
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x418461
push 0
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebx + 8]
push eax
call fcn.004024e0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x418487
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4184aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4184c7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4184e4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418507
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41852d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x246]
push eax
call fcn.004a96d0
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
jne 0x4187f7
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov eax, str.error_GetModuleFileName:
mov dword [ebp - 4], 7
test eax, 0xffff0000
jne 0x4185ad
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x4185bd
push esi
push eax
lea ecx, [ebp - 0x24c]
call fcn.00401f80
jmp 0x4185bd
push str.error_GetModuleFileName:
lea ecx, [ebp - 0x24c]
call fcn.00404640
push str.ReplaceTheAgent
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 8
call fcn.004019c0
mov byte [ebp - 4], 9
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 0xa
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
lea eax, [ebp - 0x250]
push eax
lea edx, [ebp - 0x25c]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xb
call fcn.0041de50
add esp, 4
lea ecx, [ebp - 0x24c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0xc
call fcn.0041de50
add esp, 4
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 0xd
mov ecx, dword [ecx + 4]
push eax
call fcn.00401a90
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x418680
push 2
push dword [ebp - 0x258]
lea edx, [ebp - 0x260]
push edx
add eax, 8
push eax
call fcn.004024e0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4186a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4186c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4186e3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418700
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418723
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418749
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ReplaceTheAgent_GetModuleFileName_
lea ecx, [ebp - 0x260]
call fcn.004019c0
mov dword [ebp - 4], 0xe
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xf
call fcn.0041de50
add esp, 4
mov ecx, dword [ebp - 0x26c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00414960
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4187c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4187e5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x260]
jmp 0x41941d
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0x11
mov esi, dword [ebp - 0x254]
push esi
mov edx, str._echo_off_r_nIF_NOT____XIST__
lea ecx, [ebp - 0x250]
call fcn.00419f10
add esp, 4
push str.__GOTO____ND_r_nS___T__a_i0_r_n
mov edx, eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x12
call fcn.00419e30
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push dword [eax - 0xc]
push eax
call fcn.004100d0
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418875
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418898
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.:LOOP_r_nIF__i_
lea ecx, [ebp - 0x250]
call fcn.004019c0
push str.100_GOTO____ND_r_n
mov edx, eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x14
call fcn.00419e30
add esp, 4
mov byte [ebp - 4], 0x15
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push dword [eax - 0xc]
push eax
call fcn.004100d0
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4188f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41891c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
mov edx, str.MOV_____Y__
lea ecx, [ebp - 0x258]
call fcn.00419f10
add esp, 4
push 0x518e84
mov edx, eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x16
call fcn.00419e30
add esp, 4
lea ecx, [ebp - 0x248]
push ecx
mov edx, eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x17
call fcn.00419e30
add esp, 4
push 0x518e7c
mov edx, eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x18
call fcn.00419e30
add esp, 4
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push dword [eax - 0xc]
push eax
call fcn.004100d0
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4189b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4189d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4189fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418a1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
mov edx, str.IF_NOT____XIST__
lea ecx, [ebp - 0x250]
call fcn.00419f10
add esp, 4
push str.__GOTO____ND_r_n
mov edx, eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x1a
call fcn.00419e30
add esp, 4
mov byte [ebp - 4], 0x1b
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push dword [eax - 0xc]
push eax
call fcn.004100d0
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418a83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418aa6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x34
push str.ping_1.1.1.1__n_1__w_1000___nul_r_nS___T__a_i_i_1
lea ecx, [ebp - 0x24c]
call fcn.004100d0
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x40], 0xa000d
mov dword [ebp - 0x3c], 0x4f0047
mov dword [ebp - 0x38], 0x4f0054
mov dword [ebp - 0x34], 0x4c0020
mov dword [ebp - 0x30], 0x4f004f
mov dword [ebp - 0x2c], 0xd0050
mov dword [ebp - 0x28], 0x3a000a
mov dword [ebp - 0x24], 0x4e0045
mov dword [ebp - 0x20], 0xd0044
mov dword [ebp - 0x1c], 0x44000a
mov dword [ebp - 0x18], 0x4c0045
mov word [ebp - 0x14], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418b11
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004100d0
push 5
push str.__0_r_n
lea ecx, [ebp - 0x24c]
call fcn.004100d0
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x254]
call fcn.00422a90
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x1c
call fcn.00401a90
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418b86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28c]
call fcn.004222c0
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0x268]
push eax
lea ecx, [ebp - 0x254]
call fcn.00404430
add esp, 4
push str..bat
mov edx, eax
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0x1e
call fcn.00419e30
add esp, 4
mov byte [ebp - 4], 0x20
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418be6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418c09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x270], esi
mov byte [ebp - 4], 0x22
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x260], eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x23
call fcn.00423890
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [ebp - 0x288]
mov byte [ebp - 0x261], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x419101
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x260]
push 0
lea ecx, [ebp - 0x268]
push ecx
mov dword [ebp - 0x268], 0
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418cc8
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 0x261], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x261], 0
je 0x419101
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push 0x516c94
call fcn.004019c0
push ecx
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x288]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.00401d10
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x23
call fcn.00422b40
add esp, 8
test al, al
je 0x418eaa
push 0x518f7c
lea ecx, [ebp - 0x25c]
call fcn.00404160
push str.ReplaceTheAgent
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0x25
call fcn.004019c0
mov byte [ebp - 4], 0x26
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x268], ebx
mov byte [ebp - 4], 0x27
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
lea eax, [ebp - 0x268]
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0x28
call fcn.0041de50
add esp, 4
lea ecx, [ebp - 0x25c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x29
call fcn.0041de50
add esp, 4
mov edx, eax
mov eax, dword [ebp - 0x26c]
mov byte [ebp - 4], 0x2a
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x418dd5
push 0
push edx
lea edx, [ebp - 0x258]
push edx
add eax, 8
push eax
call fcn.004024e0
mov byte [ebp - 4], 0x29
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418df9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x28
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0x27
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e3b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 0x26
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x25
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418e7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4193ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4193ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.error_RunExe:
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x250], eax
call fcn.00404160
push str.Rep1aceTheAgent
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x2b
call fcn.004019c0
mov byte [ebp - 4], 0x2c
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 0x2d
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x284], esi
lea eax, [ebp - 0x280]
push eax
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x2e
call fcn.0041de50
add esp, 4
lea ecx, [ebp - 0x258]
push ecx
mov edx, eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x2f
call fcn.0041de50
add esp, 4
mov byte [ebp - 4], 0x30
push dword [ebp - 0x250]
mov edx, eax
lea ecx, [ebp - 0x27c]
call fcn.0041ddc0
add esp, 4
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 0x31
mov ecx, dword [ecx + 4]
push eax
call fcn.00401a90
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x418fa0
push 2
push dword [ebp - 0x268]
lea edx, [ebp - 0x25c]
push edx
add eax, 8
push eax
call fcn.004024e0
mov byte [ebp - 4], 0x30
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418fc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2f
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418fe6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2e
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419009
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x2d
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419026
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0x2c
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419043
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2b
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419066
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419089
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x250]
lea ecx, [ebp - 0x27c]
call fcn.0041dee0
mov esi, eax
push str.ReplaceTheAgent_RunExe_
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x32
call fcn.004019c0
push esi
mov edx, eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x33
call fcn.0041de50
add esp, 4
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x34
call fcn.00401a90
mov byte [ebp - 4], 0x33
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4190f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x32
jmp 0x419353
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.error__wfopen_s:
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x258], eax
call fcn.00404160
push str.ReplaceTheAgent
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x35
call fcn.004019c0
mov byte [ebp - 4], 0x36
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x278], edi
mov byte [ebp - 4], 0x37
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x274], esi
lea eax, [ebp - 0x278]
push eax
lea edx, [ebp - 0x274]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0x38
call fcn.0041de50
add esp, 4
lea ecx, [ebp - 0x25c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x39
call fcn.0041de50
add esp, 4
mov byte [ebp - 4], 0x3a
push dword [ebp - 0x258]
mov edx, eax
lea ecx, [ebp - 0x280]
call fcn.0041ddc0
add esp, 4
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 0x3b
mov ecx, dword [ecx + 4]
push eax
call fcn.00401a90
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4191f7
push 2
push dword [ebp - 0x27c]
lea edx, [ebp - 0x250]
push edx
add eax, 8
push eax
call fcn.004024e0
mov byte [ebp - 4], 0x3a
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41921a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x39
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41923d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419260
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x37
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41927d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0x36
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41929a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x35
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4192bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4192e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
lea ecx, [ebp - 0x27c]
call fcn.0041dee0
mov esi, eax
push str.ReplaceTheAgent__wfopen_s_
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x3c
call fcn.004019c0
push esi
mov edx, eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x3d
call fcn.0041de50
add esp, 4
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x3e
call fcn.00401a90
mov byte [ebp - 4], 0x3d
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41934f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x3c
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419372
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419395
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x270]
push eax
call fcn.00414960
mov esi, dword [ebp - 0x270]
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4193d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x21
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4193ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x288]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419410
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419434
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4ab5
mov esp, ebp
pop ebp
ret 8