Function at 0x40d8d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b155e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
push 0x4f4c50
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
call fcn.004a2cae
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xd4]
mov dword [esp + 0xd0], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x4b0], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call fcn.0044ae30
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b0], 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
call fcn.0044ae30
mov eax, dword [esp + 0x4b8]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x4b4], 2
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call fcn.00447770
mov eax, dword [eax]
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00447cd0
cmp esi, 0xffffffff
je 0x40dac6
lea ecx, [esp + 0x44]
push ebx
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call fcn.00411c00
add esp, 0x24
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x40dabf
mov eax, dword [esp + 0x44]
cmp eax, 4
jne 0x40da3b
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x48]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0xac]
push ecx
lea eax, [esp + 0xe8]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
push esi
call fcn.00411a20
mov eax, dword [esp + 0xa4]
add esp, 0x28
jmp 0x40daa9
cmp eax, 6
jne 0x40da79
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push ebx
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x60]
push 0x20
push eax
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov cl, byte [esp + 0x5e]
and ecx, 4
mov dword [esp + 0x2c], ecx
jmp 0x40dab2
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push ebx
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x60]
push 0x40
push eax
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x7c]
and eax, 0x80
mov dword [esp + 0x2c], eax
push esi
call fcn.0040b750
add esp, 4
mov dword [esp + 0x34], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x40e028
mov edi, dword [esp + 0x4b8]
lea ecx, [esp + 0x18]
push edi
call fcn.00447770
mov eax, dword [eax]
lea ecx, [esp + 0x120]
push ecx
push eax
mov byte [esp + 0x4b8], 3
call fcn.00412300
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0x4b0], 2
call fcn.00447cd0
cmp byte [esp + 0x17], bl
jne 0x40e0f8
lea edx, [esp + 0x120]
push edx
call fcn.00412a80
add esp, 4
test eax, eax
je 0x40e1bf
push edi
lea ecx, [esp + 0x1c]
call fcn.00447770
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push eax
mov byte [esp + 0x4c0], 6
call fcn.00411e80
add esp, 0x10
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x4b0], 2
call fcn.00447cd0
cmp esi, ebx
jne 0x40dc06
lea edx, [esp + 0x28]
lea eax, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00411870
mov esi, eax
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00401ab0
add esp, 0x10
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [eax]
push ecx
push esi
push edx
lea eax, [esp + 0x20]
push 0x4e0564
push eax
mov byte [esp + 0x4c8], 7
call fcn.004a0c59
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b0], 2
call fcn.004a2c3a
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0040b000
mov dword [esp + 0x30], ebx
jmp 0x40df3d
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40dd06
push eax
call fcn.004a2973
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40dd06
mov ecx, dword [esp + 0x30]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x18], ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4b8]
lea ecx, [esp + 0x34]
push eax
call fcn.00447770
mov edx, dword [esp + 0x30]
mov eax, dword [eax]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b0], 8
push ecx
push edx
push esi
push eax
call fcn.00411e80
add esp, 0x10
lea ecx, [esp + 0x34]
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0x4b0], 2
call fcn.00447cd0
cmp byte [esp + 0x17], bl
je 0x40dd06
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00411870
mov edi, eax
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.00401ab0
add esp, 0x10
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x20]
push 0x4e0564
push ecx
mov byte [esp + 0x4c8], 9
call fcn.004a0c59
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0x4b0], 2
call fcn.004a2c3a
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0040b000
push esi
call fcn.004a299c
add esp, 4
jmp 0x40df3d
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x58], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4b8]
lea eax, [esp + 0x58]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
cmp eax, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
jne 0x40de7d
mov eax, dword [esp + 0x160]
xor ecx, ecx
push ecx
push eax
mov eax, dword [esp + 0x164]
push ebx
push eax
call fcn.00438980
mov ecx, dword [esp + 0x158]
xor edi, edi
add eax, ecx
adc edx, edi
cmp edx, esi
jl 0x40de37
jg 0x40dd84
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x40de3b
mov edi, dword [esp + 0x13c]
mov ebp, dword [esp + 0x138]
xor ecx, ecx
mov dword [esp + 0x38], edi
or ecx, ebp
mov ebp, dword [esp + 0x38]
xor edi, edi
or ebp, edi
mov edi, dword [esp + 0x18]
cmp edi, ecx
jne 0x40ddca
cmp esi, ebp
jne 0x40ddca
lea edx, [esp + 0x10]
push 0x4e0f88
push edx
call fcn.004a0c59
mov eax, dword [esp + 0x18]
add esp, 8
push eax
jmp 0x40df32
sub eax, edi
sbb edx, esi
mov esi, dword [esp + 0x160]
xor edi, edi
mov ebp, eax
push edi
push esi
push edx
push ebp
mov dword [esp + 0x2c], edx
call fcn.004388c0
or eax, edx
jne 0x40de15
mov ecx, dword [esp + 0x1c]
push edi
push esi
push ecx
push ebp
call fcn.00438700
push edx
push eax
lea edx, [esp + 0x18]
push 0x4e0f4c
push edx
call fcn.004a0c59
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
jmp 0x40df32
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push ebp
push 0x4e0f20
push edx
call fcn.004a0c59
add esp, 0x10
push 0x4e0e58
jmp 0x40e0a3
mov ecx, dword [esp + 0x18]
cmp esi, edx
jl 0x40e028
jg 0x40de4d
cmp ecx, eax
jbe 0x40e028
sub ecx, eax
sbb esi, edx
push esi
push ecx
lea ecx, [esp + 0x18]
push 0x4e0e2c
push ecx
call fcn.004a0c59
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x4e0e58
call fcn.004a302b
mov edx, dword [esp + 0x10]
push edx
jmp 0x40df36
cmp eax, 3
jne 0x40e028
mov edx, dword [esp + 0x498]
mov eax, dword [esp + 0x158]
mov edi, dword [esp + 0x49c]
xor ecx, ecx
cmp edx, ebx
jne 0x40ded8
cmp edi, ebx
jne 0x40ded8
mov edx, dword [esp + 0x15c]
cmp edx, ebx
je 0x40dee9
cmp edx, 1
jne 0x40dec0
add eax, dword [esp + 0x164]
adc ecx, ebx
jmp 0x40dee9
dec edx
mov ebp, dword [esp + 0x164]
imul edx, dword [esp + 0x160]
add edx, ebp
add eax, edx
adc ecx, ebx
jmp 0x40dee9
mov eax, dword [esp + 0x4a0]
xor ecx, ecx
add eax, edx
mov dword [esp + 0x38], ebx
adc ecx, edi
mov edx, dword [esp + 0x13c]
mov ebp, dword [esp + 0x138]
xor edi, edi
mov dword [esp + 0x38], edx
or edi, ebp
mov ebp, dword [esp + 0x38]
xor edx, edx
or ebp, edx
mov edx, dword [esp + 0x18]
cmp edx, edi
jne 0x40e07c
cmp esi, ebp
jne 0x40e07c
lea eax, [esp + 0x10]
push 0x4e0f88
push eax
call fcn.004a0c59
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
mov ebp, dword [esp + 0x24]
mov ecx, ebp
call fcn.0040b000
lea edx, [esp + 0x10]
push 0x4e0d4c
push edx
call fcn.004a0c59
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebx
jne 0x40df65
push 0x4e0d10
lea ecx, [esp + 0x14]
call fcn.004a302b
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0040b000
mov edi, dword [esp + 0x4b8]
mov dword [esp + 0x24], 1
push str..doc
push edi
call fcn.00470b90
add esp, 8
test eax, eax
jne 0x40dfec
push str..docx
push edi
call fcn.00470b90
add esp, 8
test eax, eax
jne 0x40dfec
push str..xls
push edi
call fcn.00470b90
add esp, 8
test eax, eax
jne 0x40dfec
push str..xlsx
push edi
call fcn.00470b90
add esp, 8
test eax, eax
jne 0x40dfec
push str..ppt
push edi
call fcn.00470b90
add esp, 8
test eax, eax
jne 0x40dfec
push str..pptx
push edi
call fcn.00470b90
add esp, 8
test eax, eax
je 0x40e00a
lea ecx, [esp + 0x10]
push 0x4e0c08
push ecx
call fcn.004a0c59
mov edx, dword [esp + 0x18]
add esp, 8
mov ecx, ebp
push edx
call fcn.0040b000
lea eax, [esp + 0x10]
push 0x4e0bc4
push eax
call fcn.004a0c59
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
mov ecx, ebp
call fcn.0040b000
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b0], 1
call fcn.0044af00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4b0], bl
call fcn.0044af00
lea ecx, [esp + 0x10]
mov dword [esp + 0x4b0], 0xffffffff
call fcn.004a2c3a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4a4
ret 4
cmp ecx, esi
jl 0x40e0b6
jg 0x40e086
cmp eax, edx
jbe 0x40e0b6
sub eax, edx
lea edx, [esp + 0x10]
sbb ecx, esi
push ecx
push eax
push 0x4e0f20
push edx
call fcn.004a0c59
add esp, 0x10
push 0x4e0b28
lea ecx, [esp + 0x14]
call fcn.004a302b
mov eax, dword [esp + 0x10]
push eax
jmp 0x40df32
cmp esi, ecx
jl 0x40e028
jg 0x40e0c8
cmp edx, eax
jbe 0x40e028
sub edx, eax
sbb esi, ecx
lea ecx, [esp + 0x10]
push esi
push edx
push 0x4e0e2c
push ecx
call fcn.004a0c59
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x4e0b28
call fcn.004a302b
mov edx, dword [esp + 0x10]
push edx
jmp 0x40df32
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
call fcn.00411870
mov esi, eax
mov eax, dword [esp + 0x3c]
add esp, 8
cmp eax, ebx
push esi
je 0x40e160
lea edx, [esp + 0x1c]
push edx
call fcn.00401ab0
add esp, 8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push edx
push esi
push eax
lea ecx, [esp + 0x20]
push 0x4e0480
push ecx
mov byte [esp + 0x4c8], 4
call fcn.004a0c59
add esp, 0x18
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x18]
jmp 0x40e1a1
lea edx, [esp + 0x1c]
push edx
call fcn.00401ab0
add esp, 8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push edx
push esi
push eax
lea ecx, [esp + 0x20]
push 0x4e0ac8
push ecx
mov byte [esp + 0x4c8], 5
call fcn.004a0c59
add esp, 0x18
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x18]
call fcn.004a2c3a
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
mov dword [esp + 0x28], 1
call fcn.0040b000
jmp 0x40df80
lea eax, [esp + 0x10]
push str.Warring:____r_n
push eax
call fcn.004a0c59
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
mov ecx, ebp
call fcn.0040b000
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b0], 1
call fcn.0044af00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4b0], bl
call fcn.0044af00
lea ecx, [esp + 0x10]
mov dword [esp + 0x4b0], 0xffffffff
call fcn.004a2c3a
mov eax, 1
jmp 0x40e061