Function at 0x4a2bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc8
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xbbc], eax
mov dword [ebp - 0xbc0], esi
test esi, esi
je 0x4a3507
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x18a]
push edx
mov word [ebp - 0x18c], cx
call fcn.004e8ba0
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
add esp, 0xc
lea edx, [ebp - 0x18c]
call fcn.004a2b70
test eax, eax
jne 0x4a2c5b
cmp dword [0x56d7c4], eax
je 0x4a3507
lea eax, [ebp - 0xbac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x392]
push edx
mov dword [ebp - 0xbb4], eax
mov word [ebp - 0x394], cx
call fcn.004e8ba0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x56d3b0
lea eax, [ebp - 0x394]
push str._sEventLog
push eax
call edi
lea ecx, [ebp - 0x394]
push ecx
call fcn.004e51cd
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4a2ccb
lea edx, [ebp - 0x394]
push edx
call fcn.004e519b
add esp, 4
lea eax, [ebp - 0x394]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2cd4
sub eax, edx
sar eax, 1
push 0x56d5b8
lea eax, [ebp + eax*2 - 0x394]
push 0x5230c8
push eax
call edi
lea ecx, [ebp - 0x394]
push ecx
call fcn.004e51cd
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a2d1a
lea edx, [ebp - 0x394]
push edx
call fcn.004e519b
add esp, 4
lea eax, [ebp - 0x394]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2d23
movzx ecx, word [ebp - 0xba6]
sub eax, edx
movzx edx, word [ebp - 0xbaa]
push ecx
movzx ecx, word [ebp - 0xbac]
push edx
push ecx
sar eax, 1
lea edx, [ebp + eax*2 - 0x394]
push str._04u_02u_02u.log
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x5681a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x8000080
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x394]
push eax
mov dword [ebp - 0xbb0], 0
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a2de9
push 0
push 0x8000080
push 1
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x394]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4a34fc
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0xbb0]
push edx
push 2
lea eax, [ebp - 0xbb8]
push eax
push edi
mov word [ebp - 0xbb8], 0xfeff
call ebx
jmp 0x4a2def
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
push 0x806
push ecx
lea edx, [ebp - 0xb9a]
push edx
mov word [ebp - 0xb9c], cx
call fcn.004e8ba0
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x10a]
push ecx
mov word [ebp - 0x10c], ax
call fcn.004e8ba0
mov eax, dword [esi + 0x30]
add esp, 0x18
lea edx, [ebp - 0x10c]
cmp eax, 8
jbe 0x4a2e4e
push 0x10
push edx
push eax
call fcn.004e534f
add esp, 0xc
jmp 0x4a2e6f
mov eax, dword [eax*4 + 0x50ab08]
sub edx, eax
jmp 0x4a2e60
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a2e60
mov eax, dword [esi + 0x18]
push eax
movzx eax, word [ebp - 0xb9e]
lea ecx, [ebp - 0x18c]
push ecx
movzx ecx, word [ebp - 0xba0]
lea edx, [ebp - 0x10c]
push edx
movzx edx, word [ebp - 0xba2]
push eax
movzx eax, word [ebp - 0xba4]
push ecx
mov ecx, dword [ebp - 0xbbc]
push edx
mov edx, dword [ebp - 0xbb4]
push eax
mov eax, dword [0x5645b4]
push ecx
push edx
push eax
lea ecx, [ebp - 0xb9c]
push str.__i__t__i__t__s__t__02u:_02u:_02u:_03u__t__s__t__s__t__i__t
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xb9c]
add esp, 0x30
inc dword [0x5645b4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2ee0
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 0xbb0]
push edx
add eax, eax
push eax
lea ecx, [ebp - 0xb9c]
push ecx
push edi
call ebx
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x34]
cmp eax, 0x305
je 0x4a2f27
cmp eax, 0x307
jne 0x4a2fc9
push 0x808
lea edx, [ebp - 0xb9c]
push 0
push edx
call fcn.004e8ba0
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0xb9c]
push str._DispatchExecute__r_nMajorFunction_s_r_nMinorFunction_s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [esi + 0x38]
add esp, 0x1c
test ebx, ebx
je 0x4a2fc3
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x8a]
push ecx
mov word [ebp - 0x8c], ax
call fcn.004e8ba0
lea edx, [ebp - 0x8c]
push edx
add ebx, 0x40
call fcn.004b76c0
lea eax, [ebp - 0xb9c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2f97
sub eax, edx
lea ecx, [ebp - 0x8c]
push ecx
sar eax, 1
lea edx, [ebp + eax*2 - 0xb9c]
push str.SourceIP_s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0x18], 0
jbe 0x4a34af
cmp dword [esi + 0x20], 0
je 0x4a34af
mov eax, dword [esi + 0x34]
cmp eax, 0x304
je 0x4a3000
cmp eax, 0x305
je 0x4a3000
cmp eax, 0x307
je 0x4a3000
cmp eax, 0x309
jne 0x4a34af
push 0
lea eax, [ebp - 0xbb0]
push eax
push 2
push 0x5206d4
push edi
call ebx
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x34]
cmp eax, 0x305
jne 0x4a30e4
mov ebx, dword [esi + 0x20]
mov ecx, dword [ebx + 0x14]
add ecx, ebx
lea eax, [ebp - 0xb9c]
mov dword [ebx + 0x20], ecx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a3042
mov edx, dword [str.Cmd]
mov ecx, dword [0x5231f8]
mov dword [eax], edx
mov dx, word [0x5231fc]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x38]
sub eax, edx
mov esi, eax
cmp eax, 0x100
jb 0x4a3080
mov esi, 0x100
lea eax, [ebp - 0xb9c]
lea ecx, [eax + 2]
mov dword [ebp - 0xbb4], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3090
sub eax, dword [ebp - 0xbb4]
mov ecx, dword [ebx + 0x20]
add ecx, edx
sar eax, 1
push esi
push ecx
lea edx, [ebp + eax*2 - 0xb9c]
push edx
call fcn.004ebc70
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
add esp, 0xc
push 0
lea ecx, [ebp - 0xbb0]
push ecx
mov ecx, dword [ebx + 0x20]
sub edx, eax
push edx
add ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0xbc0]
jmp 0x4a33f2
cmp eax, 0x307
jne 0x4a32b5
mov ebx, dword [esi + 0x20]
mov edx, dword [ebx + 0x14]
add edx, ebx
lea eax, [ebp - 0xb9c]
mov dword [ebx + 0x20], edx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a3103
mov ecx, dword [str.NetFile]
mov edx, dword [0x523204]
mov dword [eax], ecx
mov ecx, dword [0x523208]
mov dword [eax + 4], edx
mov edx, dword [0x52320c]
mov dword [eax + 8], ecx
mov cx, word [0x523210]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x30]
sub eax, edx
mov dword [ebp - 0xbc4], eax
mov esi, eax
cmp eax, 0x100
jb 0x4a3159
mov esi, 0x100
lea eax, [ebp - 0xb9c]
lea ecx, [eax + 2]
mov dword [ebp - 0xbb4], ecx
jmp 0x4a3170
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3170
sub eax, dword [ebp - 0xbb4]
mov ecx, dword [ebx + 0x20]
add ecx, edx
sar eax, 1
push esi
push ecx
lea edx, [ebp + eax*2 - 0xb9c]
push edx
call fcn.004ebc70
lea eax, [ebp - 0xb9c]
add esp, 0xc
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a31a3
mov ecx, dword [str._r_nDestFile]
mov edx, dword [0x523218]
mov dword [eax], ecx
mov ecx, dword [0x52321c]
mov dword [eax + 4], edx
mov edx, dword [0x523220]
mov dword [eax + 8], ecx
mov ecx, dword [0x523224]
mov dword [eax + 0xc], edx
mov edx, dword [0x523228]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x48]
sub esi, ecx
mov dword [ebp - 0xbbc], esi
cmp esi, 0x100
jb 0x4a3204
mov dword [ebp - 0xbbc], 0x100
lea eax, [ebp - 0xb9c]
lea edx, [eax + 2]
mov dword [ebp - 0xbb4], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4a3213
mov edx, dword [ebp - 0xbbc]
sub eax, dword [ebp - 0xbb4]
push edx
mov edx, dword [ebx + 0x20]
sar eax, 1
add edx, ecx
push edx
lea eax, [ebp + eax*2 - 0xb9c]
push eax
call fcn.004ebc70
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0xbc4]
add eax, dword [ebx + 0x28]
add esp, 0xc
push 0
lea ecx, [ebp - 0xbb0]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0xbb0]
push ecx
push 8
push 0x52322c
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx + 0x20]
add eax, dword [ebx + 0x40]
push 0
lea edx, [ebp - 0xbb0]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0xbc0]
jmp 0x4a33f2
cmp eax, 0x304
jne 0x4a32e8
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x28]
add ecx, eax
push 0
mov dword [eax + 0x20], ecx
mov eax, dword [eax + 0x30]
lea ebx, [ebp - 0xbb0]
push ebx
sub eax, edx
push eax
add edx, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4a33f2
cmp eax, 0x309
jne 0x4a33f2
mov ecx, dword [ebp - 0xbbc]
mov eax, str.Function_End
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a3326
test dx, dx
je 0x4a3322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a3326
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a3300
xor eax, eax
jmp 0x4a332b
sbb eax, eax
sbb eax, 0xffffffff
push 0
test eax, eax
je 0x4a33e0
mov ecx, esi
mov ebx, dword [ecx + 0x20]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x14]
sub eax, ecx
mov dword [ebp - 0xbc4], eax
lea eax, [ebp - 0xbb0]
push eax
push 0xe
push str.File_:
add edx, ebx
mov esi, ecx
sub esi, dword [ebx + 0x28]
push edi
mov dword [ebx + 0x20], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebx + 0x20]
add edx, dword [ebx + 0x28]
push 0
lea ecx, [ebp - 0xbb0]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push edi
call esi
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xbb0]
push eax
push 0x14
push str._Folder_:
push edi
call esi
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 0xbc4]
add eax, dword [ebx + 0x20]
push 0
lea ecx, [ebp - 0xbb0]
push ecx
push edx
push eax
push edi
call esi
mov esi, dword [ebp - 0xbc0]
jmp 0x4a33f2
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0xbb0]
push ecx
push edx
push eax
push edi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push edi
call ebx
push 0
lea ecx, [ebp - 0xbb0]
push ecx
push 6
push 0x523260
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call ebx
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x4a3496
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x8a]
push eax
mov word [ebp - 0x8c], dx
call fcn.004e8ba0
lea ecx, [ebp - 0x8c]
push ecx
add ebx, 0x40
call fcn.004b76c0
lea eax, [ebp - 0x8c]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x4a3460
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3460
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 0xbb0]
push edx
add eax, eax
push eax
lea ecx, [ebp - 0x8c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0xbb0]
push edx
push 6
push 0x523268
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4a34c2
push 0
lea eax, [ebp - 0xbb0]
push eax
push 0xe
push str.___t___r_n
push edi
call ebx
mov eax, dword [esi + 0x34]
cmp eax, 0x305
jne 0x4a34da
lea ecx, [ebp - 0xb9c]
push ecx
push 0x40020305
jmp 0x4a34ed
cmp eax, 0x307
jne 0x4a34f5
lea edx, [ebp - 0xb9c]
push edx
push 0x40020307
call fcn.004a4250
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5681a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret