Function at 0x10014600
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, 0x1014
call fcn.10126240
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x100c], eax
cmp dword [0x1018c9a8], 0xffffffff
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
jne 0x10014641
call fcn.1004f190
neg eax
sbb eax, eax
neg eax
mov dword [0x1018c9a8], eax
test ebx, ebx
je 0x1001464b
mov dword [ebx], 0
test edi, edi
je 0x10014db5
cmp byte [edi], 0
je 0x10014db5
push 0x400
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.1010ffa3
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014674
sub eax, edx
cmp eax, 0x400
jb 0x1001468b
mov byte [esp + 0x417], cl
lea ecx, [esp + 0x18]
push 0x2c
push ecx
mov byte [esp + 0x420], 0
call fcn.1010d780
mov esi, eax
add esp, 8
test esi, esi
je 0x100146ed
cmp byte [esp + 0x18], 0x22
jne 0x100146d0
lea edx, [esp + 0x19]
push 0x22
push edx
call fcn.1010d780
add esp, 8
test eax, eax
je 0x100146d0
inc eax
push 0x2c
push eax
call fcn.1010d780
add esp, 8
mov esi, eax
test esi, esi
je 0x100146ed
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x20]
call fcn.10044660
add esp, 8
test eax, eax
je 0x100146ed
mov byte [esi], 0
push 0
push 0
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10014748
lea eax, [esp + 0x18]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10014710
push 0x2f
push edi
call fcn.1010d780
add esp, 8
test eax, eax
je 0x1001473e
push 0
push 0x10149ea8
push 0x101483c4
push edi
call fcn.10047ed0
add esp, 0x10
mov eax, 1
jmp 0x10014db7
lea esi, [esp + 0x18]
call fcn.1005b380
call fcn.1005b450
mov edx, esi
push 0x22
push edx
call fcn.1011063b
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 8
test eax, eax
je 0x1001485a
cmp byte [esp + 0x18], 0x22
jne 0x1001485a
add eax, 1
je 0x10014db5
cmp byte [eax], 0
je 0x10014db5
mov edi, 0x400
mov esi, eax
lea ebx, [esp + 0x18]
call fcn.1004d250
mov eax, ebx
push 0x22
push eax
call fcn.1011063b
add esp, 8
test eax, eax
je 0x1001485a
mov ecx, ebx
push ecx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jle 0x1001485a
cmp byte [esp + eax + 0x14], 0x2e
je 0x1001485a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
jmp 0x100147e0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x81c]
push eax
call ebp
test esi, esi
jne 0x10014802
push str..com
lea ecx, [esp + 0x81c]
push ecx
jmp 0x10014828
cmp esi, 1
jne 0x10014816
push str..exe
lea edx, [esp + 0x81c]
push edx
jmp 0x10014828
cmp esi, 2
jne 0x1001482a
push str..bat
lea eax, [esp + 0x81c]
push eax
call edi
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x820]
call fcn.10044660
add esp, 8
test eax, eax
je 0x1001484b
inc esi
cmp esi, 3
jl 0x100147e0
jmp 0x1001485a
lea ecx, [esp + 0x818]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
lea ecx, [esp + 0x18]
call fcn.1005b2d0
push 0
lea eax, [esp + 0x1c]
push eax
call sym.EncDec.dll_IsItEnvStringType
cmp dword [0x1018c9a8], 0
je 0x100148e3
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x41c]
push edx
call ebp
lea eax, [esp + 0x418]
push str.__x86_
push eax
call fcn.1010ddc0
add esp, 8
push 0
test eax, eax
je 0x100148be
push 0x1013f817
lea ecx, [esp + 0x420]
push str.__x86_
push ecx
call fcn.10047ed0
add esp, 0x10
jmp 0x100148e3
push str.progra1_
lea edx, [esp + 0x420]
push str.progra2_
push edx
call fcn.10047ed0
add esp, 0x10
test eax, eax
jne 0x100148e3
mov byte [esp + 0x418], al
lea esi, [esp + 0x18]
call fcn.1004a050
cmp byte [esp + 0x418], 0
je 0x10014902
lea esi, [esp + 0x418]
call fcn.1004a050
lea eax, [esp + 0x18]
push 0x20
push eax
call fcn.1010d780
add esp, 8
test eax, eax
je 0x100149cd
lea ecx, [esp + 0x18]
push 0x2f
push ecx
call fcn.1010d780
add esp, 8
test eax, eax
je 0x100149cd
mov ebx, dword [esp + 0x10]
push 0
push 0
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.10044660
add esp, 8
test eax, eax
je 0x100149d1
lea edx, [esp + 0x18]
push 0x20
push edx
call fcn.1010d780
mov edi, eax
lea eax, [esp + 0x20]
push 0x2f
push eax
call fcn.1010d780
add esp, 0x10
cmp edi, eax
jbe 0x100149d1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x81c]
push edx
call ebp
push 0
push 0x10149ea8
lea eax, [esp + 0x820]
push 0x101483c4
push eax
call fcn.10047ed0
lea esi, [esp + 0x828]
call fcn.1004a050
push 0
push 0
mov edx, ebx
mov ecx, esi
call fcn.10044660
add esp, 0x18
test eax, eax
je 0x100149bc
mov byte [edi], 0
jmp 0x100149d1
lea ecx, [esp + 0x818]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
jmp 0x100149d1
mov ebx, dword [esp + 0x10]
cmp byte [esp + 0x418], 0
je 0x10014ab9
lea eax, [esp + 0x418]
push 0x20
push eax
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10014ab9
lea ecx, [esp + 0x418]
push 0x2f
push ecx
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10014ab9
push 0
push 0
mov edx, ebx
lea ecx, [esp + 0x420]
call fcn.10044660
add esp, 8
test eax, eax
je 0x10014ab9
lea edx, [esp + 0x418]
push 0x20
push edx
call fcn.1010d780
mov edi, eax
lea eax, [esp + 0x420]
push 0x2f
push eax
call fcn.1010d780
add esp, 0x10
cmp edi, eax
jbe 0x10014ab9
lea ecx, [esp + 0x418]
push ecx
lea edx, [esp + 0x81c]
push edx
call ebp
push 0
push 0x10149ea8
lea eax, [esp + 0x820]
push 0x101483c4
push eax
call fcn.10047ed0
lea esi, [esp + 0x828]
call fcn.1004a050
push 0
push 0
mov edx, ebx
mov ecx, esi
call fcn.10044660
add esp, 0x18
test eax, eax
je 0x10014aa7
mov byte [edi], 0
jmp 0x10014ab9
lea ecx, [esp + 0x818]
push ecx
lea edx, [esp + 0x41c]
push edx
call ebp
push 0
push 0
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10014aef
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10014ae0
jmp 0x10014c9a
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc1c]
push eax
call ebp
push str..mwt
mov edi, 0x400
lea esi, [esp + 0xc1c]
call fcn.1004d280
add esp, 4
push 0
push 0
mov edx, ebx
mov ecx, esi
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10014b46
mov edi, dword [esp + 0x14]
mov edx, edi
mov ecx, esi
mov eax, esi
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10014b37
jmp 0x10014c9a
push 0x2000000
push 3
push 3
push closesocket
lea edi, [esp + 0x28]
call fcn.10033690
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x10014bef
push 0
push esi
call ebx
push esi
mov edi, eax
call ebp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10014b91
test al, 0x10
jne 0x10014bef
test edi, edi
jbe 0x10014bb3
push edi
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x824]
push str._s:_Seems_hidden_file_with_attributes_of__ld__size_of__ld...
push ecx
call fcn.1010d6a8
add esp, 0x14
jmp 0x10014bce
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x820]
push str._s:_Seems_hidden_file_with_attributes_of__ld...
push eax
call fcn.1010d6a8
add esp, 0x10
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10014be0
jmp 0x10014d7a
xor esi, esi
cmp byte [esp + 0x418], 0
je 0x10014db1
mov edx, dword [esp + 0x10]
push esi
push esi
lea ecx, [esp + 0x420]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10014c3c
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x418]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10014c30
jmp 0x10014c9a
lea edx, [esp + 0x418]
push edx
lea eax, [esp + 0xc1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..mwt
mov edi, 0x400
lea esi, [esp + 0xc1c]
call fcn.1004d280
mov edx, dword [esp + 0x14]
add esp, 4
push 0
push 0
mov ecx, esi
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10014cce
mov edi, dword [esp + 0x14]
mov edx, edi
mov ecx, esi
mov eax, esi
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10014c90
push 0x2f
push edi
mov esi, 1
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10014db1
push 0
push 0x10149ea8
push 0x101483c4
push edi
call fcn.10047ed0
add esp, 0x10
mov eax, esi
jmp 0x10014db7
push 0x2000000
push 3
push 3
push closesocket
lea edi, [esp + 0x428]
call fcn.10033690
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x10014d13
push 0
push esi
call ebx
push esi
mov edi, eax
call ebp
lea edx, [esp + 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10014d1c
test al, 0x10
je 0x10014d1c
xor esi, esi
mov eax, esi
jmp 0x10014db7
test edi, edi
jbe 0x10014d41
push edi
push eax
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x824]
push str._s:_Seems_hidden_file_with_attributes_of__ld__size_of__ld...
push ecx
call fcn.1010d6a8
add esp, 0x14
jmp 0x10014d5f
push eax
lea edx, [esp + 0x41c]
push edx
lea eax, [esp + 0x820]
push str._s:_Seems_hidden_file_with_attributes_of__ld...
push eax
call fcn.1010d6a8
add esp, 0x10
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x418]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10014d70
push 0x2f
push edi
mov esi, 1
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10014da3
push 0
push 0x10149ea8
push 0x101483c4
push edi
call fcn.10047ed0
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10014db1
mov dword [eax], 0x400
mov eax, esi
jmp 0x10014db7
xor eax, eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x1014
ret