Function at 0x11d12dd0
Capabilities:
Copy file
Create directory
Delete file
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x11fa54b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push ebp
mov dword [esp + 0x64], ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x30], ebp
call fcn.11e84ba0
mov dword [esp + 0x2dc], ebx
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x88]
mov dword [esp + 0x84], ebx
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
push ebx
lea ecx, [esp + 0x54]
call fcn.11e84c10
mov esi, dword [esp + 0x2e4]
lea ecx, [esp + 0x2c]
push esi
call fcn.11e7eae0
mov edi, dword [esp + 0x2e8]
lea ecx, [esp + 0x40]
push edi
mov byte [esp + 0x2e0], 1
call fcn.11e7eae0
push 0x5c
lea ecx, [esp + 0x30]
mov byte [esp + 0x2e0], 2
call fcn.11e82ba0
push 0x5c
lea ecx, [esp + 0x44]
call fcn.11e82ba0
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.11e851b0
mov eax, dword [0x12133f80]
cmp eax, ebx
je 0x11d12eb5
mov edx, dword [esp + 0x2ec]
push edx
push edi
push esi
push 0x5916
push str._CSafeDoc::EncryptSubFiles__Line:_d_SrcRoot__s__DstRoot__s__bEncryptOrDecrypt__d_
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x1c
cmp dword [esp + 0x50], ebx
je 0x11d13901
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
push eax
call fcn.11e7e880
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x2e0], 3
call fcn.11e82ba0
push 1
push ebx
lea ecx, [esp + 0x54]
call fcn.11e85780
push 0x1205e074
lea ecx, [esp + 0x68]
call fcn.11e7e980
lea ecx, [esp + 0x64]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x74]
push edx
push eax
mov byte [esp + 0x2e8], 4
call fcn.11e7f820
mov eax, dword [eax]
lea ecx, [esp + 0x84]
push ecx
push eax
mov byte [esp + 0x2e4], 5
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x34], edi
mov byte [esp + 0x2dc], 4
call fcn.11e7f280
lea ecx, [esp + 0x64]
mov byte [esp + 0x2dc], 3
call fcn.11e7f280
cmp edi, 0xffffffff
je 0x11d138ec
cmp word [esp + 0xb0], 0x2e
jne 0x11d12f81
lea edx, [esp + 0x84]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x11d135ed
push 0x1205e070
lea ecx, [esp + 0x64]
call fcn.11e7e980
lea eax, [esp + 0x60]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
mov byte [esp + 0x2e8], 6
call fcn.11e7f820
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x2e8], 7
call fcn.11e7f9f0
lea ecx, [esp + 0x78]
mov byte [esp + 0x2dc], 0xa
call fcn.11e7f280
lea ecx, [esp + 0x60]
mov byte [esp + 0x2dc], 9
call fcn.11e7f280
cmp dword [0x12133f80], ebx
je 0x11d1300e
mov eax, dword [esp + 0x10]
push eax
push 0x592e
push str._CSafeDoc::EncryptSubFiles__Line:_d_Find_File__s_
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
mov esi, dword [edx - 8]
sub eax, esi
lea ecx, [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.11e817c0
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2e0], 0xb
call fcn.11e82eb0
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.11e82ba0
push 0x1205e070
lea ecx, [esp + 0x4c]
call fcn.11e7e980
lea ecx, [esp + 0x48]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
mov byte [esp + 0x2e8], 0xc
call fcn.11e7f820
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x2e8], 0xd
call fcn.11e7f820
lea ecx, [esp + 0x68]
mov byte [esp + 0x2dc], 0x10
call fcn.11e7f280
lea ecx, [esp + 0x48]
mov byte [esp + 0x2dc], 0xf
call fcn.11e7f280
cmp dword [0x12133f80], ebx
je 0x11d130ea
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xb0]
push esi
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push 0x5938
push str._CSafeDoc::EncryptSubFiles__Line:_d_Root__s__ParentDir__s__DstFile__s__fdata.cFileName__s__nCount__d_
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x24
test byte [esp + 0x84], 0x10
je 0x11d131fe
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x2c]
call fcn.11e7eae0
push 0x1205e070
lea ecx, [esp + 0x60]
mov byte [esp + 0x2e0], 0x11
call fcn.11e7e980
lea edx, [esp + 0x5c]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
mov byte [esp + 0x2e8], 0x12
call fcn.11e7f820
lea edx, [esp + 0x28]
mov byte [esp + 0x2dc], 0x13
push edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.11e7f820
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2e0], 0x14
call fcn.11e7f410
lea ecx, [esp + 0x74]
mov byte [esp + 0x2dc], 0x13
call fcn.11e7f280
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2dc], 0x12
call fcn.11e7f280
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2dc], 0x11
call fcn.11e7f280
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.11e851b0
cmp dword [0x12133f80], ebx
je 0x11d131d4
mov eax, dword [esp + 0x28]
push eax
push 0x5941
push str._CSafeDoc::EncryptSubFiles__Line:_d_Find_Directory__s_
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x14
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x11d135fa
lea ecx, [esp + 0x28]
mov byte [esp + 0x2dc], 0xf
call fcn.11e7f280
jmp 0x11d135a9
mov eax, dword [esp + 0x2ec]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
cmp eax, ebx
push ebx
push edx
je 0x11d1342e
call fcn.11ee1fb0
mov edx, dword [esp + 0x38]
add esp, 0x28
xor ecx, ecx
cmp eax, 3
sete cl
mov esi, ecx
push edx
mov ecx, 0x1212b5c0
call fcn.11d7be40
test eax, eax
jne 0x11d13251
mov eax, dword [esp + 0x10]
push eax
call fcn.11cbc650
add esp, 4
test eax, eax
je 0x11d1326e
mov ecx, dword [esp + 0x10]
push 0x1205d918
push ecx
call fcn.11ea3350
add esp, 8
test eax, eax
je 0x11d1326e
mov eax, 1
jmp 0x11d13270
xor eax, eax
cmp esi, ebx
jne 0x11d133e3
cmp eax, ebx
jne 0x11d133e3
mov edx, dword [esp + 0x10]
push edx
call fcn.11dfb2c0
add esp, 4
test eax, eax
jne 0x11d133e3
mov eax, dword [esp + 0x10]
push eax
call fcn.11cbbef0
add esp, 4
test eax, eax
jne 0x11d133e3
lea ecx, [esp + 0x3c]
xor ebp, ebp
xor edi, edi
call fcn.11e923e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2dc], 0x15
call fcn.11e923e0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ebx
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
mov byte [esp + 0x2ec], 0x16
call fcn.11d18db0
test eax, eax
je 0x11d1331d
lea ecx, [esp + 0x3c]
call fcn.11e925e0
test eax, eax
jbe 0x11d13305
lea ecx, [esp + 0x3c]
call fcn.11e92ce0
mov ebp, eax
lea ecx, [esp + 0x38]
call fcn.11e925e0
test eax, eax
jbe 0x11d1331d
lea ecx, [esp + 0x38]
call fcn.11e92ce0
mov edi, eax
push 0xffff4503
mov dword [esp + 0x84], 0x11fcadb8
call fcn.11ee5c40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edi
push ebx
push 2
push ebx
push ebp
push 1
push ecx
push edx
mov byte [esp + 0x300], 0x17
call fcn.11edeeb0
mov esi, eax
mov eax, dword [0x12133f80]
add esp, 0x24
cmp eax, ebx
je 0x11d13383
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
push 0x598d
push str._CSafeDoc::EncryptSubFiles__Line:_d_Encrypt_Src__s__to_Dst__s____lu_.
push str.TestEncryptFile
push 4
call fcn.11ca5810
add esp, 0x1c
push ebx
mov byte [esp + 0x2e0], 0x16
call fcn.11ee5c40
add esp, 4
cmp esi, ebx
jne 0x11d1363e
mov edx, dword [esp + 0x10]
push edx
call fcn.11cbc4e0
add esp, 4
test eax, eax
je 0x11d133c1
mov eax, dword [esp + 0x14]
push edi
push ebp
push ebx
push eax
push 0x13
mov ecx, 0x1212b560
call fcn.11dedd70
lea ecx, [esp + 0x38]
mov byte [esp + 0x2dc], 0x15
call fcn.11e92540
mov byte [esp + 0x2dc], 0xf
lea ecx, [esp + 0x3c]
jmp 0x11d135a0
cmp dword [0x12133f80], ebx
je 0x11d13410
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push eax
push esi
push eax
push 0x5962
push str._CSafeDoc::EncryptSubFiles__Line:_d__File__s__is_PE__not_encrypt_Or_bEncrypted__d_.Just_Copy__s___s_
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x20
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x11d1369e
jmp 0x11d135a9
call fcn.11ee1fb0
add esp, 0x28
cmp eax, 3
je 0x11d13487
cmp dword [0x12133f80], ebx
je 0x11d13461
mov eax, dword [esp + 0x10]
push eax
push 0x59ae
push str._CSafeDoc::EncryptSubFiles__Line:_d__File__s__is_decrypted_just_copy.
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x11d136e1
lea eax, [esp + 0x84]
push eax
jmp 0x11d135b1
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push 3
push ebx
push 7
push bind
push ecx
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x11d13757
lea ecx, [esp + 0x24]
xor ebp, ebp
xor edi, edi
call fcn.11e923e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2dc], 0x18
call fcn.11e923e0
lea edx, [esp + 0x20]
push 1
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push ebx
push eax
lea ecx, [esp + 0x54]
push ebx
push ecx
push edx
push esi
mov ecx, 0x1212b028
mov byte [esp + 0x2fc], 0x19
call fcn.11d0bc10
test eax, eax
je 0x11d137b5
lea ecx, [esp + 0x24]
call fcn.11e925e0
test eax, eax
jbe 0x11d13516
lea ecx, [esp + 0x24]
call fcn.11e92ce0
mov ebp, eax
lea ecx, [esp + 0x20]
call fcn.11e925e0
test eax, eax
jbe 0x11d1352e
lea ecx, [esp + 0x20]
call fcn.11e92ce0
mov edi, eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x11d137e7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 2
push ebx
push eax
push ecx
call fcn.11edfab0
add esp, 0x10
test eax, eax
jne 0x11d13829
mov edx, dword [esp + 0x14]
push edx
call fcn.11cbc4e0
add esp, 4
test eax, eax
je 0x11d13583
mov eax, dword [esp + 0x14]
push edi
push ebp
push ebx
push eax
push 0x1a
mov ecx, 0x1212b560
call fcn.11dedd70
lea ecx, [esp + 0x20]
mov byte [esp + 0x2dc], 0x18
call fcn.11e92540
mov byte [esp + 0x2dc], 0xf
lea ecx, [esp + 0x24]
call fcn.11e92540
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x84]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x2dc], 0xb
call fcn.11e7f280
lea ecx, [esp + 0x18]
mov byte [esp + 0x2dc], 9
call fcn.11e7f280
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dc], 3
call fcn.11e7f280
cmp esi, ebx
je 0x11d138c0
jmp 0x11d12f60
cmp dword [0x12133f80], ebx
je 0x11d13620
mov edx, dword [esp + 0x14]
push edx
push 0x5947
push str._CSafeDoc::EncryptSubFiles__Line:_d_Fail_to_create_directory__s_
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x14
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], 1
mov byte [esp + 0x2dc], 0xf
call fcn.11e7f280
jmp 0x11d1377d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x12133f80], ebx
je 0x11d13674
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 0x5996
push str._CSafeDoc::EncryptSubFiles__Line:_d_Encrypt_Src__s__to_Dst__s__Fail.
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x18
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 1
mov byte [esp + 0x2dc], 0x15
call fcn.11e92540
mov byte [esp + 0x2dc], 0xf
lea ecx, [esp + 0x3c]
jmp 0x11d13884
cmp dword [0x12133f80], ebx
je 0x11d136c9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0x5969
push str._CSafeDoc::EncryptSubFiles__Line:_d__CopyFile__s___s__Fail.
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x18
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x30], 1
jmp 0x11d1377d
cmp dword [0x12133f80], ebx
je 0x11d1370c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0x59b5
push str._CSafeDoc::EncryptSubFiles__Line:_d__CopyFile__s___s__Fail.
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x18
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
mov byte [esp + 0x2dc], 0xb
call fcn.11e7f280
lea ecx, [esp + 0x18]
mov byte [esp + 0x2dc], 9
call fcn.11e7f280
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dc], 3
call fcn.11e7f280
jmp 0x11d138c0
cmp dword [0x12133f80], ebx
je 0x11d1377d
mov eax, dword [esp + 0x10]
push eax
push 0x59d1
push str._CSafeDoc::EncryptSubFiles__Line:_d_CreateFile__s__Fail.
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x2dc], 0xb
call fcn.11e7f280
lea ecx, [esp + 0x18]
mov byte [esp + 0x2dc], 9
call fcn.11e7f280
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dc], 3
call fcn.11e7f280
jmp 0x11d138c0
cmp dword [0x12133f80], ebx
je 0x11d137db
mov ecx, dword [esp + 0x10]
push ecx
push 0x59de
push str._CSafeDoc::EncryptSubFiles__Line:_d_CheckAccessRight__s__Fail.
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x11d13867
cmp dword [0x12133f80], ebx
je 0x11d1380d
push eax
push 0x59ee
push str._CSafeDoc::EncryptSubFiles__Line:_d_No_Access_Right._Result:_lu
push str.SafeDisk
push 4
call fcn.11ca5810
mov eax, dword [esp + 0x58]
add esp, 0x14
mov edx, dword [esp + 0x10]
push ebx
push 2
push eax
push edx
mov ecx, 0x1212b158
call fcn.11dbfe50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x11d13867
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x12133f80], ebx
je 0x11d1385f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 0x5a00
push str._CSafeDoc::EncryptSubFiles__Line:_d_Decrypt_Src__s__to_Dst__s__Fail.
push str.SafeDisk
push 4
call fcn.11ca5810
add esp, 0x18
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2dc], 0x18
call fcn.11e92540
mov byte [esp + 0x2dc], 0xf
lea ecx, [esp + 0x24]
call fcn.11e92540
lea ecx, [esp + 0x14]
mov byte [esp + 0x2dc], 0xb
call fcn.11e7f280
lea ecx, [esp + 0x18]
mov byte [esp + 0x2dc], 9
call fcn.11e7f280
lea ecx, [esp + 0x10]
mov byte [esp + 0x2dc], 3
call fcn.11e7f280
mov edi, dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x2dc], 2
cmp ebp, ebx
lea ecx, [esp + 0x1c]
jne 0x11d138f8
call fcn.11e7f280
cmp dword [esp + 0x50], ebx
jne 0x11d12ebf
jmp 0x11d13901
mov byte [esp + 0x2dc], 2
lea ecx, [esp + 0x1c]
call fcn.11e7f280
cmp ebp, ebx
jne 0x11d1393f
lea ecx, [esp + 0x40]
mov esi, 1
mov byte [esp + 0x2dc], 1
call fcn.11e7f280
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2dc], bl
call fcn.11e7f280
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2dc], 0xffffffff
call fcn.11e84bb0
mov eax, esi
jmp 0x11d13976
lea ecx, [esp + 0x40]
mov byte [esp + 0x2dc], 1
call fcn.11e7f280
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2dc], bl
call fcn.11e7f280
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2dc], 0xffffffff
call fcn.11e84bb0
xor eax, eax
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2d0
ret 0xc