Function at 0x40e930
Capabilities:
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492eac
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x4eb0e4]
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 dword [ebp - 0x10], esp
push 0
call fcn.004727e3
add esp, 4
mov esi, eax
push 0x8000
push esi
call fcn.004744e9
add esp, 4
push eax
call fcn.0047430a
add esp, 8
cmp eax, 0xffffffff
jne 0x40e99e
push str.Cannot_set_mode
call fcn.00474205
add esp, 4
or eax, 0xffffffff
jmp 0x40f687
push 0
push 4
push 0
push esi
call fcn.00472e8c
add esp, 0x10
test eax, eax
je 0x40e9c6
push str.Cannot_set_zero_buffer
call fcn.00474205
add esp, 4
or eax, 0xffffffff
jmp 0x40f687
push 1
call fcn.004727e3
add esp, 4
mov ecx, eax
call fcn.0040e8d0
test eax, eax
jne 0x40e9be
lea ecx, [ebp - 0x23c]
call fcn.0040f6b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x318]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x318], 1
mov dword [ebp - 0x314], eax
call fcn.0040f990
push 2
lea ecx, [ebp - 0x2bc]
call fcn.0045406e
lea ecx, [ebp - 0x2bc]
mov byte [0x4eb074], 0
call fcn.004540c6
push 0
call fcn.004727e3
push eax
push 4
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.004746db
add esp, 0x14
cmp eax, 4
jne 0x40f672
mov esi, dword [ebp - 0x18]
test esi, esi
jle 0x40f64e
lea eax, [esi + 1]
push eax
call fcn.0047478b
mov edi, eax
push 0
mov dword [ebp - 0x2c0], edi
mov dword [ebp - 0x2d0], edi
call fcn.004727e3
push eax
push esi
push 1
push edi
call fcn.004746db
xorps xmm0, xmm0
mov byte [edi + eax], 0
xor eax, eax
mov dword [ebp - 0xc0], 0x4b0f04
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], 0
mov word [ebp - 0xbc], ax
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], eax
mov word [ebp - 0xa4], ax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x8c], ax
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], eax
mov dword [ebp - method.CENCResponse.virtual_0], vtable.CENCResponse.0
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], eax
mov word [ebp - 0x2ac], ax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], eax
mov word [ebp - 0x294], ax
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], eax
mov word [ebp - 0x27c], ax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], eax
mov word [ebp - 0x25c], ax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
movups xmmword [ebp - 0x130], xmm0
mov word [ebp - 0x122], ax
movups xmmword [ebp - 0x120], xmm0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], 0x400
mov byte [ebp - 4], 4
push 0x14
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
call fcn.0045600e
mov dword [ebp - 0x2b8], eax
add esp, 0x1c
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
movaps xmm0, xmmword [0x4e2d40]
movups xmmword [ebp - 0x354], xmm0
mov dword [ebp - method.ca::CServiceRegInfo.virtual_0], vtable.ca::CServiceRegInfo.0
xorps xmm0, xmm0
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
movq qword [ebp - 0x320], xmm0
movq xmm0, qword [ebp - 0x324]
mov eax, dword [ebp - 0x31c]
movq qword [ebp - 0x338], xmm0
mov dword [ebp - 0x330], eax
xor esi, esi
mov dword [ebp - 0x2c8], esi
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x130]
xor edi, edi
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2cc], edi
call fcn.0040fe40
cmp dword [eax + 0x30], edi
je 0x40eca7
push 0x1c
push str.Request_parse_error_occured.
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x4269
call fcn.0040c9b0
jmp 0x40f4b5
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xc0]
call fcn.00406e40
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00409750
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x294]
call fcn.00409750
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00409750
push 0xa
sub esp, 8
lea ecx, [ebp - 0xa4]
call fcn.0040c870
test eax, eax
jne 0x40ef86
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x2d8], eax
lea ecx, [ebp - 0x2e8]
mov word [ebp - 0x2e8], ax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x2d4], 7
call fcn.00409750
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2e8]
mov ecx, esp
mov edx, 0x4de834
push eax
call fcn.00413d00
add esp, 4
lea ecx, [ebp - 0x358]
call fcn.004138d0
mov byte [ebp - 0x2b1], al
test al, al
jne 0x40ed9f
sub esp, 0x18
lea eax, [ebp - 0x2e8]
mov ecx, esp
mov edx, str.Local_
push eax
call fcn.00413d00
add esp, 4
lea ecx, [ebp - 0x358]
call fcn.004138d0
mov byte [ebp - 0x2b1], al
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2d4]
cmp eax, 8
jb 0x40edc1
inc eax
lea ecx, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2e8]
call fcn.00408000
cmp byte [ebp - 0x2b1], 0
je 0x40ef5e
push str.getServiceRegInfoData
lea ecx, [ebp - 0xa4]
call fcn.0040fa30
test eax, eax
jne 0x40eec4
push dword [ebp - 0x344]
lea ecx, [ebp - 0x190]
call fcn.00407810
lea edx, [ebp - 0x190]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
call fcn.004125b0
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 0xc
call fcn.004077d0
push 0x1c
call fcn.0045600e
mov esi, eax
add esp, 4
mov dword [ebp - 0x35c], esi
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00409720
mov byte [ebp - 4], 0xf
lea ecx, [esi + 4]
mov dword [esi], vtable.CENCReturnValueString.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40ee70
mov eax, dword [ecx]
jmp 0x40ee72
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2e8]
push edx
push eax
call fcn.00409750
mov eax, dword [ebp - 0x2d4]
cmp eax, 8
jb 0x40eea4
inc eax
lea ecx, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2e8]
call fcn.00408000
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x264], esi
call fcn.00407710
mov dword [ebp - 4], 7
jmp 0x40f4a8
push str.getServiceRegInfo
lea ecx, [ebp - 0xa4]
call fcn.0040fa30
test eax, eax
jne 0x40eef0
lea eax, [ebp - 0x358]
mov dword [ebp - 4], 7
mov dword [ebp - 0x264], eax
jmp 0x40f4a8
push str.getServiceConnectionPoint
lea ecx, [ebp - 0xa4]
call fcn.0040fa30
test eax, eax
jne 0x40f07e
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x74]
call fcn.00409720
lea ecx, [ebp - 0x358]
call fcn.00413840
test eax, eax
je 0x40ef36
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 7
jmp 0x40f4a8
push 0x1b
push str.Connection_point_not_found.
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x426d
call fcn.0040c9b0
mov dword [ebp - 4], 7
jmp 0x40f4a8
push 0x1d
push str.Cant_load_Connection_points.
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x426b
call fcn.0040c9b0
mov dword [ebp - 4], 7
jmp 0x40f4a8
push str.Execute
lea ecx, [ebp - 0xa4]
call fcn.0040fa30
test eax, eax
jne 0x40f094
mov edi, dword [ebp - 0x74]
add edi, 0x60
cmp dword [edi + 0x14], 8
jb 0x40efac
mov edi, dword [edi]
call fcn.00472cd8
push 0xa
mov dword [eax], 0
lea eax, [ebp - 0x310]
push eax
push edi
call fcn.004741b5
add esp, 0xc
mov dword [ebp - 0x2bc], eax
cmp edi, dword [ebp - 0x310]
jne 0x40efe1
push str.invalid_stoi_argument
call fcn.00453fe1
call fcn.00472cd8
cmp dword [eax], 0x22
je 0x40f08a
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x5c], 8
lea edi, [eax + 0x48]
lea ecx, [eax + 0x30]
lea edx, [eax + 0x18]
jb 0x40f003
mov edi, dword [edi]
cmp dword [ecx + 0x14], 8
jb 0x40f00b
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x40f013
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
jb 0x40f01b
mov eax, dword [eax]
push dword [ebp - 0x2bc]
push edi
push ecx
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x40f078
mov edx, eax
mov dword [ebp - 0x260], 0x426e
lea ecx, [ebp - 0x190]
call fcn.0040a660
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.0040f9e0
add esp, 4
lea ecx, [ebp - 0x25c]
push eax
call fcn.00407750
lea ecx, [ebp - 0x48]
call fcn.00407710
lea ecx, [ebp - 0x190]
call fcn.00407710
mov edi, dword [ebp - 0x2c4]
mov dword [ebp - 4], 7
jmp 0x40f4a8
push str.stoi_argument_out_of_range
call fcn.00454021
push str.SendRequest
lea ecx, [ebp - 0xa4]
call fcn.0040fa30
test eax, eax
jne 0x40f442
mov byte [ebp - 4], 0x11
mov dword [ebp - fcn.004115f0], 0x4b0ed0
mov dword [ebp - 0x308], eax
mov dword [ebp - 0x304], eax
call fcn.0040f8d0
mov dword [ebp - 0x308], eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0xf8], xmm0
mov word [ebp - 0xea], ax
movups xmmword [ebp - 0xe8], xmm0
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 0x400
mov byte [ebp - 4], 0x14
push 0x14
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
call fcn.0045600e
mov dword [ebp - 0x2b8], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x178]
mov edx, dword [ebp - 0x74]
call fcn.00412690
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x160]
mov eax, dword [ebp - 0x74]
add eax, 0x48
push eax
call fcn.00409720
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x148]
mov eax, dword [ebp - 0x74]
add eax, 0x30
push eax
call fcn.00409720
xor esi, esi
mov byte [ebp - 4], 0x19
push 0x4b0e10
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x2cc], esi
xor edi, edi
call fcn.0040fa30
test eax, eax
je 0x40f228
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x48]
lea edx, [edx + 0x18]
call fcn.00412690
mov esi, eax
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x40f20e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40f1f3
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00408060
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.0040ce60
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x19
call fcn.004077d0
cmp dword [ebp - 0x1c], 0x10
lea esi, [ebp - 0x30]
mov edi, dword [ebp - 0x20]
cmovae esi, dword [ebp - 0x30]
cmp dword [ebp - 0x164], 0x10
lea eax, [ebp - 0x178]
lea ecx, [ebp - 0xf8]
cmovae eax, dword [ebp - 0x178]
push eax
call fcn.0040fe40
cmp dword [eax + 0x30], 0
je 0x40f26c
push 0x28
push str.SendRequest_headers_parse_error_occured.
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x4273
call fcn.0040c9b0
jmp 0x40f27e
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x30c]
call fcn.004115f0
push ecx
lea ecx, [ebp - 0x30c]
call fcn.004118b0
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2bc], 0
push eax
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x2b8]
cmp dword [ebp - 0x14c], 8
lea edx, [ebp - 0x160]
push eax
cmovae edx, dword [ebp - 0x160]
lea eax, [ebp - 0x2bc]
cmp dword [ebp - 0x134], 8
lea ecx, [ebp - 0x148]
push eax
cmovae ecx, dword [ebp - 0x148]
push edi
push esi
mov dword [ebp - 0x2b8], 0
call fcn.00412c60
add esp, 0x14
lea ecx, [ebp - 0x48]
push eax
call fcn.00407810
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x1a8]
call fcn.004125b0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1e
call fcn.004077d0
push 0x1c
call fcn.0045600e
mov esi, eax
add esp, 4
mov dword [ebp - 0x314], esi
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00409720
mov byte [ebp - 4], 0x21
lea ecx, [esi + 4]
mov dword [esi], vtable.CENCReturnValueString.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40f371
mov eax, dword [ecx]
jmp 0x40f373
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2e8]
push edx
push eax
call fcn.00409750
mov eax, dword [ebp - 0x2d4]
cmp eax, 8
jb 0x40f3a5
inc eax
lea ecx, [ebp - 0x2e8]
push eax
push dword [ebp - 0x2e8]
call fcn.00408000
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x264], esi
call fcn.00407710
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x148]
call fcn.00407710
lea ecx, [ebp - 0x160]
call fcn.00407710
lea ecx, [ebp - 0x30]
call fcn.004077d0
lea ecx, [ebp - 0x178]
call fcn.004077d0
mov edi, dword [ebp - 0xe4]
test edi, edi
je 0x40f40d
mov ecx, edi
call fcn.0040f800
push 0x14
push edi
call fcn.004562a9
add esp, 8
push dword [ebp - 0xd8]
call fcn.00471e92
push 1
push dword [ebp - 0xdc]
call fcn.004562a9
add esp, 0xc
lea ecx, [ebp - 0x30c]
call fcn.0040e890
mov edi, dword [ebp - 0x2c4]
mov dword [ebp - 4], 7
jmp 0x40f4a8
push 0x16
push str.Request_not_supported.
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], 0x32
call fcn.0040c9b0
mov dword [ebp - 4], 7
jmp 0x40f4a8
test edi, edi
je 0x40f4b5
push edi
call fcn.00418870
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x2f0], 0
movups xmmword [ebp - 0x300], xmm0
mov dword [ebp - 0x2ec], 0x100
lea eax, [ebp - 0x300]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x60], eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0x100
mov dword [ebp - 0x44], 0x144
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3c], 0x20
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x24
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00409350
mov byte [ebp - 4], 0x23
push dword [ebp - 0x54]
call fcn.00471e92
push 1
push dword [ebp - 0x58]
call fcn.004562a9
mov eax, dword [ebp - 0x2f4]
sub eax, dword [ebp - 0x2f8]
push 1
mov dword [ebp - 0x18], eax
call fcn.004727e3
push eax
push 4
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00472c07
mov ecx, dword [ebp - 0x2f4]
add esp, 0x20
mov eax, ecx
sub eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2f0]
sub eax, ecx
cmp eax, 1
jge 0x40f58f
push 1
lea ecx, [ebp - 0x300]
call fcn.00408910
mov ecx, dword [ebp - 0x2f4]
mov eax, ecx
inc ecx
mov dword [ebp - 0x2f4], ecx
push 1
mov byte [eax], 0
dec dword [ebp - 0x2f4]
mov edi, dword [ebp - 0x2f8]
call fcn.004727e3
push eax
push dword [ebp - 0x2d0]
push 1
push edi
call fcn.00472c07
push 1
call fcn.004727e3
push eax
call fcn.00472483
push dword [ebp - 0x2f8]
call fcn.00471e92
push 1
push dword [ebp - 0x2fc]
call fcn.004562a9
add esp, 0x28
test esi, esi
je 0x40f5f2
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x10]
lea ecx, [ebp - 0x358]
call fcn.00413490
mov esi, dword [ebp - 0x11c]
test esi, esi
je 0x40f619
mov ecx, esi
call fcn.0040f800
push 0x14
push esi
call fcn.004562a9
add esp, 8
push dword [ebp - 0x110]
call fcn.00471e92
push 1
push dword [ebp - 0x114]
call fcn.004562a9
add esp, 0xc
lea ecx, [ebp - 0x2b0]
call fcn.00408d80
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0
call fcn.0040e730
mov esi, dword [ebp - 0x2c0]
test esi, esi
je 0x40ea36
push esi
call fcn.00471e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c0], eax
jmp 0x40ea36
test eax, eax
jne 0x40ea36
lea ecx, [ebp - 0x23c]
call fcn.00413c00
xor eax, eax
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.00455dc1
mov esp, ebp
pop ebp
ret