Function at 0x565d40
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b05e9
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x248], ecx
push 0x5e9af0
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0
xor edi, edi
call fcn.00402f60
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], edi
jge 0x565da5
push 0x80070057
call fcn.00402740
cmp word [eax], 0x40
jne 0x5661e6
mov ecx, str._None
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x565dda
test dx, dx
je 0x565dd6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x565dda
add eax, 4
add ecx, 4
test dx, dx
jne 0x565db4
xor eax, eax
jmp 0x565ddf
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x565def
xor edi, edi
jmp 0x5662d1
lea eax, [ebp + 8]
push 0x5ea8c8
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565e0e
mov edi, 1
jmp 0x5662d1
lea eax, [ebp + 8]
push str._Manual
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565e2d
mov edi, 1
jmp 0x5662d1
lea eax, [ebp + 8]
push str._ManualSend
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565e4c
mov edi, 1
jmp 0x5662d1
lea eax, [ebp + 8]
push str._Mailer
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565f44
lea ecx, [ebp - 0x240]
call fcn.00402b30
push str._Mailer
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.00402f60
push 0
push 0
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x23c]
call fcn.0058e370
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
call fcn.00402b60
mov eax, dword [ebp - 0x240]
cmp dword [eax - 0xc], 0
jne 0x565ed4
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
mov edi, 1
call fcn.00402b60
jmp 0x5662d1
mov edi, 4
call fcn.00416adc
lea ecx, [ebp + 8]
mov eax, dword [eax + 4]
add eax, 0xd8
push eax
call fcn.004032d0
mov eax, dword [ebp + 8]
mov edx, 1
mov esi, eax
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x565f19
push 0x104
lea ecx, [ebp + 8]
call fcn.00402c20
mov eax, dword [ebp + 8]
push str.MAPI.exe
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00403da0
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.00402b60
jmp 0x5662d1
lea eax, [ebp + 8]
push str._OCR
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565f78
lea eax, [ebp - 0x244]
xor ecx, ecx
push ebx
push eax
lea edx, [ebp + 8]
mov edi, 4
call fcn.00589950
add esp, 8
jmp 0x5662d1
lea eax, [ebp + 8]
push str._SUOCR
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565f97
mov edi, 0xa
jmp 0x5662d1
lea eax, [ebp + 8]
push str._NewApp
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565fb0
push 0
jmp 0x565fc7
lea eax, [ebp + 8]
push str._NewAppOCR
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x565fe6
push 4
lea eax, [ebp - 0x244]
xor ecx, ecx
push ebx
push eax
lea edx, [ebp + 8]
mov edi, 9
call fcn.00589280
add esp, 0xc
jmp 0x5662d1
lea eax, [ebp + 8]
push 0x5eae5c
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x566005
mov edi, 2
jmp 0x5662d1
lea eax, [ebp + 8]
push str._Viewer
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x566024
mov edi, 7
jmp 0x5662d1
lea eax, [ebp + 8]
push str._Evernote
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x5660ac
lea ecx, [ebp - 0x240]
call fcn.00402b30
push 0
push 0
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.0058e370
mov eax, dword [ebp - 0x240]
add esp, 8
cmp dword [eax - 0xc], 0
je 0x5665e9
lea edx, [ebp + 8]
mov edi, 4
lea ecx, [ebp - 0x23c]
call fcn.00589660
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.004032d0
lea ecx, [ebp - 0x23c]
call fcn.00402b60
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.00402b60
jmp 0x5662d1
lea eax, [ebp + 8]
push str._Box_Sync
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x5660dd
lea edx, [ebp + 8]
mov edi, 6
lea ecx, [ebp - 0x23c]
call fcn.00589660
mov byte [ebp - 4], 6
jmp 0x566191
lea eax, [ebp + 8]
push str._DropBox
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x566165
lea ecx, [ebp - 0x240]
call fcn.00402b30
push 0
push 0
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.0058e370
mov eax, dword [ebp - 0x240]
add esp, 8
cmp dword [eax - 0xc], 0
je 0x5665e9
lea edx, [ebp + 8]
mov edi, 6
lea ecx, [ebp - 0x23c]
call fcn.00589660
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.004032d0
lea ecx, [ebp - 0x23c]
call fcn.00402b60
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.00402b60
jmp 0x5662d1
lea eax, [ebp + 8]
push str._OneDrive
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x5661ae
lea edx, [ebp + 8]
mov edi, 6
lea ecx, [ebp - 0x23c]
call fcn.00589660
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 8]
call fcn.004032d0
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.00402b60
jmp 0x5662d1
lea eax, [ebp + 8]
push 0x5e9bd4
push eax
call fcn.00403c30
add esp, 8
test al, al
je 0x5662d1
lea eax, [ebp - 0x244]
xor ecx, ecx
push ebx
push eax
lea edx, [ebp + 8]
mov edi, 0xb
call fcn.0058af20
add esp, 8
jmp 0x5662d1
mov edx, str.AdobeDC
mov ecx, eax
lea ecx, [ecx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x566216
test si, si
je 0x566212
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x566216
add ecx, 4
add edx, 4
test si, si
jne 0x5661f0
xor ecx, ecx
jmp 0x56621b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
test cl, cl
je 0x56626a
lea edx, [ebp + 8]
mov edi, 4
lea ecx, [ebp - 0x23c]
call fcn.00589660
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.004032d0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5662d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5662d1
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x5662bb
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00589be0
add esp, 4
test al, al
je 0x5662b4
lea eax, [ebp - 0x244]
xor ecx, ecx
push ebx
push eax
lea edx, [ebp + 8]
mov edi, 0xb
call fcn.0058af20
add esp, 8
jmp 0x5662d1
mov edi, 4
jmp 0x5662d1
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x5665f4
mov edi, 6
mov ecx, dword [0x621edc]
mov eax, 0x92492493
mov esi, dword [0x621ed8]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5665f4
dec edi
cmp edi, 0xa
ja case.0x566302.3
jmp dword [edi*4 + 0x56665c]
push 1
mov edx, 0x621ed8
lea ecx, [ebp + 8]
call fcn.00561490
add esp, 4
jmp 0x56633f
push 0
jmp 0x56630b
push ebx
push 0
jmp 0x566329
push ebx
push 1
push 0x621ed8
lea edx, [ebp - 0x244]
lea ecx, [ebp + 8]
call fcn.00561940
add esp, 0xc
cmp eax, 0x20
jl 0x5665f4
mov bl, 1
jmp 0x5665f6
push 0xa
lea ecx, [ebp - 0x238]
call fcn.00419186
mov byte [ebp - 4], 0xb
mov esi, dword [0x621ed8]
cmp esi, dword [0x621edc]
je 0x566387
mov edi, edi
push esi
lea ecx, [ebp - 0x238]
call fcn.00419214
add esi, 0x1c
cmp esi, dword [0x621edc]
jne 0x566370
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x566396
mov ecx, 1
mov eax, dword [0x621a6c]
test eax, eax
jne 0x5663a3
xor esi, esi
jmp 0x5663b8
push 0x10008
push dword [ecx*4 + 0x621ebc]
call eax
mov esi, eax
mov eax, dword [0x621a6c]
xor ecx, ecx
cmp ebx, 0x9fbf1
jne 0x5663c7
mov ecx, 1
test eax, eax
je 0x5663d9
push 0x10019
push dword [ecx*4 + 0x621ebc]
call eax
push ebx
push eax
push esi
lea edx, [ebp - 0x238]
call fcn.0056b3c0
mov esi, dword [0x621ed8]
cmp esi, dword [0x621edc]
je 0x56640f
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x566400
push dword [esi]
call edi
add esi, 0x1c
cmp esi, dword [0x621edc]
jne 0x566400
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.004191ac
mov bl, 1
jmp 0x5665f6
cmp esi, dword [0x621edc]
je case.0x566302.3
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 5
push 0
push 0
push dword [esi]
push str.open
push 0
call edi
add esi, 0x1c
cmp esi, dword [0x621edc]
jne 0x566437
mov bl, 1
jmp 0x5665f6
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0052d120
add esp, 0xc
mov ecx, 0x621ed8
push 0
call fcn.00404000
push dword [eax]
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00529409
add esp, 0xc
lea eax, [ebp - 0x21c]
push str..txt
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
push 0x5e9af0
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xc
call fcn.00402f60
mov eax, 0x128e
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov word [ebp - 0x220], ax
mov byte [ebp - 0x21e], 0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x238]
call fcn.00403020
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x254]
call fcn.00404050
push ecx
lea ecx, [ebp - 0x30c]
call fcn.00556940
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], 0x1fbf
mov dword [ebp - 0x268], 0x1fb2
mov dword [ebp - 0x264], 0x23c1
mov dword [ebp - 0x260], eax
call fcn.00556780
cmp eax, 1
jne 0x5665af
push 5
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x5665c0
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x248]
call fcn.00547e40
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 0xd
call fcn.005568d0
lea ecx, [ebp - 0x238]
call fcn.00402b60
lea ecx, [ebp - 0x254]
call fcn.00404930
mov bl, 1
jmp 0x5665f6
lea ecx, [ebp - 0x240]
call fcn.00402b60
xor bl, bl
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x244]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x56661c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x56663d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret